2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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 ## --------------------- ##
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
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
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
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
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }
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
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
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
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
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; }
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
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
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.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
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
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. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
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'"
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'"
575 # Check that we are running under the correct shell.
576 SHELL
=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec
; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo
; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo
; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
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
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
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'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
638 for dir
in $PATH /usr
/ucb
; do
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
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.
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
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
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
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
679 SHELL
="$CONFIG_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"
688 # maybe with a smaller string...
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
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+"$@"}
704 # Oops. We lost completely, so just stick with echo.
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.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev
/null
6>&1
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`
733 ac_default_prefix
=/usr
/local
735 ac_config_libobj_dir
=.
741 SHELL
=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
750 # Factoring default headers for most tests.
751 ac_includes_default
="\
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
763 # ifdef HAVE_STDLIB_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
786 ac_subst_vars
='am__EXEEXT_FALSE
815 NO_UNUSED_BUT_SET_VARIABLE
843 am__fastdepCCAS_FALSE
892 INSTALL_STRIP_PROGRAM
910 MAINTAINER_MODE_FALSE
961 program_transform_name
973 enable_option_checking
974 enable_maintainer_mode
976 enable_dependency_tracking
995 ac_precious_vars
='build_alias
1008 # Initialize some variables set by options.
1010 ac_init_version
=false
1011 ac_unrecognized_opts
=
1012 ac_unrecognized_sep
=
1013 # The variables have the same names as the options, with
1014 # dashes changed to underlines.
1015 cache_file
=/dev
/null
1022 program_transform_name
=s
,x
,x
,
1030 # Installation directory options.
1031 # These are left unexpanded so users can "make install exec_prefix=/foo"
1032 # and all the variables that are supposed to be based on exec_prefix
1033 # by default will actually change.
1034 # Use braces instead of parens because sh, perl, etc. also accept them.
1035 # (The list follows the same order as the GNU Coding Standards.)
1036 bindir
='${exec_prefix}/bin'
1037 sbindir
='${exec_prefix}/sbin'
1038 libexecdir
='${exec_prefix}/libexec'
1039 datarootdir
='${prefix}/share'
1040 datadir
='${datarootdir}'
1041 sysconfdir
='${prefix}/etc'
1042 sharedstatedir
='${prefix}/com'
1043 localstatedir
='${prefix}/var'
1044 includedir
='${prefix}/include'
1045 oldincludedir
='/usr/include'
1046 docdir
='${datarootdir}/doc/${PACKAGE}'
1047 infodir
='${datarootdir}/info'
1052 libdir
='${exec_prefix}/lib'
1053 localedir
='${datarootdir}/locale'
1054 mandir
='${datarootdir}/man'
1060 # If the previous option needs an argument, assign it.
1061 if test -n "$ac_prev"; then
1062 eval $ac_prev=\
$ac_option
1068 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1072 # Accept the important Cygnus configure options, so we can diagnose typos.
1074 case $ac_dashdash$ac_option in
1078 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1080 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1081 bindir
=$ac_optarg ;;
1083 -build |
--build |
--buil |
--bui |
--bu)
1084 ac_prev
=build_alias
;;
1085 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1086 build_alias
=$ac_optarg ;;
1088 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1089 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1090 ac_prev
=cache_file
;;
1091 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1092 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1093 cache_file
=$ac_optarg ;;
1095 --config-cache |
-C)
1096 cache_file
=config.cache
;;
1098 -datadir |
--datadir |
--datadi |
--datad)
1100 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1101 datadir
=$ac_optarg ;;
1103 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1104 |
--dataroo |
--dataro |
--datar)
1105 ac_prev
=datarootdir
;;
1106 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1107 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1108 datarootdir
=$ac_optarg ;;
1110 -disable-* |
--disable-*)
1111 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1114 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_useropt_orig
=$ac_useropt
1117 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "enable_
$ac_useropt"
1122 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123 ac_unrecognized_sep
=', ';;
1125 eval enable_
$ac_useropt=no
;;
1127 -docdir |
--docdir |
--docdi |
--doc |
--do)
1129 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1130 docdir
=$ac_optarg ;;
1132 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1134 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1135 dvidir
=$ac_optarg ;;
1137 -enable-* |
--enable-*)
1138 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1141 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_useropt_orig
=$ac_useropt
1144 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1147 "enable_
$ac_useropt"
1149 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1150 ac_unrecognized_sep
=', ';;
1152 eval enable_
$ac_useropt=\
$ac_optarg ;;
1154 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1155 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1156 |
--exec |
--exe |
--ex)
1157 ac_prev
=exec_prefix
;;
1158 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1159 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1160 |
--exec=* |
--exe=* |
--ex=*)
1161 exec_prefix
=$ac_optarg ;;
1163 -gas |
--gas |
--ga |
--g)
1164 # Obsolete; use --with-gas.
1167 -help |
--help |
--hel |
--he |
-h)
1168 ac_init_help
=long
;;
1169 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1170 ac_init_help
=recursive
;;
1171 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1172 ac_init_help
=short
;;
1174 -host |
--host |
--hos |
--ho)
1175 ac_prev
=host_alias
;;
1176 -host=* |
--host=* |
--hos=* |
--ho=*)
1177 host_alias
=$ac_optarg ;;
1179 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1181 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1183 htmldir
=$ac_optarg ;;
1185 -includedir |
--includedir |
--includedi |
--included |
--include \
1186 |
--includ |
--inclu |
--incl |
--inc)
1187 ac_prev
=includedir
;;
1188 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1189 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1190 includedir
=$ac_optarg ;;
1192 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1194 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1195 infodir
=$ac_optarg ;;
1197 -libdir |
--libdir |
--libdi |
--libd)
1199 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1200 libdir
=$ac_optarg ;;
1202 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1203 |
--libexe |
--libex |
--libe)
1204 ac_prev
=libexecdir
;;
1205 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1206 |
--libexe=* |
--libex=* |
--libe=*)
1207 libexecdir
=$ac_optarg ;;
1209 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1210 ac_prev
=localedir
;;
1211 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1212 localedir
=$ac_optarg ;;
1214 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1215 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1216 ac_prev
=localstatedir
;;
1217 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1218 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1219 localstatedir
=$ac_optarg ;;
1221 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1223 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1224 mandir
=$ac_optarg ;;
1226 -nfp |
--nfp |
--nf)
1227 # Obsolete; use --without-fp.
1230 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1231 |
--no-cr |
--no-c |
-n)
1234 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1235 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1238 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1239 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1240 |
--oldin |
--oldi |
--old |
--ol |
--o)
1241 ac_prev
=oldincludedir
;;
1242 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1243 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1244 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1245 oldincludedir
=$ac_optarg ;;
1247 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1249 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1250 prefix
=$ac_optarg ;;
1252 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1253 |
--program-pre |
--program-pr |
--program-p)
1254 ac_prev
=program_prefix
;;
1255 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1256 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1257 program_prefix
=$ac_optarg ;;
1259 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1260 |
--program-suf |
--program-su |
--program-s)
1261 ac_prev
=program_suffix
;;
1262 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1263 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1264 program_suffix
=$ac_optarg ;;
1266 -program-transform-name |
--program-transform-name \
1267 |
--program-transform-nam |
--program-transform-na \
1268 |
--program-transform-n |
--program-transform- \
1269 |
--program-transform |
--program-transfor \
1270 |
--program-transfo |
--program-transf \
1271 |
--program-trans |
--program-tran \
1272 |
--progr-tra |
--program-tr |
--program-t)
1273 ac_prev
=program_transform_name
;;
1274 -program-transform-name=* |
--program-transform-name=* \
1275 |
--program-transform-nam=* |
--program-transform-na=* \
1276 |
--program-transform-n=* |
--program-transform-=* \
1277 |
--program-transform=* |
--program-transfor=* \
1278 |
--program-transfo=* |
--program-transf=* \
1279 |
--program-trans=* |
--program-tran=* \
1280 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1281 program_transform_name
=$ac_optarg ;;
1283 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1285 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1286 pdfdir
=$ac_optarg ;;
1288 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1290 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1293 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1294 |
-silent |
--silent |
--silen |
--sile |
--sil)
1297 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1299 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1301 sbindir
=$ac_optarg ;;
1303 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1304 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1305 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1307 ac_prev
=sharedstatedir
;;
1308 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1309 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1310 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1312 sharedstatedir
=$ac_optarg ;;
1314 -site |
--site |
--sit)
1316 -site=* |
--site=* |
--sit=*)
1319 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1321 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1322 srcdir
=$ac_optarg ;;
1324 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1325 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1326 ac_prev
=sysconfdir
;;
1327 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1328 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1329 sysconfdir
=$ac_optarg ;;
1331 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1332 ac_prev
=target_alias
;;
1333 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1334 target_alias
=$ac_optarg ;;
1336 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1339 -version |
--version |
--versio |
--versi |
--vers |
-V)
1340 ac_init_version
=: ;;
1343 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1346 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1347 { (exit 1); exit 1; }; }
1348 ac_useropt_orig
=$ac_useropt
1349 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1354 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1355 ac_unrecognized_sep
=', ';;
1357 eval with_
$ac_useropt=\
$ac_optarg ;;
1359 -without-* |
--without-*)
1360 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1361 # Reject names that are not valid shell variable names.
1362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1363 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1364 { (exit 1); exit 1; }; }
1365 ac_useropt_orig
=$ac_useropt
1366 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1371 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372 ac_unrecognized_sep
=', ';;
1374 eval with_
$ac_useropt=no
;;
1377 # Obsolete; use --with-x.
1380 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1381 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1382 ac_prev
=x_includes
;;
1383 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1384 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1385 x_includes
=$ac_optarg ;;
1387 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1388 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1389 ac_prev
=x_libraries
;;
1390 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1391 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1392 x_libraries
=$ac_optarg ;;
1394 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1395 Try \`$0 --help' for more information." >&2
1396 { (exit 1); exit 1; }; }
1400 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1403 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1404 { (exit 1); exit 1; }; }
1405 eval $ac_envvar=\
$ac_optarg
1406 export $ac_envvar ;;
1409 # FIXME: should be removed in autoconf 3.0.
1410 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1411 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1412 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1413 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1419 if test -n "$ac_prev"; then
1420 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1421 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1422 { (exit 1); exit 1; }; }
1425 if test -n "$ac_unrecognized_opts"; then
1426 case $enable_option_checking in
1428 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1429 { (exit 1); exit 1; }; } ;;
1430 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1434 # Check all directory arguments for consistency.
1435 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1436 datadir sysconfdir sharedstatedir localstatedir includedir \
1437 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1438 libdir localedir mandir
1440 eval ac_val
=\$
$ac_var
1441 # Remove trailing slashes.
1444 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1445 eval $ac_var=\
$ac_val;;
1447 # Be sure to have absolute directory names.
1449 [\\/$
]* | ?
:[\\/]* ) continue;;
1450 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1452 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1453 { (exit 1); exit 1; }; }
1456 # There might be people who depend on the old broken behavior: `$host'
1457 # used to hold the argument of --host etc.
1458 # FIXME: To remove some day.
1461 target
=$target_alias
1463 # FIXME: To remove some day.
1464 if test "x$host_alias" != x
; then
1465 if test "x$build_alias" = x
; then
1466 cross_compiling
=maybe
1467 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1468 If a cross compiler is detected then cross compile mode will be used." >&2
1469 elif test "x$build_alias" != "x$host_alias"; then
1475 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1477 test "$silent" = yes && exec 6>/dev
/null
1480 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1481 ac_ls_di
=`ls -di .` &&
1482 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1483 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1484 { (exit 1); exit 1; }; }
1485 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1487 { (exit 1); exit 1; }; }
1490 # Find the source files, if location was not specified.
1491 if test -z "$srcdir"; then
1492 ac_srcdir_defaulted
=yes
1493 # Try the directory containing this script, then the parent directory.
1494 ac_confdir
=`$as_dirname -- "$as_myself" ||
1495 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1496 X"$as_myself" : 'X\(//\)[^/]' \| \
1497 X"$as_myself" : 'X\(//\)$' \| \
1498 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1499 $as_echo X"$as_myself" |
1500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1518 if test ! -r "$srcdir/$ac_unique_file"; then
1522 ac_srcdir_defaulted
=no
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1525 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1526 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1527 { (exit 1); exit 1; }; }
1529 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1531 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1532 { (exit 1); exit 1; }; }
1534 # When building in place, set srcdir=.
1535 if test "$ac_abs_confdir" = "$ac_pwd"; then
1538 # Remove unnecessary trailing slashes from srcdir.
1539 # Double slashes in file names in object file debugging info
1540 # mess up M-x gdb in Emacs.
1542 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 for ac_var
in $ac_precious_vars; do
1545 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1546 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1547 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1548 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1552 # Report the --help message.
1554 if test "$ac_init_help" = "long"; then
1555 # Omit some internal or obsolete options to make the list less imposing.
1556 # This message is too long to be a string in the A/UX 3.1 sh.
1558 \`configure' configures this package to adapt to many kinds of systems.
1560 Usage: $0 [OPTION]... [VAR=VALUE]...
1562 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1563 VAR=VALUE. See below for descriptions of some of the useful variables.
1565 Defaults for the options are specified in brackets.
1568 -h, --help display this help and exit
1569 --help=short display options specific to this package
1570 --help=recursive display the short help of all the included packages
1571 -V, --version display version information and exit
1572 -q, --quiet, --silent do not print \`checking...' messages
1573 --cache-file=FILE cache test results in FILE [disabled]
1574 -C, --config-cache alias for \`--cache-file=config.cache'
1575 -n, --no-create do not create output files
1576 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1578 Installation directories:
1579 --prefix=PREFIX install architecture-independent files in PREFIX
1580 [$ac_default_prefix]
1581 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1584 By default, \`make install' will install all the files in
1585 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1586 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1587 for instance \`--prefix=\$HOME'.
1589 For better control, use the options below.
1591 Fine tuning of the installation directories:
1592 --bindir=DIR user executables [EPREFIX/bin]
1593 --sbindir=DIR system admin executables [EPREFIX/sbin]
1594 --libexecdir=DIR program executables [EPREFIX/libexec]
1595 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1596 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1597 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1598 --libdir=DIR object code libraries [EPREFIX/lib]
1599 --includedir=DIR C header files [PREFIX/include]
1600 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1601 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1602 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1603 --infodir=DIR info documentation [DATAROOTDIR/info]
1604 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1605 --mandir=DIR man documentation [DATAROOTDIR/man]
1606 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1607 --htmldir=DIR html documentation [DOCDIR]
1608 --dvidir=DIR dvi documentation [DOCDIR]
1609 --pdfdir=DIR pdf documentation [DOCDIR]
1610 --psdir=DIR ps documentation [DOCDIR]
1616 --program-prefix=PREFIX prepend PREFIX to installed program names
1617 --program-suffix=SUFFIX append SUFFIX to installed program names
1618 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1621 --build=BUILD configure
for building on BUILD
[guessed
]
1622 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1623 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1627 if test -n "$ac_init_help"; then
1632 --disable-option-checking ignore unrecognized
--enable/--with options
1633 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1634 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1635 --enable-maintainer-mode enable make rules and dependencies not useful
1636 (and sometimes confusing
) to the casual installer
1637 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1638 --disable-silent-rules verbose build output (undo: `make V
=0')
1639 --disable-dependency-tracking speeds up one-time build
1640 --enable-dependency-tracking do not reject slow dependency extractors
1641 --enable-shared[=PKGS] build shared libraries [default=yes]
1642 --enable-static[=PKGS] build static libraries [default=yes]
1643 --enable-fast-install[=PKGS]
1644 optimize for fast installation [default=yes]
1645 --disable-libtool-lock avoid locking (might break parallel builds)
1646 --enable-debug Enable generic debug support [default=no]
1647 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1650 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1652 --with-pic try to use only PIC/non-PIC objects [default=use
1654 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1655 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1656 --with-linux=PATH Path to kernel source
1657 --with-linux-obj=PATH Path to kernel build objects
1658 --with-spl=PATH Path to spl source
1659 --with-spl-obj=PATH Path to spl build objects
1660 --with-udevdir=DIR install udev helpers [EPREFIX/lib/udev]
1661 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1662 --with-blkid support blkid caching [default=check]
1663 --with-selinux support selinux [default=check]
1665 Some influential environment variables:
1666 CC C compiler command
1667 CFLAGS C compiler flags
1668 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1669 nonstandard directory <lib dir>
1670 LIBS libraries to pass to the linker, e.g. -l<library>
1671 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1672 you have headers in a nonstandard directory <include dir>
1674 CCAS assembler compiler command (defaults to CC)
1675 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1677 Use these variables to override the choices made by `configure' or to
help
1678 it to
find libraries and programs with nonstandard names
/locations.
1684 if test "$ac_init_help" = "recursive"; then
1685 # If there are subdirs, report their specific --help.
1686 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1687 test -d "$ac_dir" ||
1688 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1693 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1695 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1696 # A ".." for each directory in $ac_dir_suffix.
1697 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1698 case $ac_top_builddir_sub in
1699 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1700 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1703 ac_abs_top_builddir
=$ac_pwd
1704 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1705 # for backward compatibility:
1706 ac_top_builddir
=$ac_top_build_prefix
1709 .
) # We are building in place.
1711 ac_top_srcdir
=$ac_top_builddir_sub
1712 ac_abs_top_srcdir
=$ac_pwd ;;
1713 [\\/]* | ?
:[\\/]* ) # Absolute name.
1714 ac_srcdir
=$srcdir$ac_dir_suffix;
1715 ac_top_srcdir
=$srcdir
1716 ac_abs_top_srcdir
=$srcdir ;;
1718 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1720 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1722 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1724 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1725 # Check for guested configure.
1726 if test -f "$ac_srcdir/configure.gnu"; then
1728 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729 elif test -f "$ac_srcdir/configure"; then
1731 $SHELL "$ac_srcdir/configure" --help=recursive
1733 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1739 test -n "$ac_init_help" && exit $ac_status
1740 if $ac_init_version; then
1743 generated by GNU Autoconf
2.63
1745 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1746 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1747 This configure
script is free software
; the Free Software Foundation
1748 gives unlimited permission to copy
, distribute and modify it.
1752 cat >config.log
<<_ACEOF
1753 This file contains any messages produced by compilers while
1754 running configure, to aid debugging if configure makes a mistake.
1756 It was created by $as_me, which was
1757 generated by GNU Autoconf 2.63. Invocation command line was
1769 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1770 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1771 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1772 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1773 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1775 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1776 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1778 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1779 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1780 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1781 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1782 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1783 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1784 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1792 test -z "$as_dir" && as_dir
=.
1793 $as_echo "PATH: $as_dir"
1809 # Keep a trace of the command line.
1810 # Strip out --no-create and --no-recursion so they do not pile up.
1811 # Strip out --silent because we don't want to record it for future runs.
1812 # Also quote any args containing shell meta-characters.
1813 # Make two passes to allow for proper duplicate-argument suppression.
1817 ac_must_keep_next
=false
1823 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1824 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1825 |
-silent |
--silent |
--silen |
--sile |
--sil)
1828 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1831 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1833 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1834 if test $ac_must_keep_next = true
; then
1835 ac_must_keep_next
=false
# Got value, back to normal.
1838 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1839 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1840 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1841 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1842 case "$ac_configure_args0 " in
1843 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1846 -* ) ac_must_keep_next
=true
;;
1849 ac_configure_args
="$ac_configure_args '$ac_arg'"
1854 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1855 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1857 # When interrupted or exit'd, cleanup temporary files, and complete
1858 # config.log. We remove comments because anyway the quotes in there
1859 # would cause problems or look ugly.
1860 # WARNING: Use '\'' to represent an apostrophe within the trap.
1861 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1862 trap 'exit_status=$?
1863 # Save into config.log some information that might help in debugging.
1868 ## ---------------- ##
1869 ## Cache variables. ##
1870 ## ---------------- ##
1873 # The following way of writing the cache mishandles newlines in values,
1875 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1876 eval ac_val=\$$ac_var
1880 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1881 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1884 _ | IFS | as_nl) ;; #(
1885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1886 *) $as_unset $ac_var ;;
1891 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1892 *${as_nl}ac_space=\ *)
1894 "s/'\''/'\''\\\\'\'''\''/g;
1895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1906 ## ----------------- ##
1907 ## Output variables. ##
1908 ## ----------------- ##
1911 for ac_var in $ac_subst_vars
1913 eval ac_val=\$$ac_var
1915 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1917 $as_echo "$ac_var='\''$ac_val'\''"
1921 if test -n "$ac_subst_files"; then
1923 ## ------------------- ##
1924 ## File substitutions. ##
1925 ## ------------------- ##
1928 for ac_var
in $ac_subst_files
1930 eval ac_val
=\$
$ac_var
1932 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1934 $as_echo "$ac_var='\''$ac_val'\''"
1939 if test -s confdefs.h; then
1949 test "$ac_signal" != 0 &&
1950 $as_echo "$as_me: caught signal $ac_signal"
1951 $as_echo "$as_me: exit $exit_status"
1953 rm -f core *.core core.conftest.* &&
1954 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1957 for ac_signal
in 1 2 13 15; do
1958 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1962 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1963 rm -f -r conftest
* confdefs.h
1965 # Predefined preprocessor variables.
1967 cat >>confdefs.h
<<_ACEOF
1968 #define PACKAGE_NAME "$PACKAGE_NAME"
1972 cat >>confdefs.h
<<_ACEOF
1973 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1977 cat >>confdefs.h
<<_ACEOF
1978 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1982 cat >>confdefs.h
<<_ACEOF
1983 #define PACKAGE_STRING "$PACKAGE_STRING"
1987 cat >>confdefs.h
<<_ACEOF
1988 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1992 # Let the site file select an alternate cache file if it wants to.
1993 # Prefer an explicitly selected file to automatically selected ones.
1996 if test -n "$CONFIG_SITE"; then
1997 ac_site_file1
=$CONFIG_SITE
1998 elif test "x$prefix" != xNONE
; then
1999 ac_site_file1
=$prefix/share
/config.site
2000 ac_site_file2
=$prefix/etc
/config.site
2002 ac_site_file1
=$ac_default_prefix/share
/config.site
2003 ac_site_file2
=$ac_default_prefix/etc
/config.site
2005 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2007 test "x$ac_site_file" = xNONE
&& continue
2008 if test -r "$ac_site_file"; then
2009 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2010 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2011 sed 's/^/| /' "$ac_site_file" >&5
2016 if test -r "$cache_file"; then
2017 # Some versions of bash will fail to source /dev/null (special
2018 # files actually), so we avoid doing that.
2019 if test -f "$cache_file"; then
2020 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2021 $as_echo "$as_me: loading cache $cache_file" >&6;}
2023 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2024 *) .
"./$cache_file";;
2028 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2029 $as_echo "$as_me: creating cache $cache_file" >&6;}
2033 # Check that the precious variables saved in the cache have kept the same
2035 ac_cache_corrupted
=false
2036 for ac_var
in $ac_precious_vars; do
2037 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2038 eval ac_new_set
=\
$ac_env_${ac_var}_set
2039 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2040 eval ac_new_val
=\
$ac_env_${ac_var}_value
2041 case $ac_old_set,$ac_new_set in
2043 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2044 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2045 ac_cache_corrupted
=: ;;
2047 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2048 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2049 ac_cache_corrupted
=: ;;
2052 if test "x$ac_old_val" != "x$ac_new_val"; then
2053 # differences in whitespace do not lead to failure.
2054 ac_old_val_w
=`echo x $ac_old_val`
2055 ac_new_val_w
=`echo x $ac_new_val`
2056 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2057 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2058 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2059 ac_cache_corrupted
=:
2061 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2062 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2063 eval $ac_var=\
$ac_old_val
2065 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2066 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2067 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2068 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2071 # Pass precious variables to config.status.
2072 if test "$ac_new_set" = set; then
2074 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2075 *) ac_arg
=$ac_var=$ac_new_val ;;
2077 case " $ac_configure_args " in
2078 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2079 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2083 if $ac_cache_corrupted; then
2084 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2086 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2087 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2088 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2089 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2090 { (exit 1); exit 1; }; }
2110 ac_cpp
='$CPP $CPPFLAGS'
2111 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2112 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2113 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2117 ac_cpp
='$CPP $CPPFLAGS'
2118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2127 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2128 $as_echo_n "checking metadata... " >&6; }
2131 _zfs_ac_meta_got_file
=no
2132 if test -f "$META"; then
2133 _zfs_ac_meta_got_file
=yes
2135 ZFS_META_NAME
=`perl -n\
2136 -e "BEGIN { \\$key=shift @ARGV; }"\
2137 -e "next unless s/^\s*\\$key[:=]//i;"\
2138 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2141 -e "s/^(['\"])(.*)\1/\\$2/;"\
2143 -e "END { print \\$val if defined \\$val; }"\
2144 '(?:NAME|PROJECT|PACKAGE)' $META`;
2145 if test -n "$ZFS_META_NAME"; then
2147 cat >>confdefs.h
<<_ACEOF
2148 #define ZFS_META_NAME "$ZFS_META_NAME"
2154 ZFS_META_VERSION
=`perl -n\
2155 -e "BEGIN { \\$key=shift @ARGV; }"\
2156 -e "next unless s/^\s*\\$key[:=]//i;"\
2157 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2160 -e "s/^(['\"])(.*)\1/\\$2/;"\
2162 -e "END { print \\$val if defined \\$val; }"\
2164 if test -n "$ZFS_META_VERSION"; then
2166 cat >>confdefs.h
<<_ACEOF
2167 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2173 ZFS_META_RELEASE
=`perl -n\
2174 -e "BEGIN { \\$key=shift @ARGV; }"\
2175 -e "next unless s/^\s*\\$key[:=]//i;"\
2176 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2179 -e "s/^(['\"])(.*)\1/\\$2/;"\
2181 -e "END { print \\$val if defined \\$val; }"\
2183 if test -n "$ZFS_META_RELEASE"; then
2185 cat >>confdefs.h
<<_ACEOF
2186 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2192 ZFS_META_LICENSE
=`perl -n\
2193 -e "BEGIN { \\$key=shift @ARGV; }"\
2194 -e "next unless s/^\s*\\$key[:=]//i;"\
2195 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2198 -e "s/^(['\"])(.*)\1/\\$2/;"\
2200 -e "END { print \\$val if defined \\$val; }"\
2202 if test -n "$ZFS_META_LICENSE"; then
2204 cat >>confdefs.h
<<_ACEOF
2205 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2211 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2212 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2213 test -n "$ZFS_META_RELEASE" &&
2214 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2216 cat >>confdefs.h
<<_ACEOF
2217 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2223 ZFS_META_DATA
=`perl -n\
2224 -e "BEGIN { \\$key=shift @ARGV; }"\
2225 -e "next unless s/^\s*\\$key[:=]//i;"\
2226 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2229 -e "s/^(['\"])(.*)\1/\\$2/;"\
2231 -e "END { print \\$val if defined \\$val; }"\
2233 if test -n "$ZFS_META_DATA"; then
2235 cat >>confdefs.h
<<_ACEOF
2236 #define ZFS_META_DATA "$ZFS_META_DATA"
2242 ZFS_META_AUTHOR
=`perl -n\
2243 -e "BEGIN { \\$key=shift @ARGV; }"\
2244 -e "next unless s/^\s*\\$key[:=]//i;"\
2245 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2248 -e "s/^(['\"])(.*)\1/\\$2/;"\
2250 -e "END { print \\$val if defined \\$val; }"\
2252 if test -n "$ZFS_META_AUTHOR"; then
2254 cat >>confdefs.h
<<_ACEOF
2255 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2262 ZFS_META_LT_CURRENT
=`perl -n\
2263 -e "BEGIN { \\$key=shift @ARGV; }"\
2264 -e "next unless s/^\s*\\$key[:=]//i;"\
2265 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2268 -e "s/^(['\"])(.*)\1/\\$2/;"\
2270 -e "END { print \\$val if defined \\$val; }"\
2271 'LT_CURRENT' $META`;
2272 ZFS_META_LT_REVISION
=`perl -n\
2273 -e "BEGIN { \\$key=shift @ARGV; }"\
2274 -e "next unless s/^\s*\\$key[:=]//i;"\
2275 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2278 -e "s/^(['\"])(.*)\1/\\$2/;"\
2280 -e "END { print \\$val if defined \\$val; }"\
2281 'LT_REVISION' $META`;
2282 ZFS_META_LT_AGE
=`perl -n\
2283 -e "BEGIN { \\$key=shift @ARGV; }"\
2284 -e "next unless s/^\s*\\$key[:=]//i;"\
2285 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2288 -e "s/^(['\"])(.*)\1/\\$2/;"\
2290 -e "END { print \\$val if defined \\$val; }"\
2292 if test -n "$ZFS_META_LT_CURRENT" \
2293 -o -n "$ZFS_META_LT_REVISION" \
2294 -o -n "$ZFS_META_LT_AGE"; then
2295 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2296 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2297 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2299 cat >>confdefs.h
<<_ACEOF
2300 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2304 cat >>confdefs.h
<<_ACEOF
2305 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2309 cat >>confdefs.h
<<_ACEOF
2310 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2319 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2320 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2324 for ac_dir
in config
"$srcdir"/config
; do
2325 if test -f "$ac_dir/install-sh"; then
2327 ac_install_sh
="$ac_aux_dir/install-sh -c"
2329 elif test -f "$ac_dir/install.sh"; then
2331 ac_install_sh
="$ac_aux_dir/install.sh -c"
2333 elif test -f "$ac_dir/shtool"; then
2335 ac_install_sh
="$ac_aux_dir/shtool install -c"
2339 if test -z "$ac_aux_dir"; then
2340 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2341 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2342 { (exit 1); exit 1; }; }
2345 # These three variables are undocumented and unsupported,
2346 # and are intended to be withdrawn in a future Autoconf release.
2347 # They can cause serious problems if a builder's source tree is in a directory
2348 # whose full name contains unusual characters.
2349 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2354 # Make sure we can run config.sub.
2355 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2356 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2357 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2358 { (exit 1); exit 1; }; }
2360 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2361 $as_echo_n "checking build system type... " >&6; }
2362 if test "${ac_cv_build+set}" = set; then
2363 $as_echo_n "(cached) " >&6
2365 ac_build_alias
=$build_alias
2366 test "x$ac_build_alias" = x
&&
2367 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2368 test "x$ac_build_alias" = x
&&
2369 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2370 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2371 { (exit 1); exit 1; }; }
2372 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2373 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2374 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2375 { (exit 1); exit 1; }; }
2378 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2379 $as_echo "$ac_cv_build" >&6; }
2380 case $ac_cv_build in
2382 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2383 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2384 { (exit 1); exit 1; }; };;
2387 ac_save_IFS
=$IFS; IFS
='-'
2393 # Remember, the first character of IFS is used to create $*,
2394 # except with old shells:
2397 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2400 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2401 $as_echo_n "checking host system type... " >&6; }
2402 if test "${ac_cv_host+set}" = set; then
2403 $as_echo_n "(cached) " >&6
2405 if test "x$host_alias" = x
; then
2406 ac_cv_host
=$ac_cv_build
2408 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2409 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2410 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2411 { (exit 1); exit 1; }; }
2415 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2416 $as_echo "$ac_cv_host" >&6; }
2419 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2420 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2421 { (exit 1); exit 1; }; };;
2424 ac_save_IFS
=$IFS; IFS
='-'
2430 # Remember, the first character of IFS is used to create $*,
2431 # except with old shells:
2434 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2437 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2438 $as_echo_n "checking target system type... " >&6; }
2439 if test "${ac_cv_target+set}" = set; then
2440 $as_echo_n "(cached) " >&6
2442 if test "x$target_alias" = x
; then
2443 ac_cv_target
=$ac_cv_host
2445 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2446 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2447 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2448 { (exit 1); exit 1; }; }
2452 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2453 $as_echo "$ac_cv_target" >&6; }
2454 case $ac_cv_target in
2456 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2457 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2458 { (exit 1); exit 1; }; };;
2460 target
=$ac_cv_target
2461 ac_save_IFS
=$IFS; IFS
='-'
2467 # Remember, the first character of IFS is used to create $*,
2468 # except with old shells:
2471 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2474 # The aliases save the names the user supplied, while $host etc.
2475 # will get canonicalized.
2476 test -n "$target_alias" &&
2477 test "$program_prefix$program_suffix$program_transform_name" = \
2479 program_prefix
=${target_alias}-
2481 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2482 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2483 # Check whether --enable-maintainer-mode was given.
2484 if test "${enable_maintainer_mode+set}" = set; then
2485 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2487 USE_MAINTAINER_MODE
=no
2490 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2491 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2492 if test $USE_MAINTAINER_MODE = yes; then
2493 MAINTAINER_MODE_TRUE
=
2494 MAINTAINER_MODE_FALSE
='#'
2496 MAINTAINER_MODE_TRUE
='#'
2497 MAINTAINER_MODE_FALSE
=
2500 MAINT
=$MAINTAINER_MODE_TRUE
2503 # Check whether --enable-silent-rules was given.
2504 if test "${enable_silent_rules+set}" = set; then
2505 enableval
=$enable_silent_rules;
2508 case $enable_silent_rules in
2509 yes) AM_DEFAULT_VERBOSITY
=0;;
2510 no
) AM_DEFAULT_VERBOSITY
=1;;
2511 *) AM_DEFAULT_VERBOSITY
=1;;
2515 am__api_version='1.11'
2517 # Find a good install program. We prefer a C program (faster),
2518 # so one script is as good as another. But avoid the broken or
2519 # incompatible versions:
2520 # SysV /etc/install, /usr/sbin/install
2521 # SunOS /usr/etc/install
2522 # IRIX /sbin/install
2524 # AmigaOS /C/install, which installs bootblocks on floppy discs
2525 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2528 # OS/2's system install, which has a completely different semantic
2529 # ./install, which can be erroneously created by make from ./install.sh.
2530 # Reject install programs that cannot install multiple files.
2531 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2532 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2533 if test -z "$INSTALL"; then
2534 if test "${ac_cv_path_install+set}" = set; then
2535 $as_echo_n "(cached) " >&6
2537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2541 test -z "$as_dir" && as_dir
=.
2542 # Account for people who put trailing slashes in PATH elements.
2544 .
/ | .
// |
/cC
/* | \
2545 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2546 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2549 # OSF1 and SCO ODT 3.0 have their own names for install.
2550 # Don't use installbsd from OSF since it installs stuff as root
2552 for ac_prog
in ginstall scoinst
install; do
2553 for ac_exec_ext
in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2555 if test $ac_prog = install &&
2556 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2557 # AIX install. It has an incompatible calling convention.
2559 elif test $ac_prog = install &&
2560 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2561 # program-specific install script used by HP pwplus--don't use.
2564 rm -rf conftest.one conftest.two conftest.dir
2565 echo one
> conftest.one
2566 echo two
> conftest.two
2568 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2569 test -s conftest.one
&& test -s conftest.two
&&
2570 test -s conftest.dir
/conftest.one
&&
2571 test -s conftest.dir
/conftest.two
2573 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2586 rm -rf conftest.one conftest.two conftest.dir
2589 if test "${ac_cv_path_install+set}" = set; then
2590 INSTALL
=$ac_cv_path_install
2592 # As a last resort, use the slow shell script. Don't cache a
2593 # value for INSTALL within a source directory, because that will
2594 # break other packages using the cache if that directory is
2595 # removed, or if the value is a relative name.
2596 INSTALL
=$ac_install_sh
2599 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2600 $as_echo "$INSTALL" >&6; }
2602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2603 # It thinks the first close brace ends the variable substitution.
2604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2608 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2610 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2611 $as_echo_n "checking whether build environment is sane... " >&6; }
2614 echo timestamp
> conftest.
file
2615 # Reject unsafe characters in $srcdir or the absolute working directory
2616 # name. Accept space and tab only in the latter.
2620 *[\\\"\
#\$\&\'\`$am_lf]*)
2621 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2622 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2623 { (exit 1); exit 1; }; };;
2626 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2627 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2628 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2629 { (exit 1); exit 1; }; };;
2632 # Do `set' in a subshell so we don't clobber the current shell's
2633 # arguments. Must try -L first in case configure is actually a
2634 # symlink; some systems play weird games with the mod time of symlinks
2635 # (eg FreeBSD returns the mod time of the symlink's containing
2638 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2639 if test "$*" = "X"; then
2641 set X
`ls -t "$srcdir/configure" conftest.file`
2644 if test "$*" != "X $srcdir/configure conftest.file" \
2645 && test "$*" != "X conftest.file $srcdir/configure"; then
2647 # If neither matched, then we have a broken ls. This can happen
2648 # if, for instance, CONFIG_SHELL is bash and it inherits a
2649 # broken ls alias from the environment. This has actually
2650 # happened. Such a system could not be considered "sane".
2651 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2652 alias in your environment" >&5
2653 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2654 alias in your environment" >&2;}
2655 { (exit 1); exit 1; }; }
2658 test "$2" = conftest.
file
2664 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2665 Check your system clock" >&5
2666 $as_echo "$as_me: error: newly created file is older than distributed files!
2667 Check your system clock" >&2;}
2668 { (exit 1); exit 1; }; }
2670 { $as_echo "$as_me:$LINENO: result: yes" >&5
2671 $as_echo "yes" >&6; }
2672 test "$program_prefix" != NONE
&&
2673 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2674 # Use a double $ so make ignores it.
2675 test "$program_suffix" != NONE
&&
2676 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2677 # Double any \ or $.
2678 # By default was `s,x,x', remove it if useless.
2679 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2680 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2682 # expand $ac_aux_dir to an absolute path
2683 am_aux_dir
=`cd $ac_aux_dir && pwd`
2685 if test x
"${MISSING+set}" != xset
; then
2688 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2690 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2693 # Use eval to expand $SHELL
2694 if eval "$MISSING --run true"; then
2695 am_missing_run
="$MISSING --run "
2698 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2699 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2702 if test x
"${install_sh}" != xset
; then
2705 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2707 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2711 # Installed binaries are usually stripped using `strip' when the user
2712 # run `make install-strip'. However `strip' might not be the right
2713 # tool to use in cross-compilation environments, therefore Automake
2714 # will honor the `STRIP' environment variable to overrule this program.
2715 if test "$cross_compiling" != no
; then
2716 if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2718 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_STRIP+set}" = set; then
2722 $as_echo_n "(cached) " >&6
2724 if test -n "$STRIP"; then
2725 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir
=.
2732 for ac_exec_ext
in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 STRIP
=$ac_cv_prog_STRIP
2745 if test -n "$STRIP"; then
2746 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2747 $as_echo "$STRIP" >&6; }
2749 { $as_echo "$as_me:$LINENO: result: no" >&5
2750 $as_echo "no" >&6; }
2755 if test -z "$ac_cv_prog_STRIP"; then
2757 # Extract the first word of "strip", so it can be a program name with args.
2758 set dummy strip
; ac_word
=$2
2759 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2762 $as_echo_n "(cached) " >&6
2764 if test -n "$ac_ct_STRIP"; then
2765 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir
=.
2772 for ac_exec_ext
in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_ac_ct_STRIP
="strip"
2775 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2785 if test -n "$ac_ct_STRIP"; then
2786 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2787 $as_echo "$ac_ct_STRIP" >&6; }
2789 { $as_echo "$as_me:$LINENO: result: no" >&5
2790 $as_echo "no" >&6; }
2793 if test "x$ac_ct_STRIP" = x
; then
2796 case $cross_compiling:$ac_tool_warned in
2798 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2800 ac_tool_warned
=yes ;;
2805 STRIP
="$ac_cv_prog_STRIP"
2809 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2811 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2812 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2813 if test -z "$MKDIR_P"; then
2814 if test "${ac_cv_path_mkdir+set}" = set; then
2815 $as_echo_n "(cached) " >&6
2817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2818 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2821 test -z "$as_dir" && as_dir
=.
2822 for ac_prog
in mkdir gmkdir
; do
2823 for ac_exec_ext
in '' $ac_executable_extensions; do
2824 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2825 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2826 'mkdir (GNU coreutils) '* | \
2827 'mkdir (coreutils) '* | \
2828 'mkdir (fileutils) '4.1*)
2829 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2839 if test "${ac_cv_path_mkdir+set}" = set; then
2840 MKDIR_P
="$ac_cv_path_mkdir -p"
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for MKDIR_P within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 test -d .
/--version && rmdir .
/--version
2847 MKDIR_P
="$ac_install_sh -d"
2850 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2851 $as_echo "$MKDIR_P" >&6; }
2855 [\\/$
]* | ?
:[\\/]*) ;;
2856 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2859 for ac_prog
in gawk mawk nawk
awk
2861 # Extract the first word of "$ac_prog", so it can be a program name with args.
2862 set dummy
$ac_prog; ac_word
=$2
2863 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_AWK+set}" = set; then
2866 $as_echo_n "(cached) " >&6
2868 if test -n "$AWK"; then
2869 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir
=.
2876 for ac_exec_ext
in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_AWK
="$ac_prog"
2879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 if test -n "$AWK"; then
2890 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2891 $as_echo "$AWK" >&6; }
2893 { $as_echo "$as_me:$LINENO: result: no" >&5
2894 $as_echo "no" >&6; }
2898 test -n "$AWK" && break
2901 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2902 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2904 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2905 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2906 $as_echo_n "(cached) " >&6
2908 cat >conftest.
make <<\_ACEOF
2911 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2914 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2916 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2918 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2922 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2923 { $as_echo "$as_me:$LINENO: result: yes" >&5
2924 $as_echo "yes" >&6; }
2927 { $as_echo "$as_me:$LINENO: result: no" >&5
2928 $as_echo "no" >&6; }
2929 SET_MAKE
="MAKE=${MAKE-make}"
2932 rm -rf .tst
2>/dev
/null
2933 mkdir .tst
2>/dev
/null
2934 if test -d .tst
; then
2939 rmdir .tst
2>/dev
/null
2941 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2942 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2943 # is not polluted with repeated "-I."
2944 am__isrc
=' -I$(srcdir)'
2945 # test to see if srcdir already configured
2946 if test -f $srcdir/config.status
; then
2947 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2948 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2949 { (exit 1); exit 1; }; }
2953 # test whether we have cygpath
2954 if test -z "$CYGPATH_W"; then
2955 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2956 CYGPATH_W
='cygpath -w'
2963 # Define the identity of the package.
2964 PACKAGE
=$ZFS_META_NAME
2965 VERSION
=$ZFS_META_VERSION
2968 cat >>confdefs.h
<<_ACEOF
2969 #define PACKAGE "$PACKAGE"
2973 cat >>confdefs.h
<<_ACEOF
2974 #define VERSION "$VERSION"
2977 # Some tools Automake needs.
2979 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2982 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2985 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2988 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2991 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2993 # We need awk for the "check" target. The system "awk" is bad on
2995 # Always define AMTAR for backward compatibility.
2997 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2999 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3005 ac_config_headers
="$ac_config_headers zfs_config.h"
3008 # Find a good install program. We prefer a C program (faster),
3009 # so one script is as good as another. But avoid the broken or
3010 # incompatible versions:
3011 # SysV /etc/install, /usr/sbin/install
3012 # SunOS /usr/etc/install
3013 # IRIX /sbin/install
3015 # AmigaOS /C/install, which installs bootblocks on floppy discs
3016 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3017 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3018 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3019 # OS/2's system install, which has a completely different semantic
3020 # ./install, which can be erroneously created by make from ./install.sh.
3021 # Reject install programs that cannot install multiple files.
3022 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3023 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3024 if test -z "$INSTALL"; then
3025 if test "${ac_cv_path_install+set}" = set; then
3026 $as_echo_n "(cached) " >&6
3028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir
=.
3033 # Account for people who put trailing slashes in PATH elements.
3035 .
/ | .
// |
/cC
/* | \
3036 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3037 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3040 # OSF1 and SCO ODT 3.0 have their own names for install.
3041 # Don't use installbsd from OSF since it installs stuff as root
3043 for ac_prog
in ginstall scoinst
install; do
3044 for ac_exec_ext
in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3046 if test $ac_prog = install &&
3047 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3048 # AIX install. It has an incompatible calling convention.
3050 elif test $ac_prog = install &&
3051 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3052 # program-specific install script used by HP pwplus--don't use.
3055 rm -rf conftest.one conftest.two conftest.dir
3056 echo one
> conftest.one
3057 echo two
> conftest.two
3059 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3060 test -s conftest.one
&& test -s conftest.two
&&
3061 test -s conftest.dir
/conftest.one
&&
3062 test -s conftest.dir
/conftest.two
3064 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3077 rm -rf conftest.one conftest.two conftest.dir
3080 if test "${ac_cv_path_install+set}" = set; then
3081 INSTALL
=$ac_cv_path_install
3083 # As a last resort, use the slow shell script. Don't cache a
3084 # value for INSTALL within a source directory, because that will
3085 # break other packages using the cache if that directory is
3086 # removed, or if the value is a relative name.
3087 INSTALL
=$ac_install_sh
3090 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3091 $as_echo "$INSTALL" >&6; }
3093 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3094 # It thinks the first close brace ends the variable substitution.
3095 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3097 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3099 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3102 ac_cpp
='$CPP $CPPFLAGS'
3103 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3106 if test -n "$ac_tool_prefix"; then
3107 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3108 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if test "${ac_cv_prog_CC+set}" = set; then
3112 $as_echo_n "(cached) " >&6
3114 if test -n "$CC"; then
3115 ac_cv_prog_CC
="$CC" # Let the user override the test.
3117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3121 test -z "$as_dir" && as_dir
=.
3122 for ac_exec_ext
in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 if test -n "$CC"; then
3136 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3137 $as_echo "$CC" >&6; }
3139 { $as_echo "$as_me:$LINENO: result: no" >&5
3140 $as_echo "no" >&6; }
3145 if test -z "$ac_cv_prog_CC"; then
3147 # Extract the first word of "gcc", so it can be a program name with args.
3148 set dummy gcc
; ac_word
=$2
3149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3152 $as_echo_n "(cached) " >&6
3154 if test -n "$ac_ct_CC"; then
3155 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3161 test -z "$as_dir" && as_dir
=.
3162 for ac_exec_ext
in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_ac_ct_CC
="gcc"
3165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3175 if test -n "$ac_ct_CC"; then
3176 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3177 $as_echo "$ac_ct_CC" >&6; }
3179 { $as_echo "$as_me:$LINENO: result: no" >&5
3180 $as_echo "no" >&6; }
3183 if test "x$ac_ct_CC" = x
; then
3186 case $cross_compiling:$ac_tool_warned in
3188 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3190 ac_tool_warned
=yes ;;
3198 if test -z "$CC"; then
3199 if test -n "$ac_tool_prefix"; then
3200 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3201 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if test "${ac_cv_prog_CC+set}" = set; then
3205 $as_echo_n "(cached) " >&6
3207 if test -n "$CC"; then
3208 ac_cv_prog_CC
="$CC" # Let the user override the test.
3210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir
=.
3215 for ac_exec_ext
in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 if test -n "$CC"; then
3229 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3230 $as_echo "$CC" >&6; }
3232 { $as_echo "$as_me:$LINENO: result: no" >&5
3233 $as_echo "no" >&6; }
3239 if test -z "$CC"; then
3240 # Extract the first word of "cc", so it can be a program name with args.
3241 set dummy cc
; ac_word
=$2
3242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if test "${ac_cv_prog_CC+set}" = set; then
3245 $as_echo_n "(cached) " >&6
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC
="$CC" # Let the user override the test.
3251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3255 test -z "$as_dir" && as_dir
=.
3256 for ac_exec_ext
in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3259 ac_prog_rejected
=yes
3263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 if test $ac_prog_rejected = yes; then
3271 # We found a bogon in the path, so make sure we never use it.
3272 set dummy
$ac_cv_prog_CC
3274 if test $# != 0; then
3275 # We chose a different compiler from the bogus one.
3276 # However, it has the same basename, so the bogon will be chosen
3277 # first if we set CC to just the basename; use the full file name.
3279 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3289 { $as_echo "$as_me:$LINENO: result: no" >&5
3290 $as_echo "no" >&6; }
3295 if test -z "$CC"; then
3296 if test -n "$ac_tool_prefix"; then
3297 for ac_prog
in cl.exe
3299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3300 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if test "${ac_cv_prog_CC+set}" = set; then
3304 $as_echo_n "(cached) " >&6
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC
="$CC" # Let the user override the test.
3309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3313 test -z "$as_dir" && as_dir
=.
3314 for ac_exec_ext
in '' $ac_executable_extensions; do
3315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 if test -n "$CC"; then
3328 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3331 { $as_echo "$as_me:$LINENO: result: no" >&5
3332 $as_echo "no" >&6; }
3336 test -n "$CC" && break
3339 if test -z "$CC"; then
3341 for ac_prog
in cl.exe
3343 # Extract the first word of "$ac_prog", so it can be a program name with args.
3344 set dummy
$ac_prog; ac_word
=$2
3345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3348 $as_echo_n "(cached) " >&6
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3357 test -z "$as_dir" && as_dir
=.
3358 for ac_exec_ext
in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_ac_ct_CC
="$ac_prog"
3361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3373 $as_echo "$ac_ct_CC" >&6; }
3375 { $as_echo "$as_me:$LINENO: result: no" >&5
3376 $as_echo "no" >&6; }
3380 test -n "$ac_ct_CC" && break
3383 if test "x$ac_ct_CC" = x
; then
3386 case $cross_compiling:$ac_tool_warned in
3388 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3390 ac_tool_warned
=yes ;;
3399 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3402 See \`config.log' for more details." >&5
3403 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3404 See \`config.log' for more details." >&2;}
3405 { (exit 1); exit 1; }; }; }
3407 # Provide some information about the compiler.
3408 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3411 { (ac_try
="$ac_compiler --version >&5"
3413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3417 $as_echo "$ac_try_echo") >&5
3418 (eval "$ac_compiler --version >&5") 2>&5
3420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }
3422 { (ac_try="$ac_compiler -v >&5"
3424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3425 *) ac_try_echo
=$ac_try;;
3427 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3428 $as_echo "$ac_try_echo") >&5
3429 (eval "$ac_compiler -v >&5") 2>&5
3431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }
3433 { (ac_try
="$ac_compiler -V >&5"
3435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3439 $as_echo "$ac_try_echo") >&5
3440 (eval "$ac_compiler -V >&5") 2>&5
3442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }
3445 cat >conftest.$ac_ext <<_ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3460 ac_clean_files_save=$ac_clean_files
3461 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3462 # Try to create an executable without -o first, disregard a.out.
3463 # It will help us diagnose broken compilers, and finding out an intuition
3465 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3466 $as_echo_n "checking for C compiler default output file name... " >&6; }
3467 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3469 # The possible output files:
3470 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3473 for ac_file in $ac_files
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3477 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3482 if { (ac_try="$ac_link_default"
3484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3485 *) ac_try_echo
=$ac_try;;
3487 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3488 $as_echo "$ac_try_echo") >&5
3489 (eval "$ac_link_default") 2>&5
3491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; then
3493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3495 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3496 # so that the user can short-circuit this test for compilers unknown to
3498 for ac_file
in $ac_files ''
3500 test -f "$ac_file" ||
continue
3502 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3505 # We found the default executable, but exeext='' is most
3509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3511 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3513 # We set ac_cv_exeext here because the later test for it is not
3514 # safe: cross compilers may not add the suffix if given an `-o'
3515 # argument, so we may need to know it at that point already.
3516 # Even if this section looks crufty: it has the advantage of
3523 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3529 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3530 $as_echo "$ac_file" >&6; }
3531 if test -z "$ac_file"; then
3532 $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.
$ac_ext >&5
3535 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3538 See \`config.log' for more details." >&5
3539 $as_echo "$as_me: error: C compiler cannot create executables
3540 See \`config.log' for more details." >&2;}
3541 { (exit 77); exit 77; }; }; }
3544 ac_exeext
=$ac_cv_exeext
3546 # Check that the compiler produces executables we can run. If not, either
3547 # the compiler is broken, or we cross compile.
3548 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3549 $as_echo_n "checking whether the C compiler works... " >&6; }
3550 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3551 # If not cross compiling, check that we can run a simple program.
3552 if test "$cross_compiling" != yes; then
3553 if { ac_try
='./$ac_file'
3554 { (case "(($ac_try" in
3555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3559 $as_echo "$ac_try_echo") >&5
3560 (eval "$ac_try") 2>&5
3562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3566 if test "$cross_compiling" = maybe; then
3569 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3572 If you meant to cross compile
, use \
`--host'.
3573 See \`config.log
' for more details." >&5
3574 $as_echo "$as_me: error: cannot run C compiled programs.
3575 If you meant to cross compile, use \`--host'.
3576 See \
`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }; }
3581 { $as_echo "$as_me:$LINENO: result: yes" >&5
3582 $as_echo "yes" >&6; }
3584 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3585 ac_clean_files=$ac_clean_files_save
3586 # Check that the compiler produces executables we can run. If not, either
3587 # the compiler is broken, or we cross compile.
3588 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3589 $as_echo_n "checking whether we are cross compiling... " >&6; }
3590 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3591 $as_echo "$cross_compiling" >&6; }
3593 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3594 $as_echo_n "checking for suffix of executables... " >&6; }
3595 if { (ac_try="$ac_link"
3597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3598 *) ac_try_echo
=$ac_try;;
3600 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3601 $as_echo "$ac_try_echo") >&5
3602 (eval "$ac_link") 2>&5
3604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; then
3606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3607 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3608 # work properly (i.e., refer to `conftest.exe'), while it won't with
3610 for ac_file
in conftest.exe conftest conftest.
*; do
3611 test -f "$ac_file" ||
continue
3613 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3614 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3623 See \`config.log' for more details." >&5
3624 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3625 See \`config.log' for more details." >&2;}
3626 { (exit 1); exit 1; }; }; }
3629 rm -f conftest
$ac_cv_exeext
3630 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3631 $as_echo "$ac_cv_exeext" >&6; }
3633 rm -f conftest.
$ac_ext
3634 EXEEXT
=$ac_cv_exeext
3636 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3637 $as_echo_n "checking for suffix of object files... " >&6; }
3638 if test "${ac_cv_objext+set}" = set; then
3639 $as_echo_n "(cached) " >&6
3641 cat >conftest.
$ac_ext <<_ACEOF
3644 cat confdefs.h
>>conftest.
$ac_ext
3645 cat >>conftest.
$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3656 rm -f conftest.o conftest.obj
3657 if { (ac_try
="$ac_compile"
3659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664 (eval "$ac_compile") 2>&5
3666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; then
3668 for ac_file in conftest.o conftest.obj conftest.*; do
3669 test -f "$ac_file" || continue;
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3672 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3677 $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3683 See \
`config.log' for more details." >&5
3684 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3685 See \`config.log
' for more details." >&2;}
3686 { (exit 1); exit 1; }; }; }
3689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3691 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3692 $as_echo "$ac_cv_objext" >&6; }
3693 OBJEXT=$ac_cv_objext
3695 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3697 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3698 $as_echo_n "(cached) " >&6
3700 cat >conftest.$ac_ext <<_ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3718 rm -f conftest.$ac_objext
3719 if { (ac_try="$ac_compile"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3725 $as_echo "$ac_try_echo") >&5
3726 (eval "$ac_compile") 2>conftest.er1
3728 grep -v '^
*+' conftest.er1 >conftest.err
3730 cat conftest.err >&5
3731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } && {
3733 test -z "$ac_c_werror_flag" ||
3734 test ! -s conftest.err
3735 } && test -s conftest.$ac_objext; then
3738 $as_echo "$as_me: failed program was:" >&5
3739 sed 's
/^
/|
/' conftest.$ac_ext >&5
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3748 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3749 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3750 if test $ac_compiler_gnu = yes; then
3755 ac_test_CFLAGS=${CFLAGS+set}
3756 ac_save_CFLAGS=$CFLAGS
3757 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3758 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3759 if test "${ac_cv_prog_cc_g+set}" = set; then
3760 $as_echo_n "(cached) " >&6
3762 ac_save_c_werror_flag=$ac_c_werror_flag
3763 ac_c_werror_flag=yes
3766 cat >conftest.$ac_ext <<_ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3791 grep -v '^
*+' conftest.er1 >conftest.err
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3801 $as_echo "$as_me: failed program was:" >&5
3802 sed 's
/^
/|
/' conftest.$ac_ext >&5
3805 cat >conftest.$ac_ext <<_ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3827 $as_echo "$ac_try_echo") >&5
3828 (eval "$ac_compile") 2>conftest.er1
3830 grep -v '^
*+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && {
3835 test -z "$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3837 } && test -s conftest.$ac_objext; then
3840 $as_echo "$as_me: failed program was:" >&5
3841 sed 's
/^
/|
/' conftest.$ac_ext >&5
3843 ac_c_werror_flag=$ac_save_c_werror_flag
3845 cat >conftest.$ac_ext <<_ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3860 rm -f conftest.$ac_objext
3861 if { (ac_try="$ac_compile"
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3867 $as_echo "$ac_try_echo") >&5
3868 (eval "$ac_compile") 2>conftest.er1
3870 grep -v '^
*+' conftest.er1 >conftest.err
3872 cat conftest.err >&5
3873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } && {
3875 test -z "$ac_c_werror_flag" ||
3876 test ! -s conftest.err
3877 } && test -s conftest.$ac_objext; then
3880 $as_echo "$as_me: failed program was:" >&5
3881 sed 's
/^
/|
/' conftest.$ac_ext >&5
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_c_werror_flag=$ac_save_c_werror_flag
3895 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3896 $as_echo "$ac_cv_prog_cc_g" >&6; }
3897 if test "$ac_test_CFLAGS" = set; then
3898 CFLAGS=$ac_save_CFLAGS
3899 elif test $ac_cv_prog_cc_g = yes; then
3900 if test "$GCC" = yes; then
3906 if test "$GCC" = yes; then
3912 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3913 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3914 if test "${ac_cv_prog_cc_c89+set}" = set; then
3915 $as_echo_n "(cached) " >&6
3917 ac_cv_prog_cc_c89=no
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3927 #include <sys/types.h>
3928 #include <sys/stat.h>
3929 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3930 struct buf
{ int x
; };
3931 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3932 static char
*e
(p
, i
)
3938 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3943 s
= g
(p
, va_arg
(v
,int
));
3948 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3949 function prototypes and stuff
, but not
'\xHH' hex character constants.
3950 These don
't provoke an error unfortunately, instead are silently treated
3951 as 'x
'. The following induces an error, until -std is added to get
3952 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3953 array size at least. It's necessary to
write '\x00'==0 to get something
3954 that
's true only with -std. */
3955 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3957 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3958 inside strings and character constants. */
3960 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3962 int test (int i, double x);
3963 struct s1 {int (*f) (int a);};
3964 struct s2 {int (*f) (double a);};
3965 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3971 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3976 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3977 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3979 CC="$ac_save_CC $ac_arg"
3980 rm -f conftest.$ac_objext
3981 if { (ac_try="$ac_compile"
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3987 $as_echo "$ac_try_echo") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3990 grep -v '^
*+' conftest.er1 >conftest.err
3992 cat conftest.err >&5
3993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.$ac_objext; then
3998 ac_cv_prog_cc_c89=$ac_arg
4000 $as_echo "$as_me: failed program was:" >&5
4001 sed 's
/^
/|
/' conftest.$ac_ext >&5
4006 rm -f core conftest.err conftest.$ac_objext
4007 test "x$ac_cv_prog_cc_c89" != "xno" && break
4009 rm -f conftest.$ac_ext
4014 case "x$ac_cv_prog_cc_c89" in
4016 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4017 $as_echo "none needed" >&6; } ;;
4019 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4020 $as_echo "unsupported" >&6; } ;;
4022 CC="$CC $ac_cv_prog_cc_c89"
4023 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4024 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4031 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033 DEPDIR="${am__leading_dot}deps"
4035 ac_config_commands="$ac_config_commands depfiles"
4038 am_make=${MAKE-make}
4039 cat > confinc << 'END
'
4041 @echo this is the am__doit target
4044 # If we don't
find an include directive
, just comment out the code.
4045 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4046 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4050 # First try GNU make style include.
4051 echo "include confinc" > confmf
4052 # Ignore all kinds of additional output from `make'.
4053 case `$am_make -s -f confmf 2> /dev/null` in #(
4054 *the\ am__doit\ target
*)
4060 # Now try BSD make style include.
4061 if test "$am__include" = "#"; then
4062 echo '.include "confinc"' > confmf
4063 case `$am_make -s -f confmf 2> /dev/null` in #(
4064 *the\ am__doit\ target
*)
4065 am__include
=.include
4073 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4074 $as_echo "$_am_result" >&6; }
4075 rm -f confinc confmf
4077 # Check whether --enable-dependency-tracking was given.
4078 if test "${enable_dependency_tracking+set}" = set; then
4079 enableval
=$enable_dependency_tracking;
4082 if test "x$enable_dependency_tracking" != xno
; then
4083 am_depcomp
="$ac_aux_dir/depcomp"
4086 if test "x$enable_dependency_tracking" != xno; then
4096 depcc
="$CC" am_compiler_list
=
4098 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4099 $as_echo_n "checking dependency style of $depcc... " >&6; }
4100 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4101 $as_echo_n "(cached) " >&6
4103 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4104 # We make a subdir and do the tests there. Otherwise we can end up
4105 # making bogus files that we don't know about and never remove. For
4106 # instance it was reported that on HP-UX the gcc test will end up
4107 # making a dummy file named `D' -- because `-MD' means `put the output
4110 # Copy depcomp to subdir because otherwise we won't find it if we're
4111 # using a relative directory.
4112 cp "$am_depcomp" conftest.dir
4114 # We will build objects and dependencies in a subdirectory because
4115 # it helps to detect inapplicable dependency modes. For instance
4116 # both Tru64's cc and ICC support -MD to output dependencies as a
4117 # side effect of compilation, but ICC will put the dependencies in
4118 # the current directory while Tru64 will put them in the object
4122 am_cv_CC_dependencies_compiler_type
=none
4123 if test "$am_compiler_list" = ""; then
4124 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4127 case " $depcc " in #(
4128 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4131 for depmode
in $am_compiler_list; do
4132 # Setup a source with many dependencies, because some compilers
4133 # like to wrap large dependency lists on column 80 (with \), and
4134 # we should not choose a depcomp mode which is confused by this.
4136 # We need to recreate these files for each test, as the compiler may
4137 # overwrite some of them when testing with obscure command lines.
4138 # This happens at least with the AIX C compiler.
4140 for i
in 1 2 3 4 5 6; do
4141 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4143 # Solaris 8's {/usr,}/bin/sh.
4144 touch sub
/conftst
$i.h
4146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4149 # mode. It turns out that the SunPro C++ compiler does not properly
4150 # handle `-M -o', and we need to detect this. Also, some Intel
4151 # versions had trouble with output in subdirs
4152 am__obj
=sub
/conftest.
${OBJEXT-o}
4153 am__minus_obj
="-o $am__obj"
4156 # This depmode causes a compiler race in universal mode.
4157 test "$am__universal" = false ||
continue
4160 # after this tag, mechanisms are not by side-effect, so they'll
4161 # only be used when explicitly requested
4162 if test "x$enable_dependency_tracking" = xyes
; then
4168 msvisualcpp | msvcmsys
)
4169 # This compiler won't grok `-c -o', but also, the minuso test has
4170 # not run yet. These depmodes are late enough in the game, and
4171 # so weak that their functioning should not be impacted.
4172 am__obj
=conftest.
${OBJEXT-o}
4177 if depmode
=$depmode \
4178 source=sub
/conftest.c object
=$am__obj \
4179 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4180 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4181 >/dev
/null
2>conftest.err
&&
4182 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4183 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4184 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4185 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4186 # icc doesn't choke on unknown options, it will just issue warnings
4187 # or remarks (even with -Werror). So we grep stderr for any message
4188 # that says an option was ignored or not supported.
4189 # When given -MP, icc 7.0 and 7.1 complain thusly:
4190 # icc: Command line warning: ignoring option '-M'; no argument required
4191 # The diagnosis changed in icc 8.0:
4192 # icc: Command line remark: option '-MP' not supported
4193 if (grep 'ignoring option' conftest.err ||
4194 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4195 am_cv_CC_dependencies_compiler_type
=$depmode
4204 am_cv_CC_dependencies_compiler_type
=none
4208 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4209 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4210 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4213 test "x$enable_dependency_tracking" != xno \
4214 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4216 am__fastdepCC_FALSE
='#'
4218 am__fastdepCC_TRUE
='#'
4219 am__fastdepCC_FALSE
=
4225 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4226 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4231 macro_version
='2.2.6b'
4232 macro_revision
='1.3017'
4246 ltmain
="$ac_aux_dir/ltmain.sh"
4248 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4249 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4250 if test "${ac_cv_path_SED+set}" = set; then
4251 $as_echo_n "(cached) " >&6
4253 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4254 for ac_i
in 1 2 3 4 5 6 7; do
4255 ac_script
="$ac_script$as_nl$ac_script"
4257 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4258 $as_unset ac_script || ac_script
=
4259 if test -z "$SED"; then
4260 ac_path_SED_found
=false
4261 # Loop through the user's path and test for each of PROGNAME-LIST
4262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4266 test -z "$as_dir" && as_dir
=.
4267 for ac_prog
in sed gsed
; do
4268 for ac_exec_ext
in '' $ac_executable_extensions; do
4269 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4270 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4271 # Check for GNU ac_path_SED and select it if it is found.
4272 # Check for GNU $ac_path_SED
4273 case `"$ac_path_SED" --version 2>&1` in
4275 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4278 $as_echo_n 0123456789 >"conftest.in"
4281 cat "conftest.in" "conftest.in" >"conftest.tmp"
4282 mv "conftest.tmp" "conftest.in"
4283 cp "conftest.in" "conftest.nl"
4284 $as_echo '' >> "conftest.nl"
4285 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4286 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4287 ac_count
=`expr $ac_count + 1`
4288 if test $ac_count -gt ${ac_path_SED_max-0}; then
4289 # Best one so far, save it but keep looking for a better one
4290 ac_cv_path_SED
="$ac_path_SED"
4291 ac_path_SED_max
=$ac_count
4293 # 10*(2^10) chars as input seems more than enough
4294 test $ac_count -gt 10 && break
4296 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4299 $ac_path_SED_found && break 3
4304 if test -z "$ac_cv_path_SED"; then
4305 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4306 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4307 { (exit 1); exit 1; }; }
4314 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4315 $as_echo "$ac_cv_path_SED" >&6; }
4316 SED
="$ac_cv_path_SED"
4319 test -z "$SED" && SED
=sed
4320 Xsed
="$SED -e 1s/^X//"
4332 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4333 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4334 if test "${ac_cv_path_GREP+set}" = set; then
4335 $as_echo_n "(cached) " >&6
4337 if test -z "$GREP"; then
4338 ac_path_GREP_found
=false
4339 # Loop through the user's path and test for each of PROGNAME-LIST
4340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4341 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4344 test -z "$as_dir" && as_dir
=.
4345 for ac_prog
in grep ggrep
; do
4346 for ac_exec_ext
in '' $ac_executable_extensions; do
4347 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4348 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4349 # Check for GNU ac_path_GREP and select it if it is found.
4350 # Check for GNU $ac_path_GREP
4351 case `"$ac_path_GREP" --version 2>&1` in
4353 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4356 $as_echo_n 0123456789 >"conftest.in"
4359 cat "conftest.in" "conftest.in" >"conftest.tmp"
4360 mv "conftest.tmp" "conftest.in"
4361 cp "conftest.in" "conftest.nl"
4362 $as_echo 'GREP' >> "conftest.nl"
4363 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4364 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4365 ac_count
=`expr $ac_count + 1`
4366 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4367 # Best one so far, save it but keep looking for a better one
4368 ac_cv_path_GREP
="$ac_path_GREP"
4369 ac_path_GREP_max
=$ac_count
4371 # 10*(2^10) chars as input seems more than enough
4372 test $ac_count -gt 10 && break
4374 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4377 $ac_path_GREP_found && break 3
4382 if test -z "$ac_cv_path_GREP"; then
4383 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4384 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4385 { (exit 1); exit 1; }; }
4388 ac_cv_path_GREP
=$GREP
4392 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4393 $as_echo "$ac_cv_path_GREP" >&6; }
4394 GREP
="$ac_cv_path_GREP"
4397 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4398 $as_echo_n "checking for egrep... " >&6; }
4399 if test "${ac_cv_path_EGREP+set}" = set; then
4400 $as_echo_n "(cached) " >&6
4402 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4403 then ac_cv_path_EGREP
="$GREP -E"
4405 if test -z "$EGREP"; then
4406 ac_path_EGREP_found
=false
4407 # Loop through the user's path and test for each of PROGNAME-LIST
4408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4409 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4412 test -z "$as_dir" && as_dir
=.
4413 for ac_prog
in egrep; do
4414 for ac_exec_ext
in '' $ac_executable_extensions; do
4415 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4416 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4417 # Check for GNU ac_path_EGREP and select it if it is found.
4418 # Check for GNU $ac_path_EGREP
4419 case `"$ac_path_EGREP" --version 2>&1` in
4421 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4424 $as_echo_n 0123456789 >"conftest.in"
4427 cat "conftest.in" "conftest.in" >"conftest.tmp"
4428 mv "conftest.tmp" "conftest.in"
4429 cp "conftest.in" "conftest.nl"
4430 $as_echo 'EGREP' >> "conftest.nl"
4431 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4432 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4433 ac_count
=`expr $ac_count + 1`
4434 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4435 # Best one so far, save it but keep looking for a better one
4436 ac_cv_path_EGREP
="$ac_path_EGREP"
4437 ac_path_EGREP_max
=$ac_count
4439 # 10*(2^10) chars as input seems more than enough
4440 test $ac_count -gt 10 && break
4442 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4445 $ac_path_EGREP_found && break 3
4450 if test -z "$ac_cv_path_EGREP"; then
4451 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4452 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4453 { (exit 1); exit 1; }; }
4456 ac_cv_path_EGREP
=$EGREP
4461 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4462 $as_echo "$ac_cv_path_EGREP" >&6; }
4463 EGREP
="$ac_cv_path_EGREP"
4466 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4467 $as_echo_n "checking for fgrep... " >&6; }
4468 if test "${ac_cv_path_FGREP+set}" = set; then
4469 $as_echo_n "(cached) " >&6
4471 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4472 then ac_cv_path_FGREP
="$GREP -F"
4474 if test -z "$FGREP"; then
4475 ac_path_FGREP_found
=false
4476 # Loop through the user's path and test for each of PROGNAME-LIST
4477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4478 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4481 test -z "$as_dir" && as_dir
=.
4482 for ac_prog
in fgrep
; do
4483 for ac_exec_ext
in '' $ac_executable_extensions; do
4484 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4485 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4486 # Check for GNU ac_path_FGREP and select it if it is found.
4487 # Check for GNU $ac_path_FGREP
4488 case `"$ac_path_FGREP" --version 2>&1` in
4490 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4493 $as_echo_n 0123456789 >"conftest.in"
4496 cat "conftest.in" "conftest.in" >"conftest.tmp"
4497 mv "conftest.tmp" "conftest.in"
4498 cp "conftest.in" "conftest.nl"
4499 $as_echo 'FGREP' >> "conftest.nl"
4500 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4501 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4502 ac_count
=`expr $ac_count + 1`
4503 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4504 # Best one so far, save it but keep looking for a better one
4505 ac_cv_path_FGREP
="$ac_path_FGREP"
4506 ac_path_FGREP_max
=$ac_count
4508 # 10*(2^10) chars as input seems more than enough
4509 test $ac_count -gt 10 && break
4511 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4514 $ac_path_FGREP_found && break 3
4519 if test -z "$ac_cv_path_FGREP"; then
4520 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4521 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4522 { (exit 1); exit 1; }; }
4525 ac_cv_path_FGREP
=$FGREP
4530 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4531 $as_echo "$ac_cv_path_FGREP" >&6; }
4532 FGREP
="$ac_cv_path_FGREP"
4535 test -z "$GREP" && GREP
=grep
4555 # Check whether --with-gnu-ld was given.
4556 if test "${with_gnu_ld+set}" = set; then
4557 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4563 if test "$GCC" = yes; then
4564 # Check if gcc -print-prog-name=ld gives a path.
4565 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4566 $as_echo_n "checking for ld used by $CC... " >&6; }
4569 # gcc leaves a trailing carriage return which upsets mingw
4570 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4572 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4575 # Accept absolute paths.
4577 re_direlt
='/[^/][^/]*/\.\./'
4578 # Canonicalize the pathname of ld
4579 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4580 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4581 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4583 test -z "$LD" && LD
="$ac_prog"
4586 # If it fails, then pretend we aren't using GCC.
4590 # If it is relative, then search for the first ld in PATH.
4594 elif test "$with_gnu_ld" = yes; then
4595 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4596 $as_echo_n "checking for GNU ld... " >&6; }
4598 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4599 $as_echo_n "checking for non-GNU ld... " >&6; }
4601 if test "${lt_cv_path_LD+set}" = set; then
4602 $as_echo_n "(cached) " >&6
4604 if test -z "$LD"; then
4605 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4606 for ac_dir
in $PATH; do
4608 test -z "$ac_dir" && ac_dir
=.
4609 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4610 lt_cv_path_LD
="$ac_dir/$ac_prog"
4611 # Check to see if the program is GNU ld. I'd rather use --version,
4612 # but apparently some variants of GNU ld only accept -v.
4613 # Break only if it was the GNU/non-GNU ld that we prefer.
4614 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4615 *GNU
* |
*'with BFD'*)
4616 test "$with_gnu_ld" != no
&& break
4619 test "$with_gnu_ld" != yes && break
4626 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4631 if test -n "$LD"; then
4632 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4633 $as_echo "$LD" >&6; }
4635 { $as_echo "$as_me:$LINENO: result: no" >&5
4636 $as_echo "no" >&6; }
4638 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4639 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4640 { (exit 1); exit 1; }; }
4641 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4642 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4643 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4644 $as_echo_n "(cached) " >&6
4646 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4647 case `$LD -v 2>&1 </dev/null` in
4648 *GNU
* |
*'with BFD'*)
4649 lt_cv_prog_gnu_ld
=yes
4652 lt_cv_prog_gnu_ld
=no
4656 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4657 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4658 with_gnu_ld
=$lt_cv_prog_gnu_ld
4668 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4669 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4670 if test "${lt_cv_path_NM+set}" = set; then
4671 $as_echo_n "(cached) " >&6
4673 if test -n "$NM"; then
4674 # Let the user override the test.
4677 lt_nm_to_check
="${ac_tool_prefix}nm"
4678 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4679 lt_nm_to_check
="$lt_nm_to_check nm"
4681 for lt_tmp_nm
in $lt_nm_to_check; do
4682 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4683 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4685 test -z "$ac_dir" && ac_dir
=.
4686 tmp_nm
="$ac_dir/$lt_tmp_nm"
4687 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4688 # Check to see if the nm accepts a BSD-compat flag.
4689 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4690 # nm: unknown option "B" ignored
4691 # Tru64's nm complains that /dev/null is an invalid object file
4692 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4693 */dev
/null
* |
*'Invalid file or object type'*)
4694 lt_cv_path_NM
="$tmp_nm -B"
4698 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4700 lt_cv_path_NM
="$tmp_nm -p"
4704 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4705 continue # so that we can try to find one that supports BSD flags
4714 : ${lt_cv_path_NM=no}
4717 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4718 $as_echo "$lt_cv_path_NM" >&6; }
4719 if test "$lt_cv_path_NM" != "no"; then
4722 # Didn't find any BSD compatible name lister, look for dumpbin.
4723 if test -n "$ac_tool_prefix"; then
4724 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4727 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4731 $as_echo_n "(cached) " >&6
4733 if test -n "$DUMPBIN"; then
4734 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4740 test -z "$as_dir" && as_dir
=.
4741 for ac_exec_ext
in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 DUMPBIN
=$ac_cv_prog_DUMPBIN
4754 if test -n "$DUMPBIN"; then
4755 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4756 $as_echo "$DUMPBIN" >&6; }
4758 { $as_echo "$as_me:$LINENO: result: no" >&5
4759 $as_echo "no" >&6; }
4763 test -n "$DUMPBIN" && break
4766 if test -z "$DUMPBIN"; then
4767 ac_ct_DUMPBIN
=$DUMPBIN
4768 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4770 # Extract the first word of "$ac_prog", so it can be a program name with args.
4771 set dummy
$ac_prog; ac_word
=$2
4772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4775 $as_echo_n "(cached) " >&6
4777 if test -n "$ac_ct_DUMPBIN"; then
4778 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir
=.
4785 for ac_exec_ext
in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4798 if test -n "$ac_ct_DUMPBIN"; then
4799 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4800 $as_echo "$ac_ct_DUMPBIN" >&6; }
4802 { $as_echo "$as_me:$LINENO: result: no" >&5
4803 $as_echo "no" >&6; }
4807 test -n "$ac_ct_DUMPBIN" && break
4810 if test "x$ac_ct_DUMPBIN" = x
; then
4813 case $cross_compiling:$ac_tool_warned in
4815 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned
=yes ;;
4819 DUMPBIN
=$ac_ct_DUMPBIN
4824 if test "$DUMPBIN" != ":"; then
4828 test -z "$NM" && NM
=nm
4835 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4836 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4837 if test "${lt_cv_nm_interface+set}" = set; then
4838 $as_echo_n "(cached) " >&6
4840 lt_cv_nm_interface
="BSD nm"
4841 echo "int some_variable = 0;" > conftest.
$ac_ext
4842 (eval echo "\"\$as_me:4842: $ac_compile\"" >&5)
4843 (eval "$ac_compile" 2>conftest.err
)
4844 cat conftest.err
>&5
4845 (eval echo "\"\$as_me:4845: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4846 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4847 cat conftest.err
>&5
4848 (eval echo "\"\$as_me:4848: output\"" >&5)
4849 cat conftest.out
>&5
4850 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4851 lt_cv_nm_interface
="MS dumpbin"
4855 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4856 $as_echo "$lt_cv_nm_interface" >&6; }
4858 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4859 $as_echo_n "checking whether ln -s works... " >&6; }
4861 if test "$LN_S" = "ln -s"; then
4862 { $as_echo "$as_me:$LINENO: result: yes" >&5
4863 $as_echo "yes" >&6; }
4865 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4866 $as_echo "no, using $LN_S" >&6; }
4869 # find the maximum length of command line arguments
4870 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4871 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4872 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4873 $as_echo_n "(cached) " >&6
4880 # On DJGPP, this test can blow up pretty badly due to problems in libc
4881 # (any single argument exceeding 2000 bytes causes a buffer overrun
4882 # during glob expansion). Even if it were fixed, the result of this
4883 # check would be larger than it should be.
4884 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4888 # Under GNU Hurd, this test is not required because there is
4889 # no limit to the length of command line arguments.
4890 # Libtool will interpret -1 as no limit whatsoever
4891 lt_cv_sys_max_cmd_len
=-1;
4894 cygwin
* | mingw
* | cegcc
*)
4895 # On Win9x/ME, this test blows up -- it succeeds, but takes
4896 # about 5 minutes as the teststring grows exponentially.
4897 # Worse, since 9x/ME are not pre-emptively multitasking,
4898 # you end up with a "frozen" computer, even though with patience
4899 # the test eventually succeeds (with a max line length of 256k).
4900 # Instead, let's just punt: use the minimum linelength reported by
4901 # all of the supported platforms: 8192 (on NT/2K/XP).
4902 lt_cv_sys_max_cmd_len
=8192;
4906 # On AmigaOS with pdksh, this test takes hours, literally.
4907 # So we just punt and use a minimum line length of 8192.
4908 lt_cv_sys_max_cmd_len
=8192;
4911 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4912 # This has been around since 386BSD, at least. Likely further.
4913 if test -x /sbin
/sysctl
; then
4914 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4915 elif test -x /usr
/sbin
/sysctl
; then
4916 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4918 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4920 # And add a safety zone
4921 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4922 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4926 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4927 lt_cv_sys_max_cmd_len
=196608
4931 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4932 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4933 # nice to cause kernel panics so lets avoid the loop below.
4934 # First set a reasonable default.
4935 lt_cv_sys_max_cmd_len
=16384
4937 if test -x /sbin
/sysconfig
; then
4938 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4939 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4944 lt_cv_sys_max_cmd_len
=102400
4946 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4947 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4948 if test -n "$kargmax"; then
4949 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4951 lt_cv_sys_max_cmd_len
=32768
4955 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4956 if test -n "$lt_cv_sys_max_cmd_len"; then
4957 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4958 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4960 # Make teststring a little bigger before we do anything with it.
4961 # a 1K string should be a reasonable start.
4962 for i
in 1 2 3 4 5 6 7 8 ; do
4963 teststring
=$teststring$teststring
4965 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4966 # If test is not a shell built-in, we'll probably end up computing a
4967 # maximum length that is only half of the actual maximum length, but
4969 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4970 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4971 test $i != 17 # 1/2 MB should be enough
4974 teststring
=$teststring$teststring
4976 # Only check the string length outside the loop.
4977 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4979 # Add a significant safety factor because C++ compilers can tack on
4980 # massive amounts of additional arguments before passing them to the
4981 # linker. It appears as though 1/2 is a usable value.
4982 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4989 if test -n $lt_cv_sys_max_cmd_len ; then
4990 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4991 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4993 { $as_echo "$as_me:$LINENO: result: none" >&5
4994 $as_echo "none" >&6; }
4996 max_cmd_len
=$lt_cv_sys_max_cmd_len
5007 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5008 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5009 # Try some XSI features
5012 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5014 && eval 'test $(( 1 + 1 )) -eq 2 \
5015 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5017 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
5018 $as_echo "$xsi_shell" >&6; }
5021 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
5022 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5024 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5026 && lt_shell_append=yes
5027 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
5028 $as_echo "$lt_shell_append" >&6; }
5031 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5041 # test EBCDIC or ASCII
5042 case `echo X|tr X '\101'` in
5043 A) # ASCII based system
5044 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5045 lt_SP2NL='tr \040 \012'
5046 lt_NL2SP='tr \015\012 \040\040'
5048 *) # EBCDIC based system
5049 lt_SP2NL='tr \100 \n'
5050 lt_NL2SP='tr \r\n \100\100'
5062 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
5063 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5064 if test "${lt_cv_ld_reload_flag+set}" = set; then
5065 $as_echo_n "(cached
) " >&6
5067 lt_cv_ld_reload_flag='-r'
5069 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
5070 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5071 reload_flag=$lt_cv_ld_reload_flag
5072 case $reload_flag in
5074 *) reload_flag=" $reload_flag" ;;
5076 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5079 if test "$GCC" = yes; then
5080 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5082 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5095 if test -n "$ac_tool_prefix"; then
5096 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5097 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5098 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5099 $as_echo_n "checking
for $ac_word...
" >&6; }
5100 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5101 $as_echo_n "(cached
) " >&6
5103 if test -n "$OBJDUMP"; then
5104 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5114 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5123 OBJDUMP=$ac_cv_prog_OBJDUMP
5124 if test -n "$OBJDUMP"; then
5125 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5126 $as_echo "$OBJDUMP" >&6; }
5128 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5129 $as_echo "no
" >&6; }
5134 if test -z "$ac_cv_prog_OBJDUMP"; then
5135 ac_ct_OBJDUMP=$OBJDUMP
5136 # Extract the first word of "objdump
", so it can be a program name with args.
5137 set dummy objdump; ac_word=$2
5138 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5139 $as_echo_n "checking
for $ac_word...
" >&6; }
5140 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5141 $as_echo_n "(cached
) " >&6
5143 if test -n "$ac_ct_OBJDUMP"; then
5144 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5154 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5163 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5164 if test -n "$ac_ct_OBJDUMP"; then
5165 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5166 $as_echo "$ac_ct_OBJDUMP" >&6; }
5168 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5169 $as_echo "no
" >&6; }
5172 if test "x
$ac_ct_OBJDUMP" = x; then
5175 case $cross_compiling:$ac_tool_warned in
5177 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5178 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5179 ac_tool_warned=yes ;;
5181 OBJDUMP=$ac_ct_OBJDUMP
5184 OBJDUMP="$ac_cv_prog_OBJDUMP"
5187 test -z "$OBJDUMP" && OBJDUMP=objdump
5197 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5198 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5199 if test "${lt_cv_deplibs_check_method+set}" = set; then
5200 $as_echo_n "(cached
) " >&6
5202 lt_cv_file_magic_cmd='$MAGIC_CMD'
5203 lt_cv_file_magic_test_file=
5204 lt_cv_deplibs_check_method='unknown'
5205 # Need to set the preceding variable on all platforms that support
5206 # interlibrary dependencies.
5207 # 'none' -- dependencies not supported.
5208 # `unknown' -- same as none, but documents that we really don't know.
5209 # 'pass_all' -- all dependencies passed with no checks.
5210 # 'test_compile' -- check by making test program.
5211 # 'file_magic [[regex]]' -- check by looking for files in library path
5212 # which responds to the $file_magic_cmd with a given extended regex.
5213 # If you have `file' or equivalent on your system and you're not sure
5214 # whether `pass_all' will *always* work, you probably want this one.
5218 lt_cv_deplibs_check_method=pass_all
5222 lt_cv_deplibs_check_method=pass_all
5226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5227 lt_cv_file_magic_cmd='/usr/bin/file -L'
5228 lt_cv_file_magic_test_file=/shlib/libc.so
5232 # func_win32_libid is a shell function defined in ltmain.sh
5233 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5234 lt_cv_file_magic_cmd='func_win32_libid'
5238 # Base MSYS/MinGW do not provide the 'file' command needed by
5239 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5240 # unless we find 'file', for example because we are cross-compiling.
5241 if ( file / ) >/dev/null 2>&1; then
5242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5243 lt_cv_file_magic_cmd='func_win32_libid'
5245 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5246 lt_cv_file_magic_cmd='$OBJDUMP -f'
5251 # use the weaker test based on 'objdump'. See mingw*.
5252 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5253 lt_cv_file_magic_cmd='$OBJDUMP -f'
5256 darwin* | rhapsody*)
5257 lt_cv_deplibs_check_method=pass_all
5260 freebsd* | dragonfly*)
5261 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5264 # Not sure whether the presence of OpenBSD here was a mistake.
5265 # Let's accept both of them until this is cleared up.
5266 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5267 lt_cv_file_magic_cmd=/usr/bin/file
5268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5272 lt_cv_deplibs_check_method=pass_all
5277 lt_cv_deplibs_check_method=pass_all
5280 hpux10.20* | hpux11*)
5281 lt_cv_file_magic_cmd=/usr/bin/file
5284 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5285 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5289 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5292 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5293 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5299 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5303 irix5* | irix6* | nonstopux*)
5305 *-32|*"-32 ") libmagic=32-bit;;
5306 *-n32|*"-n32 ") libmagic=N32;;
5307 *-64|*"-64 ") libmagic=64-bit;;
5308 *) libmagic=never-match;;
5310 lt_cv_deplibs_check_method=pass_all
5313 # This must be Linux ELF.
5314 linux* | k*bsd*-gnu)
5315 lt_cv_deplibs_check_method=pass_all
5319 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5328 lt_cv_file_magic_cmd=/usr/bin/file
5329 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5333 lt_cv_deplibs_check_method=pass_all
5337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5344 osf3* | osf4* | osf5*)
5345 lt_cv_deplibs_check_method=pass_all
5349 lt_cv_deplibs_check_method=pass_all
5353 lt_cv_deplibs_check_method=pass_all
5356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5357 lt_cv_deplibs_check_method=pass_all
5361 case $host_vendor in
5363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5367 lt_cv_deplibs_check_method=pass_all
5370 lt_cv_file_magic_cmd='/bin/file'
5371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5374 lt_cv_file_magic_cmd='/bin/file'
5375 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5376 lt_cv_file_magic_test_file=/lib/libc.so
5379 lt_cv_deplibs_check_method=pass_all
5382 lt_cv_deplibs_check_method=pass_all
5388 lt_cv_deplibs_check_method=pass_all
5393 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5394 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5395 file_magic_cmd=$lt_cv_file_magic_cmd
5396 deplibs_check_method=$lt_cv_deplibs_check_method
5397 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5410 if test -n "$ac_tool_prefix"; then
5411 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5412 set dummy ${ac_tool_prefix}ar; ac_word=$2
5413 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5414 $as_echo_n "checking
for $ac_word...
" >&6; }
5415 if test "${ac_cv_prog_AR+set}" = set; then
5416 $as_echo_n "(cached
) " >&6
5418 if test -n "$AR"; then
5419 ac_cv_prog_AR="$AR" # Let the user override the test.
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428 ac_cv_prog_AR="${ac_tool_prefix}ar"
5429 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5439 if test -n "$AR"; then
5440 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5441 $as_echo "$AR" >&6; }
5443 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5444 $as_echo "no
" >&6; }
5449 if test -z "$ac_cv_prog_AR"; then
5451 # Extract the first word of "ar", so it can be a program name with args.
5452 set dummy ar; ac_word=$2
5453 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5454 $as_echo_n "checking
for $ac_word...
" >&6; }
5455 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5456 $as_echo_n "(cached
) " >&6
5458 if test -n "$ac_ct_AR"; then
5459 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_prog_ac_ct_AR="ar"
5469 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5478 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5479 if test -n "$ac_ct_AR"; then
5480 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5481 $as_echo "$ac_ct_AR" >&6; }
5483 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5484 $as_echo "no
" >&6; }
5487 if test "x
$ac_ct_AR" = x; then
5490 case $cross_compiling:$ac_tool_warned in
5492 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5493 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5494 ac_tool_warned=yes ;;
5502 test -z "$AR" && AR=ar
5503 test -z "$AR_FLAGS" && AR_FLAGS=cru
5515 if test -n "$ac_tool_prefix"; then
5516 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5517 set dummy ${ac_tool_prefix}strip; ac_word=$2
5518 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5519 $as_echo_n "checking
for $ac_word...
" >&6; }
5520 if test "${ac_cv_prog_STRIP+set}" = set; then
5521 $as_echo_n "(cached
) " >&6
5523 if test -n "$STRIP"; then
5524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5534 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5543 STRIP=$ac_cv_prog_STRIP
5544 if test -n "$STRIP"; then
5545 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5546 $as_echo "$STRIP" >&6; }
5548 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5549 $as_echo "no
" >&6; }
5554 if test -z "$ac_cv_prog_STRIP"; then
5556 # Extract the first word of "strip
", so it can be a program name with args.
5557 set dummy strip; ac_word=$2
5558 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5559 $as_echo_n "checking
for $ac_word...
" >&6; }
5560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5561 $as_echo_n "(cached
) " >&6
5563 if test -n "$ac_ct_STRIP"; then
5564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_prog_ac_ct_STRIP="strip
"
5574 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5584 if test -n "$ac_ct_STRIP"; then
5585 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5586 $as_echo "$ac_ct_STRIP" >&6; }
5588 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5589 $as_echo "no
" >&6; }
5592 if test "x
$ac_ct_STRIP" = x; then
5595 case $cross_compiling:$ac_tool_warned in
5597 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5598 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5599 ac_tool_warned=yes ;;
5604 STRIP="$ac_cv_prog_STRIP"
5607 test -z "$STRIP" && STRIP=:
5614 if test -n "$ac_tool_prefix"; then
5615 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5616 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5617 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5618 $as_echo_n "checking
for $ac_word...
" >&6; }
5619 if test "${ac_cv_prog_RANLIB+set}" = set; then
5620 $as_echo_n "(cached
) " >&6
5622 if test -n "$RANLIB"; then
5623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5633 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5642 RANLIB=$ac_cv_prog_RANLIB
5643 if test -n "$RANLIB"; then
5644 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5645 $as_echo "$RANLIB" >&6; }
5647 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5648 $as_echo "no
" >&6; }
5653 if test -z "$ac_cv_prog_RANLIB"; then
5654 ac_ct_RANLIB=$RANLIB
5655 # Extract the first word of "ranlib
", so it can be a program name with args.
5656 set dummy ranlib; ac_word=$2
5657 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5658 $as_echo_n "checking
for $ac_word...
" >&6; }
5659 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5660 $as_echo_n "(cached
) " >&6
5662 if test -n "$ac_ct_RANLIB"; then
5663 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5672 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5673 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5682 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5683 if test -n "$ac_ct_RANLIB"; then
5684 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5685 $as_echo "$ac_ct_RANLIB" >&6; }
5687 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5688 $as_echo "no
" >&6; }
5691 if test "x
$ac_ct_RANLIB" = x; then
5694 case $cross_compiling:$ac_tool_warned in
5696 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5697 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5698 ac_tool_warned=yes ;;
5700 RANLIB=$ac_ct_RANLIB
5703 RANLIB="$ac_cv_prog_RANLIB"
5706 test -z "$RANLIB" && RANLIB=:
5713 # Determine commands to create old-style static archives.
5714 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5715 old_postinstall_cmds='chmod 644 $oldlib'
5716 old_postuninstall_cmds=
5718 if test -n "$RANLIB"; then
5721 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5724 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5727 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5763 # If no C compiler was specified, use CC.
5766 # If no C compiler flags were specified, use CFLAGS.
5767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5769 # Allow CC to be a program name with arguments.
5773 # Check for command to grab the raw symbol name followed by C symbol from nm.
5774 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5775 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5776 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5777 $as_echo_n "(cached
) " >&6
5780 # These are sane defaults that work on at least a few old systems.
5781 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5783 # Character class describing NM global symbol codes.
5784 symcode='[BCDEGRST]'
5786 # Regexp to match symbols that can be accessed directly from C.
5787 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5789 # Define system-specific variables.
5794 cygwin* | mingw* | pw32* | cegcc*)
5795 symcode='[ABCDGISTW]'
5798 if test "$host_cpu" = ia64; then
5799 symcode='[ABCDEGRST]'
5803 symcode='[BCDEGRST]'
5806 symcode='[BCDEGQRST]'
5817 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5825 # If we're using GNU nm, then use its standard symbol codes.
5826 case `$NM -V 2>&1` in
5827 *GNU* | *'with BFD'*)
5828 symcode='[ABCDGIRSTW]' ;;
5831 # Transform an extracted symbol line into a proper C declaration.
5832 # Some systems (esp. on ia64) link data and code symbols differently,
5833 # so use this general approach.
5834 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5836 # Transform an extracted symbol line into symbol name and symbol address
5837 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5838 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5840 # Handle CRLF in mingw tool chain
5844 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5848 # Try without a prefix underscore, then with it.
5849 for ac_symprfx in "" "_
"; do
5851 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5852 symxfrm="\\1 $ac_symprfx\\2 \\2"
5854 # Write the raw and C identifiers.
5855 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5856 # Fake it for dumpbin and say T for any non-static function
5857 # and D for any global variable.
5858 # Also find C++ and __fastcall symbols from MSVC++,
5859 # which start with @ or ?.
5860 lt_cv_sys_global_symbol_pipe="$AWK '"\
5861 " {last_section=section; section=\$ 3};"\
5862 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5863 " \$ 0!~/External *\|/{next};"\
5864 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5865 " {if(hide[section]) next};"\
5866 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5867 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5868 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5869 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5870 " ' prfx
=^
$ac_symprfx"
5872 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5875 # Check to see that the pipe works correctly.
5879 cat > conftest.$ac_ext <<_LT_EOF
5884 void nm_test_func(void);
5885 void nm_test_func(void){}
5889 int main(){nm_test_var='a';nm_test_func();return(0);}
5892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893 (eval $ac_compile) 2>&5
5895 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5896 (exit $ac_status); }; then
5897 # Now try to grab the symbols.
5899 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5900 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5902 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5903 (exit $ac_status); } && test -s "$nlist"; then
5904 # Try sorting and uniquifying the output.
5905 if sort "$nlist" | uniq > "$nlist"T; then
5906 mv -f "$nlist"T "$nlist"
5911 # Make sure that we snagged all the symbols we need.
5912 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5913 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5914 cat <<_LT_EOF > conftest.$ac_ext
5920 # Now generate the symbol file.
5921 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5923 cat <<_LT_EOF >> conftest.$ac_ext
5925 /* The mapping between symbol names and symbols. */
5930 lt__PROGRAM__LTX_preloaded_symbols[] =
5932 { "@PROGRAM@
", (void *) 0 },
5934 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5935 cat <<\_LT_EOF >> conftest.$ac_ext
5939 /* This works around a problem in FreeBSD linker */
5940 #ifdef FREEBSD_WORKAROUND
5941 static const void *lt_preloaded_setup() {
5942 return lt__PROGRAM__LTX_preloaded_symbols;
5950 # Now try linking the two files.
5951 mv conftest.$ac_objext conftstm.$ac_objext
5952 lt_save_LIBS="$LIBS"
5953 lt_save_CFLAGS="$CFLAGS"
5954 LIBS="conftstm.
$ac_objext"
5955 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5957 (eval $ac_link) 2>&5
5959 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5960 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5963 LIBS="$lt_save_LIBS"
5964 CFLAGS="$lt_save_CFLAGS"
5966 echo "cannot
find nm_test_func
in $nlist" >&5
5969 echo "cannot
find nm_test_var
in $nlist" >&5
5972 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5975 echo "$progname: failed program was
:" >&5
5976 cat conftest.$ac_ext >&5
5978 rm -rf conftest* conftst*
5980 # Do not use the global_symbol_pipe unless it works.
5981 if test "$pipe_works" = yes; then
5984 lt_cv_sys_global_symbol_pipe=
5990 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5991 lt_cv_sys_global_symbol_to_cdecl=
5993 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5994 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
5995 $as_echo "failed
" >&6; }
5997 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
5998 $as_echo "ok
" >&6; }
6023 # Check whether --enable-libtool-lock was given.
6024 if test "${enable_libtool_lock+set}" = set; then
6025 enableval=$enable_libtool_lock;
6028 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6030 # Some flags need to be propagated to the compiler or linker for good
6034 # Find out which ABI we are using.
6035 echo 'int i;' > conftest.$ac_ext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6039 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6040 (exit $ac_status); }; then
6041 case `/usr/bin/file conftest.$ac_objext` in
6053 # Find out which ABI we are using.
6054 echo '#line 6054 "configure
"' > conftest.$ac_ext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6056 (eval $ac_compile) 2>&5
6058 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6059 (exit $ac_status); }; then
6060 if test "$lt_cv_prog_gnu_ld" = yes; then
6061 case `/usr/bin/file conftest.$ac_objext` in
6063 LD="${LD-ld} -melf32bsmip"
6066 LD="${LD-ld} -melf32bmipn32"
6069 LD="${LD-ld} -melf64bmip"
6073 case `/usr/bin/file conftest.$ac_objext` in
6089 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6090 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6091 # Find out which ABI we are using.
6092 echo 'int i;' > conftest.$ac_ext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094 (eval $ac_compile) 2>&5
6096 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6097 (exit $ac_status); }; then
6098 case `/usr/bin/file conftest.o` in
6101 x86_64-*kfreebsd*-gnu)
6102 LD="${LD-ld} -m elf_i386_fbsd
"
6105 LD="${LD-ld} -m elf_i386
"
6107 ppc64-*linux*|powerpc64-*linux*)
6108 LD="${LD-ld} -m elf32ppclinux
"
6111 LD="${LD-ld} -m elf_s390
"
6114 LD="${LD-ld} -m elf32_sparc
"
6120 x86_64-*kfreebsd*-gnu)
6121 LD="${LD-ld} -m elf_x86_64_fbsd
"
6124 LD="${LD-ld} -m elf_x86_64
"
6126 ppc*-*linux*|powerpc*-*linux*)
6127 LD="${LD-ld} -m elf64ppc
"
6129 s390*-*linux*|s390*-*tpf*)
6130 LD="${LD-ld} -m elf64_s390
"
6133 LD="${LD-ld} -m elf64_sparc
"
6143 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6144 SAVE_CFLAGS="$CFLAGS"
6145 CFLAGS="$CFLAGS -belf"
6146 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6147 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6148 if test "${lt_cv_cc_needs_belf+set}" = set; then
6149 $as_echo_n "(cached
) " >&6
6152 ac_cpp='$CPP $CPPFLAGS'
6153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157 cat >conftest.$ac_ext <<_ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6172 rm -f conftest.$ac_objext conftest$ac_exeext
6173 if { (ac_try="$ac_link"
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6179 $as_echo "$ac_try_echo") >&5
6180 (eval "$ac_link") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest$ac_exeext && {
6190 test "$cross_compiling" = yes ||
6191 $as_test_x conftest$ac_exeext
6193 lt_cv_cc_needs_belf=yes
6195 $as_echo "$as_me: failed program was
:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 lt_cv_cc_needs_belf=no
6201 rm -rf conftest.dSYM
6202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6203 conftest$ac_exeext conftest.$ac_ext
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6211 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6212 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6213 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6214 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6215 CFLAGS="$SAVE_CFLAGS"
6219 # Find out which ABI we are using.
6220 echo 'int i;' > conftest.$ac_ext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>&5
6224 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6225 (exit $ac_status); }; then
6226 case `/usr/bin/file conftest.o` in
6228 case $lt_cv_prog_gnu_ld in
6229 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6231 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6243 need_locks="$enable_libtool_lock"
6247 rhapsody* | darwin*)
6248 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6251 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6252 $as_echo_n "checking
for $ac_word...
" >&6; }
6253 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6254 $as_echo_n "(cached
) " >&6
6256 if test -n "$DSYMUTIL"; then
6257 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6267 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6276 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6277 if test -n "$DSYMUTIL"; then
6278 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6279 $as_echo "$DSYMUTIL" >&6; }
6281 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6282 $as_echo "no
" >&6; }
6287 if test -z "$ac_cv_prog_DSYMUTIL"; then
6288 ac_ct_DSYMUTIL=$DSYMUTIL
6289 # Extract the first word of "dsymutil
", so it can be a program name with args.
6290 set dummy dsymutil; ac_word=$2
6291 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6292 $as_echo_n "checking
for $ac_word...
" >&6; }
6293 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6294 $as_echo_n "(cached
) " >&6
6296 if test -n "$ac_ct_DSYMUTIL"; then
6297 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6307 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6316 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6317 if test -n "$ac_ct_DSYMUTIL"; then
6318 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6319 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6321 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6322 $as_echo "no
" >&6; }
6325 if test "x
$ac_ct_DSYMUTIL" = x; then
6328 case $cross_compiling:$ac_tool_warned in
6330 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6331 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6332 ac_tool_warned=yes ;;
6334 DSYMUTIL=$ac_ct_DSYMUTIL
6337 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6340 if test -n "$ac_tool_prefix"; then
6341 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6342 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6343 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6344 $as_echo_n "checking
for $ac_word...
" >&6; }
6345 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6346 $as_echo_n "(cached
) " >&6
6348 if test -n "$NMEDIT"; then
6349 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6359 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6368 NMEDIT=$ac_cv_prog_NMEDIT
6369 if test -n "$NMEDIT"; then
6370 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6371 $as_echo "$NMEDIT" >&6; }
6373 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6374 $as_echo "no
" >&6; }
6379 if test -z "$ac_cv_prog_NMEDIT"; then
6380 ac_ct_NMEDIT=$NMEDIT
6381 # Extract the first word of "nmedit
", so it can be a program name with args.
6382 set dummy nmedit; ac_word=$2
6383 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6384 $as_echo_n "checking
for $ac_word...
" >&6; }
6385 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6386 $as_echo_n "(cached
) " >&6
6388 if test -n "$ac_ct_NMEDIT"; then
6389 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6399 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6409 if test -n "$ac_ct_NMEDIT"; then
6410 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6411 $as_echo "$ac_ct_NMEDIT" >&6; }
6413 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6414 $as_echo "no
" >&6; }
6417 if test "x
$ac_ct_NMEDIT" = x; then
6420 case $cross_compiling:$ac_tool_warned in
6422 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6423 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6424 ac_tool_warned=yes ;;
6426 NMEDIT=$ac_ct_NMEDIT
6429 NMEDIT="$ac_cv_prog_NMEDIT"
6432 if test -n "$ac_tool_prefix"; then
6433 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6434 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6435 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6436 $as_echo_n "checking
for $ac_word...
" >&6; }
6437 if test "${ac_cv_prog_LIPO+set}" = set; then
6438 $as_echo_n "(cached
) " >&6
6440 if test -n "$LIPO"; then
6441 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6451 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6460 LIPO=$ac_cv_prog_LIPO
6461 if test -n "$LIPO"; then
6462 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6463 $as_echo "$LIPO" >&6; }
6465 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6466 $as_echo "no
" >&6; }
6471 if test -z "$ac_cv_prog_LIPO"; then
6473 # Extract the first word of "lipo
", so it can be a program name with args.
6474 set dummy lipo; ac_word=$2
6475 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6476 $as_echo_n "checking
for $ac_word...
" >&6; }
6477 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6478 $as_echo_n "(cached
) " >&6
6480 if test -n "$ac_ct_LIPO"; then
6481 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6490 ac_cv_prog_ac_ct_LIPO="lipo
"
6491 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6500 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6501 if test -n "$ac_ct_LIPO"; then
6502 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6503 $as_echo "$ac_ct_LIPO" >&6; }
6505 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6506 $as_echo "no
" >&6; }
6509 if test "x
$ac_ct_LIPO" = x; then
6512 case $cross_compiling:$ac_tool_warned in
6514 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6515 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6516 ac_tool_warned=yes ;;
6521 LIPO="$ac_cv_prog_LIPO"
6524 if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6526 set dummy ${ac_tool_prefix}otool; ac_word=$2
6527 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6528 $as_echo_n "checking
for $ac_word...
" >&6; }
6529 if test "${ac_cv_prog_OTOOL+set}" = set; then
6530 $as_echo_n "(cached
) " >&6
6532 if test -n "$OTOOL"; then
6533 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6543 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6552 OTOOL=$ac_cv_prog_OTOOL
6553 if test -n "$OTOOL"; then
6554 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6555 $as_echo "$OTOOL" >&6; }
6557 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6558 $as_echo "no
" >&6; }
6563 if test -z "$ac_cv_prog_OTOOL"; then
6565 # Extract the first word of "otool
", so it can be a program name with args.
6566 set dummy otool; ac_word=$2
6567 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6568 $as_echo_n "checking
for $ac_word...
" >&6; }
6569 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6570 $as_echo_n "(cached
) " >&6
6572 if test -n "$ac_ct_OTOOL"; then
6573 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_prog_ac_ct_OTOOL="otool
"
6583 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6592 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6593 if test -n "$ac_ct_OTOOL"; then
6594 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6595 $as_echo "$ac_ct_OTOOL" >&6; }
6597 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6598 $as_echo "no
" >&6; }
6601 if test "x
$ac_ct_OTOOL" = x; then
6604 case $cross_compiling:$ac_tool_warned in
6606 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6607 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6608 ac_tool_warned=yes ;;
6613 OTOOL="$ac_cv_prog_OTOOL"
6616 if test -n "$ac_tool_prefix"; then
6617 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6618 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6619 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6620 $as_echo_n "checking
for $ac_word...
" >&6; }
6621 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6622 $as_echo_n "(cached
) " >&6
6624 if test -n "$OTOOL64"; then
6625 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6635 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6644 OTOOL64=$ac_cv_prog_OTOOL64
6645 if test -n "$OTOOL64"; then
6646 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6647 $as_echo "$OTOOL64" >&6; }
6649 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6650 $as_echo "no
" >&6; }
6655 if test -z "$ac_cv_prog_OTOOL64"; then
6656 ac_ct_OTOOL64=$OTOOL64
6657 # Extract the first word of "otool64
", so it can be a program name with args.
6658 set dummy otool64; ac_word=$2
6659 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6660 $as_echo_n "checking
for $ac_word...
" >&6; }
6661 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6662 $as_echo_n "(cached
) " >&6
6664 if test -n "$ac_ct_OTOOL64"; then
6665 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6675 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6684 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6685 if test -n "$ac_ct_OTOOL64"; then
6686 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6687 $as_echo "$ac_ct_OTOOL64" >&6; }
6689 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6690 $as_echo "no
" >&6; }
6693 if test "x
$ac_ct_OTOOL64" = x; then
6696 case $cross_compiling:$ac_tool_warned in
6698 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6699 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6700 ac_tool_warned=yes ;;
6702 OTOOL64=$ac_ct_OTOOL64
6705 OTOOL64="$ac_cv_prog_OTOOL64"
6734 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6735 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6736 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6737 $as_echo_n "(cached
) " >&6
6739 lt_cv_apple_cc_single_mod=no
6740 if test -z "${LT_MULTI_MODULE}"; then
6741 # By default we will add the -single_module flag. You can override
6742 # by either setting the environment variable LT_MULTI_MODULE
6743 # non-empty at configure time, or by adding -multi_module to the
6745 rm -rf libconftest.dylib*
6746 echo "int foo
(void
){return 1;}" > conftest.c
6747 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6748 -dynamiclib -Wl,-single_module conftest.c
" >&5
6749 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6750 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6752 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6753 lt_cv_apple_cc_single_mod=yes
6755 cat conftest.err >&5
6757 rm -rf libconftest.dylib*
6761 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6762 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6763 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6764 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6765 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6766 $as_echo_n "(cached
) " >&6
6768 lt_cv_ld_exported_symbols_list=no
6769 save_LDFLAGS=$LDFLAGS
6770 echo "_main
" > conftest.sym
6771 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6772 cat >conftest.$ac_ext <<_ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (ac_try="$ac_link"
6790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6791 *) ac_try_echo=$ac_try;;
6793 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6794 $as_echo "$ac_try_echo") >&5
6795 (eval "$ac_link") 2>conftest.er1
6797 grep -v '^ *+' conftest.er1 >conftest.err
6799 cat conftest.err >&5
6800 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6801 (exit $ac_status); } && {
6802 test -z "$ac_c_werror_flag" ||
6803 test ! -s conftest.err
6804 } && test -s conftest$ac_exeext && {
6805 test "$cross_compiling" = yes ||
6806 $as_test_x conftest$ac_exeext
6808 lt_cv_ld_exported_symbols_list=yes
6810 $as_echo "$as_me: failed program was
:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6813 lt_cv_ld_exported_symbols_list=no
6816 rm -rf conftest.dSYM
6817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6818 conftest$ac_exeext conftest.$ac_ext
6819 LDFLAGS="$save_LDFLAGS"
6822 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6823 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6825 rhapsody* | darwin1.[012])
6826 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6828 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6829 darwin*) # darwin 5.x on
6830 # if running on 10.5 or later, the deployment target defaults
6831 # to the OS version, if on x86, and 10.4, the deployment
6832 # target defaults to 10.4. Don't you love it?
6833 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6834 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6835 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6837 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6839 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6843 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6844 _lt_dar_single_mod='$single_module'
6846 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6847 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6849 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6851 if test "$DSYMUTIL" != ":"; then
6852 _lt_dsymutil='~$DSYMUTIL $lib || :'
6860 ac_cpp='$CPP $CPPFLAGS'
6861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6864 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6865 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6866 # On Suns, sometimes $CPP names a directory.
6867 if test -n "$CPP" && test -d "$CPP"; then
6870 if test -z "$CPP"; then
6871 if test "${ac_cv_prog_CPP+set}" = set; then
6872 $as_echo_n "(cached
) " >&6
6874 # Double quotes because CPP needs to be expanded
6875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6878 for ac_c_preproc_warn_flag in '' yes
6880 # Use a header file that comes with gcc, so configuring glibc
6881 # with a fresh cross-compiler works.
6882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6883 # <limits.h> exists even on freestanding compilers.
6884 # On the NeXT, cc -E runs the code through the compiler's parser,
6885 # not just through cpp. "Syntax error
" is here to catch this case.
6886 cat >conftest.$ac_ext <<_ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6893 # include <limits.h>
6895 # include <assert.h>
6899 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6904 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6905 $as_echo "$ac_try_echo") >&5
6906 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6908 grep -v '^ *+' conftest.er1 >conftest.err
6910 cat conftest.err >&5
6911 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6912 (exit $ac_status); } >/dev/null && {
6913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6918 $as_echo "$as_me: failed program was
:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 # Broken: fails on valid input.
6925 rm -f conftest.err conftest.$ac_ext
6927 # OK, works on sane cases. Now check whether nonexistent headers
6928 # can be detected and how.
6929 cat >conftest.$ac_ext <<_ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <ac_nonexistent.h>
6937 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6942 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6943 $as_echo "$ac_try_echo") >&5
6944 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6946 grep -v '^ *+' conftest.er1 >conftest.err
6948 cat conftest.err >&5
6949 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6950 (exit $ac_status); } >/dev/null && {
6951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6952 test ! -s conftest.err
6954 # Broken: success on invalid input.
6957 $as_echo "$as_me: failed program was
:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6960 # Passes both tests.
6965 rm -f conftest.err conftest.$ac_ext
6968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6969 rm -f conftest.err conftest.$ac_ext
6970 if $ac_preproc_ok; then
6982 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
6983 $as_echo "$CPP" >&6; }
6985 for ac_c_preproc_warn_flag in '' yes
6987 # Use a header file that comes with gcc, so configuring glibc
6988 # with a fresh cross-compiler works.
6989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6990 # <limits.h> exists even on freestanding compilers.
6991 # On the NeXT, cc -E runs the code through the compiler's parser,
6992 # not just through cpp. "Syntax error
" is here to catch this case.
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
7000 # include <limits.h>
7002 # include <assert.h>
7006 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7011 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7012 $as_echo "$ac_try_echo") >&5
7013 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7019 (exit $ac_status); } >/dev/null && {
7020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7025 $as_echo "$as_me: failed program was
:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 # Broken: fails on valid input.
7032 rm -f conftest.err conftest.$ac_ext
7034 # OK, works on sane cases. Now check whether nonexistent headers
7035 # can be detected and how.
7036 cat >conftest.$ac_ext <<_ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #include <ac_nonexistent.h>
7044 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7049 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7050 $as_echo "$ac_try_echo") >&5
7051 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7053 grep -v '^ *+' conftest.er1 >conftest.err
7055 cat conftest.err >&5
7056 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7057 (exit $ac_status); } >/dev/null && {
7058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7061 # Broken: success on invalid input.
7064 $as_echo "$as_me: failed program was
:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 # Passes both tests.
7072 rm -f conftest.err conftest.$ac_ext
7075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7076 rm -f conftest.err conftest.$ac_ext
7077 if $ac_preproc_ok; then
7080 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7082 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7083 See \`config.log' for more details.
" >&5
7084 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7085 See \
`config.log' for more details." >&2;}
7086 { (exit 1); exit 1; }; }; }
7090 ac_cpp='$CPP $CPPFLAGS'
7091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7096 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7097 $as_echo_n "checking for ANSI C header files... " >&6; }
7098 if test "${ac_cv_header_stdc+set}" = set; then
7099 $as_echo_n "(cached) " >&6
7101 cat >conftest.$ac_ext <<_ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7120 rm -f conftest.$ac_objext
7121 if { (ac_try="$ac_compile"
7123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7124 *) ac_try_echo
=$ac_try;;
7126 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7127 $as_echo "$ac_try_echo") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7130 grep -v '^ *+' conftest.er1
>conftest.err
7132 cat conftest.err
>&5
7133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.
$ac_objext; then
7138 ac_cv_header_stdc
=yes
7140 $as_echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.
$ac_ext >&5
7143 ac_cv_header_stdc
=no
7146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7148 if test $ac_cv_header_stdc = yes; then
7149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7150 cat >conftest.
$ac_ext <<_ACEOF
7153 cat confdefs.h
>>conftest.
$ac_ext
7154 cat >>conftest.
$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7160 $EGREP "memchr" >/dev
/null
2>&1; then
7163 ac_cv_header_stdc
=no
7169 if test $ac_cv_header_stdc = yes; then
7170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7171 cat >conftest.
$ac_ext <<_ACEOF
7174 cat confdefs.h
>>conftest.
$ac_ext
7175 cat >>conftest.
$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7181 $EGREP "free" >/dev
/null
2>&1; then
7184 ac_cv_header_stdc
=no
7190 if test $ac_cv_header_stdc = yes; then
7191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7192 if test "$cross_compiling" = yes; then
7195 cat >conftest.
$ac_ext <<_ACEOF
7198 cat confdefs.h
>>conftest.
$ac_ext
7199 cat >>conftest.
$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7203 #if ((' ' & 0x0FF) == 0x020)
7204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7207 # define ISLOWER(c) \
7208 (('a' <= (c) && (c) <= 'i') \
7209 || ('j' <= (c) && (c) <= 'r') \
7210 || ('s' <= (c) && (c) <= 'z'))
7211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7219 for (i = 0; i < 256; i++)
7220 if (XOR (islower (i), ISLOWER (i))
7221 || toupper (i) != TOUPPER (i))
7226 rm -f conftest
$ac_exeext
7227 if { (ac_try
="$ac_link"
7229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7233 $as_echo "$ac_try_echo") >&5
7234 (eval "$ac_link") 2>&5
7236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7238 { (case "(($ac_try" in
7239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7240 *) ac_try_echo
=$ac_try;;
7242 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7243 $as_echo "$ac_try_echo") >&5
7244 (eval "$ac_try") 2>&5
7246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7250 $as_echo "$as_me: program exited with status $ac_status" >&5
7251 $as_echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.
$ac_ext >&5
7255 ac_cv_header_stdc
=no
7257 rm -rf conftest.dSYM
7258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7264 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7265 $as_echo "$ac_cv_header_stdc" >&6; }
7266 if test $ac_cv_header_stdc = yes; then
7268 cat >>confdefs.h
<<\_ACEOF
7269 #define STDC_HEADERS 1
7274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7284 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7285 inttypes.h stdint.h unistd.h
7287 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7289 $as_echo_n "checking for $ac_header... " >&6; }
7290 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7291 $as_echo_n "(cached) " >&6
7293 cat >conftest.
$ac_ext <<_ACEOF
7296 cat confdefs.h
>>conftest.
$ac_ext
7297 cat >>conftest.
$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 $ac_includes_default
7301 #include <$ac_header>
7303 rm -f conftest.
$ac_objext
7304 if { (ac_try
="$ac_compile"
7306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7310 $as_echo "$ac_try_echo") >&5
7311 (eval "$ac_compile") 2>conftest.er1
7313 grep -v '^ *+' conftest.er1 >conftest.err
7315 cat conftest.err >&5
7316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } && {
7318 test -z "$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7320 } && test -s conftest.$ac_objext; then
7321 eval "$as_ac_Header=yes"
7323 $as_echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 eval "$as_ac_Header=no"
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331 ac_res=`eval 'as_val=${'$as_ac_Header'}
7332 $as_echo "$as_val"'`
7333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7334 $as_echo "$ac_res" >&6; }
7335 as_val=`eval 'as_val=${'$as_ac_Header'}
7336 $as_echo "$as_val"'`
7337 if test "x$as_val" = x""yes; then
7338 cat >>confdefs.h <<_ACEOF
7339 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7348 for ac_header in dlfcn.h
7350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7352 $as_echo_n "checking for $ac_header... " >&6; }
7353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7354 $as_echo_n "(cached) " >&6
7356 cat >conftest.$ac_ext <<_ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 $ac_includes_default
7364 #include <$ac_header>
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7370 *) ac_try_echo
=$ac_try;;
7372 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7373 $as_echo "$ac_try_echo") >&5
7374 (eval "$ac_compile") 2>conftest.er1
7376 grep -v '^ *+' conftest.er1
>conftest.err
7378 cat conftest.err
>&5
7379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } && {
7381 test -z "$ac_c_werror_flag" ||
7382 test ! -s conftest.err
7383 } && test -s conftest.
$ac_objext; then
7384 eval "$as_ac_Header=yes"
7386 $as_echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.
$ac_ext >&5
7389 eval "$as_ac_Header=no"
7392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7394 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7395 $as_echo "$as_val"'`
7396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7397 $as_echo "$ac_res" >&6; }
7398 as_val
=`eval 'as_val=${'$as_ac_Header'}
7399 $as_echo "$as_val"'`
7400 if test "x$as_val" = x
""yes; then
7401 cat >>confdefs.h
<<_ACEOF
7402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7421 # Check whether --enable-shared was given.
7422 if test "${enable_shared+set}" = set; then
7423 enableval
=$enable_shared; p
=${PACKAGE-default}
7425 yes) enable_shared
=yes ;;
7426 no
) enable_shared
=no
;;
7429 # Look at the argument we got. We use all the common list separators.
7430 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7431 for pkg
in $enableval; do
7433 if test "X$pkg" = "X$p"; then
7452 # Check whether --enable-static was given.
7453 if test "${enable_static+set}" = set; then
7454 enableval
=$enable_static; p
=${PACKAGE-default}
7456 yes) enable_static
=yes ;;
7457 no
) enable_static
=no
;;
7460 # Look at the argument we got. We use all the common list separators.
7461 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7462 for pkg
in $enableval; do
7464 if test "X$pkg" = "X$p"; then
7484 # Check whether --with-pic was given.
7485 if test "${with_pic+set}" = set; then
7486 withval
=$with_pic; pic_mode
="$withval"
7492 test -z "$pic_mode" && pic_mode
=default
7500 # Check whether --enable-fast-install was given.
7501 if test "${enable_fast_install+set}" = set; then
7502 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7504 yes) enable_fast_install
=yes ;;
7505 no
) enable_fast_install
=no
;;
7507 enable_fast_install
=no
7508 # Look at the argument we got. We use all the common list separators.
7509 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7510 for pkg
in $enableval; do
7512 if test "X$pkg" = "X$p"; then
7513 enable_fast_install
=yes
7520 enable_fast_install
=yes
7533 # This can be used to rebuild libtool when needed
7534 LIBTOOL_DEPS
="$ltmain"
7536 # Always use our own libtool.
7537 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7563 test -z "$LN_S" && LN_S
="ln -s"
7578 if test -n "${ZSH_VERSION+set}" ; then
7579 setopt NO_GLOB_SUBST
7582 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7583 $as_echo_n "checking for objdir... " >&6; }
7584 if test "${lt_cv_objdir+set}" = set; then
7585 $as_echo_n "(cached) " >&6
7587 rm -f .libs
2>/dev
/null
7588 mkdir .libs
2>/dev
/null
7589 if test -d .libs
; then
7592 # MS-DOS does not allow filenames that begin with a dot.
7595 rmdir .libs
2>/dev
/null
7597 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7598 $as_echo "$lt_cv_objdir" >&6; }
7599 objdir
=$lt_cv_objdir
7605 cat >>confdefs.h
<<_ACEOF
7606 #define LT_OBJDIR "$lt_cv_objdir/"
7627 # AIX sometimes has problems with the GCC collect2 program. For some
7628 # reason, if we set the COLLECT_NAMES environment variable, the problems
7629 # vanish in a puff of smoke.
7630 if test "X${COLLECT_NAMES+set}" != Xset
; then
7632 export COLLECT_NAMES
7637 # Sed substitution that helps us do robust quoting. It backslashifies
7638 # metacharacters that are still active within double-quoted strings.
7639 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7641 # Same as above, but do not quote variable references.
7642 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7644 # Sed substitution to delay expansion of an escaped shell variable in a
7645 # double_quote_subst'ed string.
7646 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7648 # Sed substitution to delay expansion of an escaped single quote.
7649 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7651 # Sed substitution to avoid accidental globbing in evaled expressions
7652 no_glob_subst
='s/\*/\\\*/g'
7656 can_build_shared
=yes
7658 # All known linkers require a `.a' archive for static linking (except MSVC,
7659 # which needs '.lib').
7662 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7665 old_CFLAGS
="$CFLAGS"
7667 # Set sane defaults for various variables
7668 test -z "$CC" && CC
=cc
7669 test -z "$LTCC" && LTCC
=$CC
7670 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7671 test -z "$LD" && LD
=ld
7672 test -z "$ac_objext" && ac_objext
=o
7674 for cc_temp
in $compiler""; do
7676 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7677 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7682 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7685 # Only perform the check for file, if the check method requires it
7686 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7687 case $deplibs_check_method in
7689 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7690 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7691 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7692 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7693 $as_echo_n "(cached) " >&6
7697 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7700 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7701 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7702 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7703 for ac_dir
in $ac_dummy; do
7705 test -z "$ac_dir" && ac_dir
=.
7706 if test -f $ac_dir/${ac_tool_prefix}file; then
7707 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7708 if test -n "$file_magic_test_file"; then
7709 case $deplibs_check_method in
7711 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7712 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7713 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7714 $EGREP "$file_magic_regex" > /dev
/null
; then
7719 *** Warning: the command libtool uses to detect shared libraries,
7720 *** $file_magic_cmd, produces output that libtool cannot recognize.
7721 *** The result is that libtool may fail to recognize shared libraries
7722 *** as such. This will affect the creation of libtool libraries that
7723 *** depend on shared libraries, but programs linked with such libtool
7724 *** libraries will work regardless of this problem. Nevertheless, you
7725 *** may want to report the problem to your system manager and/or to
7726 *** bug-libtool@gnu.org
7736 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7741 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7742 if test -n "$MAGIC_CMD"; then
7743 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7744 $as_echo "$MAGIC_CMD" >&6; }
7746 { $as_echo "$as_me:$LINENO: result: no" >&5
7747 $as_echo "no" >&6; }
7754 if test -z "$lt_cv_path_MAGIC_CMD"; then
7755 if test -n "$ac_tool_prefix"; then
7756 { $as_echo "$as_me:$LINENO: checking for file" >&5
7757 $as_echo_n "checking for file... " >&6; }
7758 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7759 $as_echo_n "(cached) " >&6
7763 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7766 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7767 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7768 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7769 for ac_dir
in $ac_dummy; do
7771 test -z "$ac_dir" && ac_dir
=.
7772 if test -f $ac_dir/file; then
7773 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7774 if test -n "$file_magic_test_file"; then
7775 case $deplibs_check_method in
7777 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7778 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7779 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7780 $EGREP "$file_magic_regex" > /dev
/null
; then
7785 *** Warning: the command libtool uses to detect shared libraries,
7786 *** $file_magic_cmd, produces output that libtool cannot recognize.
7787 *** The result is that libtool may fail to recognize shared libraries
7788 *** as such. This will affect the creation of libtool libraries that
7789 *** depend on shared libraries, but programs linked with such libtool
7790 *** libraries will work regardless of this problem. Nevertheless, you
7791 *** may want to report the problem to your system manager and/or to
7792 *** bug-libtool@gnu.org
7802 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7807 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7808 if test -n "$MAGIC_CMD"; then
7809 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7810 $as_echo "$MAGIC_CMD" >&6; }
7812 { $as_echo "$as_me:$LINENO: result: no" >&5
7813 $as_echo "no" >&6; }
7826 # Use C for the default configuration in the libtool script
7830 ac_cpp
='$CPP $CPPFLAGS'
7831 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7836 # Source file extension for C test sources.
7839 # Object file extension for compiled C test sources.
7843 # Code to be used in simple compile tests
7844 lt_simple_compile_test_code
="int some_variable = 0;"
7846 # Code to be used in simple link tests
7847 lt_simple_link_test_code
='int main(){return(0);}'
7855 # If no C compiler was specified, use CC.
7858 # If no C compiler flags were specified, use CFLAGS.
7859 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7861 # Allow CC to be a program name with arguments.
7864 # Save the default compiler, since it gets overwritten when the other
7865 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7866 compiler_DEFAULT
=$CC
7868 # save warnings/boilerplate of simple test code
7869 ac_outfile
=conftest.
$ac_objext
7870 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7871 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7872 _lt_compiler_boilerplate
=`cat conftest.err`
7875 ac_outfile
=conftest.
$ac_objext
7876 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7877 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7878 _lt_linker_boilerplate
=`cat conftest.err`
7882 if test -n "$compiler"; then
7884 lt_prog_compiler_no_builtin_flag
=
7886 if test "$GCC" = yes; then
7887 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7889 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7890 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7891 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7892 $as_echo_n "(cached) " >&6
7894 lt_cv_prog_compiler_rtti_exceptions
=no
7895 ac_outfile
=conftest.
$ac_objext
7896 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7897 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7898 # Insert the option either (1) after the last *FLAGS variable, or
7899 # (2) before a word containing "conftest.", or (3) at the end.
7900 # Note that $ac_compile itself does not contain backslashes and begins
7901 # with a dollar sign (not a hyphen), so the echo should work correctly.
7902 # The option is referenced via a variable to avoid confusing sed.
7903 lt_compile
=`echo "$ac_compile" | $SED \
7904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906 -e 's:$: $lt_compiler_flag:'`
7907 (eval echo "\"\$as_me:7907: $lt_compile\"" >&5)
7908 (eval "$lt_compile" 2>conftest.err
)
7910 cat conftest.err
>&5
7911 echo "$as_me:7911: \$? = $ac_status" >&5
7912 if (exit $ac_status) && test -s "$ac_outfile"; then
7913 # The compiler can only warn and ignore the option if not recognized
7914 # So say no if there are warnings other than the usual output.
7915 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7916 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7917 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7918 lt_cv_prog_compiler_rtti_exceptions
=yes
7924 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7925 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7927 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7928 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7940 lt_prog_compiler_wl
=
7941 lt_prog_compiler_pic
=
7942 lt_prog_compiler_static
=
7944 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7945 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7947 if test "$GCC" = yes; then
7948 lt_prog_compiler_wl
='-Wl,'
7949 lt_prog_compiler_static
='-static'
7953 # All AIX code is PIC.
7954 if test "$host_cpu" = ia64
; then
7955 # AIX 5 now supports IA64 processor
7956 lt_prog_compiler_static
='-Bstatic'
7963 # see comment about AmigaOS4 .so support
7964 lt_prog_compiler_pic
='-fPIC'
7967 # FIXME: we need at least 68020 code to build shared libraries, but
7968 # adding the `-m68020' flag to GCC prevents building anything better,
7970 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7975 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7976 # PIC is the default for these OSes.
7979 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7980 # This hack is so that the source file can tell whether it is being
7981 # built for inclusion in a dll (and should export symbols for example).
7982 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7983 # (--disable-auto-import) libraries
7984 lt_prog_compiler_pic
='-DDLL_EXPORT'
7987 darwin
* | rhapsody
*)
7988 # PIC is the default on this platform
7989 # Common symbols not allowed in MH_DYLIB files
7990 lt_prog_compiler_pic
='-fno-common'
7994 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7995 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7996 # sets the default TLS model and affects inlining.
8002 lt_prog_compiler_pic
='-fPIC'
8008 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8009 # Instead, we relocate shared libraries at runtime.
8013 # Just because we use GCC doesn't mean we suddenly get shared libraries
8014 # on systems that don't support them.
8015 lt_prog_compiler_can_build_shared
=no
8020 # QNX uses GNU C++, but need to define -shared option too, otherwise
8022 lt_prog_compiler_pic
='-fPIC -shared'
8026 if test -d /usr
/nec
; then
8027 lt_prog_compiler_pic
=-Kconform_pic
8032 lt_prog_compiler_pic
='-fPIC'
8036 # PORTME Check for flag to pass linker flags through the system compiler.
8039 lt_prog_compiler_wl
='-Wl,'
8040 if test "$host_cpu" = ia64
; then
8041 # AIX 5 now supports IA64 processor
8042 lt_prog_compiler_static
='-Bstatic'
8044 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8048 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8049 # This hack is so that the source file can tell whether it is being
8050 # built for inclusion in a dll (and should export symbols for example).
8051 lt_prog_compiler_pic
='-DDLL_EXPORT'
8054 hpux9
* | hpux10
* | hpux11
*)
8055 lt_prog_compiler_wl
='-Wl,'
8056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8063 lt_prog_compiler_pic
='+Z'
8066 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8067 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8070 irix5
* | irix6
* | nonstopux
*)
8071 lt_prog_compiler_wl
='-Wl,'
8072 # PIC (with -KPIC) is the default.
8073 lt_prog_compiler_static
='-non_shared'
8076 linux
* | k
*bsd
*-gnu)
8077 case $cc_basename in
8078 # old Intel for x86_64 which still supported -KPIC.
8080 lt_prog_compiler_wl
='-Wl,'
8081 lt_prog_compiler_pic
='-KPIC'
8082 lt_prog_compiler_static
='-static'
8084 # icc used to be incompatible with GCC.
8085 # ICC 10 doesn't accept -KPIC any more.
8087 lt_prog_compiler_wl
='-Wl,'
8088 lt_prog_compiler_pic
='-fPIC'
8089 lt_prog_compiler_static
='-static'
8091 # Lahey Fortran 8.1.
8093 lt_prog_compiler_wl
='-Wl,'
8094 lt_prog_compiler_pic
='--shared'
8095 lt_prog_compiler_static
='--static'
8097 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8098 # Portland Group compilers (*not* the Pentium gcc compiler,
8099 # which looks to be a dead project)
8100 lt_prog_compiler_wl
='-Wl,'
8101 lt_prog_compiler_pic
='-fpic'
8102 lt_prog_compiler_static
='-Bstatic'
8105 lt_prog_compiler_wl
='-Wl,'
8106 # All Alpha code is PIC.
8107 lt_prog_compiler_static
='-non_shared'
8110 # IBM XL C 8.0/Fortran 10.1 on PPC
8111 lt_prog_compiler_wl
='-Wl,'
8112 lt_prog_compiler_pic
='-qpic'
8113 lt_prog_compiler_static
='-qstaticlink'
8116 case `$CC -V 2>&1 | sed 5q` in
8119 lt_prog_compiler_pic
='-KPIC'
8120 lt_prog_compiler_static
='-Bstatic'
8121 lt_prog_compiler_wl
='-Wl,'
8124 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8125 lt_prog_compiler_pic
='-KPIC'
8126 lt_prog_compiler_static
='-Bstatic'
8127 lt_prog_compiler_wl
=''
8135 lt_prog_compiler_pic
='-KPIC'
8136 lt_prog_compiler_static
='-Bstatic'
8140 # QNX uses GNU C++, but need to define -shared option too, otherwise
8142 lt_prog_compiler_pic
='-fPIC -shared'
8145 osf3
* | osf4
* | osf5
*)
8146 lt_prog_compiler_wl
='-Wl,'
8147 # All OSF/1 code is PIC.
8148 lt_prog_compiler_static
='-non_shared'
8152 lt_prog_compiler_static
='-non_shared'
8156 lt_prog_compiler_pic
='-KPIC'
8157 lt_prog_compiler_static
='-Bstatic'
8158 case $cc_basename in
8160 lt_prog_compiler_wl
='-Qoption ld ';;
8162 lt_prog_compiler_wl
='-Wl,';;
8167 lt_prog_compiler_wl
='-Qoption ld '
8168 lt_prog_compiler_pic
='-PIC'
8169 lt_prog_compiler_static
='-Bstatic'
8172 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8173 lt_prog_compiler_wl
='-Wl,'
8174 lt_prog_compiler_pic
='-KPIC'
8175 lt_prog_compiler_static
='-Bstatic'
8179 if test -d /usr
/nec
;then
8180 lt_prog_compiler_pic
='-Kconform_pic'
8181 lt_prog_compiler_static
='-Bstatic'
8185 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8186 lt_prog_compiler_wl
='-Wl,'
8187 lt_prog_compiler_pic
='-KPIC'
8188 lt_prog_compiler_static
='-Bstatic'
8192 lt_prog_compiler_wl
='-Wl,'
8193 lt_prog_compiler_can_build_shared
=no
8197 lt_prog_compiler_pic
='-pic'
8198 lt_prog_compiler_static
='-Bstatic'
8202 lt_prog_compiler_can_build_shared
=no
8208 # For platforms which do not support PIC, -DPIC is meaningless:
8210 lt_prog_compiler_pic
=
8213 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8216 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8217 $as_echo "$lt_prog_compiler_pic" >&6; }
8225 # Check to make sure the PIC flag actually works.
8227 if test -n "$lt_prog_compiler_pic"; then
8228 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8229 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8230 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8231 $as_echo_n "(cached) " >&6
8233 lt_cv_prog_compiler_pic_works
=no
8234 ac_outfile
=conftest.
$ac_objext
8235 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8236 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8237 # Insert the option either (1) after the last *FLAGS variable, or
8238 # (2) before a word containing "conftest.", or (3) at the end.
8239 # Note that $ac_compile itself does not contain backslashes and begins
8240 # with a dollar sign (not a hyphen), so the echo should work correctly.
8241 # The option is referenced via a variable to avoid confusing sed.
8242 lt_compile
=`echo "$ac_compile" | $SED \
8243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8245 -e 's:$: $lt_compiler_flag:'`
8246 (eval echo "\"\$as_me:8246: $lt_compile\"" >&5)
8247 (eval "$lt_compile" 2>conftest.err
)
8249 cat conftest.err
>&5
8250 echo "$as_me:8250: \$? = $ac_status" >&5
8251 if (exit $ac_status) && test -s "$ac_outfile"; then
8252 # The compiler can only warn and ignore the option if not recognized
8253 # So say no if there are warnings other than the usual output.
8254 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8255 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8256 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8257 lt_cv_prog_compiler_pic_works
=yes
8263 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8264 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8266 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8267 case $lt_prog_compiler_pic in
8269 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8272 lt_prog_compiler_pic
=
8273 lt_prog_compiler_can_build_shared
=no
8284 # Check to make sure the static flag actually works.
8286 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8287 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8288 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8289 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8290 $as_echo_n "(cached) " >&6
8292 lt_cv_prog_compiler_static_works
=no
8293 save_LDFLAGS
="$LDFLAGS"
8294 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8295 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8296 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8297 # The linker can only warn and ignore the option if not recognized
8298 # So say no if there are warnings
8299 if test -s conftest.err
; then
8300 # Append any errors to the config.log.
8301 cat conftest.err
1>&5
8302 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8303 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8304 if diff conftest.exp conftest.er2
>/dev
/null
; then
8305 lt_cv_prog_compiler_static_works
=yes
8308 lt_cv_prog_compiler_static_works
=yes
8312 LDFLAGS
="$save_LDFLAGS"
8315 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8316 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8318 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8321 lt_prog_compiler_static
=
8330 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8331 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8332 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8333 $as_echo_n "(cached) " >&6
8335 lt_cv_prog_compiler_c_o
=no
8336 $RM -r conftest
2>/dev
/null
8340 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8342 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8343 # Insert the option either (1) after the last *FLAGS variable, or
8344 # (2) before a word containing "conftest.", or (3) at the end.
8345 # Note that $ac_compile itself does not contain backslashes and begins
8346 # with a dollar sign (not a hyphen), so the echo should work correctly.
8347 lt_compile
=`echo "$ac_compile" | $SED \
8348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8350 -e 's:$: $lt_compiler_flag:'`
8351 (eval echo "\"\$as_me:8351: $lt_compile\"" >&5)
8352 (eval "$lt_compile" 2>out
/conftest.err
)
8354 cat out
/conftest.err
>&5
8355 echo "$as_me:8355: \$? = $ac_status" >&5
8356 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8358 # The compiler can only warn and ignore the option if not recognized
8359 # So say no if there are warnings
8360 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8361 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8362 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8363 lt_cv_prog_compiler_c_o
=yes
8368 # SGI C++ compiler will create directory out/ii_files/ for
8369 # template instantiation
8370 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8371 $RM out
/* && rmdir out
8377 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8378 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8385 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8386 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8387 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8388 $as_echo_n "(cached) " >&6
8390 lt_cv_prog_compiler_c_o
=no
8391 $RM -r conftest
2>/dev
/null
8395 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8397 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8398 # Insert the option either (1) after the last *FLAGS variable, or
8399 # (2) before a word containing "conftest.", or (3) at the end.
8400 # Note that $ac_compile itself does not contain backslashes and begins
8401 # with a dollar sign (not a hyphen), so the echo should work correctly.
8402 lt_compile
=`echo "$ac_compile" | $SED \
8403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8405 -e 's:$: $lt_compiler_flag:'`
8406 (eval echo "\"\$as_me:8406: $lt_compile\"" >&5)
8407 (eval "$lt_compile" 2>out
/conftest.err
)
8409 cat out
/conftest.err
>&5
8410 echo "$as_me:8410: \$? = $ac_status" >&5
8411 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8413 # The compiler can only warn and ignore the option if not recognized
8414 # So say no if there are warnings
8415 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8416 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8417 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8418 lt_cv_prog_compiler_c_o
=yes
8423 # SGI C++ compiler will create directory out/ii_files/ for
8424 # template instantiation
8425 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8426 $RM out
/* && rmdir out
8432 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8433 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8438 hard_links
="nottested"
8439 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8440 # do not overwrite the value of need_locks provided by the user
8441 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8442 $as_echo_n "checking if we can lock with hard links... " >&6; }
8445 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8447 ln conftest.a conftest.b
2>&5 || hard_links
=no
8448 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8449 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8450 $as_echo "$hard_links" >&6; }
8451 if test "$hard_links" = no
; then
8452 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8453 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8465 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8466 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8469 allow_undefined_flag
=
8470 always_export_symbols
=no
8472 archive_expsym_cmds
=
8473 compiler_needs_object
=no
8474 enable_shared_with_static_runtimes
=no
8475 export_dynamic_flag_spec
=
8476 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8477 hardcode_automatic
=no
8479 hardcode_direct_absolute
=no
8480 hardcode_libdir_flag_spec
=
8481 hardcode_libdir_flag_spec_ld
=
8482 hardcode_libdir_separator
=
8484 hardcode_shlibpath_var
=unsupported
8486 link_all_deplibs
=unknown
8489 old_archive_from_new_cmds
=
8490 old_archive_from_expsyms_cmds
=
8491 thread_safe_flag_spec
=
8492 whole_archive_flag_spec
=
8493 # include_expsyms should be a list of space-separated symbols to be *always*
8494 # included in the symbol list
8496 # exclude_expsyms can be an extended regexp of symbols to exclude
8497 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8498 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8499 # as well as any symbol that contains `d'.
8500 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8501 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8502 # platforms (ab)use it in PIC code, but their linkers get confused if
8503 # the symbol is explicitly referenced. Since portable code cannot
8504 # rely on this symbol name, it's probably fine to never include it in
8505 # preloaded symbol tables.
8506 # Exclude shared library initialization/finalization symbols.
8507 extract_expsyms_cmds
=
8510 cygwin
* | mingw
* | pw32
* | cegcc
*)
8511 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8512 # When not using gcc, we currently assume that we are using
8513 # Microsoft Visual C++.
8514 if test "$GCC" != yes; then
8519 # we just hope/assume this is gcc and not c89 (= MSVC++)
8528 if test "$with_gnu_ld" = yes; then
8529 # If archive_cmds runs LD, not CC, wlarc should be empty
8532 # Set some defaults for GNU ld with shared library support. These
8533 # are reset later if shared libraries are not supported. Putting them
8534 # here allows them to be overridden if necessary.
8535 runpath_var
=LD_RUN_PATH
8536 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8537 export_dynamic_flag_spec
='${wl}--export-dynamic'
8538 # ancient GNU ld didn't support --whole-archive et. al.
8539 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8540 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8542 whole_archive_flag_spec
=
8544 supports_anon_versioning
=no
8545 case `$LD -v 2>&1` in
8546 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8547 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8548 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8549 *\
2.11.
*) ;; # other 2.11 versions
8550 *) supports_anon_versioning
=yes ;;
8553 # See if GNU ld supports shared libraries.
8556 # On AIX/PPC, the GNU linker is very broken
8557 if test "$host_cpu" != ia64
; then
8561 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8562 *** to be unable to reliably create shared libraries on AIX.
8563 *** Therefore, libtool is disabling shared libraries support. If you
8564 *** really care for shared libraries, you may want to modify your PATH
8565 *** so that a non-GNU linker is found, and then restart.
8574 # see comment about AmigaOS4 .so support
8575 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576 archive_expsym_cmds
=''
8579 archive_cmds
='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8580 hardcode_libdir_flag_spec
='-L$libdir'
8581 hardcode_minus_L
=yes
8587 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8588 allow_undefined_flag
=unsupported
8589 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8590 # support --undefined. This deserves some investigation. FIXME
8591 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597 cygwin
* | mingw
* | pw32
* | cegcc
*)
8598 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8599 # as there is no search path for DLLs.
8600 hardcode_libdir_flag_spec
='-L$libdir'
8601 allow_undefined_flag
=unsupported
8602 always_export_symbols
=no
8603 enable_shared_with_static_runtimes
=yes
8604 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8606 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8607 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8608 # If the export-symbols file already is a .def file (1st line
8609 # is EXPORTS), use it as is; otherwise, prepend...
8610 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8611 cp $export_symbols $output_objdir/$soname.def;
8613 echo EXPORTS > $output_objdir/$soname.def;
8614 cat $export_symbols >> $output_objdir/$soname.def;
8616 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8624 hardcode_shlibpath_var
=no
8625 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8626 export_dynamic_flag_spec
='${wl}-E'
8627 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8628 # Instead, shared libraries are loaded at an image base (0x10000000 by
8629 # default) and relocated if they conflict, which is a slow very memory
8630 # consuming and fragmenting process. To avoid this, we pick a random,
8631 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8632 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8633 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8634 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8637 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8639 if test "$host_os" = linux-dietlibc
; then
8640 case $cc_basename in
8641 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8644 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8645 && test "$tmp_diet" = no
8648 tmp_sharedflag
='-shared'
8649 case $cc_basename,$host_cpu in
8650 pgcc
*) # Portland Group C compiler
8651 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8652 tmp_addflag
=' $pic_flag'
8654 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8655 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8656 tmp_addflag
=' $pic_flag -Mnomain' ;;
8657 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8658 tmp_addflag
=' -i_dynamic' ;;
8659 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8660 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8661 ifc
* | ifort
*) # Intel Fortran compiler
8662 tmp_addflag
=' -nofor_main' ;;
8663 lf95
*) # Lahey Fortran 8.1
8664 whole_archive_flag_spec
=
8665 tmp_sharedflag
='--shared' ;;
8666 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8667 tmp_sharedflag
='-qmkshrobj'
8670 case `$CC -V 2>&1 | sed 5q` in
8671 *Sun\ C
*) # Sun C 5.9
8672 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8673 compiler_needs_object
=yes
8674 tmp_sharedflag
='-G' ;;
8675 *Sun\ F
*) # Sun Fortran 8.3
8676 tmp_sharedflag
='-G' ;;
8678 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8680 if test "x$supports_anon_versioning" = xyes
; then
8681 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8682 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8683 echo "local: *; };" >> $output_objdir/$libname.ver~
8684 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8687 case $cc_basename in
8689 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8690 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8691 hardcode_libdir_flag_spec
=
8692 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8693 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8694 if test "x$supports_anon_versioning" = xyes
; then
8695 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8697 echo "local: *; };" >> $output_objdir/$libname.ver~
8698 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8708 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8709 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8712 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8718 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8722 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8723 *** create shared libraries on Solaris systems. Therefore, libtool
8724 *** is disabling shared libraries support. We urge you to upgrade GNU
8725 *** binutils to release 2.9.1 or newer. Another option is to modify
8726 *** your PATH or compiler configuration so that the native linker is
8727 *** used, and then restart.
8730 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8731 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8738 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8739 case `$LD -v 2>&1` in
8740 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8744 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8745 *** reliably create shared libraries on SCO systems. Therefore, libtool
8746 *** is disabling shared libraries support. We urge you to upgrade GNU
8747 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8748 *** your PATH or compiler configuration so that the native linker is
8749 *** used, and then restart.
8754 # For security reasons, it is highly recommended that you always
8755 # use absolute paths for naming shared libraries, and exclude the
8756 # DT_RUNPATH tag from executables and libraries. But doing so
8757 # requires that you compile everything twice, which is a pain.
8758 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8759 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8760 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8770 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8773 hardcode_shlibpath_var
=no
8777 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8778 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8779 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8786 if test "$ld_shlibs" = no
; then
8788 hardcode_libdir_flag_spec
=
8789 export_dynamic_flag_spec
=
8790 whole_archive_flag_spec
=
8793 # PORTME fill in a description of your system's linker (not GNU ld)
8796 allow_undefined_flag
=unsupported
8797 always_export_symbols
=yes
8798 archive_expsym_cmds
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8799 # Note: this linker hardcodes the directories in LIBPATH if there
8800 # are no directories specified by -L.
8801 hardcode_minus_L
=yes
8802 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8803 # Neither direct hardcoding nor static linking is supported with a
8805 hardcode_direct
=unsupported
8810 if test "$host_cpu" = ia64
; then
8811 # On IA64, the linker does run time linking by default, so we don't
8812 # have to do anything special.
8813 aix_use_runtimelinking
=no
8814 exp_sym_flag
='-Bexport'
8817 # If we're using GNU nm, then we don't want the "-C" option.
8818 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8819 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8820 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8822 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8824 aix_use_runtimelinking
=no
8826 # Test if we are trying to use run time linking or normal
8827 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8828 # need to do runtime linking.
8829 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8830 for ld_flag
in $LDFLAGS; do
8831 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8832 aix_use_runtimelinking
=yes
8839 exp_sym_flag
='-bexport'
8840 no_entry_flag
='-bnoentry'
8843 # When large executables or shared objects are built, AIX ld can
8844 # have problems creating the table of contents. If linking a library
8845 # or program results in "error TOC overflow" add -mminimal-toc to
8846 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8847 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8851 hardcode_direct_absolute
=yes
8852 hardcode_libdir_separator
=':'
8853 link_all_deplibs
=yes
8854 file_list_spec
='${wl}-f,'
8856 if test "$GCC" = yes; then
8857 case $host_os in aix4.
[012]|aix4.
[012].
*)
8858 # We only want to do this on AIX 4.2 and lower, the check
8859 # below for broken collect2 doesn't work under 4.3+
8860 collect2name
=`${CC} -print-prog-name=collect2`
8861 if test -f "$collect2name" &&
8862 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8864 # We have reworked collect2
8867 # We have old collect2
8868 hardcode_direct
=unsupported
8869 # It fails to find uninstalled libraries when the uninstalled
8870 # path is not listed in the libpath. Setting hardcode_minus_L
8871 # to unsupported forces relinking
8872 hardcode_minus_L
=yes
8873 hardcode_libdir_flag_spec
='-L$libdir'
8874 hardcode_libdir_separator
=
8878 shared_flag
='-shared'
8879 if test "$aix_use_runtimelinking" = yes; then
8880 shared_flag
="$shared_flag "'${wl}-G'
8884 if test "$host_cpu" = ia64
; then
8885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8886 # chokes on -Wl,-G. The following line is correct:
8889 if test "$aix_use_runtimelinking" = yes; then
8890 shared_flag
='${wl}-G'
8892 shared_flag
='${wl}-bM:SRE'
8897 export_dynamic_flag_spec
='${wl}-bexpall'
8898 # It seems that -bexpall does not export symbols beginning with
8899 # underscore (_), so it is better to generate a list of symbols to export.
8900 always_export_symbols
=yes
8901 if test "$aix_use_runtimelinking" = yes; then
8902 # Warning - without using the other runtime loading flags (-brtl),
8903 # -berok will link without error, but may produce a broken library.
8904 allow_undefined_flag
='-berok'
8905 # Determine the default libpath from the value encoded in an
8907 cat >conftest.
$ac_ext <<_ACEOF
8910 cat confdefs.h
>>conftest.
$ac_ext
8911 cat >>conftest.
$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8922 rm -f conftest.
$ac_objext conftest
$ac_exeext
8923 if { (ac_try
="$ac_link"
8925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8929 $as_echo "$ac_try_echo") >&5
8930 (eval "$ac_link") 2>conftest.er1
8932 grep -v '^ *+' conftest.er1 >conftest.err
8934 cat conftest.err >&5
8935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest$ac_exeext && {
8940 test "$cross_compiling" = yes ||
8941 $as_test_x conftest$ac_exeext
8944 lt_aix_libpath_sed='
8945 /Import File Strings/,/^$/ {
8951 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8952 # Check for a 64-bit object if we didn't find anything.
8953 if test -z "$aix_libpath"; then
8954 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8957 $as_echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8963 rm -rf conftest.dSYM
8964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8965 conftest$ac_exeext conftest.$ac_ext
8966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8968 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8969 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8971 if test "$host_cpu" = ia64; then
8972 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8973 allow_undefined_flag="-z nodefs"
8974 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8976 # Determine the default libpath from the value encoded in an
8978 cat >conftest.$ac_ext <<_ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (ac_try="$ac_link"
8996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8997 *) ac_try_echo
=$ac_try;;
8999 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9000 $as_echo "$ac_try_echo") >&5
9001 (eval "$ac_link") 2>conftest.er1
9003 grep -v '^ *+' conftest.er1
>conftest.err
9005 cat conftest.err
>&5
9006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } && {
9008 test -z "$ac_c_werror_flag" ||
9009 test ! -s conftest.err
9010 } && test -s conftest
$ac_exeext && {
9011 test "$cross_compiling" = yes ||
9012 $as_test_x conftest
$ac_exeext
9015 lt_aix_libpath_sed
='
9016 /Import File Strings/,/^$/ {
9022 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9023 # Check for a 64-bit object if we didn't find anything.
9024 if test -z "$aix_libpath"; then
9025 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9028 $as_echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.
$ac_ext >&5
9034 rm -rf conftest.dSYM
9035 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9036 conftest
$ac_exeext conftest.
$ac_ext
9037 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9039 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9040 # Warning - without using the other run time loading flags,
9041 # -berok will link without error, but may produce a broken library.
9042 no_undefined_flag
=' ${wl}-bernotok'
9043 allow_undefined_flag
=' ${wl}-berok'
9044 # Exported symbols can be pulled into shared objects from archives
9045 whole_archive_flag_spec
='$convenience'
9046 archive_cmds_need_lc
=yes
9047 # This is similar to how AIX traditionally builds its shared libraries.
9048 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9056 # see comment about AmigaOS4 .so support
9057 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058 archive_expsym_cmds
=''
9061 archive_cmds
='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9062 hardcode_libdir_flag_spec
='-L$libdir'
9063 hardcode_minus_L
=yes
9069 export_dynamic_flag_spec
=-rdynamic
9072 cygwin
* | mingw
* | pw32
* | cegcc
*)
9073 # When not using gcc, we currently assume that we are using
9074 # Microsoft Visual C++.
9075 # hardcode_libdir_flag_spec is actually meaningless, as there is
9076 # no search path for DLLs.
9077 hardcode_libdir_flag_spec
=' '
9078 allow_undefined_flag
=unsupported
9079 # Tell ltmain to make .lib files, not .a files.
9081 # Tell ltmain to make .dll files, not .so files.
9083 # FIXME: Setting linknames here is a bad hack.
9084 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9085 # The linker will automatically build a .lib file if we build a DLL.
9086 old_archive_from_new_cmds
='true'
9087 # FIXME: Should let the user specify the lib program.
9088 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9089 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9090 enable_shared_with_static_runtimes
=yes
9093 darwin
* | rhapsody
*)
9096 archive_cmds_need_lc
=no
9098 hardcode_automatic
=yes
9099 hardcode_shlibpath_var
=unsupported
9100 whole_archive_flag_spec
=''
9101 link_all_deplibs
=yes
9102 allow_undefined_flag
="$_lt_dar_allow_undefined"
9103 case $cc_basename in
9104 ifort
*) _lt_dar_can_shared
=yes ;;
9105 *) _lt_dar_can_shared
=$GCC ;;
9107 if test "$_lt_dar_can_shared" = "yes"; then
9108 output_verbose_link_cmd
=echo
9109 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9110 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9111 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9112 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9121 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_libdir_flag_spec
='-L$libdir'
9123 hardcode_shlibpath_var
=no
9130 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9131 # support. Future versions do this automatically, but an explicit c++rt0.o
9132 # does not break anything, and helps significantly (at the cost of a little
9135 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9136 hardcode_libdir_flag_spec
='-R$libdir'
9138 hardcode_shlibpath_var
=no
9141 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9143 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9145 hardcode_minus_L
=yes
9146 hardcode_shlibpath_var
=no
9149 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9150 freebsd
* | dragonfly
*)
9151 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9152 hardcode_libdir_flag_spec
='-R$libdir'
9154 hardcode_shlibpath_var
=no
9158 if test "$GCC" = yes; then
9159 archive_cmds
='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9161 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9163 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9164 hardcode_libdir_separator
=:
9167 # hardcode_minus_L: Not really in the search PATH,
9168 # but as the default location of the library.
9169 hardcode_minus_L
=yes
9170 export_dynamic_flag_spec
='${wl}-E'
9174 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9175 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9177 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9179 if test "$with_gnu_ld" = no
; then
9180 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9181 hardcode_libdir_flag_spec_ld
='+b $libdir'
9182 hardcode_libdir_separator
=:
9184 hardcode_direct_absolute
=yes
9185 export_dynamic_flag_spec
='${wl}-E'
9186 # hardcode_minus_L: Not really in the search PATH,
9187 # but as the default location of the library.
9188 hardcode_minus_L
=yes
9193 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9196 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9199 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9202 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9208 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9211 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9214 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9218 if test "$with_gnu_ld" = no
; then
9219 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9220 hardcode_libdir_separator
=:
9225 hardcode_shlibpath_var
=no
9229 hardcode_direct_absolute
=yes
9230 export_dynamic_flag_spec
='${wl}-E'
9232 # hardcode_minus_L: Not really in the search PATH,
9233 # but as the default location of the library.
9234 hardcode_minus_L
=yes
9240 irix5
* | irix6
* | nonstopux
*)
9241 if test "$GCC" = yes; then
9242 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9243 # Try to use the -exported_symbol ld option, if it does not
9244 # work, assume that -exports_file does not work either and
9245 # implicitly export all symbols.
9246 save_LDFLAGS
="$LDFLAGS"
9247 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9248 cat >conftest.
$ac_ext <<_ACEOF
9251 rm -f conftest.
$ac_objext conftest
$ac_exeext
9252 if { (ac_try
="$ac_link"
9254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9258 $as_echo "$ac_try_echo") >&5
9259 (eval "$ac_link") 2>conftest.er1
9261 grep -v '^ *+' conftest.er1 >conftest.err
9263 cat conftest.err >&5
9264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest$ac_exeext && {
9269 test "$cross_compiling" = yes ||
9270 $as_test_x conftest$ac_exeext
9272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9275 $as_echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9281 rm -rf conftest.dSYM
9282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9283 conftest$ac_exeext conftest.$ac_ext
9284 LDFLAGS="$save_LDFLAGS"
9286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9289 archive_cmds_need_lc='no'
9290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291 hardcode_libdir_separator=:
9293 link_all_deplibs=yes
9297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9300 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9302 hardcode_libdir_flag_spec='-R$libdir'
9304 hardcode_shlibpath_var=no
9308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311 hardcode_libdir_separator=:
9312 hardcode_shlibpath_var=no
9319 if test -f /usr/libexec/ld.so; then
9321 hardcode_shlibpath_var=no
9322 hardcode_direct_absolute=yes
9323 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9325 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9326 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9327 export_dynamic_flag_spec='${wl}-E'
9330 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9332 hardcode_libdir_flag_spec='-R$libdir'
9335 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9346 hardcode_libdir_flag_spec='-L$libdir'
9347 hardcode_minus_L=yes
9348 allow_undefined_flag=unsupported
9349 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9350 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9354 if test "$GCC" = yes; then
9355 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9356 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9358 allow_undefined_flag=' -expect_unresolved \*'
9359 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9361 archive_cmds_need_lc='no'
9362 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9363 hardcode_libdir_separator=:
9366 osf4* | osf5*) # as osf3* with the addition of -msym flag
9367 if test "$GCC" = yes; then
9368 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9369 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9372 allow_undefined_flag=' -expect_unresolved \*'
9373 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9374 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9375 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9377 # Both c and cxx compiler support -rpath directly
9378 hardcode_libdir_flag_spec='-rpath $libdir'
9380 archive_cmds_need_lc='no'
9381 hardcode_libdir_separator=:
9385 no_undefined_flag=' -z defs'
9386 if test "$GCC" = yes; then
9388 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9390 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9392 case `$CC -V 2>&1` in
9395 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9397 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9401 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9403 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9407 hardcode_libdir_flag_spec='-R$libdir'
9408 hardcode_shlibpath_var=no
9410 solaris2.[0-5] | solaris2.[0-5].*) ;;
9412 # The compiler driver will combine and reorder linker options,
9413 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9414 # but is careful enough not to reorder.
9415 # Supported since Solaris 2.6 (maybe 2.5.1?)
9416 if test "$GCC" = yes; then
9417 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9419 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9423 link_all_deplibs
=yes
9427 if test "x$host_vendor" = xsequent
; then
9428 # Use $CC to link under sequent, because it throws in some extra .o
9429 # files that make .init and .fini sections work.
9430 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9434 hardcode_libdir_flag_spec
='-L$libdir'
9436 hardcode_minus_L
=yes
9437 hardcode_shlibpath_var
=no
9441 case $host_vendor in
9443 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9444 hardcode_direct
=yes # is this really true???
9447 ## LD is ld it makes a PLAMLIB
9448 ## CC just makes a GrossModule.
9449 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9450 reload_cmds
='$CC -r -o $output$reload_objs'
9454 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9458 runpath_var
='LD_RUN_PATH'
9459 hardcode_shlibpath_var
=no
9463 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_shlibpath_var
=no
9465 export_dynamic_flag_spec
='-Bexport'
9469 if test -d /usr
/nec
; then
9470 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471 hardcode_shlibpath_var
=no
9472 runpath_var
=LD_RUN_PATH
9473 hardcode_runpath_var
=yes
9478 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9479 no_undefined_flag
='${wl}-z,text'
9480 archive_cmds_need_lc
=no
9481 hardcode_shlibpath_var
=no
9482 runpath_var
='LD_RUN_PATH'
9484 if test "$GCC" = yes; then
9485 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9488 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9489 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 sysv5
* | sco3.2v5
* | sco5v6
*)
9494 # Note: We can NOT use -z defs as we might desire, because we do not
9495 # link with -lc, and that would cause any symbols used from libc to
9496 # always be unresolved, which means just about no library would
9497 # ever link correctly. If we're not using GNU ld we use -z text
9498 # though, which does catch some bad symbols but isn't as heavy-handed
9500 no_undefined_flag
='${wl}-z,text'
9501 allow_undefined_flag
='${wl}-z,nodefs'
9502 archive_cmds_need_lc
=no
9503 hardcode_shlibpath_var
=no
9504 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9505 hardcode_libdir_separator
=':'
9506 link_all_deplibs
=yes
9507 export_dynamic_flag_spec
='${wl}-Bexport'
9508 runpath_var
='LD_RUN_PATH'
9510 if test "$GCC" = yes; then
9511 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9515 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_libdir_flag_spec
='-L$libdir'
9522 hardcode_shlibpath_var
=no
9530 if test x
$host_vendor = xsni
; then
9532 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9533 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9539 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9540 $as_echo "$ld_shlibs" >&6; }
9541 test "$ld_shlibs" = no
&& can_build_shared
=no
9543 with_gnu_ld
=$with_gnu_ld
9560 # Do we need to explicitly link libc?
9562 case "x$archive_cmds_need_lc" in
9564 # Assume -lc should be added
9565 archive_cmds_need_lc
=yes
9567 if test "$enable_shared" = yes && test "$GCC" = yes; then
9568 case $archive_cmds in
9570 # FIXME: we may have to deal with multi-command sequences.
9573 # Test whether the compiler implicitly links with -lc since on some
9574 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9575 # to ld, don't add -lc before -lgcc.
9576 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9577 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9579 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>&5
9584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } 2>conftest.err
; then
9588 libobjs
=conftest.
$ac_objext
9590 wl
=$lt_prog_compiler_wl
9591 pic_flag
=$lt_prog_compiler_pic
9597 lt_save_allow_undefined_flag
=$allow_undefined_flag
9598 allow_undefined_flag
=
9599 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9600 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }
9605 archive_cmds_need_lc
=no
9607 archive_cmds_need_lc
=yes
9609 allow_undefined_flag
=$lt_save_allow_undefined_flag
9611 cat conftest.err
1>&5
9614 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9615 $as_echo "$archive_cmds_need_lc" >&6; }
9778 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9779 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9781 if test "$GCC" = yes; then
9783 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9784 *) lt_awk_arg
="/^libraries:/" ;;
9786 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9787 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9788 # if the path contains ";" then we assume it to be the separator
9789 # otherwise default to the standard path separator (i.e. ":") - it is
9790 # assumed that no part of a normal pathname contains ";" but that should
9791 # okay in the real world where ";" in dirpaths is itself problematic.
9792 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9794 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9796 # Ok, now we have the path, separated by spaces, we can step through it
9797 # and add multilib dir if necessary.
9798 lt_tmp_lt_search_path_spec
=
9799 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9800 for lt_sys_path
in $lt_search_path_spec; do
9801 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9802 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9804 test -d "$lt_sys_path" && \
9805 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9808 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9809 BEGIN {RS=" "; FS="/|\n";} {
9812 for (lt_i = NF; lt_i > 0; lt_i--) {
9813 if ($lt_i != "" && $lt_i != ".") {
9814 if ($lt_i == "..") {
9817 if (lt_count == 0) {
9818 lt_foo="/" $lt_i lt_foo;
9825 if (lt_foo != "") { lt_freq[lt_foo]++; }
9826 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9828 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9830 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9833 libname_spec
='lib$name'
9841 shlibpath_overrides_runpath
=unknown
9843 dynamic_linker
="$host_os ld.so"
9844 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9845 need_lib_prefix
=unknown
9846 hardcode_into_libs
=no
9848 # when you set need_version to no, make sure it does not cause -set_version
9849 # flags to be left without arguments
9850 need_version
=unknown
9855 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9856 shlibpath_var
=LIBPATH
9858 # AIX 3 has no versioning support, so we append a major version to the name.
9859 soname_spec
='${libname}${release}${shared_ext}$major'
9866 hardcode_into_libs
=yes
9867 if test "$host_cpu" = ia64
; then
9868 # AIX 5 supports IA64
9869 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9870 shlibpath_var
=LD_LIBRARY_PATH
9872 # With GCC up to 2.95.x, collect2 would create an import file
9873 # for dependence libraries. The import file would start with
9874 # the line `#! .'. This would cause the generated library to
9875 # depend on `.', always an invalid library. This was fixed in
9876 # development snapshots of GCC prior to 3.0.
9878 aix4 | aix4.
[01] | aix4.
[01].
*)
9879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9881 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9889 # soname into executable. Probably we can add versioning support to
9890 # collect2, so additional links can be useful in future.
9891 if test "$aix_use_runtimelinking" = yes; then
9892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9893 # instead of lib<name>.a to let people know that these are not
9894 # typical AIX shared libraries.
9895 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897 # We preserve .a as extension for shared libraries through AIX4.2
9898 # and later when we are not doing run time linking.
9899 library_names_spec
='${libname}${release}.a $libname.a'
9900 soname_spec
='${libname}${release}${shared_ext}$major'
9902 shlibpath_var
=LIBPATH
9909 # Since July 2007 AmigaOS4 officially supports .so libraries.
9910 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9911 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 library_names_spec
='$libname.ixlibrary $libname.a'
9915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9916 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9922 library_names_spec
='${libname}${shared_ext}'
9923 dynamic_linker
="$host_os ld.so"
9924 shlibpath_var
=LIBRARY_PATH
9930 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 soname_spec
='${libname}${release}${shared_ext}$major'
9932 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9933 shlibpath_var
=LD_LIBRARY_PATH
9934 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9935 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9936 # the default ld.so.conf also contains /usr/contrib/lib and
9937 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9938 # libtool to hard-code these into programs
9941 cygwin
* | mingw
* | pw32
* | cegcc
*)
9942 version_type
=windows
9947 case $GCC,$host_os in
9948 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9949 library_names_spec
='$libname.dll.a'
9950 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9951 postinstall_cmds
='base_file=`basename \${file}`~
9952 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9953 dldir=$destdir/`dirname \$dlpath`~
9954 test -d \$dldir || mkdir -p \$dldir~
9955 $install_prog $dir/$dlname \$dldir/$dlname~
9956 chmod a+x \$dldir/$dlname~
9957 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9958 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9960 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9961 dlpath=$dir/\$dldll~
9963 shlibpath_overrides_runpath
=yes
9967 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9968 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9969 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9972 # MinGW DLLs use traditional 'lib' prefix
9973 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9975 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9976 # It is most probably a Windows format PATH printed by
9977 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9978 # path with ; separators, and with drive letters. We can handle the
9979 # drive letters (cygwin fileutils understands them), so leave them,
9980 # especially as we might pass files found there to a mingw objdump,
9981 # which wouldn't understand a cygwinified path. Ahh.
9982 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9984 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9988 # pw32 DLLs use 'pw' prefix rather than 'lib'
9989 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9995 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9998 dynamic_linker
='Win32 ld.exe'
9999 # FIXME: first we should search . and the directory the executable is in
10003 darwin
* | rhapsody
*)
10004 dynamic_linker
="$host_os dyld"
10005 version_type
=darwin
10008 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10009 soname_spec
='${libname}${release}${major}$shared_ext'
10010 shlibpath_overrides_runpath
=yes
10011 shlibpath_var
=DYLD_LIBRARY_PATH
10012 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10014 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10015 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10023 soname_spec
='${libname}${release}${shared_ext}$major'
10024 shlibpath_var
=LD_LIBRARY_PATH
10031 freebsd
* | dragonfly
*)
10032 # DragonFly does not have aout. When/if they implement a new
10033 # versioning mechanism, adjust this.
10034 if test -x /usr
/bin
/objformat
; then
10035 objformat
=`/usr/bin/objformat`
10038 freebsd
[123]*) objformat
=aout
;;
10039 *) objformat
=elf
;;
10042 version_type
=freebsd-
$objformat
10043 case $version_type in
10045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10050 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10054 shlibpath_var
=LD_LIBRARY_PATH
10057 shlibpath_overrides_runpath
=yes
10059 freebsd3.
[01]* | freebsdelf3.
[01]*)
10060 shlibpath_overrides_runpath
=yes
10061 hardcode_into_libs
=yes
10063 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10064 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10065 shlibpath_overrides_runpath
=no
10066 hardcode_into_libs
=yes
10068 *) # from 4.6 on, and DragonFly
10069 shlibpath_overrides_runpath
=yes
10070 hardcode_into_libs
=yes
10079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10080 soname_spec
='${libname}${release}${shared_ext}$major'
10081 shlibpath_var
=LD_LIBRARY_PATH
10082 hardcode_into_libs
=yes
10085 hpux9
* | hpux10
* | hpux11
*)
10086 # Give a soname corresponding to the major version so that dld.sl refuses to
10087 # link against other versions.
10094 hardcode_into_libs
=yes
10095 dynamic_linker
="$host_os dld.so"
10096 shlibpath_var
=LD_LIBRARY_PATH
10097 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 soname_spec
='${libname}${release}${shared_ext}$major'
10100 if test "X$HPUX_IA64_MODE" = X32
; then
10101 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10103 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10105 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10109 hardcode_into_libs
=yes
10110 dynamic_linker
="$host_os dld.sl"
10111 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10112 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10113 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 soname_spec
='${libname}${release}${shared_ext}$major'
10115 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10116 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10120 dynamic_linker
="$host_os dld.sl"
10121 shlibpath_var
=SHLIB_PATH
10122 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10123 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 soname_spec
='${libname}${release}${shared_ext}$major'
10127 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10128 postinstall_cmds
='chmod 555 $lib'
10135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10136 soname_spec
='${libname}${release}${shared_ext}$major'
10137 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10138 shlibpath_var
=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath
=no
10140 hardcode_into_libs
=yes
10143 irix5
* | irix6
* | nonstopux
*)
10145 nonstopux
*) version_type
=nonstopux
;;
10147 if test "$lt_cv_prog_gnu_ld" = yes; then
10155 soname_spec
='${libname}${release}${shared_ext}$major'
10156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10158 irix5
* | nonstopux
*)
10159 libsuff
= shlibsuff
=
10162 case $LD in # libtool.m4 will add one of these switches to LD
10163 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10164 libsuff
= shlibsuff
= libmagic
=32-bit;;
10165 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10166 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10167 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10168 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10169 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10173 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10174 shlibpath_overrides_runpath
=no
10175 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10176 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10177 hardcode_into_libs
=yes
10180 # No shared lib support for Linux oldld, aout, or coff.
10181 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10185 # This must be Linux ELF.
10186 linux
* | k
*bsd
*-gnu)
10190 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec
='${libname}${release}${shared_ext}$major'
10192 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10193 shlibpath_var
=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath
=no
10195 # Some binutils ld are patched to set DT_RUNPATH
10196 save_LDFLAGS
=$LDFLAGS
10197 save_libdir
=$libdir
10198 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10199 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10200 cat >conftest.
$ac_ext <<_ACEOF
10203 cat confdefs.h
>>conftest.
$ac_ext
10204 cat >>conftest.
$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10215 rm -f conftest.
$ac_objext conftest
$ac_exeext
10216 if { (ac_try
="$ac_link"
10217 case "(($ac_try" in
10218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10219 *) ac_try_echo=$ac_try;;
10221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10222 $as_echo "$ac_try_echo") >&5
10223 (eval "$ac_link") 2>conftest.er1
10225 grep -v '^ *+' conftest.er1 >conftest.err
10227 cat conftest.err >&5
10228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest$ac_exeext && {
10233 test "$cross_compiling" = yes ||
10234 $as_test_x conftest$ac_exeext
10236 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10237 shlibpath_overrides_runpath=yes
10241 $as_echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10247 rm -rf conftest.dSYM
10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
10250 LDFLAGS=$save_LDFLAGS
10251 libdir=$save_libdir
10253 # This implies no fast_install, which is unacceptable.
10254 # Some rework will be needed to allow for fast_install
10255 # before this can be enabled.
10256 hardcode_into_libs=yes
10258 # Add ABI-specific directories to the system library path.
10259 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10261 # Append ld.so.conf contents to the search path
10262 if test -f /etc/ld.so.conf; then
10263 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc
/ld.so.conf |
$SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' |
tr '\n' ' '`
10264 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10267 # We used to test for /lib/ld.so.1 and disable shared libraries on
10268 # powerpc, because MkLinux only supported shared libraries with the
10269 # GNU dynamic linker. Since this was broken with cross compilers,
10270 # most powerpc-linux boxes support dynamic linking these days and
10271 # people can always --disable-shared, the test was removed, and we
10272 # assume the GNU/Linux dynamic linker is in use.
10273 dynamic_linker='GNU/Linux ld.so'
10280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10283 dynamic_linker='NetBSD (a.out) ld.so'
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 dynamic_linker='NetBSD ld.elf_so'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10291 hardcode_into_libs=yes
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=yes
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=no
10309 hardcode_into_libs=yes
10310 dynamic_linker='ldqnx.so'
10315 sys_lib_dlsearch_path_spec="/usr/lib"
10317 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10319 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10320 *) need_version=no ;;
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10327 openbsd2.[89] | openbsd2.[89].*)
10328 shlibpath_overrides_runpath=no
10331 shlibpath_overrides_runpath=yes
10335 shlibpath_overrides_runpath=yes
10340 libname_spec='$name'
10343 library_names_spec='$libname${shared_ext} $libname.a'
10344 dynamic_linker='OS/2 ld.exe'
10345 shlibpath_var=LIBPATH
10348 osf3* | osf4* | osf5*)
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10356 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10371 hardcode_into_libs=yes
10372 # ldd complains unless libraries are executable
10373 postinstall_cmds='chmod +x $lib'
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10379 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=yes
10382 if test "$with_gnu_ld" = yes; then
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 case $host_vendor in
10395 shlibpath_overrides_runpath=no
10397 runpath_var=LD_RUN_PATH
10405 shlibpath_overrides_runpath=no
10406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10412 if test -d /usr/nec ;then
10414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10415 soname_spec='$libname${shared_ext}.$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10421 version_type=freebsd-elf
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=yes
10428 hardcode_into_libs=yes
10429 if test "$with_gnu_ld" = yes; then
10430 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10432 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10435 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10439 sys_lib_dlsearch_path_spec='/usr/lib'
10443 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=no
10450 hardcode_into_libs=yes
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 shlibpath_var=LD_LIBRARY_PATH
10464 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10465 $as_echo "$dynamic_linker" >&6; }
10466 test "$dynamic_linker" = no && can_build_shared=no
10468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10469 if test "$GCC" = yes; then
10470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10473 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10474 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10476 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10477 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10566 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10567 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10569 if test -n "$hardcode_libdir_flag_spec" ||
10570 test -n "$runpath_var" ||
10571 test "X$hardcode_automatic" = "Xyes" ; then
10573 # We can hardcode non-existent directories.
10574 if test "$hardcode_direct" != no &&
10575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10576 # have to relink, otherwise we might link with an installed library
10577 # when we should be linking with a yet-to-be-installed one
10578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10579 test "$hardcode_minus_L" != no; then
10580 # Linking always hardcodes the temporary library directory.
10581 hardcode_action=relink
10583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10584 hardcode_action=immediate
10587 # We cannot hardcode anything, or else we can only hardcode existing
10589 hardcode_action=unsupported
10591 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10592 $as_echo "$hardcode_action" >&6; }
10594 if test "$hardcode_action" = relink ||
10595 test "$inherit_rpath" = yes; then
10596 # Fast installation is not supported
10597 enable_fast_install=no
10598 elif test "$shlibpath_overrides_runpath" = yes ||
10599 test "$enable_shared" = no; then
10600 # Fast installation is not necessary
10601 enable_fast_install=needless
10609 if test "x$enable_dlopen" != xyes; then
10610 enable_dlopen=unknown
10611 enable_dlopen_self=unknown
10612 enable_dlopen_self_static=unknown
10619 lt_cv_dlopen="load_add_on"
10621 lt_cv_dlopen_self=yes
10624 mingw* | pw32* | cegcc*)
10625 lt_cv_dlopen="LoadLibrary"
10630 lt_cv_dlopen="dlopen"
10635 # if libdl is installed we need to link against it
10636 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10639 $as_echo_n "(cached) " >&6
10641 ac_check_lib_save_LIBS=$LIBS
10643 cat >conftest.$ac_ext <<_ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10650 /* Override any GCC internal prototype to avoid an error.
10651 Use char because int might match the return type of a GCC
10652 builtin and then its argument prototype would still apply. */
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (ac_try="$ac_link"
10667 case "(($ac_try" in
10668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10669 *) ac_try_echo
=$ac_try;;
10671 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10672 $as_echo "$ac_try_echo") >&5
10673 (eval "$ac_link") 2>conftest.er1
10675 grep -v '^ *+' conftest.er1
>conftest.err
10677 cat conftest.err
>&5
10678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && {
10680 test -z "$ac_c_werror_flag" ||
10681 test ! -s conftest.err
10682 } && test -s conftest
$ac_exeext && {
10683 test "$cross_compiling" = yes ||
10684 $as_test_x conftest
$ac_exeext
10686 ac_cv_lib_dl_dlopen
=yes
10688 $as_echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.
$ac_ext >&5
10691 ac_cv_lib_dl_dlopen
=no
10694 rm -rf conftest.dSYM
10695 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10696 conftest
$ac_exeext conftest.
$ac_ext
10697 LIBS
=$ac_check_lib_save_LIBS
10699 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10701 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10702 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10705 lt_cv_dlopen
="dyld"
10707 lt_cv_dlopen_self
=yes
10714 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10715 $as_echo_n "checking for shl_load... " >&6; }
10716 if test "${ac_cv_func_shl_load+set}" = set; then
10717 $as_echo_n "(cached) " >&6
10719 cat >conftest.
$ac_ext <<_ACEOF
10722 cat confdefs.h
>>conftest.
$ac_ext
10723 cat >>conftest.
$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10727 #define shl_load innocuous_shl_load
10729 /* System header to define __stub macros and hopefully few prototypes,
10730 which can conflict with char shl_load (); below.
10731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10732 <limits.h> exists even on freestanding compilers. */
10735 # include <limits.h>
10737 # include <assert.h>
10742 /* Override any GCC internal prototype to avoid an error.
10743 Use char because int might match the return type of a GCC
10744 builtin and then its argument prototype would still apply. */
10749 /* The GNU C library defines this for functions which it implements
10750 to always fail with ENOSYS. Some functions are actually named
10751 something starting with __ and the normal name is an alias. */
10752 #if defined __stub_shl_load || defined __stub___shl_load
10759 return shl_load ();
10764 rm -f conftest.
$ac_objext conftest
$ac_exeext
10765 if { (ac_try
="$ac_link"
10766 case "(($ac_try" in
10767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10771 $as_echo "$ac_try_echo") >&5
10772 (eval "$ac_link") 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && {
10779 test -z "$ac_c_werror_flag" ||
10780 test ! -s conftest.err
10781 } && test -s conftest$ac_exeext && {
10782 test "$cross_compiling" = yes ||
10783 $as_test_x conftest$ac_exeext
10785 ac_cv_func_shl_load=yes
10787 $as_echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10790 ac_cv_func_shl_load=no
10793 rm -rf conftest.dSYM
10794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10795 conftest$ac_exeext conftest.$ac_ext
10797 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10798 $as_echo "$ac_cv_func_shl_load" >&6; }
10799 if test "x$ac_cv_func_shl_load" = x""yes; then
10800 lt_cv_dlopen="shl_load"
10802 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10803 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10804 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10805 $as_echo_n "(cached) " >&6
10807 ac_check_lib_save_LIBS=$LIBS
10809 cat >conftest.$ac_ext <<_ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10816 /* Override any GCC internal prototype to avoid an error.
10817 Use char because int might match the return type of a GCC
10818 builtin and then its argument prototype would still apply. */
10826 return shl_load ();
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (ac_try="$ac_link"
10833 case "(($ac_try" in
10834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10835 *) ac_try_echo
=$ac_try;;
10837 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10838 $as_echo "$ac_try_echo") >&5
10839 (eval "$ac_link") 2>conftest.er1
10841 grep -v '^ *+' conftest.er1
>conftest.err
10843 cat conftest.err
>&5
10844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } && {
10846 test -z "$ac_c_werror_flag" ||
10847 test ! -s conftest.err
10848 } && test -s conftest
$ac_exeext && {
10849 test "$cross_compiling" = yes ||
10850 $as_test_x conftest
$ac_exeext
10852 ac_cv_lib_dld_shl_load
=yes
10854 $as_echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.
$ac_ext >&5
10857 ac_cv_lib_dld_shl_load
=no
10860 rm -rf conftest.dSYM
10861 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10862 conftest
$ac_exeext conftest.
$ac_ext
10863 LIBS
=$ac_check_lib_save_LIBS
10865 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10866 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10867 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10868 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10870 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10871 $as_echo_n "checking for dlopen... " >&6; }
10872 if test "${ac_cv_func_dlopen+set}" = set; then
10873 $as_echo_n "(cached) " >&6
10875 cat >conftest.
$ac_ext <<_ACEOF
10878 cat confdefs.h
>>conftest.
$ac_ext
10879 cat >>conftest.
$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10883 #define dlopen innocuous_dlopen
10885 /* System header to define __stub macros and hopefully few prototypes,
10886 which can conflict with char dlopen (); below.
10887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10888 <limits.h> exists even on freestanding compilers. */
10891 # include <limits.h>
10893 # include <assert.h>
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10905 /* The GNU C library defines this for functions which it implements
10906 to always fail with ENOSYS. Some functions are actually named
10907 something starting with __ and the normal name is an alias. */
10908 #if defined __stub_dlopen || defined __stub___dlopen
10920 rm -f conftest.
$ac_objext conftest
$ac_exeext
10921 if { (ac_try
="$ac_link"
10922 case "(($ac_try" in
10923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10927 $as_echo "$ac_try_echo") >&5
10928 (eval "$ac_link") 2>conftest.er1
10930 grep -v '^ *+' conftest.er1 >conftest.err
10932 cat conftest.err >&5
10933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && {
10935 test -z "$ac_c_werror_flag" ||
10936 test ! -s conftest.err
10937 } && test -s conftest$ac_exeext && {
10938 test "$cross_compiling" = yes ||
10939 $as_test_x conftest$ac_exeext
10941 ac_cv_func_dlopen=yes
10943 $as_echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10946 ac_cv_func_dlopen=no
10949 rm -rf conftest.dSYM
10950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10951 conftest$ac_exeext conftest.$ac_ext
10953 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10954 $as_echo "$ac_cv_func_dlopen" >&6; }
10955 if test "x$ac_cv_func_dlopen" = x""yes; then
10956 lt_cv_dlopen="dlopen"
10958 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10959 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10960 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10961 $as_echo_n "(cached) " >&6
10963 ac_check_lib_save_LIBS=$LIBS
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (ac_try="$ac_link"
10989 case "(($ac_try" in
10990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10991 *) ac_try_echo
=$ac_try;;
10993 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10994 $as_echo "$ac_try_echo") >&5
10995 (eval "$ac_link") 2>conftest.er1
10997 grep -v '^ *+' conftest.er1
>conftest.err
10999 cat conftest.err
>&5
11000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } && {
11002 test -z "$ac_c_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest
$ac_exeext && {
11005 test "$cross_compiling" = yes ||
11006 $as_test_x conftest
$ac_exeext
11008 ac_cv_lib_dl_dlopen
=yes
11010 $as_echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.
$ac_ext >&5
11013 ac_cv_lib_dl_dlopen
=no
11016 rm -rf conftest.dSYM
11017 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11018 conftest
$ac_exeext conftest.
$ac_ext
11019 LIBS
=$ac_check_lib_save_LIBS
11021 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11022 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11023 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
11024 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11026 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11027 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11028 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11029 $as_echo_n "(cached) " >&6
11031 ac_check_lib_save_LIBS
=$LIBS
11032 LIBS
="-lsvld $LIBS"
11033 cat >conftest.
$ac_ext <<_ACEOF
11036 cat confdefs.h
>>conftest.
$ac_ext
11037 cat >>conftest.
$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11040 /* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
11055 rm -f conftest.
$ac_objext conftest
$ac_exeext
11056 if { (ac_try
="$ac_link"
11057 case "(($ac_try" in
11058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11062 $as_echo "$ac_try_echo") >&5
11063 (eval "$ac_link") 2>conftest.er1
11065 grep -v '^ *+' conftest.er1 >conftest.err
11067 cat conftest.err >&5
11068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && {
11070 test -z "$ac_c_werror_flag" ||
11071 test ! -s conftest.err
11072 } && test -s conftest$ac_exeext && {
11073 test "$cross_compiling" = yes ||
11074 $as_test_x conftest$ac_exeext
11076 ac_cv_lib_svld_dlopen=yes
11078 $as_echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11081 ac_cv_lib_svld_dlopen=no
11084 rm -rf conftest.dSYM
11085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11086 conftest$ac_exeext conftest.$ac_ext
11087 LIBS=$ac_check_lib_save_LIBS
11089 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11090 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11091 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11092 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11094 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11095 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11096 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11097 $as_echo_n "(cached) " >&6
11099 ac_check_lib_save_LIBS=$LIBS
11101 cat >conftest.$ac_ext <<_ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11108 /* Override any GCC internal prototype to avoid an error.
11109 Use char because int might match the return type of a GCC
11110 builtin and then its argument prototype would still apply. */
11118 return dld_link ();
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (ac_try="$ac_link"
11125 case "(($ac_try" in
11126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11127 *) ac_try_echo
=$ac_try;;
11129 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11130 $as_echo "$ac_try_echo") >&5
11131 (eval "$ac_link") 2>conftest.er1
11133 grep -v '^ *+' conftest.er1
>conftest.err
11135 cat conftest.err
>&5
11136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } && {
11138 test -z "$ac_c_werror_flag" ||
11139 test ! -s conftest.err
11140 } && test -s conftest
$ac_exeext && {
11141 test "$cross_compiling" = yes ||
11142 $as_test_x conftest
$ac_exeext
11144 ac_cv_lib_dld_dld_link
=yes
11146 $as_echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.
$ac_ext >&5
11149 ac_cv_lib_dld_dld_link
=no
11152 rm -rf conftest.dSYM
11153 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11154 conftest
$ac_exeext conftest.
$ac_ext
11155 LIBS
=$ac_check_lib_save_LIBS
11157 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11158 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11159 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11160 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11181 if test "x$lt_cv_dlopen" != xno
; then
11187 case $lt_cv_dlopen in
11189 save_CPPFLAGS
="$CPPFLAGS"
11190 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11192 save_LDFLAGS
="$LDFLAGS"
11193 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11196 LIBS
="$lt_cv_dlopen_libs $LIBS"
11198 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11199 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11200 if test "${lt_cv_dlopen_self+set}" = set; then
11201 $as_echo_n "(cached) " >&6
11203 if test "$cross_compiling" = yes; then :
11204 lt_cv_dlopen_self
=cross
11206 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11207 lt_status
=$lt_dlunknown
11208 cat > conftest.
$ac_ext <<_LT_EOF
11209 #line 11209 "configure"
11210 #include "confdefs.h"
11219 # define LT_DLGLOBAL RTLD_GLOBAL
11222 # define LT_DLGLOBAL DL_GLOBAL
11224 # define LT_DLGLOBAL 0
11228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11229 find out it does not work in some platform. */
11230 #ifndef LT_DLLAZY_OR_NOW
11232 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11235 # define LT_DLLAZY_OR_NOW DL_LAZY
11238 # define LT_DLLAZY_OR_NOW RTLD_NOW
11241 # define LT_DLLAZY_OR_NOW DL_NOW
11243 # define LT_DLLAZY_OR_NOW 0
11250 void fnord() { int i=42;}
11253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11254 int status = $lt_dlunknown;
11258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11259 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11260 /* dlclose (self); */
11268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11269 (eval $ac_link) 2>&5
11271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11273 (.
/conftest
; exit; ) >&5 2>/dev
/null
11275 case x
$lt_status in
11276 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11277 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11278 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11281 # compilation failed
11282 lt_cv_dlopen_self
=no
11289 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11290 $as_echo "$lt_cv_dlopen_self" >&6; }
11292 if test "x$lt_cv_dlopen_self" = xyes
; then
11293 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11294 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11295 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11296 if test "${lt_cv_dlopen_self_static+set}" = set; then
11297 $as_echo_n "(cached) " >&6
11299 if test "$cross_compiling" = yes; then :
11300 lt_cv_dlopen_self_static
=cross
11302 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11303 lt_status
=$lt_dlunknown
11304 cat > conftest.
$ac_ext <<_LT_EOF
11305 #line 11305 "configure"
11306 #include "confdefs.h"
11315 # define LT_DLGLOBAL RTLD_GLOBAL
11318 # define LT_DLGLOBAL DL_GLOBAL
11320 # define LT_DLGLOBAL 0
11324 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11325 find out it does not work in some platform. */
11326 #ifndef LT_DLLAZY_OR_NOW
11328 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11331 # define LT_DLLAZY_OR_NOW DL_LAZY
11334 # define LT_DLLAZY_OR_NOW RTLD_NOW
11337 # define LT_DLLAZY_OR_NOW DL_NOW
11339 # define LT_DLLAZY_OR_NOW 0
11346 void fnord() { int i=42;}
11349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11350 int status = $lt_dlunknown;
11354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11356 /* dlclose (self); */
11364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11365 (eval $ac_link) 2>&5
11367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11369 (.
/conftest
; exit; ) >&5 2>/dev
/null
11371 case x
$lt_status in
11372 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11373 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11374 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11377 # compilation failed
11378 lt_cv_dlopen_self_static
=no
11385 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11386 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11389 CPPFLAGS
="$save_CPPFLAGS"
11390 LDFLAGS
="$save_LDFLAGS"
11395 case $lt_cv_dlopen_self in
11396 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11397 *) enable_dlopen_self
=unknown
;;
11400 case $lt_cv_dlopen_self_static in
11401 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11402 *) enable_dlopen_self_static
=unknown
;;
11424 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11425 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11426 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11427 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11428 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11429 { $as_echo "$as_me:$LINENO: result: yes" >&5
11430 $as_echo "yes" >&6; }
11432 # FIXME - insert some real tests, host_os isn't really good enough
11435 if test -n "$STRIP" ; then
11436 striplib
="$STRIP -x"
11437 old_striplib
="$STRIP -S"
11438 { $as_echo "$as_me:$LINENO: result: yes" >&5
11439 $as_echo "yes" >&6; }
11441 { $as_echo "$as_me:$LINENO: result: no" >&5
11442 $as_echo "no" >&6; }
11446 { $as_echo "$as_me:$LINENO: result: no" >&5
11447 $as_echo "no" >&6; }
11463 # Report which library types will actually be built
11464 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11465 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11466 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11467 $as_echo "$can_build_shared" >&6; }
11469 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11470 $as_echo_n "checking whether to build shared libraries... " >&6; }
11471 test "$can_build_shared" = "no" && enable_shared
=no
11473 # On AIX, shared libraries and static libraries use the same namespace, and
11474 # are all built from PIC.
11477 test "$enable_shared" = yes && enable_static
=no
11478 if test -n "$RANLIB"; then
11479 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11480 postinstall_cmds
='$RANLIB $lib'
11485 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11486 test "$enable_shared" = yes && enable_static
=no
11490 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11491 $as_echo "$enable_shared" >&6; }
11493 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11494 $as_echo_n "checking whether to build static libraries... " >&6; }
11495 # Make sure either enable_shared or enable_static is yes.
11496 test "$enable_shared" = yes || enable_static
=yes
11497 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11498 $as_echo "$enable_static" >&6; }
11505 ac_cpp
='$CPP $CPPFLAGS'
11506 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11507 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11508 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11524 ac_config_commands
="$ac_config_commands libtool"
11529 # Only expand once:
11532 # By default we simply use the C compiler to build assembly code.
11534 test "${CCAS+set}" = set || CCAS
=$CC
11535 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11539 depcc
="$CCAS" am_compiler_list
=
11541 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11542 $as_echo_n "checking dependency style of $depcc... " >&6; }
11543 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11544 $as_echo_n "(cached) " >&6
11546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11547 # We make a subdir and do the tests there. Otherwise we can end up
11548 # making bogus files that we don't know about and never remove. For
11549 # instance it was reported that on HP-UX the gcc test will end up
11550 # making a dummy file named `D' -- because `-MD' means `put the output
11553 # Copy depcomp to subdir because otherwise we won't find it if we're
11554 # using a relative directory.
11555 cp "$am_depcomp" conftest.dir
11557 # We will build objects and dependencies in a subdirectory because
11558 # it helps to detect inapplicable dependency modes. For instance
11559 # both Tru64's cc and ICC support -MD to output dependencies as a
11560 # side effect of compilation, but ICC will put the dependencies in
11561 # the current directory while Tru64 will put them in the object
11565 am_cv_CCAS_dependencies_compiler_type
=none
11566 if test "$am_compiler_list" = ""; then
11567 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11569 am__universal
=false
11572 for depmode
in $am_compiler_list; do
11573 # Setup a source with many dependencies, because some compilers
11574 # like to wrap large dependency lists on column 80 (with \), and
11575 # we should not choose a depcomp mode which is confused by this.
11577 # We need to recreate these files for each test, as the compiler may
11578 # overwrite some of them when testing with obscure command lines.
11579 # This happens at least with the AIX C compiler.
11581 for i
in 1 2 3 4 5 6; do
11582 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11583 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11584 # Solaris 8's {/usr,}/bin/sh.
11585 touch sub
/conftst
$i.h
11587 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11589 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11590 # mode. It turns out that the SunPro C++ compiler does not properly
11591 # handle `-M -o', and we need to detect this. Also, some Intel
11592 # versions had trouble with output in subdirs
11593 am__obj
=sub
/conftest.
${OBJEXT-o}
11594 am__minus_obj
="-o $am__obj"
11597 # This depmode causes a compiler race in universal mode.
11598 test "$am__universal" = false ||
continue
11601 # after this tag, mechanisms are not by side-effect, so they'll
11602 # only be used when explicitly requested
11603 if test "x$enable_dependency_tracking" = xyes
; then
11609 msvisualcpp | msvcmsys
)
11610 # This compiler won't grok `-c -o', but also, the minuso test has
11611 # not run yet. These depmodes are late enough in the game, and
11612 # so weak that their functioning should not be impacted.
11613 am__obj
=conftest.
${OBJEXT-o}
11618 if depmode
=$depmode \
11619 source=sub
/conftest.c object
=$am__obj \
11620 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11621 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11622 >/dev
/null
2>conftest.err
&&
11623 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11624 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11625 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11626 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11627 # icc doesn't choke on unknown options, it will just issue warnings
11628 # or remarks (even with -Werror). So we grep stderr for any message
11629 # that says an option was ignored or not supported.
11630 # When given -MP, icc 7.0 and 7.1 complain thusly:
11631 # icc: Command line warning: ignoring option '-M'; no argument required
11632 # The diagnosis changed in icc 8.0:
11633 # icc: Command line remark: option '-MP' not supported
11634 if (grep 'ignoring option' conftest.err ||
11635 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11636 am_cv_CCAS_dependencies_compiler_type
=$depmode
11643 rm -rf conftest.dir
11645 am_cv_CCAS_dependencies_compiler_type
=none
11649 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11650 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11651 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11654 test "x$enable_dependency_tracking" != xno \
11655 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11656 am__fastdepCCAS_TRUE
=
11657 am__fastdepCCAS_FALSE
='#'
11659 am__fastdepCCAS_TRUE
='#'
11660 am__fastdepCCAS_FALSE
=
11666 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11667 $as_echo_n "checking zfs author... " >&6; }
11668 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11669 $as_echo "$ZFS_META_AUTHOR" >&6; }
11671 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11672 $as_echo_n "checking zfs license... " >&6; }
11673 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11674 $as_echo "$ZFS_META_LICENSE" >&6; }
11678 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11679 $as_echo_n "checking linux distribution... " >&6; }
11680 if test -f /etc
/toss-release
; then
11682 elif test -f /etc
/fedora-release
; then
11684 elif test -f /etc
/redhat-release
; then
11686 elif test -f /etc
/gentoo-release
; then
11688 elif test -f /etc
/arch-release
; then
11690 elif test -f /etc
/SuSE-release
; then
11692 elif test -f /etc
/slackware-version
; then
11694 elif test -f /etc
/lunar.release
; then
11696 elif test -f /etc
/lsb-release
; then
11698 elif test -f /etc
/debian_version
; then
11703 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11704 $as_echo "$VENDOR" >&6; }
11707 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11708 $as_echo_n "checking default package type... " >&6; }
11710 toss
) DEFAULT_PACKAGE
=rpm
;;
11711 redhat
) DEFAULT_PACKAGE
=rpm
;;
11712 fedora
) DEFAULT_PACKAGE
=rpm
;;
11713 gentoo
) DEFAULT_PACKAGE
=tgz
;;
11714 arch
) DEFAULT_PACKAGE
=arch
;;
11715 sles
) DEFAULT_PACKAGE
=rpm
;;
11716 slackware
) DEFAULT_PACKAGE
=tgz
;;
11717 lunar
) DEFAULT_PACKAGE
=tgz
;;
11718 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11719 debian
) DEFAULT_PACKAGE
=deb
;;
11720 *) DEFAULT_PACKAGE
=rpm
;;
11723 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11724 $as_echo "$DEFAULT_PACKAGE" >&6; }
11727 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11728 $as_echo_n "checking default init directory... " >&6; }
11730 arch
) DEFAULT_INIT_DIR
=$sysconfdir/rc.d
;;
11731 *) DEFAULT_INIT_DIR
=$sysconfdir/init.d
;;
11734 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11735 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11738 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11739 $as_echo_n "checking default init script type... " >&6; }
11741 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
11742 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
11743 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
11744 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
11745 arch
) DEFAULT_INIT_SCRIPT
=arch
;;
11746 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
11747 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
11748 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
11749 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
11750 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
11751 *) DEFAULT_INIT_SCRIPT
=lsb
;;
11754 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11755 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11762 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11763 $as_echo_n "checking whether $RPM is available... " >&6; }
11764 if tmp
=$
($RPM --version 2>/dev
/null
); then
11766 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11768 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11769 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11774 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11775 $as_echo "$HAVE_RPM" >&6; }
11780 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11781 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11782 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then
11784 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11786 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11787 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11792 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11793 $as_echo "$HAVE_RPMBUILD" >&6; }
11808 DPKGBUILD
=dpkg-buildpackage
11810 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11811 $as_echo_n "checking whether $DPKG is available... " >&6; }
11812 if tmp
=$
($DPKG --version 2>/dev
/null
); then
11814 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11816 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11817 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11822 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11823 $as_echo "$HAVE_DPKG" >&6; }
11828 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11829 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11830 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then
11832 DPKGBUILD_VERSION
=$
(echo $tmp | \
11833 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11835 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11836 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11841 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11842 $as_echo "$HAVE_DPKGBUILD" >&6; }
11858 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11859 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11860 if tmp
=$
($ALIEN --version 2>/dev
/null
); then
11862 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11864 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11865 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11870 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11871 $as_echo "$HAVE_ALIEN" >&6; }
11881 if test "$VENDOR" = "arch"; then
11886 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11887 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11888 tmp
=$
($PACMAN --version 2>/dev
/null
)
11889 if test -n "$tmp"; then
11891 PACMAN_VERSION
=$
(echo $tmp |
11892 $AWK '/Pacman/ { print $3 }' |
11895 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11896 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11901 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11902 $as_echo "$HAVE_PACMAN" >&6; }
11907 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11908 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11909 tmp
=$
($MAKEPKG --version 2>/dev
/null
)
11910 if test -n "$tmp"; then
11912 MAKEPKG_VERSION
=$
(echo $tmp |
$AWK '/makepkg/ { print $3 }')
11914 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11915 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11920 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11921 $as_echo "$HAVE_MAKEPKG" >&6; }
11938 TARGET_ASM_DIR
=asm-generic
11943 # Check whether --with-config was given.
11944 if test "${with_config+set}" = set; then
11945 withval
=$with_config; ZFS_CONFIG
="$withval"
11949 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11950 $as_echo_n "checking zfs config... " >&6; }
11951 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11952 $as_echo "$ZFS_CONFIG" >&6; };
11957 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11958 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11960 saved_flags
="$CFLAGS"
11961 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
11963 if test "$cross_compiling" = yes; then
11964 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11966 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11967 See \`config.log' for more details." >&5
11968 $as_echo "$as_me: error: cannot run test program while cross compiling
11969 See \`config.log' for more details." >&2;}
11970 { (exit 1); exit 1; }; }; }
11972 cat >conftest.
$ac_ext <<_ACEOF
11975 cat confdefs.h
>>conftest.
$ac_ext
11976 cat >>conftest.
$ac_ext <<_ACEOF
11977 /* end confdefs.h. */
11987 rm -f conftest
$ac_exeext
11988 if { (ac_try
="$ac_link"
11989 case "(($ac_try" in
11990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11994 $as_echo "$ac_try_echo") >&5
11995 (eval "$ac_link") 2>&5
11997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11999 { (case "(($ac_try" in
12000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12001 *) ac_try_echo
=$ac_try;;
12003 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12004 $as_echo "$ac_try_echo") >&5
12005 (eval "$ac_try") 2>&5
12007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12010 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12011 { $as_echo "$as_me:$LINENO: result: yes" >&5
12012 $as_echo "yes" >&6; }
12015 $as_echo "$as_me: program exited with status $ac_status" >&5
12016 $as_echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.
$ac_ext >&5
12019 ( exit $ac_status )
12021 NO_UNUSED_BUT_SET_VARIABLE
=
12022 { $as_echo "$as_me:$LINENO: result: no" >&5
12023 $as_echo "no" >&6; }
12026 rm -rf conftest.dSYM
12027 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12032 CFLAGS
="$saved_flags"
12037 case "$ZFS_CONFIG" in
12041 # Check whether --with-linux was given.
12042 if test "${with_linux+set}" = set; then
12043 withval
=$with_linux; kernelsrc
="$withval"
12048 # Check whether --with-linux-obj was given.
12049 if test "${with_linux_obj+set}" = set; then
12050 withval
=$with_linux_obj; kernelbuild
="$withval"
12054 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12055 $as_echo_n "checking kernel source directory... " >&6; }
12056 if test -z "$kernelsrc"; then
12058 if test -e "/lib/modules/$(uname -r)/source"; then
12060 headersdir
="/lib/modules/$(uname -r)/source"
12061 sourcelink
=$
(readlink
-f "$headersdir")
12063 elif test -e "/lib/modules/$(uname -r)/build"; then
12065 headersdir
="/lib/modules/$(uname -r)/build"
12066 sourcelink
=$
(readlink
-f "$headersdir")
12070 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
12072 2>/dev
/null |
grep -v obj |
tail -1)
12077 if test -n "$sourcelink" && test -e ${sourcelink}; then
12079 kernelsrc
=`readlink -f ${sourcelink}`
12083 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12084 $as_echo "Not found" >&6; }
12085 { { $as_echo "$as_me:$LINENO: error:
12086 *** Please make sure the kernel devel package for your distribution
12087 *** is installed then try again. If that fails you can specify the
12088 *** location of the kernel source with the '--with-linux=PATH' option." >&5
12089 $as_echo "$as_me: error:
12090 *** Please make sure the kernel devel package for your distribution
12091 *** is installed then try again. If that fails you can specify the
12092 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12093 { (exit 1); exit 1; }; }
12100 if test "$kernelsrc" = "NONE"; then
12110 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12111 $as_echo "$kernelsrc" >&6; }
12112 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12113 $as_echo_n "checking kernel build directory... " >&6; }
12114 if test -z "$kernelbuild"; then
12116 if test -e "/lib/modules/$(uname -r)/build"; then
12118 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
12120 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12122 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12124 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
12126 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
12128 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
12130 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
12134 kernelbuild
=${kernelsrc}
12141 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12142 $as_echo "$kernelbuild" >&6; }
12144 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12145 $as_echo_n "checking kernel source version... " >&6; }
12146 utsrelease1
=$kernelbuild/include
/linux
/version.h
12147 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
12148 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
12149 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
12151 utsrelease
=linux
/version.h
12153 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
12155 utsrelease
=linux
/utsrelease.h
12157 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
12159 utsrelease
=generated
/utsrelease.h
12164 if test "$utsrelease"; then
12166 kernsrcver
=`(echo "#include <$utsrelease>";
12167 echo "kernsrcver=UTS_RELEASE") |
12168 cpp -I $kernelbuild/include |
12169 grep "^kernsrcver=" | cut -d \" -f 2`
12171 if test -z "$kernsrcver"; then
12173 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12174 $as_echo "Not found" >&6; }
12175 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12176 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12177 { (exit 1); exit 1; }; }
12184 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12185 $as_echo "Not found" >&6; }
12186 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12187 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12188 { (exit 1); exit 1; }; }
12193 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12194 $as_echo "$kernsrcver" >&6; }
12197 LINUX_OBJ
=${kernelbuild}
12198 LINUX_VERSION
=${kernsrcver}
12205 modpost
=$LINUX/scripts
/Makefile.modpost
12206 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12207 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12208 if test -f "$modpost"; then
12210 if grep -q Modules.symvers
$modpost; then
12212 LINUX_SYMBOLS
=Modules.symvers
12216 LINUX_SYMBOLS
=Module.symvers
12221 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12223 { { $as_echo "$as_me:$LINENO: error:
12224 *** Please make sure the kernel devel package for your distribution
12225 *** is installed. If your building with a custom kernel make sure the
12226 *** kernel is configured, built, and the '--with-linux=PATH' configure
12227 *** option refers to the location of the kernel source." >&5
12228 $as_echo "$as_me: error:
12229 *** Please make sure the kernel devel package for your distribution
12230 *** is installed. If your building with a custom kernel make sure the
12231 *** kernel is configured, built, and the '--with-linux=PATH' configure
12232 *** option refers to the location of the kernel source." >&2;}
12233 { (exit 1); exit 1; }; }
12244 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12245 $as_echo "$LINUX_SYMBOLS" >&6; }
12251 # Check whether --with-spl was given.
12252 if test "${with_spl+set}" = set; then
12253 withval
=$with_spl; splsrc
="$withval"
12258 # Check whether --with-spl-obj was given.
12259 if test "${with_spl_obj+set}" = set; then
12260 withval
=$with_spl_obj; splbuild
="$withval"
12265 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12266 $as_echo_n "checking spl source directory... " >&6; }
12267 if test -z "$splsrc"; then
12269 sourcelink
=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12270 2>/dev/null | tail -1`
12272 if test -z "$sourcelink" ||
test ! -e $sourcelink; then
12279 if test -e $sourcelink; then
12281 splsrc
=`readlink -f ${sourcelink}`
12285 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12286 $as_echo "Not found" >&6; }
12287 { { $as_echo "$as_me:$LINENO: error:
12288 *** Please make sure the spl devel package for your distribution
12289 *** is installed then try again. If that fails you can specify the
12290 *** location of the spl source with the '--with-spl=PATH' option." >&5
12291 $as_echo "$as_me: error:
12292 *** Please make sure the spl devel package for your distribution
12293 *** is installed then try again. If that fails you can specify the
12294 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12295 { (exit 1); exit 1; }; }
12302 if test "$splsrc" = "NONE"; then
12313 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12314 $as_echo "$splsrc" >&6; }
12315 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12316 $as_echo_n "checking spl build directory... " >&6; }
12317 if test -z "$splbuild"; then
12323 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12324 $as_echo "$splbuild" >&6; }
12326 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12327 $as_echo_n "checking spl source version... " >&6; }
12328 if test -r $splbuild/spl_config.h
&&
12329 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then
12332 splsrcver
=`(echo "#include <spl_config.h>";
12333 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12335 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12340 if test -z "$splsrcver"; then
12342 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12343 $as_echo "Not found" >&6; }
12344 { { $as_echo "$as_me:$LINENO: error:
12345 *** Cannot determine the version of the spl source.
12346 *** Please prepare the spl source before running this script" >&5
12347 $as_echo "$as_me: error:
12348 *** Cannot determine the version of the spl source.
12349 *** Please prepare the spl source before running this script" >&2;}
12350 { (exit 1); exit 1; }; }
12355 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12356 $as_echo "$splsrcver" >&6; }
12359 SPL_OBJ
=${splbuild}
12360 SPL_VERSION
=${splsrcver}
12367 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12368 $as_echo_n "checking spl file name for module symbols... " >&6; }
12369 if test -r $SPL_OBJ/Module.symvers
; then
12371 SPL_SYMBOLS
=Module.symvers
12373 elif test -r $SPL_OBJ/Modules.symvers
; then
12375 SPL_SYMBOLS
=Modules.symvers
12377 elif test -r $SPL_OBJ/module
/Module.symvers
; then
12379 SPL_SYMBOLS
=Module.symvers
12381 elif test -r $SPL_OBJ/module
/Modules.symvers
; then
12383 SPL_SYMBOLS
=Modules.symvers
12387 SPL_SYMBOLS
=$LINUX_SYMBOLS
12392 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12393 $as_echo "$SPL_SYMBOLS" >&6; }
12399 if test "$ZFS_META_LICENSE" = GPL
; then
12402 cat >>confdefs.h
<<\_ACEOF
12403 #define HAVE_GPL_ONLY_SYMBOLS 1
12412 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12413 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12416 cat confdefs.h
- <<_ACEOF >conftest.c
12419 cat confdefs.h
>>conftest.
$ac_ext
12420 cat >>conftest.
$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12424 #include <linux/module.h>
12430 #ifndef CONFIG_PREEMPT
12431 #error CONFIG_PREEMPT not #defined
12441 rm -Rf build
&& mkdir
-p build
12442 echo "obj-m := conftest.o" >build
/Makefile
12443 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12455 { $as_echo "$as_me:$LINENO: result: yes" >&5
12456 $as_echo "yes" >&6; }
12457 { { $as_echo "$as_me:$LINENO: error:
12458 *** Kernel built with CONFIG_PREEMPT which is not supported.
12459 *** You must rebuild your kernel without this option." >&5
12460 $as_echo "$as_me: error:
12461 *** Kernel built with CONFIG_PREEMPT which is not supported.
12462 *** You must rebuild your kernel without this option." >&2;}
12463 { (exit 1); exit 1; }; }
12466 $as_echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.
$ac_ext >&5
12469 { $as_echo "$as_me:$LINENO: result: no" >&5
12470 $as_echo "no" >&6; }
12484 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12485 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12488 cat confdefs.h
- <<_ACEOF >conftest.c
12491 cat confdefs.h
>>conftest.
$ac_ext
12492 cat >>conftest.
$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12496 #include <linux/module.h>
12502 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12503 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12513 rm -Rf build
&& mkdir
-p build
12514 echo "obj-m := conftest.o" >build
/Makefile
12515 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12527 { $as_echo "$as_me:$LINENO: result: yes" >&5
12528 $as_echo "yes" >&6; }
12530 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
12531 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12532 tmp_flags
="$EXTRA_KCFLAGS"
12535 cat confdefs.h
- <<_ACEOF >conftest.c
12538 cat confdefs.h
>>conftest.
$ac_ext
12539 cat >>conftest.
$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12543 #include <linux/module.h>
12544 #include <linux/mutex.h>
12546 MODULE_LICENSE("$ZFS_META_LICENSE");
12556 mutex_unlock(&lock);
12565 rm -Rf build
&& mkdir
-p build
12566 echo "obj-m := conftest.o" >build
/Makefile
12567 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12579 { $as_echo "$as_me:$LINENO: result: no" >&5
12580 $as_echo "no" >&6; }
12583 $as_echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.
$ac_ext >&5
12586 { $as_echo "$as_me:$LINENO: result: yes" >&5
12587 $as_echo "yes" >&6; }
12588 { { $as_echo "$as_me:$LINENO: error:
12589 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12590 *** with the CDDL license and will prevent the module linking stage
12591 *** from succeeding. You must rebuild your kernel without this
12592 *** option enabled." >&5
12593 $as_echo "$as_me: error:
12594 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12595 *** with the CDDL license and will prevent the module linking stage
12596 *** from succeeding. You must rebuild your kernel without this
12597 *** option enabled." >&2;}
12598 { (exit 1); exit 1; }; }
12607 EXTRA_KCFLAGS
="$tmp_flags"
12611 $as_echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.
$ac_ext >&5
12614 { $as_echo "$as_me:$LINENO: result: no" >&5
12615 $as_echo "no" >&6; }
12629 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12630 $as_echo_n "checking block device operation prototypes... " >&6; }
12631 tmp_flags
="$EXTRA_KCFLAGS"
12632 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
12635 cat confdefs.h
- <<_ACEOF >conftest.c
12638 cat confdefs.h
>>conftest.
$ac_ext
12639 cat >>conftest.
$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12643 #include <linux/blkdev.h>
12649 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12650 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12651 int (*blk_ioctl) (struct block_device *, fmode_t,
12652 unsigned, unsigned long) = NULL;
12653 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12654 unsigned, unsigned long) = NULL;
12655 struct block_device_operations blk_ops = {
12657 .release = blk_release,
12658 .ioctl = blk_ioctl,
12659 .compat_ioctl = blk_compat_ioctl,
12662 blk_ops.open(NULL, 0);
12663 blk_ops.release(NULL, 0);
12664 blk_ops.ioctl(NULL, 0, 0, 0);
12665 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12674 rm -Rf build
&& mkdir
-p build
12675 echo "obj-m := conftest.o" >build
/Makefile
12676 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12688 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12689 $as_echo "struct block_device" >&6; }
12691 cat >>confdefs.h
<<\_ACEOF
12692 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12697 $as_echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.
$ac_ext >&5
12700 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12701 $as_echo "struct inode" >&6; }
12710 EXTRA_KCFLAGS
="$tmp_flags"
12712 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12713 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12716 cat confdefs.h
- <<_ACEOF >conftest.c
12719 cat confdefs.h
>>conftest.
$ac_ext
12720 cat >>conftest.
$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12724 #include <linux/types.h>
12730 fmode_t *ptr __attribute__ ((unused));
12739 rm -Rf build
&& mkdir
-p build
12740 echo "obj-m := conftest.o" >build
/Makefile
12741 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12753 { $as_echo "$as_me:$LINENO: result: yes" >&5
12754 $as_echo "yes" >&6; }
12756 cat >>confdefs.h
<<\_ACEOF
12757 #define HAVE_FMODE_T 1
12762 $as_echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.
$ac_ext >&5
12765 { $as_echo "$as_me:$LINENO: result: no" >&5
12766 $as_echo "no" >&6; }
12777 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12778 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12781 cat confdefs.h
- <<_ACEOF >conftest.c
12784 cat confdefs.h
>>conftest.
$ac_ext
12785 cat >>conftest.
$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12789 #include <linux/kobject.h>
12795 int val __attribute__ ((unused));
12796 val = KOBJ_NAME_LEN;
12805 rm -Rf build
&& mkdir
-p build
12806 echo "obj-m := conftest.o" >build
/Makefile
12807 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12819 { $as_echo "$as_me:$LINENO: result: yes" >&5
12820 $as_echo "yes" >&6; }
12822 cat >>confdefs.h
<<\_ACEOF
12823 #define HAVE_KOBJ_NAME_LEN 1
12828 $as_echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.
$ac_ext >&5
12831 { $as_echo "$as_me:$LINENO: result: no" >&5
12832 $as_echo "no" >&6; }
12843 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
12844 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
12847 cat confdefs.h
- <<_ACEOF >conftest.c
12850 cat confdefs.h
>>conftest.
$ac_ext
12851 cat >>conftest.
$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12855 #include <linux/fs.h>
12861 struct block_device *bdev = NULL;
12862 (void) blkdev_get(bdev, 0, NULL);
12871 rm -Rf build
&& mkdir
-p build
12872 echo "obj-m := conftest.o" >build
/Makefile
12873 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12885 { $as_echo "$as_me:$LINENO: result: yes" >&5
12886 $as_echo "yes" >&6; }
12888 cat >>confdefs.h
<<\_ACEOF
12889 #define HAVE_3ARG_BLKDEV_GET 1
12894 $as_echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.
$ac_ext >&5
12897 { $as_echo "$as_me:$LINENO: result: no" >&5
12898 $as_echo "no" >&6; }
12909 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12910 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12911 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12912 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12914 if test $rc -ne 0; then
12917 for file in fs
/block_dev.c
; do
12918 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev
/null
12920 if test $rc -eq 0; then
12928 if test $export -eq 0; then
12930 { $as_echo "$as_me:$LINENO: result: no" >&5
12931 $as_echo "no" >&6; }
12936 { $as_echo "$as_me:$LINENO: result: yes" >&5
12937 $as_echo "yes" >&6; }
12939 cat >>confdefs.h
<<\_ACEOF
12940 #define HAVE_BLKDEV_GET_BY_PATH 1
12949 { $as_echo "$as_me:$LINENO: result: yes" >&5
12950 $as_echo "yes" >&6; }
12952 cat >>confdefs.h
<<\_ACEOF
12953 #define HAVE_BLKDEV_GET_BY_PATH 1
12962 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12963 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12964 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12965 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12967 if test $rc -ne 0; then
12970 for file in fs
/block_dev.c
; do
12971 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev
/null
12973 if test $rc -eq 0; then
12981 if test $export -eq 0; then
12983 { $as_echo "$as_me:$LINENO: result: no" >&5
12984 $as_echo "no" >&6; }
12989 { $as_echo "$as_me:$LINENO: result: yes" >&5
12990 $as_echo "yes" >&6; }
12992 cat >>confdefs.h
<<\_ACEOF
12993 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
13002 { $as_echo "$as_me:$LINENO: result: yes" >&5
13003 $as_echo "yes" >&6; }
13005 cat >>confdefs.h
<<\_ACEOF
13006 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
13015 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
13016 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
13019 cat confdefs.h
- <<_ACEOF >conftest.c
13022 cat confdefs.h
>>conftest.
$ac_ext
13023 cat >>conftest.
$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13027 #include <linux/buffer_head.h>
13033 struct block_device *bdev = NULL;
13034 invalidate_bdev(bdev);
13043 rm -Rf build
&& mkdir
-p build
13044 echo "obj-m := conftest.o" >build
/Makefile
13045 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13057 { $as_echo "$as_me:$LINENO: result: yes" >&5
13058 $as_echo "yes" >&6; }
13060 cat >>confdefs.h
<<\_ACEOF
13061 #define HAVE_1ARG_INVALIDATE_BDEV 1
13066 $as_echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.
$ac_ext >&5
13069 { $as_echo "$as_me:$LINENO: result: no" >&5
13070 $as_echo "no" >&6; }
13081 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
13082 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13083 tmp_flags
="$EXTRA_KCFLAGS"
13084 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
13087 cat confdefs.h
- <<_ACEOF >conftest.c
13090 cat confdefs.h
>>conftest.
$ac_ext
13091 cat >>conftest.
$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13095 #include <linux/blkdev.h>
13101 struct block_device *bdev = NULL;
13102 bdev_logical_block_size(bdev);
13111 rm -Rf build
&& mkdir
-p build
13112 echo "obj-m := conftest.o" >build
/Makefile
13113 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13125 { $as_echo "$as_me:$LINENO: result: yes" >&5
13126 $as_echo "yes" >&6; }
13128 cat >>confdefs.h
<<\_ACEOF
13129 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
13134 $as_echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.
$ac_ext >&5
13137 { $as_echo "$as_me:$LINENO: result: no" >&5
13138 $as_echo "no" >&6; }
13147 EXTRA_KCFLAGS
="$tmp_flags"
13150 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13151 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13152 EXTRA_KCFLAGS
="-Werror"
13155 cat confdefs.h
- <<_ACEOF >conftest.c
13158 cat confdefs.h
>>conftest.
$ac_ext
13159 cat >>conftest.
$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13163 #include <linux/bio.h>
13170 (void)bio_empty_barrier(&bio);
13179 rm -Rf build
&& mkdir
-p build
13180 echo "obj-m := conftest.o" >build
/Makefile
13181 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
13193 { $as_echo "$as_me:$LINENO: result: yes" >&5
13194 $as_echo "yes" >&6; }
13196 cat >>confdefs.h
<<\_ACEOF
13197 #define HAVE_BIO_EMPTY_BARRIER 1
13202 $as_echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.
$ac_ext >&5
13205 { $as_echo "$as_me:$LINENO: result: no" >&5
13206 $as_echo "no" >&6; }
13217 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13218 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13221 cat confdefs.h
- <<_ACEOF >conftest.c
13224 cat confdefs.h
>>conftest.
$ac_ext
13225 cat >>conftest.
$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13229 #include <linux/bio.h>
13235 int flags __attribute__ ((unused));
13236 flags = (1 << BIO_RW_FAILFAST);
13245 rm -Rf build
&& mkdir
-p build
13246 echo "obj-m := conftest.o" >build
/Makefile
13247 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13259 { $as_echo "$as_me:$LINENO: result: yes" >&5
13260 $as_echo "yes" >&6; }
13262 cat >>confdefs.h
<<\_ACEOF
13263 #define HAVE_BIO_RW_FAILFAST 1
13268 $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.
$ac_ext >&5
13271 { $as_echo "$as_me:$LINENO: result: no" >&5
13272 $as_echo "no" >&6; }
13283 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13284 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13287 cat confdefs.h
- <<_ACEOF >conftest.c
13290 cat confdefs.h
>>conftest.
$ac_ext
13291 cat >>conftest.
$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13295 #include <linux/bio.h>
13301 int flags __attribute__ ((unused));
13302 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13303 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13304 (1 << BIO_RW_FAILFAST_DRIVER));
13313 rm -Rf build
&& mkdir
-p build
13314 echo "obj-m := conftest.o" >build
/Makefile
13315 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13327 { $as_echo "$as_me:$LINENO: result: yes" >&5
13328 $as_echo "yes" >&6; }
13330 cat >>confdefs.h
<<\_ACEOF
13331 #define HAVE_BIO_RW_FAILFAST_DTD 1
13336 $as_echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.
$ac_ext >&5
13339 { $as_echo "$as_me:$LINENO: result: no" >&5
13340 $as_echo "no" >&6; }
13351 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13352 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13355 cat confdefs.h
- <<_ACEOF >conftest.c
13358 cat confdefs.h
>>conftest.
$ac_ext
13359 cat >>conftest.
$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13363 #include <linux/bio.h>
13369 int flags __attribute__ ((unused));
13370 flags = REQ_FAILFAST_MASK;
13379 rm -Rf build
&& mkdir
-p build
13380 echo "obj-m := conftest.o" >build
/Makefile
13381 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13393 { $as_echo "$as_me:$LINENO: result: yes" >&5
13394 $as_echo "yes" >&6; }
13396 cat >>confdefs.h
<<\_ACEOF
13397 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13402 $as_echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.
$ac_ext >&5
13405 { $as_echo "$as_me:$LINENO: result: no" >&5
13406 $as_echo "no" >&6; }
13417 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13418 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13419 tmp_flags
="$EXTRA_KCFLAGS"
13420 EXTRA_KCFLAGS
="-Werror"
13423 cat confdefs.h
- <<_ACEOF >conftest.c
13426 cat confdefs.h
>>conftest.
$ac_ext
13427 cat >>conftest.
$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13431 #include <linux/bio.h>
13437 void (*wanted_end_io)(struct bio *, int) = NULL;
13438 bio_end_io_t *local_end_io __attribute__ ((unused));
13440 local_end_io = wanted_end_io;
13449 rm -Rf build
&& mkdir
-p build
13450 echo "obj-m := conftest.o" >build
/Makefile
13451 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13463 { $as_echo "$as_me:$LINENO: result: yes" >&5
13464 $as_echo "yes" >&6; }
13466 cat >>confdefs.h
<<\_ACEOF
13467 #define HAVE_2ARGS_BIO_END_IO_T 1
13472 $as_echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.
$ac_ext >&5
13475 { $as_echo "$as_me:$LINENO: result: no" >&5
13476 $as_echo "no" >&6; }
13485 EXTRA_KCFLAGS
="$tmp_flags"
13488 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13489 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13492 cat confdefs.h
- <<_ACEOF >conftest.c
13495 cat confdefs.h
>>conftest.
$ac_ext
13496 cat >>conftest.
$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13500 #include <linux/bio.h>
13506 int flags __attribute__ ((unused));
13507 flags = BIO_RW_SYNC;
13516 rm -Rf build
&& mkdir
-p build
13517 echo "obj-m := conftest.o" >build
/Makefile
13518 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13530 { $as_echo "$as_me:$LINENO: result: yes" >&5
13531 $as_echo "yes" >&6; }
13533 cat >>confdefs.h
<<\_ACEOF
13534 #define HAVE_BIO_RW_SYNC 1
13539 $as_echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.
$ac_ext >&5
13542 { $as_echo "$as_me:$LINENO: result: no" >&5
13543 $as_echo "no" >&6; }
13554 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13555 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13558 cat confdefs.h
- <<_ACEOF >conftest.c
13561 cat confdefs.h
>>conftest.
$ac_ext
13562 cat >>conftest.
$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13566 #include <linux/bio.h>
13572 int flags __attribute__ ((unused));
13573 flags = BIO_RW_SYNCIO;
13582 rm -Rf build
&& mkdir
-p build
13583 echo "obj-m := conftest.o" >build
/Makefile
13584 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13596 { $as_echo "$as_me:$LINENO: result: yes" >&5
13597 $as_echo "yes" >&6; }
13599 cat >>confdefs.h
<<\_ACEOF
13600 #define HAVE_BIO_RW_SYNCIO 1
13605 $as_echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.
$ac_ext >&5
13608 { $as_echo "$as_me:$LINENO: result: no" >&5
13609 $as_echo "no" >&6; }
13620 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13621 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13624 cat confdefs.h
- <<_ACEOF >conftest.c
13627 cat confdefs.h
>>conftest.
$ac_ext
13628 cat >>conftest.
$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13632 #include <linux/bio.h>
13638 int flags __attribute__ ((unused));
13648 rm -Rf build
&& mkdir
-p build
13649 echo "obj-m := conftest.o" >build
/Makefile
13650 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13662 { $as_echo "$as_me:$LINENO: result: yes" >&5
13663 $as_echo "yes" >&6; }
13665 cat >>confdefs.h
<<\_ACEOF
13666 #define HAVE_REQ_SYNC 1
13671 $as_echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.
$ac_ext >&5
13674 { $as_echo "$as_me:$LINENO: result: no" >&5
13675 $as_echo "no" >&6; }
13686 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13687 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13688 tmp_flags
="$EXTRA_KCFLAGS"
13689 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
13692 cat confdefs.h
- <<_ACEOF >conftest.c
13695 cat confdefs.h
>>conftest.
$ac_ext
13696 cat >>conftest.
$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13700 #include <linux/blkdev.h>
13706 struct request *req = NULL;
13707 (void) blk_end_request(req, 0, 0);
13716 rm -Rf build
&& mkdir
-p build
13717 echo "obj-m := conftest.o" >build
/Makefile
13718 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13730 { $as_echo "$as_me:$LINENO: result: yes" >&5
13731 $as_echo "yes" >&6; }
13733 cat >>confdefs.h
<<\_ACEOF
13734 #define HAVE_BLK_END_REQUEST 1
13739 $as_echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.
$ac_ext >&5
13742 { $as_echo "$as_me:$LINENO: result: no" >&5
13743 $as_echo "no" >&6; }
13753 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13754 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13757 cat confdefs.h
- <<_ACEOF >conftest.c
13760 cat confdefs.h
>>conftest.
$ac_ext
13761 cat >>conftest.
$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13765 #include <linux/module.h>
13766 #include <linux/blkdev.h>
13768 MODULE_LICENSE("CDDL");
13774 struct request *req = NULL;
13775 (void) blk_end_request(req, 0, 0);
13784 rm -Rf build
&& mkdir
-p build
13785 echo "obj-m := conftest.o" >build
/Makefile
13786 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13798 { $as_echo "$as_me:$LINENO: result: no" >&5
13799 $as_echo "no" >&6; }
13802 $as_echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.
$ac_ext >&5
13805 { $as_echo "$as_me:$LINENO: result: yes" >&5
13806 $as_echo "yes" >&6; }
13808 cat >>confdefs.h
<<\_ACEOF
13809 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13820 EXTRA_KCFLAGS
="$tmp_flags"
13823 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
13824 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13825 tmp_flags
="$EXTRA_KCFLAGS"
13826 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
13829 cat confdefs.h
- <<_ACEOF >conftest.c
13832 cat confdefs.h
>>conftest.
$ac_ext
13833 cat >>conftest.
$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13837 #include <linux/blkdev.h>
13843 struct request_queue *q = NULL;
13844 (void) blk_queue_flush(q, REQ_FLUSH);
13853 rm -Rf build
&& mkdir
-p build
13854 echo "obj-m := conftest.o" >build
/Makefile
13855 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13867 { $as_echo "$as_me:$LINENO: result: yes" >&5
13868 $as_echo "yes" >&6; }
13870 cat >>confdefs.h
<<\_ACEOF
13871 #define HAVE_BLK_QUEUE_FLUSH 1
13876 $as_echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.
$ac_ext >&5
13879 { $as_echo "$as_me:$LINENO: result: no" >&5
13880 $as_echo "no" >&6; }
13890 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
13891 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13894 cat confdefs.h
- <<_ACEOF >conftest.c
13897 cat confdefs.h
>>conftest.
$ac_ext
13898 cat >>conftest.
$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13902 #include <linux/module.h>
13903 #include <linux/blkdev.h>
13905 MODULE_LICENSE("CDDL");
13911 struct request_queue *q = NULL;
13912 (void) blk_queue_flush(q, REQ_FLUSH);
13921 rm -Rf build
&& mkdir
-p build
13922 echo "obj-m := conftest.o" >build
/Makefile
13923 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13935 { $as_echo "$as_me:$LINENO: result: no" >&5
13936 $as_echo "no" >&6; }
13939 $as_echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.
$ac_ext >&5
13942 { $as_echo "$as_me:$LINENO: result: yes" >&5
13943 $as_echo "yes" >&6; }
13945 cat >>confdefs.h
<<\_ACEOF
13946 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
13957 EXTRA_KCFLAGS
="$tmp_flags"
13960 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
13961 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
13962 tmp_flags
="$EXTRA_KCFLAGS"
13963 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
13966 cat confdefs.h
- <<_ACEOF >conftest.c
13969 cat confdefs.h
>>conftest.
$ac_ext
13970 cat >>conftest.
$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13974 #include <linux/blkdev.h>
13980 struct request_queue *q = NULL;
13981 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
13990 rm -Rf build
&& mkdir
-p build
13991 echo "obj-m := conftest.o" >build
/Makefile
13992 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14004 { $as_echo "$as_me:$LINENO: result: yes" >&5
14005 $as_echo "yes" >&6; }
14007 cat >>confdefs.h
<<\_ACEOF
14008 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
14013 $as_echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.
$ac_ext >&5
14016 { $as_echo "$as_me:$LINENO: result: no" >&5
14017 $as_echo "no" >&6; }
14026 EXTRA_KCFLAGS
="$tmp_flags"
14029 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
14030 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
14031 tmp_flags
="$EXTRA_KCFLAGS"
14032 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14035 cat confdefs.h
- <<_ACEOF >conftest.c
14038 cat confdefs.h
>>conftest.
$ac_ext
14039 cat >>conftest.
$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14043 #include <linux/blkdev.h>
14049 struct request_queue *q = NULL;
14050 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
14059 rm -Rf build
&& mkdir
-p build
14060 echo "obj-m := conftest.o" >build
/Makefile
14061 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14073 { $as_echo "$as_me:$LINENO: result: yes" >&5
14074 $as_echo "yes" >&6; }
14076 cat >>confdefs.h
<<\_ACEOF
14077 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
14082 $as_echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.
$ac_ext >&5
14085 { $as_echo "$as_me:$LINENO: result: no" >&5
14086 $as_echo "no" >&6; }
14095 EXTRA_KCFLAGS
="$tmp_flags"
14098 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
14099 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
14100 tmp_flags
="$EXTRA_KCFLAGS"
14101 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14104 cat confdefs.h
- <<_ACEOF >conftest.c
14107 cat confdefs.h
>>conftest.
$ac_ext
14108 cat >>conftest.
$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14112 #include <linux/blkdev.h>
14118 struct request_queue *q = NULL;
14119 unsigned short block_size = 1;
14120 (void) blk_queue_physical_block_size(q, block_size);
14129 rm -Rf build
&& mkdir
-p build
14130 echo "obj-m := conftest.o" >build
/Makefile
14131 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14143 { $as_echo "$as_me:$LINENO: result: yes" >&5
14144 $as_echo "yes" >&6; }
14146 cat >>confdefs.h
<<\_ACEOF
14147 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
14152 $as_echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.
$ac_ext >&5
14155 { $as_echo "$as_me:$LINENO: result: no" >&5
14156 $as_echo "no" >&6; }
14165 EXTRA_KCFLAGS
="$tmp_flags"
14168 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
14169 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14170 tmp_flags
="$EXTRA_KCFLAGS"
14171 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14174 cat confdefs.h
- <<_ACEOF >conftest.c
14177 cat confdefs.h
>>conftest.
$ac_ext
14178 cat >>conftest.
$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14182 #include <linux/blkdev.h>
14188 struct request_queue *q = NULL;
14189 unsigned int opt = 1;
14190 (void) blk_queue_io_opt(q, opt);
14199 rm -Rf build
&& mkdir
-p build
14200 echo "obj-m := conftest.o" >build
/Makefile
14201 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14213 { $as_echo "$as_me:$LINENO: result: yes" >&5
14214 $as_echo "yes" >&6; }
14216 cat >>confdefs.h
<<\_ACEOF
14217 #define HAVE_BLK_QUEUE_IO_OPT 1
14222 $as_echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.
$ac_ext >&5
14225 { $as_echo "$as_me:$LINENO: result: no" >&5
14226 $as_echo "no" >&6; }
14235 EXTRA_KCFLAGS
="$tmp_flags"
14238 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
14239 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
14240 tmp_flags
="$EXTRA_KCFLAGS"
14241 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14244 cat confdefs.h
- <<_ACEOF >conftest.c
14247 cat confdefs.h
>>conftest.
$ac_ext
14248 cat >>conftest.
$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14252 #include <linux/blkdev.h>
14258 struct request_queue *q = NULL;
14259 (void) blk_queue_nonrot(q);
14268 rm -Rf build
&& mkdir
-p build
14269 echo "obj-m := conftest.o" >build
/Makefile
14270 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14282 { $as_echo "$as_me:$LINENO: result: yes" >&5
14283 $as_echo "yes" >&6; }
14285 cat >>confdefs.h
<<\_ACEOF
14286 #define HAVE_BLK_QUEUE_NONROT 1
14291 $as_echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.
$ac_ext >&5
14294 { $as_echo "$as_me:$LINENO: result: no" >&5
14295 $as_echo "no" >&6; }
14304 EXTRA_KCFLAGS
="$tmp_flags"
14307 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
14308 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
14309 tmp_flags
="$EXTRA_KCFLAGS"
14310 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14313 cat confdefs.h
- <<_ACEOF >conftest.c
14316 cat confdefs.h
>>conftest.
$ac_ext
14317 cat >>conftest.
$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14321 #include <linux/blkdev.h>
14327 struct request_queue *q = NULL;
14328 (void) blk_queue_discard(q);
14337 rm -Rf build
&& mkdir
-p build
14338 echo "obj-m := conftest.o" >build
/Makefile
14339 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14351 { $as_echo "$as_me:$LINENO: result: yes" >&5
14352 $as_echo "yes" >&6; }
14354 cat >>confdefs.h
<<\_ACEOF
14355 #define HAVE_BLK_QUEUE_DISCARD 1
14360 $as_echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.
$ac_ext >&5
14363 { $as_echo "$as_me:$LINENO: result: no" >&5
14364 $as_echo "no" >&6; }
14373 EXTRA_KCFLAGS
="$tmp_flags"
14376 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
14377 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
14378 tmp_flags
="$EXTRA_KCFLAGS"
14379 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14382 cat confdefs.h
- <<_ACEOF >conftest.c
14385 cat confdefs.h
>>conftest.
$ac_ext
14386 cat >>conftest.
$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14390 #include <linux/blkdev.h>
14396 struct request_queue *q = NULL;
14397 (void) blk_fetch_request(q);
14406 rm -Rf build
&& mkdir
-p build
14407 echo "obj-m := conftest.o" >build
/Makefile
14408 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }; then
14420 { $as_echo "$as_me:$LINENO: result: yes" >&5
14421 $as_echo "yes" >&6; }
14423 cat >>confdefs.h
<<\_ACEOF
14424 #define HAVE_BLK_FETCH_REQUEST 1
14429 $as_echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.
$ac_ext >&5
14432 { $as_echo "$as_me:$LINENO: result: no" >&5
14433 $as_echo "no" >&6; }
14442 EXTRA_KCFLAGS
="$tmp_flags"
14445 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
14446 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
14447 tmp_flags
="$EXTRA_KCFLAGS"
14448 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14451 cat confdefs.h
- <<_ACEOF >conftest.c
14454 cat confdefs.h
>>conftest.
$ac_ext
14455 cat >>conftest.
$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14459 #include <linux/blkdev.h>
14465 struct request_queue *q = NULL;
14466 struct request *req = NULL;
14467 blk_requeue_request(q, req);
14476 rm -Rf build
&& mkdir
-p build
14477 echo "obj-m := conftest.o" >build
/Makefile
14478 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14490 { $as_echo "$as_me:$LINENO: result: yes" >&5
14491 $as_echo "yes" >&6; }
14493 cat >>confdefs.h
<<\_ACEOF
14494 #define HAVE_BLK_REQUEUE_REQUEST 1
14499 $as_echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.
$ac_ext >&5
14502 { $as_echo "$as_me:$LINENO: result: no" >&5
14503 $as_echo "no" >&6; }
14512 EXTRA_KCFLAGS
="$tmp_flags"
14515 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
14516 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
14517 tmp_flags
="$EXTRA_KCFLAGS"
14518 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14521 cat confdefs.h
- <<_ACEOF >conftest.c
14524 cat confdefs.h
>>conftest.
$ac_ext
14525 cat >>conftest.
$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14529 #include <linux/blkdev.h>
14535 struct request *req = NULL;
14536 (void) blk_rq_bytes(req);
14545 rm -Rf build
&& mkdir
-p build
14546 echo "obj-m := conftest.o" >build
/Makefile
14547 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; }; then
14559 { $as_echo "$as_me:$LINENO: result: yes" >&5
14560 $as_echo "yes" >&6; }
14562 cat >>confdefs.h
<<\_ACEOF
14563 #define HAVE_BLK_RQ_BYTES 1
14568 $as_echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.
$ac_ext >&5
14571 { $as_echo "$as_me:$LINENO: result: no" >&5
14572 $as_echo "no" >&6; }
14582 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
14583 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
14586 cat confdefs.h
- <<_ACEOF >conftest.c
14589 cat confdefs.h
>>conftest.
$ac_ext
14590 cat >>conftest.
$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14594 #include <linux/module.h>
14595 #include <linux/blkdev.h>
14597 MODULE_LICENSE("CDDL");
14603 struct request *req = NULL;
14604 (void) blk_rq_bytes(req);
14613 rm -Rf build
&& mkdir
-p build
14614 echo "obj-m := conftest.o" >build
/Makefile
14615 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
14627 { $as_echo "$as_me:$LINENO: result: no" >&5
14628 $as_echo "no" >&6; }
14631 $as_echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.
$ac_ext >&5
14634 { $as_echo "$as_me:$LINENO: result: yes" >&5
14635 $as_echo "yes" >&6; }
14637 cat >>confdefs.h
<<\_ACEOF
14638 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
14649 EXTRA_KCFLAGS
="$tmp_flags"
14652 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
14653 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
14654 tmp_flags
="$EXTRA_KCFLAGS"
14655 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14658 cat confdefs.h
- <<_ACEOF >conftest.c
14661 cat confdefs.h
>>conftest.
$ac_ext
14662 cat >>conftest.
$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14666 #include <linux/blkdev.h>
14672 struct request *req = NULL;
14673 (void) blk_rq_pos(req);
14682 rm -Rf build
&& mkdir
-p build
14683 echo "obj-m := conftest.o" >build
/Makefile
14684 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; }; then
14696 { $as_echo "$as_me:$LINENO: result: yes" >&5
14697 $as_echo "yes" >&6; }
14699 cat >>confdefs.h
<<\_ACEOF
14700 #define HAVE_BLK_RQ_POS 1
14705 $as_echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.
$ac_ext >&5
14708 { $as_echo "$as_me:$LINENO: result: no" >&5
14709 $as_echo "no" >&6; }
14718 EXTRA_KCFLAGS
="$tmp_flags"
14721 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
14722 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
14723 tmp_flags
="$EXTRA_KCFLAGS"
14724 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14727 cat confdefs.h
- <<_ACEOF >conftest.c
14730 cat confdefs.h
>>conftest.
$ac_ext
14731 cat >>conftest.
$ac_ext <<_ACEOF
14732 /* end confdefs.h. */
14735 #include <linux/blkdev.h>
14741 struct request *req = NULL;
14742 (void) blk_rq_sectors(req);
14751 rm -Rf build
&& mkdir
-p build
14752 echo "obj-m := conftest.o" >build
/Makefile
14753 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14765 { $as_echo "$as_me:$LINENO: result: yes" >&5
14766 $as_echo "yes" >&6; }
14768 cat >>confdefs.h
<<\_ACEOF
14769 #define HAVE_BLK_RQ_SECTORS 1
14774 $as_echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.
$ac_ext >&5
14777 { $as_echo "$as_me:$LINENO: result: no" >&5
14778 $as_echo "no" >&6; }
14787 EXTRA_KCFLAGS
="$tmp_flags"
14790 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
14791 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14792 tmp_flags
="$EXTRA_KCFLAGS"
14793 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14796 cat confdefs.h
- <<_ACEOF >conftest.c
14799 cat confdefs.h
>>conftest.
$ac_ext
14800 cat >>conftest.
$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14804 #include <linux/blkdev.h>
14810 struct gendisk *disk = NULL;
14811 (void) get_disk_ro(disk);
14820 rm -Rf build
&& mkdir
-p build
14821 echo "obj-m := conftest.o" >build
/Makefile
14822 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14834 { $as_echo "$as_me:$LINENO: result: yes" >&5
14835 $as_echo "yes" >&6; }
14837 cat >>confdefs.h
<<\_ACEOF
14838 #define HAVE_GET_DISK_RO 1
14843 $as_echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.
$ac_ext >&5
14846 { $as_echo "$as_me:$LINENO: result: no" >&5
14847 $as_echo "no" >&6; }
14856 EXTRA_KCFLAGS
="$tmp_flags"
14859 { $as_echo "$as_me:$LINENO: checking whether symbol get_gendisk is exported" >&5
14860 $as_echo_n "checking whether symbol get_gendisk is exported... " >&6; }
14861 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
14862 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14864 if test $rc -ne 0; then
14867 for file in block
/genhd.c
; do
14868 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" "$LINUX/$file" 2>/dev
/null
14870 if test $rc -eq 0; then
14878 if test $export -eq 0; then
14880 { $as_echo "$as_me:$LINENO: result: no" >&5
14881 $as_echo "no" >&6; }
14886 { $as_echo "$as_me:$LINENO: result: yes" >&5
14887 $as_echo "yes" >&6; }
14889 cat >>confdefs.h
<<\_ACEOF
14890 #define HAVE_GET_GENDISK 1
14899 { $as_echo "$as_me:$LINENO: result: yes" >&5
14900 $as_echo "yes" >&6; }
14902 cat >>confdefs.h
<<\_ACEOF
14903 #define HAVE_GET_GENDISK 1
14912 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
14913 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14914 tmp_flags
="$EXTRA_KCFLAGS"
14915 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14918 cat confdefs.h
- <<_ACEOF >conftest.c
14921 cat confdefs.h
>>conftest.
$ac_ext
14922 cat >>conftest.
$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14926 #include <linux/blkdev.h>
14932 struct request *req = NULL;
14933 (void) rq_is_sync(req);
14942 rm -Rf build
&& mkdir
-p build
14943 echo "obj-m := conftest.o" >build
/Makefile
14944 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14956 { $as_echo "$as_me:$LINENO: result: yes" >&5
14957 $as_echo "yes" >&6; }
14959 cat >>confdefs.h
<<\_ACEOF
14960 #define HAVE_RQ_IS_SYNC 1
14965 $as_echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.
$ac_ext >&5
14968 { $as_echo "$as_me:$LINENO: result: no" >&5
14969 $as_echo "no" >&6; }
14978 EXTRA_KCFLAGS
="$tmp_flags"
14981 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
14982 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14983 tmp_flags
="$EXTRA_KCFLAGS"
14984 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14987 cat confdefs.h
- <<_ACEOF >conftest.c
14990 cat confdefs.h
>>conftest.
$ac_ext
14991 cat >>conftest.
$ac_ext <<_ACEOF
14992 /* end confdefs.h. */
14995 #include <linux/blkdev.h>
15001 struct bio_vec *bv;
15002 struct req_iterator iter;
15003 struct request *req = NULL;
15004 rq_for_each_segment(bv, req, iter) { }
15013 rm -Rf build
&& mkdir
-p build
15014 echo "obj-m := conftest.o" >build
/Makefile
15015 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15027 { $as_echo "$as_me:$LINENO: result: yes" >&5
15028 $as_echo "yes" >&6; }
15030 cat >>confdefs.h
<<\_ACEOF
15031 #define HAVE_RQ_FOR_EACH_SEGMENT 1
15036 $as_echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.
$ac_ext >&5
15039 { $as_echo "$as_me:$LINENO: result: no" >&5
15040 $as_echo "no" >&6; }
15049 EXTRA_KCFLAGS
="$tmp_flags"
15051 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
15052 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
15055 cat confdefs.h
- <<_ACEOF >conftest.c
15058 cat confdefs.h
>>conftest.
$ac_ext
15059 cat >>conftest.
$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15063 #include <linux/fs.h>
15064 #include <linux/xattr.h>
15066 const struct xattr_handler xattr_test_handler = {
15072 const struct xattr_handler *xattr_handlers[] = {
15073 &xattr_test_handler,
15080 struct super_block sb __attribute__ ((unused));
15082 sb.s_xattr = xattr_handlers;
15091 rm -Rf build
&& mkdir
-p build
15092 echo "obj-m := conftest.o" >build
/Makefile
15093 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15105 { $as_echo "$as_me:$LINENO: result: yes" >&5
15106 $as_echo "yes" >&6; }
15108 cat >>confdefs.h
<<\_ACEOF
15109 #define HAVE_CONST_XATTR_HANDLER 1
15114 $as_echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.
$ac_ext >&5
15117 { $as_echo "$as_me:$LINENO: result: no" >&5
15118 $as_echo "no" >&6; }
15129 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
15130 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
15133 cat confdefs.h
- <<_ACEOF >conftest.c
15136 cat confdefs.h
>>conftest.
$ac_ext
15137 cat >>conftest.
$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15141 #include <linux/xattr.h>
15147 int (*get)(struct dentry *dentry, const char *name,
15148 void *buffer, size_t size, int handler_flags) = NULL;
15149 struct xattr_handler xops __attribute__ ((unused));
15160 rm -Rf build
&& mkdir
-p build
15161 echo "obj-m := conftest.o" >build
/Makefile
15162 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15174 { $as_echo "$as_me:$LINENO: result: yes" >&5
15175 $as_echo "yes" >&6; }
15177 cat >>confdefs.h
<<\_ACEOF
15178 #define HAVE_DENTRY_XATTR_GET 1
15183 $as_echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.
$ac_ext >&5
15186 { $as_echo "$as_me:$LINENO: result: no" >&5
15187 $as_echo "no" >&6; }
15198 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
15199 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15202 cat confdefs.h
- <<_ACEOF >conftest.c
15205 cat confdefs.h
>>conftest.
$ac_ext
15206 cat >>conftest.
$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15210 #include <linux/xattr.h>
15216 int (*set)(struct dentry *dentry, const char *name,
15217 const void *buffer, size_t size, int flags,
15218 int handler_flags) = NULL;
15219 struct xattr_handler xops __attribute__ ((unused));
15230 rm -Rf build
&& mkdir
-p build
15231 echo "obj-m := conftest.o" >build
/Makefile
15232 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15244 { $as_echo "$as_me:$LINENO: result: yes" >&5
15245 $as_echo "yes" >&6; }
15247 cat >>confdefs.h
<<\_ACEOF
15248 #define HAVE_DENTRY_XATTR_SET 1
15253 $as_echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.
$ac_ext >&5
15256 { $as_echo "$as_me:$LINENO: result: no" >&5
15257 $as_echo "no" >&6; }
15268 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
15269 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
15273 cat confdefs.h
- <<_ACEOF >conftest.c
15276 cat confdefs.h
>>conftest.
$ac_ext
15277 cat >>conftest.
$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15281 #include <linux/fs.h>
15283 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
15284 static struct super_operations sops __attribute__ ((unused)) = {
15285 .show_options = show_options,
15300 rm -Rf build
&& mkdir
-p build
15301 echo "obj-m := conftest.o" >build
/Makefile
15302 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15314 { $as_echo "$as_me:$LINENO: result: yes" >&5
15315 $as_echo "yes" >&6; }
15317 cat >>confdefs.h
<<\_ACEOF
15318 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
15323 $as_echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.
$ac_ext >&5
15326 { $as_echo "$as_me:$LINENO: result: no" >&5
15327 $as_echo "no" >&6; }
15338 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
15339 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
15343 cat confdefs.h
- <<_ACEOF >conftest.c
15346 cat confdefs.h
>>conftest.
$ac_ext
15347 cat >>conftest.
$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15351 #include <linux/fs.h>
15357 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15358 struct file_operations fops __attribute__ ((unused));
15360 fops.fsync = fsync;
15369 rm -Rf build
&& mkdir
-p build
15370 echo "obj-m := conftest.o" >build
/Makefile
15371 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373 (eval $ac_try) 2>&5
15375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15383 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15384 $as_echo "dentry" >&6; }
15386 cat >>confdefs.h
<<\_ACEOF
15387 #define HAVE_FSYNC_WITH_DENTRY 1
15392 $as_echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.
$ac_ext >&5
15407 cat confdefs.h
- <<_ACEOF >conftest.c
15410 cat confdefs.h
>>conftest.
$ac_ext
15411 cat >>conftest.
$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15415 #include <linux/fs.h>
15421 int (*fsync) (struct file *, int) = NULL;
15422 struct file_operations fops __attribute__ ((unused));
15424 fops.fsync = fsync;
15433 rm -Rf build
&& mkdir
-p build
15434 echo "obj-m := conftest.o" >build
/Makefile
15435 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15447 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15448 $as_echo "no dentry" >&6; }
15450 cat >>confdefs.h
<<\_ACEOF
15451 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15456 $as_echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.
$ac_ext >&5
15471 cat confdefs.h
- <<_ACEOF >conftest.c
15474 cat confdefs.h
>>conftest.
$ac_ext
15475 cat >>conftest.
$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15479 #include <linux/fs.h>
15485 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15486 struct file_operations fops __attribute__ ((unused));
15488 fops.fsync = fsync;
15497 rm -Rf build
&& mkdir
-p build
15498 echo "obj-m := conftest.o" >build
/Makefile
15499 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15511 { $as_echo "$as_me:$LINENO: result: range" >&5
15512 $as_echo "range" >&6; }
15514 cat >>confdefs.h
<<\_ACEOF
15515 #define HAVE_FSYNC_RANGE 1
15520 $as_echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.
$ac_ext >&5
15535 cat confdefs.h
- <<_ACEOF >conftest.c
15538 cat confdefs.h
>>conftest.
$ac_ext
15539 cat >>conftest.
$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15543 #include <linux/fs.h>
15549 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15550 file_operations_no_const fops __attribute__ ((unused));
15552 fops.fsync = fsync;
15561 rm -Rf build
&& mkdir
-p build
15562 echo "obj-m := conftest.o" >build
/Makefile
15563 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15575 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15576 $as_echo "dentry" >&6; }
15578 cat >>confdefs.h
<<\_ACEOF
15579 #define HAVE_FSYNC_WITH_DENTRY 1
15584 $as_echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.
$ac_ext >&5
15599 cat confdefs.h
- <<_ACEOF >conftest.c
15602 cat confdefs.h
>>conftest.
$ac_ext
15603 cat >>conftest.
$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15607 #include <linux/fs.h>
15613 int (*fsync) (struct file *, int) = NULL;
15614 file_operations_no_const fops __attribute__ ((unused));
15616 fops.fsync = fsync;
15625 rm -Rf build
&& mkdir
-p build
15626 echo "obj-m := conftest.o" >build
/Makefile
15627 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15639 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15640 $as_echo "no dentry" >&6; }
15642 cat >>confdefs.h
<<\_ACEOF
15643 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15648 $as_echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.
$ac_ext >&5
15663 cat confdefs.h
- <<_ACEOF >conftest.c
15666 cat confdefs.h
>>conftest.
$ac_ext
15667 cat >>conftest.
$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15671 #include <linux/fs.h>
15677 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15678 file_operations_no_const fops __attribute__ ((unused));
15680 fops.fsync = fsync;
15689 rm -Rf build
&& mkdir
-p build
15690 echo "obj-m := conftest.o" >build
/Makefile
15691 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15703 { $as_echo "$as_me:$LINENO: result: range" >&5
15704 $as_echo "range" >&6; }
15706 cat >>confdefs.h
<<\_ACEOF
15707 #define HAVE_FSYNC_RANGE 1
15712 $as_echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.
$ac_ext >&5
15726 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
15727 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
15730 cat confdefs.h
- <<_ACEOF >conftest.c
15733 cat confdefs.h
>>conftest.
$ac_ext
15734 cat >>conftest.
$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15738 #include <linux/fs.h>
15739 void evict_inode (struct inode * t) { return; }
15740 static struct super_operations sops __attribute__ ((unused)) = {
15741 .evict_inode = evict_inode,
15756 rm -Rf build
&& mkdir
-p build
15757 echo "obj-m := conftest.o" >build
/Makefile
15758 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15770 { $as_echo "$as_me:$LINENO: result: yes" >&5
15771 $as_echo "yes" >&6; }
15773 cat >>confdefs.h
<<\_ACEOF
15774 #define HAVE_EVICT_INODE 1
15779 $as_echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.
$ac_ext >&5
15782 { $as_echo "$as_me:$LINENO: result: no" >&5
15783 $as_echo "no" >&6; }
15794 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
15795 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
15798 cat confdefs.h
- <<_ACEOF >conftest.c
15801 cat confdefs.h
>>conftest.
$ac_ext
15802 cat >>conftest.
$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15806 #include <linux/fs.h>
15812 int (*nr_cached_objects)(struct super_block *)
15813 __attribute__ ((unused)) = NULL;
15814 struct super_operations sops __attribute__ ((unused)) = {
15815 .nr_cached_objects = nr_cached_objects,
15825 rm -Rf build
&& mkdir
-p build
15826 echo "obj-m := conftest.o" >build
/Makefile
15827 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15839 { $as_echo "$as_me:$LINENO: result: yes" >&5
15840 $as_echo "yes" >&6; }
15842 cat >>confdefs.h
<<\_ACEOF
15843 #define HAVE_NR_CACHED_OBJECTS 1
15848 $as_echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.
$ac_ext >&5
15851 { $as_echo "$as_me:$LINENO: result: no" >&5
15852 $as_echo "no" >&6; }
15863 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
15864 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
15867 cat confdefs.h
- <<_ACEOF >conftest.c
15870 cat confdefs.h
>>conftest.
$ac_ext
15871 cat >>conftest.
$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15875 #include <linux/fs.h>
15881 void (*free_cached_objects)(struct super_block *, int)
15882 __attribute__ ((unused)) = NULL;
15883 struct super_operations sops __attribute__ ((unused)) = {
15884 .free_cached_objects = free_cached_objects,
15894 rm -Rf build
&& mkdir
-p build
15895 echo "obj-m := conftest.o" >build
/Makefile
15896 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15908 { $as_echo "$as_me:$LINENO: result: yes" >&5
15909 $as_echo "yes" >&6; }
15911 cat >>confdefs.h
<<\_ACEOF
15912 #define HAVE_FREE_CACHED_OBJECTS 1
15917 $as_echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.
$ac_ext >&5
15920 { $as_echo "$as_me:$LINENO: result: no" >&5
15921 $as_echo "no" >&6; }
15933 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
15934 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15937 cat confdefs.h
- <<_ACEOF >conftest.c
15940 cat confdefs.h
>>conftest.
$ac_ext
15941 cat >>conftest.
$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15945 #include <linux/fs.h>
15951 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
15952 struct file_operations fops __attribute__ ((unused)) = {
15953 .fallocate = fallocate,
15963 rm -Rf build
&& mkdir
-p build
15964 echo "obj-m := conftest.o" >build
/Makefile
15965 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; }; then
15977 { $as_echo "$as_me:$LINENO: result: yes" >&5
15978 $as_echo "yes" >&6; }
15980 cat >>confdefs.h
<<\_ACEOF
15981 #define HAVE_FILE_FALLOCATE 1
15986 $as_echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.
$ac_ext >&5
15989 { $as_echo "$as_me:$LINENO: result: no" >&5
15990 $as_echo "no" >&6; }
16001 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
16002 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
16005 cat confdefs.h
- <<_ACEOF >conftest.c
16008 cat confdefs.h
>>conftest.
$ac_ext
16009 cat >>conftest.
$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16013 #include <linux/fs.h>
16019 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
16020 struct inode_operations fops __attribute__ ((unused)) = {
16021 .fallocate = fallocate,
16031 rm -Rf build
&& mkdir
-p build
16032 echo "obj-m := conftest.o" >build
/Makefile
16033 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16045 { $as_echo "$as_me:$LINENO: result: yes" >&5
16046 $as_echo "yes" >&6; }
16048 cat >>confdefs.h
<<\_ACEOF
16049 #define HAVE_INODE_FALLOCATE 1
16054 $as_echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.
$ac_ext >&5
16057 { $as_echo "$as_me:$LINENO: result: no" >&5
16058 $as_echo "no" >&6; }
16069 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
16070 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16073 cat confdefs.h
- <<_ACEOF >conftest.c
16076 cat confdefs.h
>>conftest.
$ac_ext
16077 cat >>conftest.
$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16081 #include <linux/fs.h>
16087 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16088 struct file_operations_no_const fops __attribute__ ((unused)) = {
16089 .fallocate = fallocate,
16099 rm -Rf build
&& mkdir
-p build
16100 echo "obj-m := conftest.o" >build
/Makefile
16101 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103 (eval $ac_try) 2>&5
16105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16113 { $as_echo "$as_me:$LINENO: result: yes" >&5
16114 $as_echo "yes" >&6; }
16116 cat >>confdefs.h
<<\_ACEOF
16117 #define HAVE_FILE_FALLOCATE 1
16122 $as_echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.
$ac_ext >&5
16125 { $as_echo "$as_me:$LINENO: result: no" >&5
16126 $as_echo "no" >&6; }
16138 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
16139 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
16142 cat confdefs.h
- <<_ACEOF >conftest.c
16145 cat confdefs.h
>>conftest.
$ac_ext
16146 cat >>conftest.
$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16150 #include <linux/fs.h>
16151 void truncate_range(struct inode *inode, loff_t start,
16152 loff_t end) { return; }
16153 static struct inode_operations iops __attribute__ ((unused)) = {
16154 .truncate_range = truncate_range,
16169 rm -Rf build
&& mkdir
-p build
16170 echo "obj-m := conftest.o" >build
/Makefile
16171 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16178 (eval $ac_try) 2>&5
16180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }; }; then
16183 { $as_echo "$as_me:$LINENO: result: yes" >&5
16184 $as_echo "yes" >&6; }
16186 cat >>confdefs.h
<<\_ACEOF
16187 #define HAVE_INODE_TRUNCATE_RANGE 1
16192 $as_echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.
$ac_ext >&5
16195 { $as_echo "$as_me:$LINENO: result: no" >&5
16196 $as_echo "no" >&6; }
16207 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
16208 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
16211 cat confdefs.h
- <<_ACEOF >conftest.c
16214 cat confdefs.h
>>conftest.
$ac_ext
16215 cat >>conftest.
$ac_ext <<_ACEOF
16216 /* end confdefs.h. */
16219 #include <linux/fs.h>
16225 int (*create) (struct inode *, struct dentry *, umode_t,
16226 struct nameidata *) = NULL;
16227 struct inode_operations iops __attribute__ ((unused)) = {
16238 rm -Rf build
&& mkdir
-p build
16239 echo "obj-m := conftest.o" >build
/Makefile
16240 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; }; then
16252 { $as_echo "$as_me:$LINENO: result: yes" >&5
16253 $as_echo "yes" >&6; }
16255 cat >>confdefs.h
<<\_ACEOF
16256 #define HAVE_CREATE_UMODE_T 1
16261 $as_echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.
$ac_ext >&5
16264 { $as_echo "$as_me:$LINENO: result: no" >&5
16265 $as_echo "no" >&6; }
16276 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
16277 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
16280 cat confdefs.h
- <<_ACEOF >conftest.c
16283 cat confdefs.h
>>conftest.
$ac_ext
16284 cat >>conftest.
$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16288 #include <linux/dcache.h>
16294 struct vfsmount *(*d_automount) (struct path *) = NULL;
16295 struct dentry_operations dops __attribute__ ((unused)) = {
16296 .d_automount = d_automount,
16306 rm -Rf build
&& mkdir
-p build
16307 echo "obj-m := conftest.o" >build
/Makefile
16308 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16320 { $as_echo "$as_me:$LINENO: result: yes" >&5
16321 $as_echo "yes" >&6; }
16323 cat >>confdefs.h
<<\_ACEOF
16324 #define HAVE_AUTOMOUNT 1
16329 $as_echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.
$ac_ext >&5
16332 { $as_echo "$as_me:$LINENO: result: no" >&5
16333 $as_echo "no" >&6; }
16344 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
16345 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
16348 cat confdefs.h
- <<_ACEOF >conftest.c
16351 cat confdefs.h
>>conftest.
$ac_ext
16352 cat >>conftest.
$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16356 #include <linux/exportfs.h>
16357 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
16358 struct inode *parent) { return 0; }
16359 static struct export_operations eops __attribute__ ((unused))={
16360 .encode_fh = encode_fh,
16375 rm -Rf build
&& mkdir
-p build
16376 echo "obj-m := conftest.o" >build
/Makefile
16377 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16384 (eval $ac_try) 2>&5
16386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; }; then
16389 { $as_echo "$as_me:$LINENO: result: yes" >&5
16390 $as_echo "yes" >&6; }
16392 cat >>confdefs.h
<<\_ACEOF
16393 #define HAVE_ENCODE_FH_WITH_INODE 1
16398 $as_echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.
$ac_ext >&5
16401 { $as_echo "$as_me:$LINENO: result: no" >&5
16402 $as_echo "no" >&6; }
16413 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
16414 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
16415 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
16416 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16418 if test $rc -ne 0; then
16421 for file in fs
/inode.c
; do
16422 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev
/null
16424 if test $rc -eq 0; then
16432 if test $export -eq 0; then
16434 { $as_echo "$as_me:$LINENO: result: no" >&5
16435 $as_echo "no" >&6; }
16440 { $as_echo "$as_me:$LINENO: result: yes" >&5
16441 $as_echo "yes" >&6; }
16443 cat >>confdefs.h
<<\_ACEOF
16444 #define HAVE_INSERT_INODE_LOCKED 1
16453 { $as_echo "$as_me:$LINENO: result: yes" >&5
16454 $as_echo "yes" >&6; }
16456 cat >>confdefs.h
<<\_ACEOF
16457 #define HAVE_INSERT_INODE_LOCKED 1
16466 { $as_echo "$as_me:$LINENO: checking whether symbol d_make_root is exported" >&5
16467 $as_echo_n "checking whether symbol d_make_root is exported... " >&6; }
16468 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
16469 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16471 if test $rc -ne 0; then
16474 for file in fs
/dcache.c
; do
16475 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" "$LINUX/$file" 2>/dev
/null
16477 if test $rc -eq 0; then
16485 if test $export -eq 0; then
16487 { $as_echo "$as_me:$LINENO: result: no" >&5
16488 $as_echo "no" >&6; }
16493 { $as_echo "$as_me:$LINENO: result: yes" >&5
16494 $as_echo "yes" >&6; }
16496 cat >>confdefs.h
<<\_ACEOF
16497 #define HAVE_D_MAKE_ROOT 1
16506 { $as_echo "$as_me:$LINENO: result: yes" >&5
16507 $as_echo "yes" >&6; }
16509 cat >>confdefs.h
<<\_ACEOF
16510 #define HAVE_D_MAKE_ROOT 1
16519 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
16520 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
16521 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
16522 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16524 if test $rc -ne 0; then
16527 for file in fs
/dcache.c
; do
16528 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev
/null
16530 if test $rc -eq 0; then
16538 if test $export -eq 0; then
16540 { $as_echo "$as_me:$LINENO: result: no" >&5
16541 $as_echo "no" >&6; }
16546 { $as_echo "$as_me:$LINENO: result: yes" >&5
16547 $as_echo "yes" >&6; }
16549 cat >>confdefs.h
<<\_ACEOF
16550 #define HAVE_D_OBTAIN_ALIAS 1
16559 { $as_echo "$as_me:$LINENO: result: yes" >&5
16560 $as_echo "yes" >&6; }
16562 cat >>confdefs.h
<<\_ACEOF
16563 #define HAVE_D_OBTAIN_ALIAS 1
16572 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
16573 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
16574 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
16575 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16577 if test $rc -ne 0; then
16580 for file in fs
/block_dev.c
; do
16581 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev
/null
16583 if test $rc -eq 0; then
16591 if test $export -eq 0; then
16593 { $as_echo "$as_me:$LINENO: result: no" >&5
16594 $as_echo "no" >&6; }
16599 { $as_echo "$as_me:$LINENO: result: yes" >&5
16600 $as_echo "yes" >&6; }
16602 cat >>confdefs.h
<<\_ACEOF
16603 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
16612 { $as_echo "$as_me:$LINENO: result: yes" >&5
16613 $as_echo "yes" >&6; }
16615 cat >>confdefs.h
<<\_ACEOF
16616 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
16625 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
16626 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
16627 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
16628 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16630 if test $rc -ne 0; then
16633 for file in mm
/truncate.c
; do
16634 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev
/null
16636 if test $rc -eq 0; then
16644 if test $export -eq 0; then
16646 { $as_echo "$as_me:$LINENO: result: no" >&5
16647 $as_echo "no" >&6; }
16652 { $as_echo "$as_me:$LINENO: result: yes" >&5
16653 $as_echo "yes" >&6; }
16655 cat >>confdefs.h
<<\_ACEOF
16656 #define HAVE_TRUNCATE_SETSIZE 1
16665 { $as_echo "$as_me:$LINENO: result: yes" >&5
16666 $as_echo "yes" >&6; }
16668 cat >>confdefs.h
<<\_ACEOF
16669 #define HAVE_TRUNCATE_SETSIZE 1
16678 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
16679 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
16680 tmp_flags
="$EXTRA_KCFLAGS"
16681 EXTRA_KCFLAGS
="-Werror"
16684 cat confdefs.h
- <<_ACEOF >conftest.c
16687 cat confdefs.h
>>conftest.
$ac_ext
16688 cat >>conftest.
$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16692 #include <linux/security.h>
16698 struct inode *ip __attribute__ ((unused)) = NULL;
16699 struct inode *dip __attribute__ ((unused)) = NULL;
16700 const struct qstr *str __attribute__ ((unused)) = NULL;
16701 char *name __attribute__ ((unused)) = NULL;
16702 void *value __attribute__ ((unused)) = NULL;
16703 size_t len __attribute__ ((unused)) = 0;
16705 security_inode_init_security(ip, dip, str, &name, &value, &len);
16714 rm -Rf build
&& mkdir
-p build
16715 echo "obj-m := conftest.o" >build
/Makefile
16716 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16728 { $as_echo "$as_me:$LINENO: result: yes" >&5
16729 $as_echo "yes" >&6; }
16731 cat >>confdefs.h
<<\_ACEOF
16732 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
16737 $as_echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.
$ac_ext >&5
16740 { $as_echo "$as_me:$LINENO: result: no" >&5
16741 $as_echo "no" >&6; }
16750 EXTRA_KCFLAGS
="$tmp_flags"
16753 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
16754 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
16755 tmp_flags
="$EXTRA_KCFLAGS"
16756 EXTRA_KCFLAGS
="-Werror"
16759 cat confdefs.h
- <<_ACEOF >conftest.c
16762 cat confdefs.h
>>conftest.
$ac_ext
16763 cat >>conftest.
$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16767 #include <linux/security.h>
16773 struct inode *ip __attribute__ ((unused)) = NULL;
16774 struct inode *dip __attribute__ ((unused)) = NULL;
16775 const struct qstr *str __attribute__ ((unused)) = NULL;
16776 initxattrs func __attribute__ ((unused)) = NULL;
16778 security_inode_init_security(ip, dip, str, func, NULL);
16787 rm -Rf build
&& mkdir
-p build
16788 echo "obj-m := conftest.o" >build
/Makefile
16789 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16801 { $as_echo "$as_me:$LINENO: result: yes" >&5
16802 $as_echo "yes" >&6; }
16804 cat >>confdefs.h
<<\_ACEOF
16805 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
16810 $as_echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.
$ac_ext >&5
16813 { $as_echo "$as_me:$LINENO: result: no" >&5
16814 $as_echo "no" >&6; }
16823 EXTRA_KCFLAGS
="$tmp_flags"
16826 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
16827 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
16828 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
16829 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16831 if test $rc -ne 0; then
16834 for file in fs
/super.c
; do
16835 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev
/null
16837 if test $rc -eq 0; then
16845 if test $export -eq 0; then
16847 { $as_echo "$as_me:$LINENO: result: no" >&5
16848 $as_echo "no" >&6; }
16853 { $as_echo "$as_me:$LINENO: result: yes" >&5
16854 $as_echo "yes" >&6; }
16856 cat >>confdefs.h
<<\_ACEOF
16857 #define HAVE_MOUNT_NODEV 1
16866 { $as_echo "$as_me:$LINENO: result: yes" >&5
16867 $as_echo "yes" >&6; }
16869 cat >>confdefs.h
<<\_ACEOF
16870 #define HAVE_MOUNT_NODEV 1
16879 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
16880 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
16883 cat confdefs.h
- <<_ACEOF >conftest.c
16886 cat confdefs.h
>>conftest.
$ac_ext
16887 cat >>conftest.
$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16891 #include <linux/fs.h>
16897 int (*shrink)(struct shrinker *, struct shrink_control *sc)
16898 __attribute__ ((unused)) = NULL;
16899 struct super_block sb __attribute__ ((unused)) = {
16900 .s_shrink.shrink = shrink,
16901 .s_shrink.seeks = DEFAULT_SEEKS,
16902 .s_shrink.batch = 0,
16912 rm -Rf build
&& mkdir
-p build
16913 echo "obj-m := conftest.o" >build
/Makefile
16914 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16926 { $as_echo "$as_me:$LINENO: result: yes" >&5
16927 $as_echo "yes" >&6; }
16929 cat >>confdefs.h
<<\_ACEOF
16930 #define HAVE_SHRINK 1
16936 $as_echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.
$ac_ext >&5
16939 { $as_echo "$as_me:$LINENO: result: no" >&5
16940 $as_echo "no" >&6; }
16951 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
16952 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
16955 cat confdefs.h
- <<_ACEOF >conftest.c
16958 cat confdefs.h
>>conftest.
$ac_ext
16959 cat >>conftest.
$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16963 #include <linux/fs.h>
16969 struct super_block sb __attribute__ ((unused));
16979 rm -Rf build
&& mkdir
-p build
16980 echo "obj-m := conftest.o" >build
/Makefile
16981 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; }; then
16993 { $as_echo "$as_me:$LINENO: result: yes" >&5
16994 $as_echo "yes" >&6; }
16996 cat >>confdefs.h
<<\_ACEOF
17002 $as_echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.
$ac_ext >&5
17005 { $as_echo "$as_me:$LINENO: result: no" >&5
17006 $as_echo "no" >&6; }
17017 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
17018 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
17019 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
17020 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17022 if test $rc -ne 0; then
17025 for file in mm
/backing-dev.c
; do
17026 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev
/null
17028 if test $rc -eq 0; then
17036 if test $export -eq 0; then
17038 { $as_echo "$as_me:$LINENO: result: no" >&5
17039 $as_echo "no" >&6; }
17044 { $as_echo "$as_me:$LINENO: result: yes" >&5
17045 $as_echo "yes" >&6; }
17047 cat >>confdefs.h
<<\_ACEOF
17048 #define HAVE_BDI_SETUP_AND_REGISTER 1
17057 { $as_echo "$as_me:$LINENO: result: yes" >&5
17058 $as_echo "yes" >&6; }
17060 cat >>confdefs.h
<<\_ACEOF
17061 #define HAVE_BDI_SETUP_AND_REGISTER 1
17070 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
17071 $as_echo_n "checking whether set_nlink() is available... " >&6; }
17074 cat confdefs.h
- <<_ACEOF >conftest.c
17077 cat confdefs.h
>>conftest.
$ac_ext
17078 cat >>conftest.
$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17082 #include <linux/fs.h>
17089 unsigned int link = 0;
17090 (void) set_nlink(&node, link);
17099 rm -Rf build
&& mkdir
-p build
17100 echo "obj-m := conftest.o" >build
/Makefile
17101 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17113 { $as_echo "$as_me:$LINENO: result: yes" >&5
17114 $as_echo "yes" >&6; }
17116 cat >>confdefs.h
<<\_ACEOF
17117 #define HAVE_SET_NLINK 1
17122 $as_echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.
$ac_ext >&5
17125 { $as_echo "$as_me:$LINENO: result: no" >&5
17126 $as_echo "no" >&6; }
17137 if test "$LINUX_OBJ" != "$LINUX"; then
17139 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
17146 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
17147 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
17148 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
17155 # Check whether --with-udevdir was given.
17156 if test "${with_udevdir+set}" = set; then
17157 withval
=$with_udevdir; udevdir
=$withval
17159 udevdir
='${exec_prefix}/lib/udev'
17164 # Check whether --with-udevruledir was given.
17165 if test "${with_udevruledir+set}" = set; then
17166 withval
=$with_udevruledir; udevruledir
=$withval
17168 udevruledir
='${udevdir}/rules.d'
17176 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
17177 $as_echo_n "checking for target asm dir... " >&6; }
17178 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
17180 case $TARGET_ARCH in
17182 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
17185 TARGET_ASM_DIR
=asm-generic
17190 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
17191 $as_echo "$TARGET_ASM_DIR" >&6; }
17194 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
17195 $as_echo_n "checking for ioctl()... " >&6; }
17196 cat >conftest.
$ac_ext <<_ACEOF
17199 cat confdefs.h
>>conftest.
$ac_ext
17200 cat >>conftest.
$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202 #include <unistd.h>
17205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17206 $EGREP "ioctl" >/dev
/null
2>&1; then
17213 cat >conftest.
$ac_ext <<_ACEOF
17216 cat confdefs.h
>>conftest.
$ac_ext
17217 cat >>conftest.
$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17219 #include <sys/ioctl.h>
17222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17223 $EGREP "ioctl" >/dev
/null
2>&1; then
17230 cat >conftest.
$ac_ext <<_ACEOF
17233 cat confdefs.h
>>conftest.
$ac_ext
17234 cat >>conftest.
$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 #include <stropts.h>
17239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17240 $EGREP "ioctl" >/dev
/null
2>&1; then
17248 if test $is_unistd = yes; then
17251 cat >>confdefs.h
<<\_ACEOF
17252 #define HAVE_IOCTL_IN_UNISTD_H 1
17257 if test $is_sys_ioctl = yes; then
17260 cat >>confdefs.h
<<\_ACEOF
17261 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
17264 elif test $is_stropts = yes; then
17266 cat >>confdefs.h
<<\_ACEOF
17267 #define HAVE_IOCTL_IN_STROPTS_H 1
17275 if test $result = no
; then
17276 { $as_echo "$as_me:$LINENO: result: no" >&5
17277 $as_echo "no" >&6; }
17278 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
17279 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
17280 { (exit 1); exit 1; }; }
17282 { $as_echo "$as_me:$LINENO: result: yes" >&5
17283 $as_echo "yes" >&6; }
17289 if test "${ac_cv_header_zlib_h+set}" = set; then
17290 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
17291 $as_echo_n "checking for zlib.h... " >&6; }
17292 if test "${ac_cv_header_zlib_h+set}" = set; then
17293 $as_echo_n "(cached) " >&6
17295 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
17296 $as_echo "$ac_cv_header_zlib_h" >&6; }
17298 # Is the header compilable?
17299 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
17300 $as_echo_n "checking zlib.h usability... " >&6; }
17301 cat >conftest.
$ac_ext <<_ACEOF
17304 cat confdefs.h
>>conftest.
$ac_ext
17305 cat >>conftest.
$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 $ac_includes_default
17310 rm -f conftest.
$ac_objext
17311 if { (ac_try
="$ac_compile"
17312 case "(($ac_try" in
17313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17317 $as_echo "$ac_try_echo") >&5
17318 (eval "$ac_compile") 2>conftest.er1
17320 grep -v '^ *+' conftest.er1 >conftest.err
17322 cat conftest.err >&5
17323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } && {
17325 test -z "$ac_c_werror_flag" ||
17326 test ! -s conftest.err
17327 } && test -s conftest.$ac_objext; then
17328 ac_header_compiler=yes
17330 $as_echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 ac_header_compiler=no
17336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17338 $as_echo "$ac_header_compiler" >&6; }
17340 # Is the header present?
17341 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
17342 $as_echo_n "checking zlib.h presence... " >&6; }
17343 cat >conftest.$ac_ext <<_ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17351 if { (ac_try="$ac_cpp conftest.$ac_ext"
17352 case "(($ac_try" in
17353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17354 *) ac_try_echo
=$ac_try;;
17356 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17357 $as_echo "$ac_try_echo") >&5
17358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17360 grep -v '^ *+' conftest.er1
>conftest.err
17362 cat conftest.err
>&5
17363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } >/dev
/null
&& {
17365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17366 test ! -s conftest.err
17368 ac_header_preproc
=yes
17370 $as_echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.
$ac_ext >&5
17373 ac_header_preproc
=no
17376 rm -f conftest.err conftest.
$ac_ext
17377 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17378 $as_echo "$ac_header_preproc" >&6; }
17380 # So? What about this header?
17381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17383 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17384 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17385 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
17386 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
17387 ac_header_preproc
=yes
17390 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
17391 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
17392 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
17393 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
17394 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
17395 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
17396 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
17397 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17398 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
17399 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
17400 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
17401 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
17405 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
17406 $as_echo_n "checking for zlib.h... " >&6; }
17407 if test "${ac_cv_header_zlib_h+set}" = set; then
17408 $as_echo_n "(cached) " >&6
17410 ac_cv_header_zlib_h
=$ac_header_preproc
17412 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
17413 $as_echo "$ac_cv_header_zlib_h" >&6; }
17416 if test "x$ac_cv_header_zlib_h" = x
""yes; then
17419 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17421 { { $as_echo "$as_me:$LINENO: error:
17422 *** zlib.h missing, zlib-devel package required
17423 See \`config.log' for more details." >&5
17424 $as_echo "$as_me: error:
17425 *** zlib.h missing, zlib-devel package required
17426 See \`config.log' for more details." >&2;}
17427 { (exit 1); exit 1; }; }; }
17433 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
17434 $as_echo_n "checking for compress2 in -lz... " >&6; }
17435 if test "${ac_cv_lib_z_compress2+set}" = set; then
17436 $as_echo_n "(cached) " >&6
17438 ac_check_lib_save_LIBS
=$LIBS
17440 cat >conftest.
$ac_ext <<_ACEOF
17443 cat confdefs.h
>>conftest.
$ac_ext
17444 cat >>conftest.
$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17447 /* Override any GCC internal prototype to avoid an error.
17448 Use char because int might match the return type of a GCC
17449 builtin and then its argument prototype would still apply. */
17457 return compress2 ();
17462 rm -f conftest.
$ac_objext conftest
$ac_exeext
17463 if { (ac_try
="$ac_link"
17464 case "(($ac_try" in
17465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17469 $as_echo "$ac_try_echo") >&5
17470 (eval "$ac_link") 2>conftest.er1
17472 grep -v '^ *+' conftest.er1 >conftest.err
17474 cat conftest.err >&5
17475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } && {
17477 test -z "$ac_c_werror_flag" ||
17478 test ! -s conftest.err
17479 } && test -s conftest$ac_exeext && {
17480 test "$cross_compiling" = yes ||
17481 $as_test_x conftest$ac_exeext
17483 ac_cv_lib_z_compress2=yes
17485 $as_echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 ac_cv_lib_z_compress2=no
17491 rm -rf conftest.dSYM
17492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17493 conftest$ac_exeext conftest.$ac_ext
17494 LIBS=$ac_check_lib_save_LIBS
17496 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
17497 $as_echo "$ac_cv_lib_z_compress2" >&6; }
17498 if test "x$ac_cv_lib_z_compress2" = x""yes; then
17499 cat >>confdefs.h <<_ACEOF
17500 #define HAVE_LIBZ 1
17506 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17508 { { $as_echo "$as_me:$LINENO: error
:
17509 *** compress2
() missing
, zlib-devel package required
17510 See \
`config.log' for more details." >&5
17511 $as_echo "$as_me: error:
17512 *** compress2() missing, zlib-devel package required
17513 See \`config.log
' for more details." >&2;}
17514 { (exit 1); exit 1; }; }; }
17519 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
17520 $as_echo_n "checking for uncompress in -lz... " >&6; }
17521 if test "${ac_cv_lib_z_uncompress+set}" = set; then
17522 $as_echo_n "(cached) " >&6
17524 ac_check_lib_save_LIBS=$LIBS
17526 cat >conftest.$ac_ext <<_ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17533 /* Override any GCC internal prototype to avoid an error.
17534 Use char because int might match the return type of a GCC
17535 builtin and then its argument prototype would still apply. */
17539 char uncompress ();
17543 return uncompress ();
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (ac_try="$ac_link"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17555 $as_echo "$ac_try_echo") >&5
17556 (eval "$ac_link") 2>conftest.er1
17558 grep -v '^
*+' conftest.er1 >conftest.err
17560 cat conftest.err >&5
17561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } && {
17563 test -z "$ac_c_werror_flag" ||
17564 test ! -s conftest.err
17565 } && test -s conftest$ac_exeext && {
17566 test "$cross_compiling" = yes ||
17567 $as_test_x conftest$ac_exeext
17569 ac_cv_lib_z_uncompress=yes
17571 $as_echo "$as_me: failed program was:" >&5
17572 sed 's
/^
/|
/' conftest.$ac_ext >&5
17574 ac_cv_lib_z_uncompress=no
17577 rm -rf conftest.dSYM
17578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17579 conftest$ac_exeext conftest.$ac_ext
17580 LIBS=$ac_check_lib_save_LIBS
17582 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
17583 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
17584 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
17585 cat >>confdefs.h <<_ACEOF
17586 #define HAVE_LIBZ 1
17592 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17593 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
17594 { { $as_echo "$as_me:$LINENO: error:
17595 *** uncompress() missing, zlib-devel package required
17596 See \`config.log
' for more details." >&5
17597 $as_echo "$as_me: error:
17598 *** uncompress() missing, zlib-devel package required
17599 See \`config.log' for more details.
" >&2;}
17600 { (exit 1); exit 1; }; }; }
17605 { $as_echo "$as_me:$LINENO: checking
for crc32
in -lz" >&5
17606 $as_echo_n "checking
for crc32
in -lz...
" >&6; }
17607 if test "${ac_cv_lib_z_crc32+set}" = set; then
17608 $as_echo_n "(cached
) " >&6
17610 ac_check_lib_save_LIBS=$LIBS
17612 cat >conftest.$ac_ext <<_ACEOF
17615 cat confdefs.h >>conftest.$ac_ext
17616 cat >>conftest.$ac_ext <<_ACEOF
17617 /* end confdefs.h. */
17619 /* Override any GCC internal prototype to avoid an error.
17620 Use char because int might match the return type of a GCC
17621 builtin and then its argument prototype would still apply. */
17634 rm -f conftest.$ac_objext conftest$ac_exeext
17635 if { (ac_try="$ac_link"
17636 case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17641 $as_echo "$ac_try_echo") >&5
17642 (eval "$ac_link") 2>conftest.er1
17644 grep -v '^ *+' conftest.er1 >conftest.err
17646 cat conftest.err >&5
17647 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17648 (exit $ac_status); } && {
17649 test -z "$ac_c_werror_flag" ||
17650 test ! -s conftest.err
17651 } && test -s conftest$ac_exeext && {
17652 test "$cross_compiling" = yes ||
17653 $as_test_x conftest$ac_exeext
17655 ac_cv_lib_z_crc32=yes
17657 $as_echo "$as_me: failed program was
:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_cv_lib_z_crc32=no
17663 rm -rf conftest.dSYM
17664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17665 conftest$ac_exeext conftest.$ac_ext
17666 LIBS=$ac_check_lib_save_LIBS
17668 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_crc32" >&5
17669 $as_echo "$ac_cv_lib_z_crc32" >&6; }
17670 if test "x
$ac_cv_lib_z_crc32" = x""yes; then
17671 cat >>confdefs.h <<_ACEOF
17672 #define HAVE_LIBZ 1
17678 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
17679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17680 { { $as_echo "$as_me:$LINENO: error:
17681 *** crc32() missing, zlib-devel package required
17682 See \`config.log' for more details.
" >&5
17683 $as_echo "$as_me: error
:
17684 *** crc32
() missing
, zlib-devel package required
17685 See \
`config.log' for more details." >&2;}
17686 { (exit 1); exit 1; }; }; }
17693 cat >>confdefs.h <<\_ACEOF
17694 #define HAVE_ZLIB 1
17701 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17702 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17703 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17704 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17705 $as_echo_n "(cached) " >&6
17707 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17708 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17710 # Is the header compilable?
17711 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
17712 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
17713 cat >conftest.$ac_ext <<_ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h. */
17719 $ac_includes_default
17720 #include <uuid/uuid.h>
17722 rm -f conftest.$ac_objext
17723 if { (ac_try="$ac_compile"
17724 case "(($ac_try" in
17725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17726 *) ac_try_echo
=$ac_try;;
17728 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17729 $as_echo "$ac_try_echo") >&5
17730 (eval "$ac_compile") 2>conftest.er1
17732 grep -v '^ *+' conftest.er1
>conftest.err
17734 cat conftest.err
>&5
17735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } && {
17737 test -z "$ac_c_werror_flag" ||
17738 test ! -s conftest.err
17739 } && test -s conftest.
$ac_objext; then
17740 ac_header_compiler
=yes
17742 $as_echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.
$ac_ext >&5
17745 ac_header_compiler
=no
17748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17749 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17750 $as_echo "$ac_header_compiler" >&6; }
17752 # Is the header present?
17753 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
17754 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
17755 cat >conftest.
$ac_ext <<_ACEOF
17758 cat confdefs.h
>>conftest.
$ac_ext
17759 cat >>conftest.
$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 #include <uuid/uuid.h>
17763 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17764 case "(($ac_try" in
17765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17769 $as_echo "$ac_try_echo") >&5
17770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17772 grep -v '^ *+' conftest.er1 >conftest.err
17774 cat conftest.err >&5
17775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } >/dev/null && {
17777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17780 ac_header_preproc=yes
17782 $as_echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 ac_header_preproc=no
17788 rm -f conftest.err conftest.$ac_ext
17789 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17790 $as_echo "$ac_header_preproc" >&6; }
17792 # So? What about this header?
17793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17795 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
17796 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17797 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
17798 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
17799 ac_header_preproc=yes
17802 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
17803 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
17804 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
17805 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
17806 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
17807 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
17808 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
17809 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
17810 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
17811 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
17812 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
17813 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
17817 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17818 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17819 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17820 $as_echo_n "(cached) " >&6
17822 ac_cv_header_uuid_uuid_h=$ac_header_preproc
17824 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17825 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17828 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
17831 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17833 { { $as_echo "$as_me:$LINENO: error
:
17834 *** uuid
/uuid.h missing
, libuuid-devel package required
17835 See \
`config.log' for more details." >&5
17836 $as_echo "$as_me: error:
17837 *** uuid/uuid.h missing, libuuid-devel package required
17838 See \`config.log
' for more details." >&2;}
17839 { (exit 1); exit 1; }; }; }
17845 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
17846 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17847 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
17848 $as_echo_n "(cached) " >&6
17850 ac_check_lib_save_LIBS=$LIBS
17851 LIBS="-luuid $LIBS"
17852 cat >conftest.$ac_ext <<_ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h. */
17859 /* Override any GCC internal prototype to avoid an error.
17860 Use char because int might match the return type of a GCC
17861 builtin and then its argument prototype would still apply. */
17865 char uuid_generate ();
17869 return uuid_generate ();
17874 rm -f conftest.$ac_objext conftest$ac_exeext
17875 if { (ac_try="$ac_link"
17876 case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17881 $as_echo "$ac_try_echo") >&5
17882 (eval "$ac_link") 2>conftest.er1
17884 grep -v '^
*+' conftest.er1 >conftest.err
17886 cat conftest.err >&5
17887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } && {
17889 test -z "$ac_c_werror_flag" ||
17890 test ! -s conftest.err
17891 } && test -s conftest$ac_exeext && {
17892 test "$cross_compiling" = yes ||
17893 $as_test_x conftest$ac_exeext
17895 ac_cv_lib_uuid_uuid_generate=yes
17897 $as_echo "$as_me: failed program was:" >&5
17898 sed 's
/^
/|
/' conftest.$ac_ext >&5
17900 ac_cv_lib_uuid_uuid_generate=no
17903 rm -rf conftest.dSYM
17904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17905 conftest$ac_exeext conftest.$ac_ext
17906 LIBS=$ac_check_lib_save_LIBS
17908 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
17909 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17910 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
17911 cat >>confdefs.h <<_ACEOF
17912 #define HAVE_LIBUUID 1
17915 LIBS="-luuid $LIBS"
17918 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17919 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
17920 { { $as_echo "$as_me:$LINENO: error:
17921 *** uuid_generate() missing, libuuid-devel package required
17922 See \`config.log
' for more details." >&5
17923 $as_echo "$as_me: error:
17924 *** uuid_generate() missing, libuuid-devel package required
17925 See \`config.log' for more details.
" >&2;}
17926 { (exit 1); exit 1; }; }; }
17931 { $as_echo "$as_me:$LINENO: checking
for uuid_is_null
in -luuid" >&5
17932 $as_echo_n "checking
for uuid_is_null
in -luuid...
" >&6; }
17933 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
17934 $as_echo_n "(cached
) " >&6
17936 ac_check_lib_save_LIBS=$LIBS
17937 LIBS="-luuid $LIBS"
17938 cat >conftest.$ac_ext <<_ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17945 /* Override any GCC internal prototype to avoid an error.
17946 Use char because int might match the return type of a GCC
17947 builtin and then its argument prototype would still apply. */
17951 char uuid_is_null ();
17955 return uuid_is_null ();
17960 rm -f conftest.$ac_objext conftest$ac_exeext
17961 if { (ac_try="$ac_link"
17962 case "(($ac_try" in
17963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964 *) ac_try_echo=$ac_try;;
17966 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17967 $as_echo "$ac_try_echo") >&5
17968 (eval "$ac_link") 2>conftest.er1
17970 grep -v '^ *+' conftest.er1 >conftest.err
17972 cat conftest.err >&5
17973 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17974 (exit $ac_status); } && {
17975 test -z "$ac_c_werror_flag" ||
17976 test ! -s conftest.err
17977 } && test -s conftest$ac_exeext && {
17978 test "$cross_compiling" = yes ||
17979 $as_test_x conftest$ac_exeext
17981 ac_cv_lib_uuid_uuid_is_null=yes
17983 $as_echo "$as_me: failed program was
:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17986 ac_cv_lib_uuid_uuid_is_null=no
17989 rm -rf conftest.dSYM
17990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17991 conftest$ac_exeext conftest.$ac_ext
17992 LIBS=$ac_check_lib_save_LIBS
17994 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_is_null" >&5
17995 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17996 if test "x
$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
17997 cat >>confdefs.h <<_ACEOF
17998 #define HAVE_LIBUUID 1
18001 LIBS="-luuid $LIBS"
18004 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
18005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18006 { { $as_echo "$as_me:$LINENO: error:
18007 *** uuid_is_null() missing, libuuid-devel package required
18008 See \`config.log' for more details.
" >&5
18009 $as_echo "$as_me: error
:
18010 *** uuid_is_null
() missing
, libuuid-devel package required
18011 See \
`config.log' for more details." >&2;}
18012 { (exit 1); exit 1; }; }; }
18019 cat >>confdefs.h <<\_ACEOF
18020 #define HAVE_LIBUUID 1
18026 # Check whether --with-blkid was given.
18027 if test "${with_blkid+set}" = set; then
18028 withval=$with_blkid;
18035 if test "x$with_blkid" != xno; then
18037 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
18038 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
18039 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
18040 $as_echo_n "(cached) " >&6
18042 ac_check_lib_save_LIBS=$LIBS
18043 LIBS="-lblkid $LIBS"
18044 cat >conftest.$ac_ext <<_ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18051 /* Override any GCC internal prototype to avoid an error.
18052 Use char because int might match the return type of a GCC
18053 builtin and then its argument prototype would still apply. */
18057 char blkid_get_cache ();
18061 return blkid_get_cache ();
18066 rm -f conftest.$ac_objext conftest$ac_exeext
18067 if { (ac_try="$ac_link"
18068 case "(($ac_try" in
18069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18070 *) ac_try_echo
=$ac_try;;
18072 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18073 $as_echo "$ac_try_echo") >&5
18074 (eval "$ac_link") 2>conftest.er1
18076 grep -v '^ *+' conftest.er1
>conftest.err
18078 cat conftest.err
>&5
18079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } && {
18081 test -z "$ac_c_werror_flag" ||
18082 test ! -s conftest.err
18083 } && test -s conftest
$ac_exeext && {
18084 test "$cross_compiling" = yes ||
18085 $as_test_x conftest
$ac_exeext
18087 ac_cv_lib_blkid_blkid_get_cache
=yes
18089 $as_echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.
$ac_ext >&5
18092 ac_cv_lib_blkid_blkid_get_cache
=no
18095 rm -rf conftest.dSYM
18096 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18097 conftest
$ac_exeext conftest.
$ac_ext
18098 LIBS
=$ac_check_lib_save_LIBS
18100 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
18101 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
18102 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x
""yes; then
18104 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
18105 $as_echo_n "checking for blkid zfs support... " >&6; }
18108 dd if=/dev
/zero of
=$ZFS_DEV bs
=1024k count
=8 \
18109 >/dev
/null
2>/dev
/null
18110 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
18111 dd of
=$ZFS_DEV bs
=1k count
=8 \
18112 seek
=132 conv
=notrunc
&>/dev
/null \
18113 >/dev
/null
2>/dev
/null
18115 saved_LDFLAGS
="$LDFLAGS"
18118 if test "$cross_compiling" = yes; then
18119 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18121 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18122 See \`config.log' for more details." >&5
18123 $as_echo "$as_me: error: cannot run test program while cross compiling
18124 See \`config.log' for more details." >&2;}
18125 { (exit 1); exit 1; }; }; }
18127 cat >conftest.
$ac_ext <<_ACEOF
18130 cat confdefs.h
>>conftest.
$ac_ext
18131 cat >>conftest.
$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18135 #include <blkid/blkid.h>
18144 if (blkid_get_cache(&cache, NULL) < 0)
18147 value = blkid_get_tag_value(cache, "TYPE",
18150 blkid_put_cache(cache);
18154 if (strcmp(value, "zfs")) {
18156 blkid_put_cache(cache);
18161 blkid_put_cache(cache);
18167 rm -f conftest
$ac_exeext
18168 if { (ac_try
="$ac_link"
18169 case "(($ac_try" in
18170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18174 $as_echo "$ac_try_echo") >&5
18175 (eval "$ac_link") 2>&5
18177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18179 { (case "(($ac_try" in
18180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18181 *) ac_try_echo
=$ac_try;;
18183 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18184 $as_echo "$ac_try_echo") >&5
18185 (eval "$ac_try") 2>&5
18187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; }; then
18191 { $as_echo "$as_me:$LINENO: result: yes" >&5
18192 $as_echo "yes" >&6; }
18196 cat >>confdefs.h
<<\_ACEOF
18197 #define HAVE_LIBBLKID 1
18202 $as_echo "$as_me: program exited with status $ac_status" >&5
18203 $as_echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.
$ac_ext >&5
18206 ( exit $ac_status )
18209 { $as_echo "$as_me:$LINENO: result: no" >&5
18210 $as_echo "no" >&6; }
18211 if test "x$with_blkid" != xcheck
; then
18212 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18214 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
18215 See \`config.log' for more details." >&5
18216 $as_echo "$as_me: error: --with-blkid given but unavailable
18217 See \`config.log' for more details." >&2;}
18218 { (exit 1); exit 1; }; }; }
18223 rm -rf conftest.dSYM
18224 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18229 LDFLAGS
="$saved_LDFLAGS"
18233 if test "x$with_blkid" != xcheck
; then
18234 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18236 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
18237 See \`config.log' for more details." >&5
18238 $as_echo "$as_me: error: --with-blkid given but unavailable
18239 See \`config.log' for more details." >&2;}
18240 { (exit 1); exit 1; }; }; }
18253 # Check whether --with-selinux was given.
18254 if test "${with_selinux+set}" = set; then
18255 withval
=$with_selinux;
18262 if test "x$with_selinux" != xno
; then
18264 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
18265 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
18266 $as_echo_n "checking for selinux/selinux.h... " >&6; }
18267 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
18268 $as_echo_n "(cached) " >&6
18270 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
18271 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
18273 # Is the header compilable?
18274 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
18275 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
18276 cat >conftest.
$ac_ext <<_ACEOF
18279 cat confdefs.h
>>conftest.
$ac_ext
18280 cat >>conftest.
$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18282 $ac_includes_default
18283 #include <selinux/selinux.h>
18285 rm -f conftest.
$ac_objext
18286 if { (ac_try
="$ac_compile"
18287 case "(($ac_try" in
18288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18292 $as_echo "$ac_try_echo") >&5
18293 (eval "$ac_compile") 2>conftest.er1
18295 grep -v '^ *+' conftest.er1 >conftest.err
18297 cat conftest.err >&5
18298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } && {
18300 test -z "$ac_c_werror_flag" ||
18301 test ! -s conftest.err
18302 } && test -s conftest.$ac_objext; then
18303 ac_header_compiler=yes
18305 $as_echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18308 ac_header_compiler=no
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18313 $as_echo "$ac_header_compiler" >&6; }
18315 # Is the header present?
18316 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
18317 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
18318 cat >conftest.$ac_ext <<_ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18324 #include <selinux/selinux.h>
18326 if { (ac_try="$ac_cpp conftest.$ac_ext"
18327 case "(($ac_try" in
18328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18329 *) ac_try_echo
=$ac_try;;
18331 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18332 $as_echo "$ac_try_echo") >&5
18333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18335 grep -v '^ *+' conftest.er1
>conftest.err
18337 cat conftest.err
>&5
18338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } >/dev
/null
&& {
18340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18343 ac_header_preproc
=yes
18345 $as_echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.
$ac_ext >&5
18348 ac_header_preproc
=no
18351 rm -f conftest.err conftest.
$ac_ext
18352 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18353 $as_echo "$ac_header_preproc" >&6; }
18355 # So? What about this header?
18356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18358 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
18359 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18360 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
18361 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
18362 ac_header_preproc
=yes
18365 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
18366 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
18367 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
18368 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
18369 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
18370 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
18371 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
18372 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
18373 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
18374 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
18375 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
18376 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
18380 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
18381 $as_echo_n "checking for selinux/selinux.h... " >&6; }
18382 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
18383 $as_echo_n "(cached) " >&6
18385 ac_cv_header_selinux_selinux_h
=$ac_header_preproc
18387 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
18388 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
18391 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then
18393 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
18394 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
18395 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
18396 $as_echo_n "(cached) " >&6
18398 ac_check_lib_save_LIBS
=$LIBS
18399 LIBS
="-lselinux $LIBS"
18400 cat >conftest.
$ac_ext <<_ACEOF
18403 cat confdefs.h
>>conftest.
$ac_ext
18404 cat >>conftest.
$ac_ext <<_ACEOF
18405 /* end confdefs.h. */
18407 /* Override any GCC internal prototype to avoid an error.
18408 Use char because int might match the return type of a GCC
18409 builtin and then its argument prototype would still apply. */
18413 char is_selinux_enabled ();
18417 return is_selinux_enabled ();
18422 rm -f conftest.
$ac_objext conftest
$ac_exeext
18423 if { (ac_try
="$ac_link"
18424 case "(($ac_try" in
18425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18429 $as_echo "$ac_try_echo") >&5
18430 (eval "$ac_link") 2>conftest.er1
18432 grep -v '^ *+' conftest.er1 >conftest.err
18434 cat conftest.err >&5
18435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } && {
18437 test -z "$ac_c_werror_flag" ||
18438 test ! -s conftest.err
18439 } && test -s conftest$ac_exeext && {
18440 test "$cross_compiling" = yes ||
18441 $as_test_x conftest$ac_exeext
18443 ac_cv_lib_selinux_is_selinux_enabled=yes
18445 $as_echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18448 ac_cv_lib_selinux_is_selinux_enabled=no
18451 rm -rf conftest.dSYM
18452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18453 conftest$ac_exeext conftest.$ac_ext
18454 LIBS=$ac_check_lib_save_LIBS
18456 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
18457 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
18458 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
18460 LIBSELINUX="-lselinux"
18463 cat >>confdefs.h <<\_ACEOF
18464 #define HAVE_LIBSELINUX 1
18470 if test "x$with_selinux" != xcheck; then
18471 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18473 { { $as_echo "$as_me:$LINENO: error
: --with-selinux given but unavailable
18474 See \
`config.log' for more details." >&5
18475 $as_echo "$as_me: error: --with-selinux given but unavailable
18476 See \`config.log
' for more details." >&2;}
18477 { (exit 1); exit 1; }; }; }
18487 if test "x$with_selinux" != xcheck; then
18488 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18489 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
18490 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
18491 See \`config.log
' for more details." >&5
18492 $as_echo "$as_me: error: --with-selinux given but unavailable
18493 See \`config.log' for more details.
" >&2;}
18494 { (exit 1); exit 1; }; }; }
18505 { $as_echo "$as_me:$LINENO: checking
for selinux support
" >&5
18506 $as_echo_n "checking
for selinux support...
" >&6; }
18507 { $as_echo "$as_me:$LINENO: result
: no
" >&5
18508 $as_echo "no
" >&6; }
18514 { $as_echo "$as_me:$LINENO: checking
for -Wframe-larger-than=<size
> support
" >&5
18515 $as_echo_n "checking
for -Wframe-larger-than=<size
> support...
" >&6; }
18517 saved_flags="$CFLAGS"
18518 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
18520 if test "$cross_compiling" = yes; then
18521 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
18522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18523 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18524 See \`config.log' for more details.
" >&5
18525 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
18526 See \
`config.log' for more details." >&2;}
18527 { (exit 1); exit 1; }; }; }
18529 cat >conftest.$ac_ext <<_ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18544 rm -f conftest$ac_exeext
18545 if { (ac_try="$ac_link"
18546 case "(($ac_try" in
18547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18548 *) ac_try_echo
=$ac_try;;
18550 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18551 $as_echo "$ac_try_echo") >&5
18552 (eval "$ac_link") 2>&5
18554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18556 { (case "(($ac_try" in
18557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18561 $as_echo "$ac_try_echo") >&5
18562 (eval "$ac_try") 2>&5
18564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; }; then
18567 FRAME_LARGER_THAN=-Wframe-larger-than=1024
18568 { $as_echo "$as_me:$LINENO: result: yes" >&5
18569 $as_echo "yes" >&6; }
18572 $as_echo "$as_me: program exited with status $ac_status" >&5
18573 $as_echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18576 ( exit $ac_status )
18579 { $as_echo "$as_me:$LINENO: result: no" >&5
18580 $as_echo "no" >&6; }
18583 rm -rf conftest.dSYM
18584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18589 CFLAGS="$saved_flags"
18594 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
18595 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
18597 saved_CFLAGS="$CFLAGS"
18598 CFLAGS="-fstack-check"
18599 saved_LDFLAGS="$LDFLAGS"
18600 LDFLAGS="-lpthread"
18602 if test "$cross_compiling" = yes; then
18603 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18605 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
18606 See \
`config.log' for more details." >&5
18607 $as_echo "$as_me: error: cannot run test program while cross compiling
18608 See \`config.log
' for more details." >&2;}
18609 { (exit 1); exit 1; }; }; }
18611 cat >conftest.$ac_ext <<_ACEOF
18614 cat confdefs.h >>conftest.$ac_ext
18615 cat >>conftest.$ac_ext <<_ACEOF
18616 /* end confdefs.h. */
18618 #include <pthread.h>
18619 #include <sys/resource.h>
18620 #include <unistd.h>
18621 #include <bits/local_lim.h>
18623 #define PAGESIZE (sysconf(_SC_PAGESIZE))
18624 #define STACK_SIZE 8192
18625 #define BUFSIZE 4096
18627 void * func(void *arg)
18637 pthread_attr_t attr;
18642 setrlimit(RLIMIT_CORE, &l);
18643 pthread_attr_init(&attr);
18644 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
18645 pthread_attr_setguardsize(&attr, PAGESIZE);
18646 pthread_create(&tid, &attr, func, NULL);
18647 pthread_join(tid, NULL);
18653 rm -f conftest$ac_exeext
18654 if { (ac_try="$ac_link"
18655 case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18660 $as_echo "$ac_try_echo") >&5
18661 (eval "$ac_link") 2>&5
18663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
18665 { (case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18670 $as_echo "$ac_try_echo") >&5
18671 (eval "$ac_try") 2>&5
18673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; }; then
18676 { $as_echo "$as_me:$LINENO: result: no" >&5
18677 $as_echo "no" >&6; }
18680 $as_echo "$as_me: program exited with status $ac_status" >&5
18681 $as_echo "$as_me: failed program was:" >&5
18682 sed 's
/^
/|
/' conftest.$ac_ext >&5
18684 ( exit $ac_status )
18687 cat >>confdefs.h <<\_ACEOF
18688 #define NPTL_GUARD_WITHIN_STACK 1
18691 { $as_echo "$as_me:$LINENO: result: yes" >&5
18692 $as_echo "yes" >&6; }
18695 rm -rf conftest.dSYM
18696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18700 CFLAGS="$saved_CFLAGS"
18701 LDFLAGS="$saved_LDFLAGS"
18707 # Check whether --with-linux was given.
18708 if test "${with_linux+set}" = set; then
18709 withval=$with_linux; kernelsrc="$withval"
18714 # Check whether --with-linux-obj was given.
18715 if test "${with_linux_obj+set}" = set; then
18716 withval=$with_linux_obj; kernelbuild="$withval"
18720 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
18721 $as_echo_n "checking kernel source directory... " >&6; }
18722 if test -z "$kernelsrc"; then
18724 if test -e "/lib/modules/$(uname -r)/source"; then
18726 headersdir="/lib/modules/$(uname -r)/source"
18727 sourcelink=$(readlink -f "$headersdir")
18729 elif test -e "/lib/modules/$(uname -r)/build"; then
18731 headersdir="/lib/modules/$(uname -r)/build"
18732 sourcelink=$(readlink -f "$headersdir")
18736 sourcelink=$(ls -1d /usr/src/kernels/* \
18738 2>/dev/null | grep -v obj | tail -1)
18743 if test -n "$sourcelink" && test -e ${sourcelink}; then
18745 kernelsrc=`readlink -f ${sourcelink}`
18749 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18750 $as_echo "Not found" >&6; }
18751 { { $as_echo "$as_me:$LINENO: error:
18752 *** Please make sure the kernel devel package for your distribution
18753 *** is installed then try again. If that fails you can specify the
18754 *** location of the kernel source with the '--with-linux=PATH
' option." >&5
18755 $as_echo "$as_me: error:
18756 *** Please make sure the kernel devel package for your distribution
18757 *** is installed then try again. If that fails you can specify the
18758 *** location of the kernel source with the '--with-linux=PATH
' option." >&2;}
18759 { (exit 1); exit 1; }; }
18766 if test "$kernelsrc" = "NONE"; then
18776 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
18777 $as_echo "$kernelsrc" >&6; }
18778 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
18779 $as_echo_n "checking kernel build directory... " >&6; }
18780 if test -z "$kernelbuild"; then
18782 if test -e "/lib/modules/$(uname -r)/build"; then
18784 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
18786 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
18788 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
18790 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
18792 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
18794 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
18796 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
18800 kernelbuild=${kernelsrc}
18807 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
18808 $as_echo "$kernelbuild" >&6; }
18810 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
18811 $as_echo_n "checking kernel source version... " >&6; }
18812 utsrelease1=$kernelbuild/include/linux/version.h
18813 utsrelease2=$kernelbuild/include/linux/utsrelease.h
18814 utsrelease3=$kernelbuild/include/generated/utsrelease.h
18815 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
18817 utsrelease=linux/version.h
18819 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
18821 utsrelease=linux/utsrelease.h
18823 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
18825 utsrelease=generated/utsrelease.h
18830 if test "$utsrelease"; then
18832 kernsrcver=`(echo "#include <$utsrelease>";
18833 echo "kernsrcver=UTS_RELEASE") |
18834 cpp -I $kernelbuild/include |
18835 grep "^kernsrcver=" | cut -d \" -f 2`
18837 if test -z "$kernsrcver"; then
18839 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18840 $as_echo "Not found" >&6; }
18841 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
18842 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
18843 { (exit 1); exit 1; }; }
18850 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18851 $as_echo "Not found" >&6; }
18852 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
18853 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
18854 { (exit 1); exit 1; }; }
18859 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
18860 $as_echo "$kernsrcver" >&6; }
18863 LINUX_OBJ=${kernelbuild}
18864 LINUX_VERSION=${kernsrcver}
18871 modpost=$LINUX/scripts/Makefile.modpost
18872 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
18873 $as_echo_n "checking kernel file name for module symbols... " >&6; }
18874 if test -f "$modpost"; then
18876 if grep -q Modules.symvers $modpost; then
18878 LINUX_SYMBOLS=Modules.symvers
18882 LINUX_SYMBOLS=Module.symvers
18887 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
18889 { { $as_echo "$as_me:$LINENO: error:
18890 *** Please make sure the kernel devel package for your distribution
18891 *** is installed. If your building with a custom kernel make sure the
18892 *** kernel is configured, built, and the '--with-linux=PATH
' configure
18893 *** option refers to the location of the kernel source." >&5
18894 $as_echo "$as_me: error:
18895 *** Please make sure the kernel devel package for your distribution
18896 *** is installed. If your building with a custom kernel make sure the
18897 *** kernel is configured, built, and the '--with-linux=PATH
' configure
18898 *** option refers to the location of the kernel source." >&2;}
18899 { (exit 1); exit 1; }; }
18910 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
18911 $as_echo "$LINUX_SYMBOLS" >&6; }
18917 # Check whether --with-spl was given.
18918 if test "${with_spl+set}" = set; then
18919 withval=$with_spl; splsrc="$withval"
18924 # Check whether --with-spl-obj was given.
18925 if test "${with_spl_obj+set}" = set; then
18926 withval=$with_spl_obj; splbuild="$withval"
18931 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
18932 $as_echo_n "checking spl source directory... " >&6; }
18933 if test -z "$splsrc"; then
18935 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
18936 2>/dev/null | tail -1`
18938 if test -z "$sourcelink" || test ! -e $sourcelink; then
18945 if test -e $sourcelink; then
18947 splsrc=`readlink -f ${sourcelink}`
18951 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18952 $as_echo "Not found" >&6; }
18953 { { $as_echo "$as_me:$LINENO: error:
18954 *** Please make sure the spl devel package for your distribution
18955 *** is installed then try again. If that fails you can specify the
18956 *** location of the spl source with the '--with-spl=PATH
' option." >&5
18957 $as_echo "$as_me: error:
18958 *** Please make sure the spl devel package for your distribution
18959 *** is installed then try again. If that fails you can specify the
18960 *** location of the spl source with the '--with-spl=PATH
' option." >&2;}
18961 { (exit 1); exit 1; }; }
18968 if test "$splsrc" = "NONE"; then
18979 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
18980 $as_echo "$splsrc" >&6; }
18981 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
18982 $as_echo_n "checking spl build directory... " >&6; }
18983 if test -z "$splbuild"; then
18989 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
18990 $as_echo "$splbuild" >&6; }
18992 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
18993 $as_echo_n "checking spl source version... " >&6; }
18994 if test -r $splbuild/spl_config.h &&
18995 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
18998 splsrcver=`(echo "#include <spl_config.h>";
18999 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
19001 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
19006 if test -z "$splsrcver"; then
19008 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19009 $as_echo "Not found" >&6; }
19010 { { $as_echo "$as_me:$LINENO: error:
19011 *** Cannot determine the version of the spl source.
19012 *** Please prepare the spl source before running this script" >&5
19013 $as_echo "$as_me: error:
19014 *** Cannot determine the version of the spl source.
19015 *** Please prepare the spl source before running this script" >&2;}
19016 { (exit 1); exit 1; }; }
19021 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
19022 $as_echo "$splsrcver" >&6; }
19025 SPL_OBJ=${splbuild}
19026 SPL_VERSION=${splsrcver}
19033 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
19034 $as_echo_n "checking spl file name for module symbols... " >&6; }
19035 if test -r $SPL_OBJ/Module.symvers; then
19037 SPL_SYMBOLS=Module.symvers
19039 elif test -r $SPL_OBJ/Modules.symvers; then
19041 SPL_SYMBOLS=Modules.symvers
19043 elif test -r $SPL_OBJ/module/Module.symvers; then
19045 SPL_SYMBOLS=Module.symvers
19047 elif test -r $SPL_OBJ/module/Modules.symvers; then
19049 SPL_SYMBOLS=Modules.symvers
19053 SPL_SYMBOLS=$LINUX_SYMBOLS
19058 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
19059 $as_echo "$SPL_SYMBOLS" >&6; }
19065 if test "$ZFS_META_LICENSE" = GPL; then
19068 cat >>confdefs.h <<\_ACEOF
19069 #define HAVE_GPL_ONLY_SYMBOLS 1
19078 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
19079 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
19082 cat confdefs.h - <<_ACEOF >conftest.c
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19090 #include <linux/module.h>
19096 #ifndef CONFIG_PREEMPT
19097 #error CONFIG_PREEMPT not #defined
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
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
19118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19121 { $as_echo "$as_me:$LINENO: result: yes" >&5
19122 $as_echo "yes" >&6; }
19123 { { $as_echo "$as_me:$LINENO: error:
19124 *** Kernel built with CONFIG_PREEMPT which is not supported.
19125 *** You must rebuild your kernel without this option." >&5
19126 $as_echo "$as_me: error:
19127 *** Kernel built with CONFIG_PREEMPT which is not supported.
19128 *** You must rebuild your kernel without this option." >&2;}
19129 { (exit 1); exit 1; }; }
19132 $as_echo "$as_me: failed program was:" >&5
19133 sed 's
/^
/|
/' conftest.$ac_ext >&5
19135 { $as_echo "$as_me:$LINENO: result: no" >&5
19136 $as_echo "no" >&6; }
19150 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
19151 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
19154 cat confdefs.h - <<_ACEOF >conftest.c
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19162 #include <linux/module.h>
19168 #ifndef CONFIG_DEBUG_LOCK_ALLOC
19169 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
19179 rm -Rf build && mkdir -p build
19180 echo "obj-m := conftest.o" >build/Makefile
19181 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19193 { $as_echo "$as_me:$LINENO: result: yes" >&5
19194 $as_echo "yes" >&6; }
19196 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
19197 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
19198 tmp_flags="$EXTRA_KCFLAGS"
19201 cat confdefs.h - <<_ACEOF >conftest.c
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19209 #include <linux/module.h>
19210 #include <linux/mutex.h>
19212 MODULE_LICENSE("$ZFS_META_LICENSE");
19222 mutex_unlock(&lock);
19231 rm -Rf build && mkdir -p build
19232 echo "obj-m := conftest.o" >build/Makefile
19233 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; }; then
19245 { $as_echo "$as_me:$LINENO: result: no" >&5
19246 $as_echo "no" >&6; }
19249 $as_echo "$as_me: failed program was:" >&5
19250 sed 's
/^
/|
/' conftest.$ac_ext >&5
19252 { $as_echo "$as_me:$LINENO: result: yes" >&5
19253 $as_echo "yes" >&6; }
19254 { { $as_echo "$as_me:$LINENO: error:
19255 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
19256 *** with the CDDL license and will prevent the module linking stage
19257 *** from succeeding. You must rebuild your kernel without this
19258 *** option enabled." >&5
19259 $as_echo "$as_me: error:
19260 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
19261 *** with the CDDL license and will prevent the module linking stage
19262 *** from succeeding. You must rebuild your kernel without this
19263 *** option enabled." >&2;}
19264 { (exit 1); exit 1; }; }
19273 EXTRA_KCFLAGS="$tmp_flags"
19277 $as_echo "$as_me: failed program was:" >&5
19278 sed 's
/^
/|
/' conftest.$ac_ext >&5
19280 { $as_echo "$as_me:$LINENO: result: no" >&5
19281 $as_echo "no" >&6; }
19295 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
19296 $as_echo_n "checking block device operation prototypes... " >&6; }
19297 tmp_flags="$EXTRA_KCFLAGS"
19298 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19301 cat confdefs.h - <<_ACEOF >conftest.c
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19309 #include <linux/blkdev.h>
19315 int (*blk_open) (struct block_device *, fmode_t) = NULL;
19316 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
19317 int (*blk_ioctl) (struct block_device *, fmode_t,
19318 unsigned, unsigned long) = NULL;
19319 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
19320 unsigned, unsigned long) = NULL;
19321 struct block_device_operations blk_ops = {
19323 .release = blk_release,
19324 .ioctl = blk_ioctl,
19325 .compat_ioctl = blk_compat_ioctl,
19328 blk_ops.open(NULL, 0);
19329 blk_ops.release(NULL, 0);
19330 blk_ops.ioctl(NULL, 0, 0, 0);
19331 blk_ops.compat_ioctl(NULL, 0, 0, 0);
19340 rm -Rf build && mkdir -p build
19341 echo "obj-m := conftest.o" >build/Makefile
19342 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
19354 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
19355 $as_echo "struct block_device" >&6; }
19357 cat >>confdefs.h <<\_ACEOF
19358 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
19363 $as_echo "$as_me: failed program was:" >&5
19364 sed 's
/^
/|
/' conftest.$ac_ext >&5
19366 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
19367 $as_echo "struct inode" >&6; }
19376 EXTRA_KCFLAGS="$tmp_flags"
19378 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
19379 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
19382 cat confdefs.h - <<_ACEOF >conftest.c
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h. */
19390 #include <linux/types.h>
19396 fmode_t *ptr __attribute__ ((unused));
19405 rm -Rf build && mkdir -p build
19406 echo "obj-m := conftest.o" >build/Makefile
19407 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19419 { $as_echo "$as_me:$LINENO: result: yes" >&5
19420 $as_echo "yes" >&6; }
19422 cat >>confdefs.h <<\_ACEOF
19423 #define HAVE_FMODE_T 1
19428 $as_echo "$as_me: failed program was:" >&5
19429 sed 's
/^
/|
/' conftest.$ac_ext >&5
19431 { $as_echo "$as_me:$LINENO: result: no" >&5
19432 $as_echo "no" >&6; }
19443 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
19444 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
19447 cat confdefs.h - <<_ACEOF >conftest.c
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19455 #include <linux/kobject.h>
19461 int val __attribute__ ((unused));
19462 val = KOBJ_NAME_LEN;
19471 rm -Rf build && mkdir -p build
19472 echo "obj-m := conftest.o" >build/Makefile
19473 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19485 { $as_echo "$as_me:$LINENO: result: yes" >&5
19486 $as_echo "yes" >&6; }
19488 cat >>confdefs.h <<\_ACEOF
19489 #define HAVE_KOBJ_NAME_LEN 1
19494 $as_echo "$as_me: failed program was:" >&5
19495 sed 's
/^
/|
/' conftest.$ac_ext >&5
19497 { $as_echo "$as_me:$LINENO: result: no" >&5
19498 $as_echo "no" >&6; }
19509 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
19510 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
19513 cat confdefs.h - <<_ACEOF >conftest.c
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19521 #include <linux/fs.h>
19527 struct block_device *bdev = NULL;
19528 (void) blkdev_get(bdev, 0, NULL);
19537 rm -Rf build && mkdir -p build
19538 echo "obj-m := conftest.o" >build/Makefile
19539 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
19551 { $as_echo "$as_me:$LINENO: result: yes" >&5
19552 $as_echo "yes" >&6; }
19554 cat >>confdefs.h <<\_ACEOF
19555 #define HAVE_3ARG_BLKDEV_GET 1
19560 $as_echo "$as_me: failed program was:" >&5
19561 sed 's
/^
/|
/' conftest.$ac_ext >&5
19563 { $as_echo "$as_me:$LINENO: result: no" >&5
19564 $as_echo "no" >&6; }
19575 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
19576 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
19577 grep -q -E '[[:space
:]]blkdev_get_by_path
[[:space
:]]' \
19578 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19580 if test $rc -ne 0; then
19583 for file in fs/block_dev.c; do
19584 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
19586 if test $rc -eq 0; then
19594 if test $export -eq 0; then
19596 { $as_echo "$as_me:$LINENO: result: no" >&5
19597 $as_echo "no" >&6; }
19602 { $as_echo "$as_me:$LINENO: result: yes" >&5
19603 $as_echo "yes" >&6; }
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_BLKDEV_GET_BY_PATH 1
19615 { $as_echo "$as_me:$LINENO: result: yes" >&5
19616 $as_echo "yes" >&6; }
19618 cat >>confdefs.h <<\_ACEOF
19619 #define HAVE_BLKDEV_GET_BY_PATH 1
19628 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
19629 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
19630 grep -q -E '[[:space
:]]open_bdev_exclusive
[[:space
:]]' \
19631 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19633 if test $rc -ne 0; then
19636 for file in fs/block_dev.c; do
19637 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
19639 if test $rc -eq 0; then
19647 if test $export -eq 0; then
19649 { $as_echo "$as_me:$LINENO: result: no" >&5
19650 $as_echo "no" >&6; }
19655 { $as_echo "$as_me:$LINENO: result: yes" >&5
19656 $as_echo "yes" >&6; }
19658 cat >>confdefs.h <<\_ACEOF
19659 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
19668 { $as_echo "$as_me:$LINENO: result: yes" >&5
19669 $as_echo "yes" >&6; }
19671 cat >>confdefs.h <<\_ACEOF
19672 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
19681 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
19682 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
19685 cat confdefs.h - <<_ACEOF >conftest.c
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19693 #include <linux/buffer_head.h>
19699 struct block_device *bdev = NULL;
19700 invalidate_bdev(bdev);
19709 rm -Rf build && mkdir -p build
19710 echo "obj-m := conftest.o" >build/Makefile
19711 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718 (eval $ac_try) 2>&5
19720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; }; then
19723 { $as_echo "$as_me:$LINENO: result: yes" >&5
19724 $as_echo "yes" >&6; }
19726 cat >>confdefs.h <<\_ACEOF
19727 #define HAVE_1ARG_INVALIDATE_BDEV 1
19732 $as_echo "$as_me: failed program was:" >&5
19733 sed 's
/^
/|
/' conftest.$ac_ext >&5
19735 { $as_echo "$as_me:$LINENO: result: no" >&5
19736 $as_echo "no" >&6; }
19747 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
19748 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
19749 tmp_flags="$EXTRA_KCFLAGS"
19750 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19753 cat confdefs.h - <<_ACEOF >conftest.c
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h. */
19761 #include <linux/blkdev.h>
19767 struct block_device *bdev = NULL;
19768 bdev_logical_block_size(bdev);
19777 rm -Rf build && mkdir -p build
19778 echo "obj-m := conftest.o" >build/Makefile
19779 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19791 { $as_echo "$as_me:$LINENO: result: yes" >&5
19792 $as_echo "yes" >&6; }
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
19800 $as_echo "$as_me: failed program was:" >&5
19801 sed 's
/^
/|
/' conftest.$ac_ext >&5
19803 { $as_echo "$as_me:$LINENO: result: no" >&5
19804 $as_echo "no" >&6; }
19813 EXTRA_KCFLAGS="$tmp_flags"
19816 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
19817 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
19818 EXTRA_KCFLAGS="-Werror"
19821 cat confdefs.h - <<_ACEOF >conftest.c
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h. */
19829 #include <linux/bio.h>
19836 (void)bio_empty_barrier(&bio);
19845 rm -Rf build && mkdir -p build
19846 echo "obj-m := conftest.o" >build/Makefile
19847 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; }; then
19859 { $as_echo "$as_me:$LINENO: result: yes" >&5
19860 $as_echo "yes" >&6; }
19862 cat >>confdefs.h <<\_ACEOF
19863 #define HAVE_BIO_EMPTY_BARRIER 1
19868 $as_echo "$as_me: failed program was:" >&5
19869 sed 's
/^
/|
/' conftest.$ac_ext >&5
19871 { $as_echo "$as_me:$LINENO: result: no" >&5
19872 $as_echo "no" >&6; }
19883 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
19884 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
19887 cat confdefs.h - <<_ACEOF >conftest.c
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19895 #include <linux/bio.h>
19901 int flags __attribute__ ((unused));
19902 flags = (1 << BIO_RW_FAILFAST);
19911 rm -Rf build && mkdir -p build
19912 echo "obj-m := conftest.o" >build/Makefile
19913 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; }; then
19925 { $as_echo "$as_me:$LINENO: result: yes" >&5
19926 $as_echo "yes" >&6; }
19928 cat >>confdefs.h <<\_ACEOF
19929 #define HAVE_BIO_RW_FAILFAST 1
19934 $as_echo "$as_me: failed program was:" >&5
19935 sed 's
/^
/|
/' conftest.$ac_ext >&5
19937 { $as_echo "$as_me:$LINENO: result: no" >&5
19938 $as_echo "no" >&6; }
19949 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
19950 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
19953 cat confdefs.h - <<_ACEOF >conftest.c
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19961 #include <linux/bio.h>
19967 int flags __attribute__ ((unused));
19968 flags = ((1 << BIO_RW_FAILFAST_DEV) |
19969 (1 << BIO_RW_FAILFAST_TRANSPORT) |
19970 (1 << BIO_RW_FAILFAST_DRIVER));
19979 rm -Rf build && mkdir -p build
19980 echo "obj-m := conftest.o" >build/Makefile
19981 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; }; then
19993 { $as_echo "$as_me:$LINENO: result: yes" >&5
19994 $as_echo "yes" >&6; }
19996 cat >>confdefs.h <<\_ACEOF
19997 #define HAVE_BIO_RW_FAILFAST_DTD 1
20002 $as_echo "$as_me: failed program was:" >&5
20003 sed 's
/^
/|
/' conftest.$ac_ext >&5
20005 { $as_echo "$as_me:$LINENO: result: no" >&5
20006 $as_echo "no" >&6; }
20017 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
20018 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
20021 cat confdefs.h - <<_ACEOF >conftest.c
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20029 #include <linux/bio.h>
20035 int flags __attribute__ ((unused));
20036 flags = REQ_FAILFAST_MASK;
20045 rm -Rf build && mkdir -p build
20046 echo "obj-m := conftest.o" >build/Makefile
20047 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20059 { $as_echo "$as_me:$LINENO: result: yes" >&5
20060 $as_echo "yes" >&6; }
20062 cat >>confdefs.h <<\_ACEOF
20063 #define HAVE_BIO_REQ_FAILFAST_MASK 1
20068 $as_echo "$as_me: failed program was:" >&5
20069 sed 's
/^
/|
/' conftest.$ac_ext >&5
20071 { $as_echo "$as_me:$LINENO: result: no" >&5
20072 $as_echo "no" >&6; }
20083 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
20084 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
20085 tmp_flags="$EXTRA_KCFLAGS"
20086 EXTRA_KCFLAGS="-Werror"
20089 cat confdefs.h - <<_ACEOF >conftest.c
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20097 #include <linux/bio.h>
20103 void (*wanted_end_io)(struct bio *, int) = NULL;
20104 bio_end_io_t *local_end_io __attribute__ ((unused));
20106 local_end_io = wanted_end_io;
20115 rm -Rf build && mkdir -p build
20116 echo "obj-m := conftest.o" >build/Makefile
20117 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20129 { $as_echo "$as_me:$LINENO: result: yes" >&5
20130 $as_echo "yes" >&6; }
20132 cat >>confdefs.h <<\_ACEOF
20133 #define HAVE_2ARGS_BIO_END_IO_T 1
20138 $as_echo "$as_me: failed program was:" >&5
20139 sed 's
/^
/|
/' conftest.$ac_ext >&5
20141 { $as_echo "$as_me:$LINENO: result: no" >&5
20142 $as_echo "no" >&6; }
20151 EXTRA_KCFLAGS="$tmp_flags"
20154 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
20155 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
20158 cat confdefs.h - <<_ACEOF >conftest.c
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20166 #include <linux/bio.h>
20172 int flags __attribute__ ((unused));
20173 flags = BIO_RW_SYNC;
20182 rm -Rf build && mkdir -p build
20183 echo "obj-m := conftest.o" >build/Makefile
20184 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; }; then
20196 { $as_echo "$as_me:$LINENO: result: yes" >&5
20197 $as_echo "yes" >&6; }
20199 cat >>confdefs.h <<\_ACEOF
20200 #define HAVE_BIO_RW_SYNC 1
20205 $as_echo "$as_me: failed program was:" >&5
20206 sed 's
/^
/|
/' conftest.$ac_ext >&5
20208 { $as_echo "$as_me:$LINENO: result: no" >&5
20209 $as_echo "no" >&6; }
20220 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
20221 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
20224 cat confdefs.h - <<_ACEOF >conftest.c
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20232 #include <linux/bio.h>
20238 int flags __attribute__ ((unused));
20239 flags = BIO_RW_SYNCIO;
20248 rm -Rf build && mkdir -p build
20249 echo "obj-m := conftest.o" >build/Makefile
20250 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252 (eval $ac_try) 2>&5
20254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; }; then
20262 { $as_echo "$as_me:$LINENO: result: yes" >&5
20263 $as_echo "yes" >&6; }
20265 cat >>confdefs.h <<\_ACEOF
20266 #define HAVE_BIO_RW_SYNCIO 1
20271 $as_echo "$as_me: failed program was:" >&5
20272 sed 's
/^
/|
/' conftest.$ac_ext >&5
20274 { $as_echo "$as_me:$LINENO: result: no" >&5
20275 $as_echo "no" >&6; }
20286 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
20287 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
20290 cat confdefs.h - <<_ACEOF >conftest.c
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20298 #include <linux/bio.h>
20304 int flags __attribute__ ((unused));
20314 rm -Rf build && mkdir -p build
20315 echo "obj-m := conftest.o" >build/Makefile
20316 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20328 { $as_echo "$as_me:$LINENO: result: yes" >&5
20329 $as_echo "yes" >&6; }
20331 cat >>confdefs.h <<\_ACEOF
20332 #define HAVE_REQ_SYNC 1
20337 $as_echo "$as_me: failed program was:" >&5
20338 sed 's
/^
/|
/' conftest.$ac_ext >&5
20340 { $as_echo "$as_me:$LINENO: result: no" >&5
20341 $as_echo "no" >&6; }
20352 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
20353 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
20354 tmp_flags="$EXTRA_KCFLAGS"
20355 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20358 cat confdefs.h - <<_ACEOF >conftest.c
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20366 #include <linux/blkdev.h>
20372 struct request *req = NULL;
20373 (void) blk_end_request(req, 0, 0);
20382 rm -Rf build && mkdir -p build
20383 echo "obj-m := conftest.o" >build/Makefile
20384 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20396 { $as_echo "$as_me:$LINENO: result: yes" >&5
20397 $as_echo "yes" >&6; }
20399 cat >>confdefs.h <<\_ACEOF
20400 #define HAVE_BLK_END_REQUEST 1
20405 $as_echo "$as_me: failed program was:" >&5
20406 sed 's
/^
/|
/' conftest.$ac_ext >&5
20408 { $as_echo "$as_me:$LINENO: result: no" >&5
20409 $as_echo "no" >&6; }
20419 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
20420 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
20423 cat confdefs.h - <<_ACEOF >conftest.c
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20431 #include <linux/module.h>
20432 #include <linux/blkdev.h>
20434 MODULE_LICENSE("CDDL");
20440 struct request *req = NULL;
20441 (void) blk_end_request(req, 0, 0);
20450 rm -Rf build && mkdir -p build
20451 echo "obj-m := conftest.o" >build/Makefile
20452 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459 (eval $ac_try) 2>&5
20461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); }; }; then
20464 { $as_echo "$as_me:$LINENO: result: no" >&5
20465 $as_echo "no" >&6; }
20468 $as_echo "$as_me: failed program was:" >&5
20469 sed 's
/^
/|
/' conftest.$ac_ext >&5
20471 { $as_echo "$as_me:$LINENO: result: yes" >&5
20472 $as_echo "yes" >&6; }
20474 cat >>confdefs.h <<\_ACEOF
20475 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
20486 EXTRA_KCFLAGS="$tmp_flags"
20489 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
20490 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
20491 tmp_flags="$EXTRA_KCFLAGS"
20492 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20495 cat confdefs.h - <<_ACEOF >conftest.c
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h. */
20503 #include <linux/blkdev.h>
20509 struct request_queue *q = NULL;
20510 (void) blk_queue_flush(q, REQ_FLUSH);
20519 rm -Rf build && mkdir -p build
20520 echo "obj-m := conftest.o" >build/Makefile
20521 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20533 { $as_echo "$as_me:$LINENO: result: yes" >&5
20534 $as_echo "yes" >&6; }
20536 cat >>confdefs.h <<\_ACEOF
20537 #define HAVE_BLK_QUEUE_FLUSH 1
20542 $as_echo "$as_me: failed program was:" >&5
20543 sed 's
/^
/|
/' conftest.$ac_ext >&5
20545 { $as_echo "$as_me:$LINENO: result: no" >&5
20546 $as_echo "no" >&6; }
20556 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
20557 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
20560 cat confdefs.h - <<_ACEOF >conftest.c
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20568 #include <linux/module.h>
20569 #include <linux/blkdev.h>
20571 MODULE_LICENSE("CDDL");
20577 struct request_queue *q = NULL;
20578 (void) blk_queue_flush(q, REQ_FLUSH);
20587 rm -Rf build && mkdir -p build
20588 echo "obj-m := conftest.o" >build/Makefile
20589 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20591 (eval $ac_try) 2>&5
20593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20601 { $as_echo "$as_me:$LINENO: result: no" >&5
20602 $as_echo "no" >&6; }
20605 $as_echo "$as_me: failed program was:" >&5
20606 sed 's
/^
/|
/' conftest.$ac_ext >&5
20608 { $as_echo "$as_me:$LINENO: result: yes" >&5
20609 $as_echo "yes" >&6; }
20611 cat >>confdefs.h <<\_ACEOF
20612 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
20623 EXTRA_KCFLAGS="$tmp_flags"
20626 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
20627 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
20628 tmp_flags="$EXTRA_KCFLAGS"
20629 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20632 cat confdefs.h - <<_ACEOF >conftest.c
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h. */
20640 #include <linux/blkdev.h>
20646 struct request_queue *q = NULL;
20647 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
20656 rm -Rf build && mkdir -p build
20657 echo "obj-m := conftest.o" >build/Makefile
20658 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; }; then
20670 { $as_echo "$as_me:$LINENO: result: yes" >&5
20671 $as_echo "yes" >&6; }
20673 cat >>confdefs.h <<\_ACEOF
20674 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
20679 $as_echo "$as_me: failed program was:" >&5
20680 sed 's
/^
/|
/' conftest.$ac_ext >&5
20682 { $as_echo "$as_me:$LINENO: result: no" >&5
20683 $as_echo "no" >&6; }
20692 EXTRA_KCFLAGS="$tmp_flags"
20695 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
20696 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
20697 tmp_flags="$EXTRA_KCFLAGS"
20698 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20701 cat confdefs.h - <<_ACEOF >conftest.c
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20709 #include <linux/blkdev.h>
20715 struct request_queue *q = NULL;
20716 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
20725 rm -Rf build && mkdir -p build
20726 echo "obj-m := conftest.o" >build/Makefile
20727 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20739 { $as_echo "$as_me:$LINENO: result: yes" >&5
20740 $as_echo "yes" >&6; }
20742 cat >>confdefs.h <<\_ACEOF
20743 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
20748 $as_echo "$as_me: failed program was:" >&5
20749 sed 's
/^
/|
/' conftest.$ac_ext >&5
20751 { $as_echo "$as_me:$LINENO: result: no" >&5
20752 $as_echo "no" >&6; }
20761 EXTRA_KCFLAGS="$tmp_flags"
20764 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
20765 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
20766 tmp_flags="$EXTRA_KCFLAGS"
20767 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20770 cat confdefs.h - <<_ACEOF >conftest.c
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20778 #include <linux/blkdev.h>
20784 struct request_queue *q = NULL;
20785 unsigned short block_size = 1;
20786 (void) blk_queue_physical_block_size(q, block_size);
20795 rm -Rf build && mkdir -p build
20796 echo "obj-m := conftest.o" >build/Makefile
20797 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799 (eval $ac_try) 2>&5
20801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804 (eval $ac_try) 2>&5
20806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
20809 { $as_echo "$as_me:$LINENO: result: yes" >&5
20810 $as_echo "yes" >&6; }
20812 cat >>confdefs.h <<\_ACEOF
20813 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
20818 $as_echo "$as_me: failed program was:" >&5
20819 sed 's
/^
/|
/' conftest.$ac_ext >&5
20821 { $as_echo "$as_me:$LINENO: result: no" >&5
20822 $as_echo "no" >&6; }
20831 EXTRA_KCFLAGS="$tmp_flags"
20834 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
20835 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
20836 tmp_flags="$EXTRA_KCFLAGS"
20837 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20840 cat confdefs.h - <<_ACEOF >conftest.c
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20848 #include <linux/blkdev.h>
20854 struct request_queue *q = NULL;
20855 unsigned int opt = 1;
20856 (void) blk_queue_io_opt(q, opt);
20865 rm -Rf build && mkdir -p build
20866 echo "obj-m := conftest.o" >build/Makefile
20867 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20879 { $as_echo "$as_me:$LINENO: result: yes" >&5
20880 $as_echo "yes" >&6; }
20882 cat >>confdefs.h <<\_ACEOF
20883 #define HAVE_BLK_QUEUE_IO_OPT 1
20888 $as_echo "$as_me: failed program was:" >&5
20889 sed 's
/^
/|
/' conftest.$ac_ext >&5
20891 { $as_echo "$as_me:$LINENO: result: no" >&5
20892 $as_echo "no" >&6; }
20901 EXTRA_KCFLAGS="$tmp_flags"
20904 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
20905 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
20906 tmp_flags="$EXTRA_KCFLAGS"
20907 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20910 cat confdefs.h - <<_ACEOF >conftest.c
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20918 #include <linux/blkdev.h>
20924 struct request_queue *q = NULL;
20925 (void) blk_queue_nonrot(q);
20934 rm -Rf build && mkdir -p build
20935 echo "obj-m := conftest.o" >build/Makefile
20936 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
20937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20938 (eval $ac_try) 2>&5
20940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20943 (eval $ac_try) 2>&5
20945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
20948 { $as_echo "$as_me:$LINENO: result: yes" >&5
20949 $as_echo "yes" >&6; }
20951 cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_BLK_QUEUE_NONROT 1
20957 $as_echo "$as_me: failed program was:" >&5
20958 sed 's
/^
/|
/' conftest.$ac_ext >&5
20960 { $as_echo "$as_me:$LINENO: result: no" >&5
20961 $as_echo "no" >&6; }
20970 EXTRA_KCFLAGS="$tmp_flags"
20973 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
20974 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
20975 tmp_flags="$EXTRA_KCFLAGS"
20976 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20979 cat confdefs.h - <<_ACEOF >conftest.c
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20987 #include <linux/blkdev.h>
20993 struct request_queue *q = NULL;
20994 (void) blk_queue_discard(q);
21003 rm -Rf build && mkdir -p build
21004 echo "obj-m := conftest.o" >build/Makefile
21005 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; }; then
21017 { $as_echo "$as_me:$LINENO: result: yes" >&5
21018 $as_echo "yes" >&6; }
21020 cat >>confdefs.h <<\_ACEOF
21021 #define HAVE_BLK_QUEUE_DISCARD 1
21026 $as_echo "$as_me: failed program was:" >&5
21027 sed 's
/^
/|
/' conftest.$ac_ext >&5
21029 { $as_echo "$as_me:$LINENO: result: no" >&5
21030 $as_echo "no" >&6; }
21039 EXTRA_KCFLAGS="$tmp_flags"
21042 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
21043 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
21044 tmp_flags="$EXTRA_KCFLAGS"
21045 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21048 cat confdefs.h - <<_ACEOF >conftest.c
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21056 #include <linux/blkdev.h>
21062 struct request_queue *q = NULL;
21063 (void) blk_fetch_request(q);
21072 rm -Rf build && mkdir -p build
21073 echo "obj-m := conftest.o" >build/Makefile
21074 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21086 { $as_echo "$as_me:$LINENO: result: yes" >&5
21087 $as_echo "yes" >&6; }
21089 cat >>confdefs.h <<\_ACEOF
21090 #define HAVE_BLK_FETCH_REQUEST 1
21095 $as_echo "$as_me: failed program was:" >&5
21096 sed 's
/^
/|
/' conftest.$ac_ext >&5
21098 { $as_echo "$as_me:$LINENO: result: no" >&5
21099 $as_echo "no" >&6; }
21108 EXTRA_KCFLAGS="$tmp_flags"
21111 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
21112 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
21113 tmp_flags="$EXTRA_KCFLAGS"
21114 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21117 cat confdefs.h - <<_ACEOF >conftest.c
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21125 #include <linux/blkdev.h>
21131 struct request_queue *q = NULL;
21132 struct request *req = NULL;
21133 blk_requeue_request(q, req);
21142 rm -Rf build && mkdir -p build
21143 echo "obj-m := conftest.o" >build/Makefile
21144 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21156 { $as_echo "$as_me:$LINENO: result: yes" >&5
21157 $as_echo "yes" >&6; }
21159 cat >>confdefs.h <<\_ACEOF
21160 #define HAVE_BLK_REQUEUE_REQUEST 1
21165 $as_echo "$as_me: failed program was:" >&5
21166 sed 's
/^
/|
/' conftest.$ac_ext >&5
21168 { $as_echo "$as_me:$LINENO: result: no" >&5
21169 $as_echo "no" >&6; }
21178 EXTRA_KCFLAGS="$tmp_flags"
21181 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
21182 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
21183 tmp_flags="$EXTRA_KCFLAGS"
21184 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21187 cat confdefs.h - <<_ACEOF >conftest.c
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21195 #include <linux/blkdev.h>
21201 struct request *req = NULL;
21202 (void) blk_rq_bytes(req);
21211 rm -Rf build && mkdir -p build
21212 echo "obj-m := conftest.o" >build/Makefile
21213 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215 (eval $ac_try) 2>&5
21217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220 (eval $ac_try) 2>&5
21222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); }; }; then
21225 { $as_echo "$as_me:$LINENO: result: yes" >&5
21226 $as_echo "yes" >&6; }
21228 cat >>confdefs.h <<\_ACEOF
21229 #define HAVE_BLK_RQ_BYTES 1
21234 $as_echo "$as_me: failed program was:" >&5
21235 sed 's
/^
/|
/' conftest.$ac_ext >&5
21237 { $as_echo "$as_me:$LINENO: result: no" >&5
21238 $as_echo "no" >&6; }
21248 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
21249 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
21252 cat confdefs.h - <<_ACEOF >conftest.c
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21260 #include <linux/module.h>
21261 #include <linux/blkdev.h>
21263 MODULE_LICENSE("CDDL");
21269 struct request *req = NULL;
21270 (void) blk_rq_bytes(req);
21279 rm -Rf build && mkdir -p build
21280 echo "obj-m := conftest.o" >build/Makefile
21281 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; }; then
21293 { $as_echo "$as_me:$LINENO: result: no" >&5
21294 $as_echo "no" >&6; }
21297 $as_echo "$as_me: failed program was:" >&5
21298 sed 's
/^
/|
/' conftest.$ac_ext >&5
21300 { $as_echo "$as_me:$LINENO: result: yes" >&5
21301 $as_echo "yes" >&6; }
21303 cat >>confdefs.h <<\_ACEOF
21304 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
21315 EXTRA_KCFLAGS="$tmp_flags"
21318 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
21319 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
21320 tmp_flags="$EXTRA_KCFLAGS"
21321 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21324 cat confdefs.h - <<_ACEOF >conftest.c
21327 cat confdefs.h >>conftest.$ac_ext
21328 cat >>conftest.$ac_ext <<_ACEOF
21329 /* end confdefs.h. */
21332 #include <linux/blkdev.h>
21338 struct request *req = NULL;
21339 (void) blk_rq_pos(req);
21348 rm -Rf build && mkdir -p build
21349 echo "obj-m := conftest.o" >build/Makefile
21350 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; }; then
21362 { $as_echo "$as_me:$LINENO: result: yes" >&5
21363 $as_echo "yes" >&6; }
21365 cat >>confdefs.h <<\_ACEOF
21366 #define HAVE_BLK_RQ_POS 1
21371 $as_echo "$as_me: failed program was:" >&5
21372 sed 's
/^
/|
/' conftest.$ac_ext >&5
21374 { $as_echo "$as_me:$LINENO: result: no" >&5
21375 $as_echo "no" >&6; }
21384 EXTRA_KCFLAGS="$tmp_flags"
21387 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
21388 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
21389 tmp_flags="$EXTRA_KCFLAGS"
21390 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21393 cat confdefs.h - <<_ACEOF >conftest.c
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21401 #include <linux/blkdev.h>
21407 struct request *req = NULL;
21408 (void) blk_rq_sectors(req);
21417 rm -Rf build && mkdir -p build
21418 echo "obj-m := conftest.o" >build/Makefile
21419 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
21431 { $as_echo "$as_me:$LINENO: result: yes" >&5
21432 $as_echo "yes" >&6; }
21434 cat >>confdefs.h <<\_ACEOF
21435 #define HAVE_BLK_RQ_SECTORS 1
21440 $as_echo "$as_me: failed program was:" >&5
21441 sed 's
/^
/|
/' conftest.$ac_ext >&5
21443 { $as_echo "$as_me:$LINENO: result: no" >&5
21444 $as_echo "no" >&6; }
21453 EXTRA_KCFLAGS="$tmp_flags"
21456 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
21457 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
21458 tmp_flags="$EXTRA_KCFLAGS"
21459 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21462 cat confdefs.h - <<_ACEOF >conftest.c
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21470 #include <linux/blkdev.h>
21476 struct gendisk *disk = NULL;
21477 (void) get_disk_ro(disk);
21486 rm -Rf build && mkdir -p build
21487 echo "obj-m := conftest.o" >build/Makefile
21488 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21500 { $as_echo "$as_me:$LINENO: result: yes" >&5
21501 $as_echo "yes" >&6; }
21503 cat >>confdefs.h <<\_ACEOF
21504 #define HAVE_GET_DISK_RO 1
21509 $as_echo "$as_me: failed program was:" >&5
21510 sed 's
/^
/|
/' conftest.$ac_ext >&5
21512 { $as_echo "$as_me:$LINENO: result: no" >&5
21513 $as_echo "no" >&6; }
21522 EXTRA_KCFLAGS="$tmp_flags"
21525 { $as_echo "$as_me:$LINENO: checking whether symbol get_gendisk is exported" >&5
21526 $as_echo_n "checking whether symbol get_gendisk is exported... " >&6; }
21527 grep -q -E '[[:space
:]]get_gendisk
[[:space
:]]' \
21528 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21530 if test $rc -ne 0; then
21533 for file in block/genhd.c; do
21534 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" "$LINUX/$file" 2>/dev/null
21536 if test $rc -eq 0; then
21544 if test $export -eq 0; then
21546 { $as_echo "$as_me:$LINENO: result: no" >&5
21547 $as_echo "no" >&6; }
21552 { $as_echo "$as_me:$LINENO: result: yes" >&5
21553 $as_echo "yes" >&6; }
21555 cat >>confdefs.h <<\_ACEOF
21556 #define HAVE_GET_GENDISK 1
21565 { $as_echo "$as_me:$LINENO: result: yes" >&5
21566 $as_echo "yes" >&6; }
21568 cat >>confdefs.h <<\_ACEOF
21569 #define HAVE_GET_GENDISK 1
21578 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
21579 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
21580 tmp_flags="$EXTRA_KCFLAGS"
21581 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21584 cat confdefs.h - <<_ACEOF >conftest.c
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21592 #include <linux/blkdev.h>
21598 struct request *req = NULL;
21599 (void) rq_is_sync(req);
21608 rm -Rf build && mkdir -p build
21609 echo "obj-m := conftest.o" >build/Makefile
21610 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21612 (eval $ac_try) 2>&5
21614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; }; then
21622 { $as_echo "$as_me:$LINENO: result: yes" >&5
21623 $as_echo "yes" >&6; }
21625 cat >>confdefs.h <<\_ACEOF
21626 #define HAVE_RQ_IS_SYNC 1
21631 $as_echo "$as_me: failed program was:" >&5
21632 sed 's
/^
/|
/' conftest.$ac_ext >&5
21634 { $as_echo "$as_me:$LINENO: result: no" >&5
21635 $as_echo "no" >&6; }
21644 EXTRA_KCFLAGS="$tmp_flags"
21647 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
21648 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
21649 tmp_flags="$EXTRA_KCFLAGS"
21650 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21653 cat confdefs.h - <<_ACEOF >conftest.c
21656 cat confdefs.h >>conftest.$ac_ext
21657 cat >>conftest.$ac_ext <<_ACEOF
21658 /* end confdefs.h. */
21661 #include <linux/blkdev.h>
21667 struct bio_vec *bv;
21668 struct req_iterator iter;
21669 struct request *req = NULL;
21670 rq_for_each_segment(bv, req, iter) { }
21679 rm -Rf build && mkdir -p build
21680 echo "obj-m := conftest.o" >build/Makefile
21681 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; }; then
21693 { $as_echo "$as_me:$LINENO: result: yes" >&5
21694 $as_echo "yes" >&6; }
21696 cat >>confdefs.h <<\_ACEOF
21697 #define HAVE_RQ_FOR_EACH_SEGMENT 1
21702 $as_echo "$as_me: failed program was:" >&5
21703 sed 's
/^
/|
/' conftest.$ac_ext >&5
21705 { $as_echo "$as_me:$LINENO: result: no" >&5
21706 $as_echo "no" >&6; }
21715 EXTRA_KCFLAGS="$tmp_flags"
21717 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
21718 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
21721 cat confdefs.h - <<_ACEOF >conftest.c
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21729 #include <linux/fs.h>
21730 #include <linux/xattr.h>
21732 const struct xattr_handler xattr_test_handler = {
21738 const struct xattr_handler *xattr_handlers[] = {
21739 &xattr_test_handler,
21746 struct super_block sb __attribute__ ((unused));
21748 sb.s_xattr = xattr_handlers;
21757 rm -Rf build && mkdir -p build
21758 echo "obj-m := conftest.o" >build/Makefile
21759 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21771 { $as_echo "$as_me:$LINENO: result: yes" >&5
21772 $as_echo "yes" >&6; }
21774 cat >>confdefs.h <<\_ACEOF
21775 #define HAVE_CONST_XATTR_HANDLER 1
21780 $as_echo "$as_me: failed program was:" >&5
21781 sed 's
/^
/|
/' conftest.$ac_ext >&5
21783 { $as_echo "$as_me:$LINENO: result: no" >&5
21784 $as_echo "no" >&6; }
21795 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
21796 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
21799 cat confdefs.h - <<_ACEOF >conftest.c
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21807 #include <linux/xattr.h>
21813 int (*get)(struct dentry *dentry, const char *name,
21814 void *buffer, size_t size, int handler_flags) = NULL;
21815 struct xattr_handler xops __attribute__ ((unused));
21826 rm -Rf build && mkdir -p build
21827 echo "obj-m := conftest.o" >build/Makefile
21828 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21840 { $as_echo "$as_me:$LINENO: result: yes" >&5
21841 $as_echo "yes" >&6; }
21843 cat >>confdefs.h <<\_ACEOF
21844 #define HAVE_DENTRY_XATTR_GET 1
21849 $as_echo "$as_me: failed program was:" >&5
21850 sed 's
/^
/|
/' conftest.$ac_ext >&5
21852 { $as_echo "$as_me:$LINENO: result: no" >&5
21853 $as_echo "no" >&6; }
21864 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
21865 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
21868 cat confdefs.h - <<_ACEOF >conftest.c
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h. */
21876 #include <linux/xattr.h>
21882 int (*set)(struct dentry *dentry, const char *name,
21883 const void *buffer, size_t size, int flags,
21884 int handler_flags) = NULL;
21885 struct xattr_handler xops __attribute__ ((unused));
21896 rm -Rf build && mkdir -p build
21897 echo "obj-m := conftest.o" >build/Makefile
21898 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900 (eval $ac_try) 2>&5
21902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905 (eval $ac_try) 2>&5
21907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); }; }; then
21910 { $as_echo "$as_me:$LINENO: result: yes" >&5
21911 $as_echo "yes" >&6; }
21913 cat >>confdefs.h <<\_ACEOF
21914 #define HAVE_DENTRY_XATTR_SET 1
21919 $as_echo "$as_me: failed program was:" >&5
21920 sed 's
/^
/|
/' conftest.$ac_ext >&5
21922 { $as_echo "$as_me:$LINENO: result: no" >&5
21923 $as_echo "no" >&6; }
21934 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
21935 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21939 cat confdefs.h - <<_ACEOF >conftest.c
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21947 #include <linux/fs.h>
21949 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
21950 static struct super_operations sops __attribute__ ((unused)) = {
21951 .show_options = show_options,
21966 rm -Rf build && mkdir -p build
21967 echo "obj-m := conftest.o" >build/Makefile
21968 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
21980 { $as_echo "$as_me:$LINENO: result: yes" >&5
21981 $as_echo "yes" >&6; }
21983 cat >>confdefs.h <<\_ACEOF
21984 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
21989 $as_echo "$as_me: failed program was:" >&5
21990 sed 's
/^
/|
/' conftest.$ac_ext >&5
21992 { $as_echo "$as_me:$LINENO: result: no" >&5
21993 $as_echo "no" >&6; }
22004 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
22005 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
22009 cat confdefs.h - <<_ACEOF >conftest.c
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22017 #include <linux/fs.h>
22023 int (*fsync) (struct file *, struct dentry *, int) = NULL;
22024 struct file_operations fops __attribute__ ((unused));
22026 fops.fsync = fsync;
22035 rm -Rf build && mkdir -p build
22036 echo "obj-m := conftest.o" >build/Makefile
22037 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22039 (eval $ac_try) 2>&5
22041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; }; then
22049 { $as_echo "$as_me:$LINENO: result: dentry" >&5
22050 $as_echo "dentry" >&6; }
22052 cat >>confdefs.h <<\_ACEOF
22053 #define HAVE_FSYNC_WITH_DENTRY 1
22058 $as_echo "$as_me: failed program was:" >&5
22059 sed 's
/^
/|
/' conftest.$ac_ext >&5
22073 cat confdefs.h - <<_ACEOF >conftest.c
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h. */
22081 #include <linux/fs.h>
22087 int (*fsync) (struct file *, int) = NULL;
22088 struct file_operations fops __attribute__ ((unused));
22090 fops.fsync = fsync;
22099 rm -Rf build && mkdir -p build
22100 echo "obj-m := conftest.o" >build/Makefile
22101 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; }; then
22113 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
22114 $as_echo "no dentry" >&6; }
22116 cat >>confdefs.h <<\_ACEOF
22117 #define HAVE_FSYNC_WITHOUT_DENTRY 1
22122 $as_echo "$as_me: failed program was:" >&5
22123 sed 's
/^
/|
/' conftest.$ac_ext >&5
22137 cat confdefs.h - <<_ACEOF >conftest.c
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22145 #include <linux/fs.h>
22151 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
22152 struct file_operations fops __attribute__ ((unused));
22154 fops.fsync = fsync;
22163 rm -Rf build && mkdir -p build
22164 echo "obj-m := conftest.o" >build/Makefile
22165 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22172 (eval $ac_try) 2>&5
22174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); }; }; then
22177 { $as_echo "$as_me:$LINENO: result: range" >&5
22178 $as_echo "range" >&6; }
22180 cat >>confdefs.h <<\_ACEOF
22181 #define HAVE_FSYNC_RANGE 1
22186 $as_echo "$as_me: failed program was:" >&5
22187 sed 's
/^
/|
/' conftest.$ac_ext >&5
22201 cat confdefs.h - <<_ACEOF >conftest.c
22204 cat confdefs.h >>conftest.$ac_ext
22205 cat >>conftest.$ac_ext <<_ACEOF
22206 /* end confdefs.h. */
22209 #include <linux/fs.h>
22215 int (*fsync) (struct file *, struct dentry *, int) = NULL;
22216 file_operations_no_const fops __attribute__ ((unused));
22218 fops.fsync = fsync;
22227 rm -Rf build && mkdir -p build
22228 echo "obj-m := conftest.o" >build/Makefile
22229 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231 (eval $ac_try) 2>&5
22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236 (eval $ac_try) 2>&5
22238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); }; }; then
22241 { $as_echo "$as_me:$LINENO: result: dentry" >&5
22242 $as_echo "dentry" >&6; }
22244 cat >>confdefs.h <<\_ACEOF
22245 #define HAVE_FSYNC_WITH_DENTRY 1
22250 $as_echo "$as_me: failed program was:" >&5
22251 sed 's
/^
/|
/' conftest.$ac_ext >&5
22265 cat confdefs.h - <<_ACEOF >conftest.c
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22273 #include <linux/fs.h>
22279 int (*fsync) (struct file *, int) = NULL;
22280 file_operations_no_const fops __attribute__ ((unused));
22282 fops.fsync = fsync;
22291 rm -Rf build && mkdir -p build
22292 echo "obj-m := conftest.o" >build/Makefile
22293 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300 (eval $ac_try) 2>&5
22302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); }; }; then
22305 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
22306 $as_echo "no dentry" >&6; }
22308 cat >>confdefs.h <<\_ACEOF
22309 #define HAVE_FSYNC_WITHOUT_DENTRY 1
22314 $as_echo "$as_me: failed program was:" >&5
22315 sed 's
/^
/|
/' conftest.$ac_ext >&5
22329 cat confdefs.h - <<_ACEOF >conftest.c
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22337 #include <linux/fs.h>
22343 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
22344 file_operations_no_const fops __attribute__ ((unused));
22346 fops.fsync = fsync;
22355 rm -Rf build && mkdir -p build
22356 echo "obj-m := conftest.o" >build/Makefile
22357 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22364 (eval $ac_try) 2>&5
22366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); }; }; then
22369 { $as_echo "$as_me:$LINENO: result: range" >&5
22370 $as_echo "range" >&6; }
22372 cat >>confdefs.h <<\_ACEOF
22373 #define HAVE_FSYNC_RANGE 1
22378 $as_echo "$as_me: failed program was:" >&5
22379 sed 's
/^
/|
/' conftest.$ac_ext >&5
22392 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
22393 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
22396 cat confdefs.h - <<_ACEOF >conftest.c
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22404 #include <linux/fs.h>
22405 void evict_inode (struct inode * t) { return; }
22406 static struct super_operations sops __attribute__ ((unused)) = {
22407 .evict_inode = evict_inode,
22422 rm -Rf build && mkdir -p build
22423 echo "obj-m := conftest.o" >build/Makefile
22424 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; }; then
22436 { $as_echo "$as_me:$LINENO: result: yes" >&5
22437 $as_echo "yes" >&6; }
22439 cat >>confdefs.h <<\_ACEOF
22440 #define HAVE_EVICT_INODE 1
22445 $as_echo "$as_me: failed program was:" >&5
22446 sed 's
/^
/|
/' conftest.$ac_ext >&5
22448 { $as_echo "$as_me:$LINENO: result: no" >&5
22449 $as_echo "no" >&6; }
22460 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
22461 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
22464 cat confdefs.h - <<_ACEOF >conftest.c
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22472 #include <linux/fs.h>
22478 int (*nr_cached_objects)(struct super_block *)
22479 __attribute__ ((unused)) = NULL;
22480 struct super_operations sops __attribute__ ((unused)) = {
22481 .nr_cached_objects = nr_cached_objects,
22491 rm -Rf build && mkdir -p build
22492 echo "obj-m := conftest.o" >build/Makefile
22493 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; }; then
22505 { $as_echo "$as_me:$LINENO: result: yes" >&5
22506 $as_echo "yes" >&6; }
22508 cat >>confdefs.h <<\_ACEOF
22509 #define HAVE_NR_CACHED_OBJECTS 1
22514 $as_echo "$as_me: failed program was:" >&5
22515 sed 's
/^
/|
/' conftest.$ac_ext >&5
22517 { $as_echo "$as_me:$LINENO: result: no" >&5
22518 $as_echo "no" >&6; }
22529 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
22530 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
22533 cat confdefs.h - <<_ACEOF >conftest.c
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22541 #include <linux/fs.h>
22547 void (*free_cached_objects)(struct super_block *, int)
22548 __attribute__ ((unused)) = NULL;
22549 struct super_operations sops __attribute__ ((unused)) = {
22550 .free_cached_objects = free_cached_objects,
22560 rm -Rf build && mkdir -p build
22561 echo "obj-m := conftest.o" >build/Makefile
22562 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569 (eval $ac_try) 2>&5
22571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; }; then
22574 { $as_echo "$as_me:$LINENO: result: yes" >&5
22575 $as_echo "yes" >&6; }
22577 cat >>confdefs.h <<\_ACEOF
22578 #define HAVE_FREE_CACHED_OBJECTS 1
22583 $as_echo "$as_me: failed program was:" >&5
22584 sed 's
/^
/|
/' conftest.$ac_ext >&5
22586 { $as_echo "$as_me:$LINENO: result: no" >&5
22587 $as_echo "no" >&6; }
22599 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
22600 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
22603 cat confdefs.h - <<_ACEOF >conftest.c
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h. */
22611 #include <linux/fs.h>
22617 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
22618 struct file_operations fops __attribute__ ((unused)) = {
22619 .fallocate = fallocate,
22629 rm -Rf build && mkdir -p build
22630 echo "obj-m := conftest.o" >build/Makefile
22631 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22638 (eval $ac_try) 2>&5
22640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); }; }; then
22643 { $as_echo "$as_me:$LINENO: result: yes" >&5
22644 $as_echo "yes" >&6; }
22646 cat >>confdefs.h <<\_ACEOF
22647 #define HAVE_FILE_FALLOCATE 1
22652 $as_echo "$as_me: failed program was:" >&5
22653 sed 's
/^
/|
/' conftest.$ac_ext >&5
22655 { $as_echo "$as_me:$LINENO: result: no" >&5
22656 $as_echo "no" >&6; }
22667 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
22668 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
22671 cat confdefs.h - <<_ACEOF >conftest.c
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22679 #include <linux/fs.h>
22685 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
22686 struct inode_operations fops __attribute__ ((unused)) = {
22687 .fallocate = fallocate,
22697 rm -Rf build && mkdir -p build
22698 echo "obj-m := conftest.o" >build/Makefile
22699 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22701 (eval $ac_try) 2>&5
22703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706 (eval $ac_try) 2>&5
22708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); }; }; then
22711 { $as_echo "$as_me:$LINENO: result: yes" >&5
22712 $as_echo "yes" >&6; }
22714 cat >>confdefs.h <<\_ACEOF
22715 #define HAVE_INODE_FALLOCATE 1
22720 $as_echo "$as_me: failed program was:" >&5
22721 sed 's
/^
/|
/' conftest.$ac_ext >&5
22723 { $as_echo "$as_me:$LINENO: result: no" >&5
22724 $as_echo "no" >&6; }
22735 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
22736 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
22739 cat confdefs.h - <<_ACEOF >conftest.c
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22747 #include <linux/fs.h>
22753 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
22754 struct file_operations_no_const fops __attribute__ ((unused)) = {
22755 .fallocate = fallocate,
22765 rm -Rf build && mkdir -p build
22766 echo "obj-m := conftest.o" >build/Makefile
22767 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; }; then
22779 { $as_echo "$as_me:$LINENO: result: yes" >&5
22780 $as_echo "yes" >&6; }
22782 cat >>confdefs.h <<\_ACEOF
22783 #define HAVE_FILE_FALLOCATE 1
22788 $as_echo "$as_me: failed program was:" >&5
22789 sed 's
/^
/|
/' conftest.$ac_ext >&5
22791 { $as_echo "$as_me:$LINENO: result: no" >&5
22792 $as_echo "no" >&6; }
22804 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
22805 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
22808 cat confdefs.h - <<_ACEOF >conftest.c
22811 cat confdefs.h >>conftest.$ac_ext
22812 cat >>conftest.$ac_ext <<_ACEOF
22813 /* end confdefs.h. */
22816 #include <linux/fs.h>
22817 void truncate_range(struct inode *inode, loff_t start,
22818 loff_t end) { return; }
22819 static struct inode_operations iops __attribute__ ((unused)) = {
22820 .truncate_range = truncate_range,
22835 rm -Rf build && mkdir -p build
22836 echo "obj-m := conftest.o" >build/Makefile
22837 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839 (eval $ac_try) 2>&5
22841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844 (eval $ac_try) 2>&5
22846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }; then
22849 { $as_echo "$as_me:$LINENO: result: yes" >&5
22850 $as_echo "yes" >&6; }
22852 cat >>confdefs.h <<\_ACEOF
22853 #define HAVE_INODE_TRUNCATE_RANGE 1
22858 $as_echo "$as_me: failed program was:" >&5
22859 sed 's
/^
/|
/' conftest.$ac_ext >&5
22861 { $as_echo "$as_me:$LINENO: result: no" >&5
22862 $as_echo "no" >&6; }
22873 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
22874 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
22877 cat confdefs.h - <<_ACEOF >conftest.c
22880 cat confdefs.h >>conftest.$ac_ext
22881 cat >>conftest.$ac_ext <<_ACEOF
22882 /* end confdefs.h. */
22885 #include <linux/fs.h>
22891 int (*create) (struct inode *, struct dentry *, umode_t,
22892 struct nameidata *) = NULL;
22893 struct inode_operations iops __attribute__ ((unused)) = {
22904 rm -Rf build && mkdir -p build
22905 echo "obj-m := conftest.o" >build/Makefile
22906 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913 (eval $ac_try) 2>&5
22915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); }; }; then
22918 { $as_echo "$as_me:$LINENO: result: yes" >&5
22919 $as_echo "yes" >&6; }
22921 cat >>confdefs.h <<\_ACEOF
22922 #define HAVE_CREATE_UMODE_T 1
22927 $as_echo "$as_me: failed program was:" >&5
22928 sed 's
/^
/|
/' conftest.$ac_ext >&5
22930 { $as_echo "$as_me:$LINENO: result: no" >&5
22931 $as_echo "no" >&6; }
22942 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
22943 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
22946 cat confdefs.h - <<_ACEOF >conftest.c
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22954 #include <linux/dcache.h>
22960 struct vfsmount *(*d_automount) (struct path *) = NULL;
22961 struct dentry_operations dops __attribute__ ((unused)) = {
22962 .d_automount = d_automount,
22972 rm -Rf build && mkdir -p build
22973 echo "obj-m := conftest.o" >build/Makefile
22974 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
22975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22976 (eval $ac_try) 2>&5
22978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981 (eval $ac_try) 2>&5
22983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); }; }; then
22986 { $as_echo "$as_me:$LINENO: result: yes" >&5
22987 $as_echo "yes" >&6; }
22989 cat >>confdefs.h <<\_ACEOF
22990 #define HAVE_AUTOMOUNT 1
22995 $as_echo "$as_me: failed program was:" >&5
22996 sed 's
/^
/|
/' conftest.$ac_ext >&5
22998 { $as_echo "$as_me:$LINENO: result: no" >&5
22999 $as_echo "no" >&6; }
23010 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
23011 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
23014 cat confdefs.h - <<_ACEOF >conftest.c
23017 cat confdefs.h >>conftest.$ac_ext
23018 cat >>conftest.$ac_ext <<_ACEOF
23019 /* end confdefs.h. */
23022 #include <linux/exportfs.h>
23023 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
23024 struct inode *parent) { return 0; }
23025 static struct export_operations eops __attribute__ ((unused))={
23026 .encode_fh = encode_fh,
23041 rm -Rf build && mkdir -p build
23042 echo "obj-m := conftest.o" >build/Makefile
23043 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
23044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045 (eval $ac_try) 2>&5
23047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050 (eval $ac_try) 2>&5
23052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; }; then
23055 { $as_echo "$as_me:$LINENO: result: yes" >&5
23056 $as_echo "yes" >&6; }
23058 cat >>confdefs.h <<\_ACEOF
23059 #define HAVE_ENCODE_FH_WITH_INODE 1
23064 $as_echo "$as_me: failed program was:" >&5
23065 sed 's
/^
/|
/' conftest.$ac_ext >&5
23067 { $as_echo "$as_me:$LINENO: result: no" >&5
23068 $as_echo "no" >&6; }
23079 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
23080 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
23081 grep -q -E '[[:space
:]]insert_inode_locked
[[:space
:]]' \
23082 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23084 if test $rc -ne 0; then
23087 for file in fs/inode.c; do
23088 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
23090 if test $rc -eq 0; then
23098 if test $export -eq 0; then
23100 { $as_echo "$as_me:$LINENO: result: no" >&5
23101 $as_echo "no" >&6; }
23106 { $as_echo "$as_me:$LINENO: result: yes" >&5
23107 $as_echo "yes" >&6; }
23109 cat >>confdefs.h <<\_ACEOF
23110 #define HAVE_INSERT_INODE_LOCKED 1
23119 { $as_echo "$as_me:$LINENO: result: yes" >&5
23120 $as_echo "yes" >&6; }
23122 cat >>confdefs.h <<\_ACEOF
23123 #define HAVE_INSERT_INODE_LOCKED 1
23132 { $as_echo "$as_me:$LINENO: checking whether symbol d_make_root is exported" >&5
23133 $as_echo_n "checking whether symbol d_make_root is exported... " >&6; }
23134 grep -q -E '[[:space
:]]d_make_root
[[:space
:]]' \
23135 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23137 if test $rc -ne 0; then
23140 for file in fs/dcache.c; do
23141 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" "$LINUX/$file" 2>/dev/null
23143 if test $rc -eq 0; then
23151 if test $export -eq 0; then
23153 { $as_echo "$as_me:$LINENO: result: no" >&5
23154 $as_echo "no" >&6; }
23159 { $as_echo "$as_me:$LINENO: result: yes" >&5
23160 $as_echo "yes" >&6; }
23162 cat >>confdefs.h <<\_ACEOF
23163 #define HAVE_D_MAKE_ROOT 1
23172 { $as_echo "$as_me:$LINENO: result: yes" >&5
23173 $as_echo "yes" >&6; }
23175 cat >>confdefs.h <<\_ACEOF
23176 #define HAVE_D_MAKE_ROOT 1
23185 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
23186 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
23187 grep -q -E '[[:space
:]]d_obtain_alias
[[:space
:]]' \
23188 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23190 if test $rc -ne 0; then
23193 for file in fs/dcache.c; do
23194 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
23196 if test $rc -eq 0; then
23204 if test $export -eq 0; then
23206 { $as_echo "$as_me:$LINENO: result: no" >&5
23207 $as_echo "no" >&6; }
23212 { $as_echo "$as_me:$LINENO: result: yes" >&5
23213 $as_echo "yes" >&6; }
23215 cat >>confdefs.h <<\_ACEOF
23216 #define HAVE_D_OBTAIN_ALIAS 1
23225 { $as_echo "$as_me:$LINENO: result: yes" >&5
23226 $as_echo "yes" >&6; }
23228 cat >>confdefs.h <<\_ACEOF
23229 #define HAVE_D_OBTAIN_ALIAS 1
23238 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
23239 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
23240 grep -q -E '[[:space
:]]check_disk_size_change
[[:space
:]]' \
23241 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23243 if test $rc -ne 0; then
23246 for file in fs/block_dev.c; do
23247 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
23249 if test $rc -eq 0; then
23257 if test $export -eq 0; then
23259 { $as_echo "$as_me:$LINENO: result: no" >&5
23260 $as_echo "no" >&6; }
23265 { $as_echo "$as_me:$LINENO: result: yes" >&5
23266 $as_echo "yes" >&6; }
23268 cat >>confdefs.h <<\_ACEOF
23269 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
23278 { $as_echo "$as_me:$LINENO: result: yes" >&5
23279 $as_echo "yes" >&6; }
23281 cat >>confdefs.h <<\_ACEOF
23282 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
23291 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
23292 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
23293 grep -q -E '[[:space
:]]truncate_setsize
[[:space
:]]' \
23294 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23296 if test $rc -ne 0; then
23299 for file in mm/truncate.c; do
23300 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
23302 if test $rc -eq 0; then
23310 if test $export -eq 0; then
23312 { $as_echo "$as_me:$LINENO: result: no" >&5
23313 $as_echo "no" >&6; }
23318 { $as_echo "$as_me:$LINENO: result: yes" >&5
23319 $as_echo "yes" >&6; }
23321 cat >>confdefs.h <<\_ACEOF
23322 #define HAVE_TRUNCATE_SETSIZE 1
23331 { $as_echo "$as_me:$LINENO: result: yes" >&5
23332 $as_echo "yes" >&6; }
23334 cat >>confdefs.h <<\_ACEOF
23335 #define HAVE_TRUNCATE_SETSIZE 1
23344 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
23345 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
23346 tmp_flags="$EXTRA_KCFLAGS"
23347 EXTRA_KCFLAGS="-Werror"
23350 cat confdefs.h - <<_ACEOF >conftest.c
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h. */
23358 #include <linux/security.h>
23364 struct inode *ip __attribute__ ((unused)) = NULL;
23365 struct inode *dip __attribute__ ((unused)) = NULL;
23366 const struct qstr *str __attribute__ ((unused)) = NULL;
23367 char *name __attribute__ ((unused)) = NULL;
23368 void *value __attribute__ ((unused)) = NULL;
23369 size_t len __attribute__ ((unused)) = 0;
23371 security_inode_init_security(ip, dip, str, &name, &value, &len);
23380 rm -Rf build && mkdir -p build
23381 echo "obj-m := conftest.o" >build/Makefile
23382 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389 (eval $ac_try) 2>&5
23391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); }; }; then
23394 { $as_echo "$as_me:$LINENO: result: yes" >&5
23395 $as_echo "yes" >&6; }
23397 cat >>confdefs.h <<\_ACEOF
23398 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
23403 $as_echo "$as_me: failed program was:" >&5
23404 sed 's
/^
/|
/' conftest.$ac_ext >&5
23406 { $as_echo "$as_me:$LINENO: result: no" >&5
23407 $as_echo "no" >&6; }
23416 EXTRA_KCFLAGS="$tmp_flags"
23419 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
23420 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
23421 tmp_flags="$EXTRA_KCFLAGS"
23422 EXTRA_KCFLAGS="-Werror"
23425 cat confdefs.h - <<_ACEOF >conftest.c
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23433 #include <linux/security.h>
23439 struct inode *ip __attribute__ ((unused)) = NULL;
23440 struct inode *dip __attribute__ ((unused)) = NULL;
23441 const struct qstr *str __attribute__ ((unused)) = NULL;
23442 initxattrs func __attribute__ ((unused)) = NULL;
23444 security_inode_init_security(ip, dip, str, func, NULL);
23453 rm -Rf build && mkdir -p build
23454 echo "obj-m := conftest.o" >build/Makefile
23455 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462 (eval $ac_try) 2>&5
23464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; }; then
23467 { $as_echo "$as_me:$LINENO: result: yes" >&5
23468 $as_echo "yes" >&6; }
23470 cat >>confdefs.h <<\_ACEOF
23471 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
23476 $as_echo "$as_me: failed program was:" >&5
23477 sed 's
/^
/|
/' conftest.$ac_ext >&5
23479 { $as_echo "$as_me:$LINENO: result: no" >&5
23480 $as_echo "no" >&6; }
23489 EXTRA_KCFLAGS="$tmp_flags"
23492 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
23493 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
23494 grep -q -E '[[:space
:]]mount_nodev
[[:space
:]]' \
23495 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23497 if test $rc -ne 0; then
23500 for file in fs/super.c; do
23501 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
23503 if test $rc -eq 0; then
23511 if test $export -eq 0; then
23513 { $as_echo "$as_me:$LINENO: result: no" >&5
23514 $as_echo "no" >&6; }
23519 { $as_echo "$as_me:$LINENO: result: yes" >&5
23520 $as_echo "yes" >&6; }
23522 cat >>confdefs.h <<\_ACEOF
23523 #define HAVE_MOUNT_NODEV 1
23532 { $as_echo "$as_me:$LINENO: result: yes" >&5
23533 $as_echo "yes" >&6; }
23535 cat >>confdefs.h <<\_ACEOF
23536 #define HAVE_MOUNT_NODEV 1
23545 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
23546 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
23549 cat confdefs.h - <<_ACEOF >conftest.c
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h. */
23557 #include <linux/fs.h>
23563 int (*shrink)(struct shrinker *, struct shrink_control *sc)
23564 __attribute__ ((unused)) = NULL;
23565 struct super_block sb __attribute__ ((unused)) = {
23566 .s_shrink.shrink = shrink,
23567 .s_shrink.seeks = DEFAULT_SEEKS,
23568 .s_shrink.batch = 0,
23578 rm -Rf build && mkdir -p build
23579 echo "obj-m := conftest.o" >build/Makefile
23580 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23587 (eval $ac_try) 2>&5
23589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590 (exit $ac_status); }; }; then
23592 { $as_echo "$as_me:$LINENO: result: yes" >&5
23593 $as_echo "yes" >&6; }
23595 cat >>confdefs.h <<\_ACEOF
23596 #define HAVE_SHRINK 1
23602 $as_echo "$as_me: failed program was:" >&5
23603 sed 's
/^
/|
/' conftest.$ac_ext >&5
23605 { $as_echo "$as_me:$LINENO: result: no" >&5
23606 $as_echo "no" >&6; }
23617 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
23618 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
23621 cat confdefs.h - <<_ACEOF >conftest.c
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23629 #include <linux/fs.h>
23635 struct super_block sb __attribute__ ((unused));
23645 rm -Rf build && mkdir -p build
23646 echo "obj-m := conftest.o" >build/Makefile
23647 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23654 (eval $ac_try) 2>&5
23656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); }; }; then
23659 { $as_echo "$as_me:$LINENO: result: yes" >&5
23660 $as_echo "yes" >&6; }
23662 cat >>confdefs.h <<\_ACEOF
23668 $as_echo "$as_me: failed program was:" >&5
23669 sed 's
/^
/|
/' conftest.$ac_ext >&5
23671 { $as_echo "$as_me:$LINENO: result: no" >&5
23672 $as_echo "no" >&6; }
23683 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
23684 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
23685 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
23686 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23688 if test $rc -ne 0; then
23691 for file in mm/backing-dev.c; do
23692 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
23694 if test $rc -eq 0; then
23702 if test $export -eq 0; then
23704 { $as_echo "$as_me:$LINENO: result: no" >&5
23705 $as_echo "no" >&6; }
23710 { $as_echo "$as_me:$LINENO: result: yes" >&5
23711 $as_echo "yes" >&6; }
23713 cat >>confdefs.h <<\_ACEOF
23714 #define HAVE_BDI_SETUP_AND_REGISTER 1
23723 { $as_echo "$as_me:$LINENO: result: yes" >&5
23724 $as_echo "yes" >&6; }
23726 cat >>confdefs.h <<\_ACEOF
23727 #define HAVE_BDI_SETUP_AND_REGISTER 1
23736 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
23737 $as_echo_n "checking whether set_nlink() is available... " >&6; }
23740 cat confdefs.h - <<_ACEOF >conftest.c
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23748 #include <linux/fs.h>
23755 unsigned int link = 0;
23756 (void) set_nlink(&node, link);
23765 rm -Rf build && mkdir -p build
23766 echo "obj-m := conftest.o" >build/Makefile
23767 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
23768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23769 (eval $ac_try) 2>&5
23771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23774 (eval $ac_try) 2>&5
23776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); }; }; then
23779 { $as_echo "$as_me:$LINENO: result: yes" >&5
23780 $as_echo "yes" >&6; }
23782 cat >>confdefs.h <<\_ACEOF
23783 #define HAVE_SET_NLINK 1
23788 $as_echo "$as_me: failed program was:" >&5
23789 sed 's
/^
/|
/' conftest.$ac_ext >&5
23791 { $as_echo "$as_me:$LINENO: result: no" >&5
23792 $as_echo "no" >&6; }
23803 if test "$LINUX_OBJ" != "$LINUX"; then
23805 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
23812 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
23813 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
23814 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
23821 # Check whether --with-udevdir was given.
23822 if test "${with_udevdir+set}" = set; then
23823 withval=$with_udevdir; udevdir=$withval
23825 udevdir='${exec_prefix}/lib
/udev
'
23830 # Check whether --with-udevruledir was given.
23831 if test "${with_udevruledir+set}" = set; then
23832 withval=$with_udevruledir; udevruledir=$withval
23834 udevruledir='${udevdir}/rules.d
'
23842 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
23843 $as_echo_n "checking for target asm dir... " >&6; }
23844 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
23846 case $TARGET_ARCH in
23848 TARGET_ASM_DIR=asm-${TARGET_ARCH}
23851 TARGET_ASM_DIR=asm-generic
23856 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
23857 $as_echo "$TARGET_ASM_DIR" >&6; }
23860 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
23861 $as_echo_n "checking for ioctl()... " >&6; }
23862 cat >conftest.$ac_ext <<_ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h. */
23868 #include <unistd.h>
23871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23872 $EGREP "ioctl" >/dev/null 2>&1; then
23879 cat >conftest.$ac_ext <<_ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23885 #include <sys/ioctl.h>
23888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23889 $EGREP "ioctl" >/dev/null 2>&1; then
23896 cat >conftest.$ac_ext <<_ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h. */
23902 #include <stropts.h>
23905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23906 $EGREP "ioctl" >/dev/null 2>&1; then
23914 if test $is_unistd = yes; then
23917 cat >>confdefs.h <<\_ACEOF
23918 #define HAVE_IOCTL_IN_UNISTD_H 1
23923 if test $is_sys_ioctl = yes; then
23926 cat >>confdefs.h <<\_ACEOF
23927 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
23930 elif test $is_stropts = yes; then
23932 cat >>confdefs.h <<\_ACEOF
23933 #define HAVE_IOCTL_IN_STROPTS_H 1
23941 if test $result = no; then
23942 { $as_echo "$as_me:$LINENO: result: no" >&5
23943 $as_echo "no" >&6; }
23944 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
23945 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
23946 { (exit 1); exit 1; }; }
23948 { $as_echo "$as_me:$LINENO: result: yes" >&5
23949 $as_echo "yes" >&6; }
23955 if test "${ac_cv_header_zlib_h+set}" = set; then
23956 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
23957 $as_echo_n "checking for zlib.h... " >&6; }
23958 if test "${ac_cv_header_zlib_h+set}" = set; then
23959 $as_echo_n "(cached) " >&6
23961 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23962 $as_echo "$ac_cv_header_zlib_h" >&6; }
23964 # Is the header compilable?
23965 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
23966 $as_echo_n "checking zlib.h usability... " >&6; }
23967 cat >conftest.$ac_ext <<_ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h. */
23973 $ac_includes_default
23976 rm -f conftest.$ac_objext
23977 if { (ac_try="$ac_compile"
23978 case "(($ac_try" in
23979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980 *) ac_try_echo=$ac_try;;
23982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23983 $as_echo "$ac_try_echo") >&5
23984 (eval "$ac_compile") 2>conftest.er1
23986 grep -v '^
*+' conftest.er1 >conftest.err
23988 cat conftest.err >&5
23989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } && {
23991 test -z "$ac_c_werror_flag" ||
23992 test ! -s conftest.err
23993 } && test -s conftest.$ac_objext; then
23994 ac_header_compiler=yes
23996 $as_echo "$as_me: failed program was:" >&5
23997 sed 's
/^
/|
/' conftest.$ac_ext >&5
23999 ac_header_compiler=no
24002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24003 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24004 $as_echo "$ac_header_compiler" >&6; }
24006 # Is the header present?
24007 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
24008 $as_echo_n "checking zlib.h presence... " >&6; }
24009 cat >conftest.$ac_ext <<_ACEOF
24012 cat confdefs.h >>conftest.$ac_ext
24013 cat >>conftest.$ac_ext <<_ACEOF
24014 /* end confdefs.h. */
24017 if { (ac_try="$ac_cpp conftest.$ac_ext"
24018 case "(($ac_try" in
24019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020 *) ac_try_echo=$ac_try;;
24022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24023 $as_echo "$ac_try_echo") >&5
24024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24026 grep -v '^
*+' conftest.er1 >conftest.err
24028 cat conftest.err >&5
24029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); } >/dev/null && {
24031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24032 test ! -s conftest.err
24034 ac_header_preproc=yes
24036 $as_echo "$as_me: failed program was:" >&5
24037 sed 's
/^
/|
/' conftest.$ac_ext >&5
24039 ac_header_preproc=no
24042 rm -f conftest.err conftest.$ac_ext
24043 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24044 $as_echo "$ac_header_preproc" >&6; }
24046 # So? What about this header?
24047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24049 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24050 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24051 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
24052 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
24053 ac_header_preproc=yes
24056 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24057 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
24058 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24059 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24060 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24061 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24062 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24063 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24064 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
24065 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
24066 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24067 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
24071 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
24072 $as_echo_n "checking for zlib.h... " >&6; }
24073 if test "${ac_cv_header_zlib_h+set}" = set; then
24074 $as_echo_n "(cached) " >&6
24076 ac_cv_header_zlib_h=$ac_header_preproc
24078 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24079 $as_echo "$ac_cv_header_zlib_h" >&6; }
24082 if test "x$ac_cv_header_zlib_h" = x""yes; then
24085 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24086 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
24087 { { $as_echo "$as_me:$LINENO: error:
24088 *** zlib.h missing, zlib-devel package required
24089 See \`config.log
' for more details." >&5
24090 $as_echo "$as_me: error:
24091 *** zlib.h missing, zlib-devel package required
24092 See \`config.log' for more details.
" >&2;}
24093 { (exit 1); exit 1; }; }; }
24099 { $as_echo "$as_me:$LINENO: checking
for compress2
in -lz" >&5
24100 $as_echo_n "checking
for compress2
in -lz...
" >&6; }
24101 if test "${ac_cv_lib_z_compress2+set}" = set; then
24102 $as_echo_n "(cached
) " >&6
24104 ac_check_lib_save_LIBS=$LIBS
24106 cat >conftest.$ac_ext <<_ACEOF
24109 cat confdefs.h >>conftest.$ac_ext
24110 cat >>conftest.$ac_ext <<_ACEOF
24111 /* end confdefs.h. */
24113 /* Override any GCC internal prototype to avoid an error.
24114 Use char because int might match the return type of a GCC
24115 builtin and then its argument prototype would still apply. */
24123 return compress2 ();
24128 rm -f conftest.$ac_objext conftest$ac_exeext
24129 if { (ac_try="$ac_link"
24130 case "(($ac_try" in
24131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24132 *) ac_try_echo=$ac_try;;
24134 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24135 $as_echo "$ac_try_echo") >&5
24136 (eval "$ac_link") 2>conftest.er1
24138 grep -v '^ *+' conftest.er1 >conftest.err
24140 cat conftest.err >&5
24141 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24142 (exit $ac_status); } && {
24143 test -z "$ac_c_werror_flag" ||
24144 test ! -s conftest.err
24145 } && test -s conftest$ac_exeext && {
24146 test "$cross_compiling" = yes ||
24147 $as_test_x conftest$ac_exeext
24149 ac_cv_lib_z_compress2=yes
24151 $as_echo "$as_me: failed program was
:" >&5
24152 sed 's/^/| /' conftest.$ac_ext >&5
24154 ac_cv_lib_z_compress2=no
24157 rm -rf conftest.dSYM
24158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24159 conftest$ac_exeext conftest.$ac_ext
24160 LIBS=$ac_check_lib_save_LIBS
24162 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_compress2" >&5
24163 $as_echo "$ac_cv_lib_z_compress2" >&6; }
24164 if test "x
$ac_cv_lib_z_compress2" = x""yes; then
24165 cat >>confdefs.h <<_ACEOF
24166 #define HAVE_LIBZ 1
24172 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
24173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24174 { { $as_echo "$as_me:$LINENO: error:
24175 *** compress2() missing, zlib-devel package required
24176 See \`config.log' for more details.
" >&5
24177 $as_echo "$as_me: error
:
24178 *** compress2
() missing
, zlib-devel package required
24179 See \
`config.log' for more details." >&2;}
24180 { (exit 1); exit 1; }; }; }
24185 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
24186 $as_echo_n "checking for uncompress in -lz... " >&6; }
24187 if test "${ac_cv_lib_z_uncompress+set}" = set; then
24188 $as_echo_n "(cached) " >&6
24190 ac_check_lib_save_LIBS=$LIBS
24192 cat >conftest.$ac_ext <<_ACEOF
24195 cat confdefs.h >>conftest.$ac_ext
24196 cat >>conftest.$ac_ext <<_ACEOF
24197 /* end confdefs.h. */
24199 /* Override any GCC internal prototype to avoid an error.
24200 Use char because int might match the return type of a GCC
24201 builtin and then its argument prototype would still apply. */
24205 char uncompress ();
24209 return uncompress ();
24214 rm -f conftest.$ac_objext conftest$ac_exeext
24215 if { (ac_try="$ac_link"
24216 case "(($ac_try" in
24217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24218 *) ac_try_echo
=$ac_try;;
24220 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24221 $as_echo "$ac_try_echo") >&5
24222 (eval "$ac_link") 2>conftest.er1
24224 grep -v '^ *+' conftest.er1
>conftest.err
24226 cat conftest.err
>&5
24227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); } && {
24229 test -z "$ac_c_werror_flag" ||
24230 test ! -s conftest.err
24231 } && test -s conftest
$ac_exeext && {
24232 test "$cross_compiling" = yes ||
24233 $as_test_x conftest
$ac_exeext
24235 ac_cv_lib_z_uncompress
=yes
24237 $as_echo "$as_me: failed program was:" >&5
24238 sed 's/^/| /' conftest.
$ac_ext >&5
24240 ac_cv_lib_z_uncompress
=no
24243 rm -rf conftest.dSYM
24244 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24245 conftest
$ac_exeext conftest.
$ac_ext
24246 LIBS
=$ac_check_lib_save_LIBS
24248 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
24249 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
24250 if test "x$ac_cv_lib_z_uncompress" = x
""yes; then
24251 cat >>confdefs.h
<<_ACEOF
24252 #define HAVE_LIBZ 1
24258 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24260 { { $as_echo "$as_me:$LINENO: error:
24261 *** uncompress() missing, zlib-devel package required
24262 See \`config.log' for more details." >&5
24263 $as_echo "$as_me: error:
24264 *** uncompress() missing, zlib-devel package required
24265 See \`config.log' for more details." >&2;}
24266 { (exit 1); exit 1; }; }; }
24271 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
24272 $as_echo_n "checking for crc32 in -lz... " >&6; }
24273 if test "${ac_cv_lib_z_crc32+set}" = set; then
24274 $as_echo_n "(cached) " >&6
24276 ac_check_lib_save_LIBS
=$LIBS
24278 cat >conftest.
$ac_ext <<_ACEOF
24281 cat confdefs.h
>>conftest.
$ac_ext
24282 cat >>conftest.
$ac_ext <<_ACEOF
24283 /* end confdefs.h. */
24285 /* Override any GCC internal prototype to avoid an error.
24286 Use char because int might match the return type of a GCC
24287 builtin and then its argument prototype would still apply. */
24300 rm -f conftest.
$ac_objext conftest
$ac_exeext
24301 if { (ac_try
="$ac_link"
24302 case "(($ac_try" in
24303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24304 *) ac_try_echo=$ac_try;;
24306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24307 $as_echo "$ac_try_echo") >&5
24308 (eval "$ac_link") 2>conftest.er1
24310 grep -v '^ *+' conftest.er1 >conftest.err
24312 cat conftest.err >&5
24313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); } && {
24315 test -z "$ac_c_werror_flag" ||
24316 test ! -s conftest.err
24317 } && test -s conftest$ac_exeext && {
24318 test "$cross_compiling" = yes ||
24319 $as_test_x conftest$ac_exeext
24321 ac_cv_lib_z_crc32=yes
24323 $as_echo "$as_me: failed program was:" >&5
24324 sed 's/^/| /' conftest.$ac_ext >&5
24326 ac_cv_lib_z_crc32=no
24329 rm -rf conftest.dSYM
24330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24331 conftest$ac_exeext conftest.$ac_ext
24332 LIBS=$ac_check_lib_save_LIBS
24334 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
24335 $as_echo "$ac_cv_lib_z_crc32" >&6; }
24336 if test "x$ac_cv_lib_z_crc32" = x""yes; then
24337 cat >>confdefs.h <<_ACEOF
24338 #define HAVE_LIBZ 1
24344 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24346 { { $as_echo "$as_me:$LINENO: error
:
24347 *** crc32
() missing
, zlib-devel package required
24348 See \
`config.log' for more details." >&5
24349 $as_echo "$as_me: error:
24350 *** crc32() missing, zlib-devel package required
24351 See \`config.log
' for more details." >&2;}
24352 { (exit 1); exit 1; }; }; }
24359 cat >>confdefs.h <<\_ACEOF
24360 #define HAVE_ZLIB 1
24367 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
24368 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
24369 $as_echo_n "checking for uuid/uuid.h... " >&6; }
24370 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
24371 $as_echo_n "(cached) " >&6
24373 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
24374 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
24376 # Is the header compilable?
24377 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
24378 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
24379 cat >conftest.$ac_ext <<_ACEOF
24382 cat confdefs.h >>conftest.$ac_ext
24383 cat >>conftest.$ac_ext <<_ACEOF
24384 /* end confdefs.h. */
24385 $ac_includes_default
24386 #include <uuid/uuid.h>
24388 rm -f conftest.$ac_objext
24389 if { (ac_try="$ac_compile"
24390 case "(($ac_try" in
24391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392 *) ac_try_echo=$ac_try;;
24394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24395 $as_echo "$ac_try_echo") >&5
24396 (eval "$ac_compile") 2>conftest.er1
24398 grep -v '^
*+' conftest.er1 >conftest.err
24400 cat conftest.err >&5
24401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); } && {
24403 test -z "$ac_c_werror_flag" ||
24404 test ! -s conftest.err
24405 } && test -s conftest.$ac_objext; then
24406 ac_header_compiler=yes
24408 $as_echo "$as_me: failed program was:" >&5
24409 sed 's
/^
/|
/' conftest.$ac_ext >&5
24411 ac_header_compiler=no
24414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24415 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24416 $as_echo "$ac_header_compiler" >&6; }
24418 # Is the header present?
24419 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
24420 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
24421 cat >conftest.$ac_ext <<_ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 #include <uuid/uuid.h>
24429 if { (ac_try="$ac_cpp conftest.$ac_ext"
24430 case "(($ac_try" in
24431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24432 *) ac_try_echo=$ac_try;;
24434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24435 $as_echo "$ac_try_echo") >&5
24436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24438 grep -v '^
*+' conftest.er1 >conftest.err
24440 cat conftest.err >&5
24441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); } >/dev/null && {
24443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24444 test ! -s conftest.err
24446 ac_header_preproc=yes
24448 $as_echo "$as_me: failed program was:" >&5
24449 sed 's
/^
/|
/' conftest.$ac_ext >&5
24451 ac_header_preproc=no
24454 rm -f conftest.err conftest.$ac_ext
24455 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24456 $as_echo "$ac_header_preproc" >&6; }
24458 # So? What about this header?
24459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24461 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
24462 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24463 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result
" >&5
24464 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the compiler
's result" >&2;}
24465 ac_header_preproc=yes
24468 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
24469 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
24470 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
24471 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
24472 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
24473 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
24474 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
24475 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
24476 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result
" >&5
24477 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the preprocessor
's result" >&2;}
24478 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
24479 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
24483 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
24484 $as_echo_n "checking for uuid/uuid.h... " >&6; }
24485 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
24486 $as_echo_n "(cached) " >&6
24488 ac_cv_header_uuid_uuid_h=$ac_header_preproc
24490 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
24491 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
24494 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
24497 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24498 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
24499 { { $as_echo "$as_me:$LINENO: error:
24500 *** uuid/uuid.h missing, libuuid-devel package required
24501 See \`config.log
' for more details." >&5
24502 $as_echo "$as_me: error:
24503 *** uuid/uuid.h missing, libuuid-devel package required
24504 See \`config.log' for more details.
" >&2;}
24505 { (exit 1); exit 1; }; }; }
24511 { $as_echo "$as_me:$LINENO: checking
for uuid_generate
in -luuid" >&5
24512 $as_echo_n "checking
for uuid_generate
in -luuid...
" >&6; }
24513 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
24514 $as_echo_n "(cached
) " >&6
24516 ac_check_lib_save_LIBS=$LIBS
24517 LIBS="-luuid $LIBS"
24518 cat >conftest.$ac_ext <<_ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h. */
24525 /* Override any GCC internal prototype to avoid an error.
24526 Use char because int might match the return type of a GCC
24527 builtin and then its argument prototype would still apply. */
24531 char uuid_generate ();
24535 return uuid_generate ();
24540 rm -f conftest.$ac_objext conftest$ac_exeext
24541 if { (ac_try="$ac_link"
24542 case "(($ac_try" in
24543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544 *) ac_try_echo=$ac_try;;
24546 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24547 $as_echo "$ac_try_echo") >&5
24548 (eval "$ac_link") 2>conftest.er1
24550 grep -v '^ *+' conftest.er1 >conftest.err
24552 cat conftest.err >&5
24553 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24554 (exit $ac_status); } && {
24555 test -z "$ac_c_werror_flag" ||
24556 test ! -s conftest.err
24557 } && test -s conftest$ac_exeext && {
24558 test "$cross_compiling" = yes ||
24559 $as_test_x conftest$ac_exeext
24561 ac_cv_lib_uuid_uuid_generate=yes
24563 $as_echo "$as_me: failed program was
:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24566 ac_cv_lib_uuid_uuid_generate=no
24569 rm -rf conftest.dSYM
24570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24571 conftest$ac_exeext conftest.$ac_ext
24572 LIBS=$ac_check_lib_save_LIBS
24574 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_generate" >&5
24575 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
24576 if test "x
$ac_cv_lib_uuid_uuid_generate" = x""yes; then
24577 cat >>confdefs.h <<_ACEOF
24578 #define HAVE_LIBUUID 1
24581 LIBS="-luuid $LIBS"
24584 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
24585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24586 { { $as_echo "$as_me:$LINENO: error:
24587 *** uuid_generate() missing, libuuid-devel package required
24588 See \`config.log' for more details.
" >&5
24589 $as_echo "$as_me: error
:
24590 *** uuid_generate
() missing
, libuuid-devel package required
24591 See \
`config.log' for more details." >&2;}
24592 { (exit 1); exit 1; }; }; }
24597 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
24598 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
24599 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
24600 $as_echo_n "(cached) " >&6
24602 ac_check_lib_save_LIBS=$LIBS
24603 LIBS="-luuid $LIBS"
24604 cat >conftest.$ac_ext <<_ACEOF
24607 cat confdefs.h >>conftest.$ac_ext
24608 cat >>conftest.$ac_ext <<_ACEOF
24609 /* end confdefs.h. */
24611 /* Override any GCC internal prototype to avoid an error.
24612 Use char because int might match the return type of a GCC
24613 builtin and then its argument prototype would still apply. */
24617 char uuid_is_null ();
24621 return uuid_is_null ();
24626 rm -f conftest.$ac_objext conftest$ac_exeext
24627 if { (ac_try="$ac_link"
24628 case "(($ac_try" in
24629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24630 *) ac_try_echo
=$ac_try;;
24632 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24633 $as_echo "$ac_try_echo") >&5
24634 (eval "$ac_link") 2>conftest.er1
24636 grep -v '^ *+' conftest.er1
>conftest.err
24638 cat conftest.err
>&5
24639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); } && {
24641 test -z "$ac_c_werror_flag" ||
24642 test ! -s conftest.err
24643 } && test -s conftest
$ac_exeext && {
24644 test "$cross_compiling" = yes ||
24645 $as_test_x conftest
$ac_exeext
24647 ac_cv_lib_uuid_uuid_is_null
=yes
24649 $as_echo "$as_me: failed program was:" >&5
24650 sed 's/^/| /' conftest.
$ac_ext >&5
24652 ac_cv_lib_uuid_uuid_is_null
=no
24655 rm -rf conftest.dSYM
24656 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24657 conftest
$ac_exeext conftest.
$ac_ext
24658 LIBS
=$ac_check_lib_save_LIBS
24660 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
24661 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
24662 if test "x$ac_cv_lib_uuid_uuid_is_null" = x
""yes; then
24663 cat >>confdefs.h
<<_ACEOF
24664 #define HAVE_LIBUUID 1
24667 LIBS
="-luuid $LIBS"
24670 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24672 { { $as_echo "$as_me:$LINENO: error:
24673 *** uuid_is_null() missing, libuuid-devel package required
24674 See \`config.log' for more details." >&5
24675 $as_echo "$as_me: error:
24676 *** uuid_is_null() missing, libuuid-devel package required
24677 See \`config.log' for more details." >&2;}
24678 { (exit 1); exit 1; }; }; }
24685 cat >>confdefs.h
<<\_ACEOF
24686 #define HAVE_LIBUUID 1
24692 # Check whether --with-blkid was given.
24693 if test "${with_blkid+set}" = set; then
24694 withval
=$with_blkid;
24701 if test "x$with_blkid" != xno
; then
24703 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
24704 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
24705 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
24706 $as_echo_n "(cached) " >&6
24708 ac_check_lib_save_LIBS
=$LIBS
24709 LIBS
="-lblkid $LIBS"
24710 cat >conftest.
$ac_ext <<_ACEOF
24713 cat confdefs.h
>>conftest.
$ac_ext
24714 cat >>conftest.
$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24717 /* Override any GCC internal prototype to avoid an error.
24718 Use char because int might match the return type of a GCC
24719 builtin and then its argument prototype would still apply. */
24723 char blkid_get_cache ();
24727 return blkid_get_cache ();
24732 rm -f conftest.
$ac_objext conftest
$ac_exeext
24733 if { (ac_try
="$ac_link"
24734 case "(($ac_try" in
24735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24736 *) ac_try_echo=$ac_try;;
24738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24739 $as_echo "$ac_try_echo") >&5
24740 (eval "$ac_link") 2>conftest.er1
24742 grep -v '^ *+' conftest.er1 >conftest.err
24744 cat conftest.err >&5
24745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } && {
24747 test -z "$ac_c_werror_flag" ||
24748 test ! -s conftest.err
24749 } && test -s conftest$ac_exeext && {
24750 test "$cross_compiling" = yes ||
24751 $as_test_x conftest$ac_exeext
24753 ac_cv_lib_blkid_blkid_get_cache=yes
24755 $as_echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24758 ac_cv_lib_blkid_blkid_get_cache=no
24761 rm -rf conftest.dSYM
24762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24763 conftest$ac_exeext conftest.$ac_ext
24764 LIBS=$ac_check_lib_save_LIBS
24766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
24767 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
24768 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
24770 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
24771 $as_echo_n "checking for blkid zfs support... " >&6; }
24774 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
24775 >/dev/null 2>/dev/null
24776 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
24777 dd of=$ZFS_DEV bs=1k count=8 \
24778 seek=132 conv=notrunc &>/dev/null \
24779 >/dev/null 2>/dev/null
24781 saved_LDFLAGS="$LDFLAGS"
24784 if test "$cross_compiling" = yes; then
24785 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24787 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
24788 See \
`config.log' for more details." >&5
24789 $as_echo "$as_me: error: cannot run test program while cross compiling
24790 See \`config.log
' for more details." >&2;}
24791 { (exit 1); exit 1; }; }; }
24793 cat >conftest.$ac_ext <<_ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h. */
24801 #include <blkid/blkid.h>
24810 if (blkid_get_cache(&cache, NULL) < 0)
24813 value = blkid_get_tag_value(cache, "TYPE",
24816 blkid_put_cache(cache);
24820 if (strcmp(value, "zfs")) {
24822 blkid_put_cache(cache);
24827 blkid_put_cache(cache);
24833 rm -f conftest$ac_exeext
24834 if { (ac_try="$ac_link"
24835 case "(($ac_try" in
24836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24837 *) ac_try_echo=$ac_try;;
24839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24840 $as_echo "$ac_try_echo") >&5
24841 (eval "$ac_link") 2>&5
24843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24845 { (case "(($ac_try" in
24846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847 *) ac_try_echo=$ac_try;;
24849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24850 $as_echo "$ac_try_echo") >&5
24851 (eval "$ac_try") 2>&5
24853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); }; }; then
24857 { $as_echo "$as_me:$LINENO: result: yes" >&5
24858 $as_echo "yes" >&6; }
24862 cat >>confdefs.h <<\_ACEOF
24863 #define HAVE_LIBBLKID 1
24868 $as_echo "$as_me: program exited with status $ac_status" >&5
24869 $as_echo "$as_me: failed program was:" >&5
24870 sed 's
/^
/|
/' conftest.$ac_ext >&5
24872 ( exit $ac_status )
24875 { $as_echo "$as_me:$LINENO: result: no" >&5
24876 $as_echo "no" >&6; }
24877 if test "x$with_blkid" != xcheck; then
24878 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24879 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
24880 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
24881 See \`config.log
' for more details." >&5
24882 $as_echo "$as_me: error: --with-blkid given but unavailable
24883 See \`config.log' for more details.
" >&2;}
24884 { (exit 1); exit 1; }; }; }
24889 rm -rf conftest.dSYM
24890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24895 LDFLAGS="$saved_LDFLAGS"
24899 if test "x
$with_blkid" != xcheck; then
24900 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
24901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24902 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
24903 See \`config.log' for more details.
" >&5
24904 $as_echo "$as_me: error
: --with-blkid given but unavailable
24905 See \
`config.log' for more details." >&2;}
24906 { (exit 1); exit 1; }; }; }
24919 # Check whether --with-selinux was given.
24920 if test "${with_selinux+set}" = set; then
24921 withval=$with_selinux;
24928 if test "x$with_selinux" != xno; then
24930 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
24931 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
24932 $as_echo_n "checking for selinux/selinux.h... " >&6; }
24933 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
24934 $as_echo_n "(cached) " >&6
24936 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
24937 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
24939 # Is the header compilable?
24940 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
24941 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
24942 cat >conftest.$ac_ext <<_ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h. */
24948 $ac_includes_default
24949 #include <selinux/selinux.h>
24951 rm -f conftest.$ac_objext
24952 if { (ac_try="$ac_compile"
24953 case "(($ac_try" in
24954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24955 *) ac_try_echo
=$ac_try;;
24957 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24958 $as_echo "$ac_try_echo") >&5
24959 (eval "$ac_compile") 2>conftest.er1
24961 grep -v '^ *+' conftest.er1
>conftest.err
24963 cat conftest.err
>&5
24964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } && {
24966 test -z "$ac_c_werror_flag" ||
24967 test ! -s conftest.err
24968 } && test -s conftest.
$ac_objext; then
24969 ac_header_compiler
=yes
24971 $as_echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.
$ac_ext >&5
24974 ac_header_compiler
=no
24977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24978 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24979 $as_echo "$ac_header_compiler" >&6; }
24981 # Is the header present?
24982 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
24983 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
24984 cat >conftest.
$ac_ext <<_ACEOF
24987 cat confdefs.h
>>conftest.
$ac_ext
24988 cat >>conftest.
$ac_ext <<_ACEOF
24989 /* end confdefs.h. */
24990 #include <selinux/selinux.h>
24992 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24993 case "(($ac_try" in
24994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24995 *) ac_try_echo=$ac_try;;
24997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24998 $as_echo "$ac_try_echo") >&5
24999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25001 grep -v '^ *+' conftest.er1 >conftest.err
25003 cat conftest.err >&5
25004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } >/dev/null && {
25006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25009 ac_header_preproc=yes
25011 $as_echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25014 ac_header_preproc=no
25017 rm -f conftest.err conftest.$ac_ext
25018 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25019 $as_echo "$ac_header_preproc" >&6; }
25021 # So? What about this header?
25022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25024 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
25025 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25026 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
25027 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
25028 ac_header_preproc=yes
25031 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
25032 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
25033 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
25034 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
25035 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
25036 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
25037 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
25038 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
25039 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
25040 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
25041 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
25042 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
25046 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25047 $as_echo_n "checking for selinux/selinux.h... " >&6; }
25048 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25049 $as_echo_n "(cached) " >&6
25051 ac_cv_header_selinux_selinux_h=$ac_header_preproc
25053 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25054 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
25057 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
25059 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
25060 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
25061 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
25062 $as_echo_n "(cached) " >&6
25064 ac_check_lib_save_LIBS=$LIBS
25065 LIBS="-lselinux $LIBS"
25066 cat >conftest.$ac_ext <<_ACEOF
25069 cat confdefs.h >>conftest.$ac_ext
25070 cat >>conftest.$ac_ext <<_ACEOF
25071 /* end confdefs.h. */
25073 /* Override any GCC internal prototype to avoid an error.
25074 Use char because int might match the return type of a GCC
25075 builtin and then its argument prototype would still apply. */
25079 char is_selinux_enabled ();
25083 return is_selinux_enabled ();
25088 rm -f conftest.$ac_objext conftest$ac_exeext
25089 if { (ac_try="$ac_link"
25090 case "(($ac_try" in
25091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25092 *) ac_try_echo
=$ac_try;;
25094 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25095 $as_echo "$ac_try_echo") >&5
25096 (eval "$ac_link") 2>conftest.er1
25098 grep -v '^ *+' conftest.er1
>conftest.err
25100 cat conftest.err
>&5
25101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); } && {
25103 test -z "$ac_c_werror_flag" ||
25104 test ! -s conftest.err
25105 } && test -s conftest
$ac_exeext && {
25106 test "$cross_compiling" = yes ||
25107 $as_test_x conftest
$ac_exeext
25109 ac_cv_lib_selinux_is_selinux_enabled
=yes
25111 $as_echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.
$ac_ext >&5
25114 ac_cv_lib_selinux_is_selinux_enabled
=no
25117 rm -rf conftest.dSYM
25118 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25119 conftest
$ac_exeext conftest.
$ac_ext
25120 LIBS
=$ac_check_lib_save_LIBS
25122 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
25123 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
25124 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then
25126 LIBSELINUX
="-lselinux"
25129 cat >>confdefs.h
<<\_ACEOF
25130 #define HAVE_LIBSELINUX 1
25136 if test "x$with_selinux" != xcheck
; then
25137 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25139 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
25140 See \`config.log' for more details." >&5
25141 $as_echo "$as_me: error: --with-selinux given but unavailable
25142 See \`config.log' for more details." >&2;}
25143 { (exit 1); exit 1; }; }; }
25153 if test "x$with_selinux" != xcheck
; then
25154 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25156 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
25157 See \`config.log' for more details." >&5
25158 $as_echo "$as_me: error: --with-selinux given but unavailable
25159 See \`config.log' for more details." >&2;}
25160 { (exit 1); exit 1; }; }; }
25171 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
25172 $as_echo_n "checking for selinux support... " >&6; }
25173 { $as_echo "$as_me:$LINENO: result: no" >&5
25174 $as_echo "no" >&6; }
25180 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
25181 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
25183 saved_flags
="$CFLAGS"
25184 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
25186 if test "$cross_compiling" = yes; then
25187 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25189 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25190 See \`config.log' for more details." >&5
25191 $as_echo "$as_me: error: cannot run test program while cross compiling
25192 See \`config.log' for more details." >&2;}
25193 { (exit 1); exit 1; }; }; }
25195 cat >conftest.
$ac_ext <<_ACEOF
25198 cat confdefs.h
>>conftest.
$ac_ext
25199 cat >>conftest.
$ac_ext <<_ACEOF
25200 /* end confdefs.h. */
25210 rm -f conftest
$ac_exeext
25211 if { (ac_try
="$ac_link"
25212 case "(($ac_try" in
25213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25214 *) ac_try_echo=$ac_try;;
25216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25217 $as_echo "$ac_try_echo") >&5
25218 (eval "$ac_link") 2>&5
25220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25222 { (case "(($ac_try" in
25223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25224 *) ac_try_echo
=$ac_try;;
25226 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25227 $as_echo "$ac_try_echo") >&5
25228 (eval "$ac_try") 2>&5
25230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); }; }; then
25233 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
25234 { $as_echo "$as_me:$LINENO: result: yes" >&5
25235 $as_echo "yes" >&6; }
25238 $as_echo "$as_me: program exited with status $ac_status" >&5
25239 $as_echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.
$ac_ext >&5
25242 ( exit $ac_status )
25245 { $as_echo "$as_me:$LINENO: result: no" >&5
25246 $as_echo "no" >&6; }
25249 rm -rf conftest.dSYM
25250 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25255 CFLAGS
="$saved_flags"
25260 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
25261 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
25263 saved_CFLAGS
="$CFLAGS"
25264 CFLAGS
="-fstack-check"
25265 saved_LDFLAGS
="$LDFLAGS"
25266 LDFLAGS
="-lpthread"
25268 if test "$cross_compiling" = yes; then
25269 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25271 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25272 See \`config.log' for more details." >&5
25273 $as_echo "$as_me: error: cannot run test program while cross compiling
25274 See \`config.log' for more details." >&2;}
25275 { (exit 1); exit 1; }; }; }
25277 cat >conftest.
$ac_ext <<_ACEOF
25280 cat confdefs.h
>>conftest.
$ac_ext
25281 cat >>conftest.
$ac_ext <<_ACEOF
25282 /* end confdefs.h. */
25284 #include <pthread.h>
25285 #include <sys/resource.h>
25286 #include <unistd.h>
25287 #include <bits/local_lim.h>
25289 #define PAGESIZE (sysconf(_SC_PAGESIZE))
25290 #define STACK_SIZE 8192
25291 #define BUFSIZE 4096
25293 void * func(void *arg)
25303 pthread_attr_t attr;
25308 setrlimit(RLIMIT_CORE, &l);
25309 pthread_attr_init(&attr);
25310 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
25311 pthread_attr_setguardsize(&attr, PAGESIZE);
25312 pthread_create(&tid, &attr, func, NULL);
25313 pthread_join(tid, NULL);
25319 rm -f conftest
$ac_exeext
25320 if { (ac_try
="$ac_link"
25321 case "(($ac_try" in
25322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25326 $as_echo "$ac_try_echo") >&5
25327 (eval "$ac_link") 2>&5
25329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25331 { (case "(($ac_try" in
25332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25333 *) ac_try_echo
=$ac_try;;
25335 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25336 $as_echo "$ac_try_echo") >&5
25337 (eval "$ac_try") 2>&5
25339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); }; }; then
25342 { $as_echo "$as_me:$LINENO: result: no" >&5
25343 $as_echo "no" >&6; }
25346 $as_echo "$as_me: program exited with status $ac_status" >&5
25347 $as_echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.
$ac_ext >&5
25350 ( exit $ac_status )
25353 cat >>confdefs.h
<<\_ACEOF
25354 #define NPTL_GUARD_WITHIN_STACK 1
25357 { $as_echo "$as_me:$LINENO: result: yes" >&5
25358 $as_echo "yes" >&6; }
25361 rm -rf conftest.dSYM
25362 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25366 CFLAGS
="$saved_CFLAGS"
25367 LDFLAGS
="$saved_LDFLAGS"
25372 { $as_echo "$as_me:$LINENO: result: Error!" >&5
25373 $as_echo "Error!" >&6; }
25374 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
25375 user kernel|user|all|srpm" >&5
25376 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
25377 user kernel|user|all|srpm" >&2;}
25378 { (exit 1); exit 1; }; } ;;
25381 if test "$ZFS_CONFIG" = user ||
25382 test "$ZFS_CONFIG" = all
; then
25384 CONFIG_USER_FALSE
='#'
25386 CONFIG_USER_TRUE
='#'
25390 if test "$ZFS_CONFIG" = kernel ||
25391 test "$ZFS_CONFIG" = all
; then
25392 CONFIG_KERNEL_TRUE
=
25393 CONFIG_KERNEL_FALSE
='#'
25395 CONFIG_KERNEL_TRUE
='#'
25396 CONFIG_KERNEL_FALSE
=
25401 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
25402 $as_echo_n "checking whether debugging is enabled... " >&6; }
25403 # Check whether --enable-debug was given.
25404 if test "${enable_debug+set}" = set; then
25405 enableval
=$enable_debug;
25411 if test "x$enable_debug" = xyes
; then
25413 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
25414 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
25415 DEBUG_CFLAGS
="-DDEBUG -Werror"
25416 DEBUG_STACKFLAGS
="-fstack-check"
25417 DEBUG_ZFS
="_with_debug"
25419 cat >>confdefs.h
<<\_ACEOF
25420 #define ZFS_DEBUG 1
25426 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
25427 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
25428 DEBUG_CFLAGS
="-DNDEBUG"
25429 DEBUG_STACKFLAGS
=""
25430 DEBUG_ZFS
="_without_debug"
25438 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
25439 $as_echo "$enable_debug" >&6; }
25442 # Check whether --enable-debug-dmu-tx was given.
25443 if test "${enable_debug_dmu_tx+set}" = set; then
25444 enableval
=$enable_debug_dmu_tx;
25446 enable_debug_dmu_tx
=no
25450 if test "x$enable_debug_dmu_tx" = xyes
; then
25452 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
25453 DEBUG_DMU_TX
="_with_debug_dmu_tx"
25455 cat >>confdefs.h
<<\_ACEOF
25456 #define DEBUG_DMU_TX 1
25462 DEBUG_DMU_TX
="_without_debug_dmu_tx"
25468 { $as_echo "$as_me:$LINENO: checking whether dmu tx validation is enabled" >&5
25469 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
25470 { $as_echo "$as_me:$LINENO: result: $enable_debug_dmu_tx" >&5
25471 $as_echo "$enable_debug_dmu_tx" >&6; }
25474 ac_config_files
="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_id/Makefile cmd/vdev_id/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/zpool-layout/Makefile scripts/common.sh zfs.spec zfs-modules.spec PKGBUILD-zfs PKGBUILD-zfs-modules zfs-script-config.sh zfs.release"
25477 cat >confcache
<<\_ACEOF
25478 # This file is a shell script that caches the results of configure
25479 # tests run on this system so they can be shared between configure
25480 # scripts and configure runs, see configure's option --config-cache.
25481 # It is not useful on other systems. If it contains results you don't
25482 # want to keep, you may remove or edit it.
25484 # config.status only pays attention to the cache file if you give it
25485 # the --recheck option to rerun configure.
25487 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25488 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25489 # following values.
25493 # The following way of writing the cache mishandles newlines in values,
25494 # but we know of no workaround that is simple, portable, and efficient.
25495 # So, we kill variables containing newlines.
25496 # Ultrix sh set writes to stderr and can't be redirected directly,
25497 # and sets the high bit in the cache file unless we assign to the vars.
25499 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25500 eval ac_val
=\$
$ac_var
25504 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
25505 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25508 _ | IFS | as_nl
) ;; #(
25509 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25510 *) $as_unset $ac_var ;;
25516 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25517 *${as_nl}ac_space
=\
*)
25518 # `set' does not quote correctly, so add quotes (double-quote
25519 # substitution turns \\\\ into \\, and sed turns \\ into \).
25522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25525 # `set' quotes correctly as required by POSIX, so do not add quotes.
25526 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25535 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25537 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25539 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25540 if test -w "$cache_file"; then
25541 test "x$cache_file" != "x/dev/null" &&
25542 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25543 $as_echo "$as_me: updating cache $cache_file" >&6;}
25544 cat confcache
>$cache_file
25546 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25547 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25552 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25553 # Let make expand exec_prefix.
25554 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25556 DEFS
=-DHAVE_CONFIG_H
25560 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25561 # 1. Remove the extension, and $U if already installed.
25562 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25563 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25565 # will be set to the directory where LIBOBJS objects are built.
25566 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25567 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25569 LIBOBJS
=$ac_libobjs
25571 LTLIBOBJS
=$ac_ltlibobjs
25574 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25575 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25576 Usually this means the macro was only invoked conditionally." >&5
25577 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25578 Usually this means the macro was only invoked conditionally." >&2;}
25579 { (exit 1); exit 1; }; }
25581 if test -n "$EXEEXT"; then
25583 am__EXEEXT_FALSE
='#'
25585 am__EXEEXT_TRUE
='#'
25589 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25590 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25591 Usually this means the macro was only invoked conditionally." >&5
25592 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
25593 Usually this means the macro was only invoked conditionally." >&2;}
25594 { (exit 1); exit 1; }; }
25596 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25597 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25598 Usually this means the macro was only invoked conditionally." >&5
25599 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25600 Usually this means the macro was only invoked conditionally." >&2;}
25601 { (exit 1); exit 1; }; }
25603 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
25604 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
25605 Usually this means the macro was only invoked conditionally." >&5
25606 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
25607 Usually this means the macro was only invoked conditionally." >&2;}
25608 { (exit 1); exit 1; }; }
25610 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
25611 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
25612 Usually this means the macro was only invoked conditionally." >&5
25613 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
25614 Usually this means the macro was only invoked conditionally." >&2;}
25615 { (exit 1); exit 1; }; }
25617 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
25618 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
25619 Usually this means the macro was only invoked conditionally." >&5
25620 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
25621 Usually this means the macro was only invoked conditionally." >&2;}
25622 { (exit 1); exit 1; }; }
25625 : ${CONFIG_STATUS=./config.status}
25627 ac_clean_files_save
=$ac_clean_files
25628 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25629 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25630 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25631 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25633 # Generated by $as_me.
25634 # Run this file to recreate the current configuration.
25635 # Compiler output produced by configure, useful for debugging
25636 # configure, is in config.log if it exists.
25639 ac_cs_recheck=false
25641 SHELL=\${CONFIG_SHELL-$SHELL}
25644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25645 ## --------------------- ##
25646 ## M4sh Initialization. ##
25647 ## --------------------- ##
25649 # Be more Bourne compatible
25650 DUALCASE
=1; export DUALCASE
# for MKS sh
25651 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25654 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25655 # is contrary to our usage. Disable this feature.
25656 alias -g '${1+"$@"}'='"$@"'
25657 setopt NO_GLOB_SUBST
25659 case `(set -o) 2>/dev/null` in
25660 *posix
*) set -o posix
;;
25669 # Avoid depending upon Character Ranges.
25670 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25671 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25672 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25673 as_cr_digits
='0123456789'
25674 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25679 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25680 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25683 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25684 as_echo='printf %s
\n'
25685 as_echo_n='printf %s
'
25687 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25688 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25689 as_echo_n='/usr
/ucb
/echo -n'
25691 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25692 as_echo_n_body='eval
25696 expr "X$arg" : "X\\(.*\\)$as_nl";
25697 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25699 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25701 export as_echo_n_body
25702 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25704 export as_echo_body
25705 as_echo='sh
-c $as_echo_body as_echo
'
25708 # The user is always right.
25709 if test "${PATH_SEPARATOR+set}" != set; then
25711 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25712 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25717 # Support unset when possible.
25718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25726 # We need space, tab and new line, in precisely that order. Quoting is
25727 # there to prevent editors from complaining about space-tab.
25728 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25729 # splitting by setting IFS to empty value.)
25732 # Find who we are. Look in the path if we contain no directory separator.
25734 *[\\/]* ) as_myself=$0 ;;
25735 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25736 for as_dir in $PATH
25739 test -z "$as_dir" && as_dir=.
25740 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25746 # We did not find ourselves, most probably we were run as `sh COMMAND'
25747 # in which case we are not to be found in the path.
25748 if test "x$as_myself" = x
; then
25751 if test ! -f "$as_myself"; then
25752 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25753 { (exit 1); exit 1; }
25756 # Work around bugs in pre-3.0 UWIN ksh.
25757 for as_var
in ENV MAIL MAILPATH
25758 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25770 # Required to use basename.
25771 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25772 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25778 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25779 as_basename
=basename
25785 # Name of the executable.
25786 as_me
=`$as_basename -- "$0" ||
25787 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25788 X"$0" : 'X\(//\)$' \| \
25789 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25791 sed '/^.*\/\([^/][^/]*\)\/*$/{
25810 as_lineno_1
=$LINENO
25811 as_lineno_2
=$LINENO
25812 test "x$as_lineno_1" != "x$as_lineno_2" &&
25813 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25815 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25816 # uniformly replaced by the line number. The first 'sed' inserts a
25817 # line-number line after each line using $LINENO; the second 'sed'
25818 # does the real work. The second script uses 'N' to pair each
25819 # line-number line with the line containing $LINENO, and appends
25820 # trailing '-' during substitution so that $LINENO is not a special
25821 # case at line end.
25822 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25823 # scripts with optimization help from Paolo Bonzini. Blame Lee
25824 # E. McMahon (1931-1989) for sed's syntax. :-)
25836 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25839 ' >$as_me.lineno
&&
25840 chmod +x
"$as_me.lineno" ||
25841 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25842 { (exit 1); exit 1; }; }
25844 # Don't try to exec as it changes $[0], causing all sort of problems
25845 # (the dirname of $[0] is not the place where we might find the
25846 # original and so on. Autoconf is especially sensitive to this).
25847 .
"./$as_me.lineno"
25848 # Exit status is that of the last command.
25853 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25859 ECHO_C
= ECHO_N
= ECHO_T
=
25860 case `echo -n x` in
25862 case `echo 'x\c'` in
25863 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25869 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25870 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25876 rm -f conf$$ conf$$.exe conf$$.
file
25877 if test -d conf$$.dir
; then
25878 rm -f conf$$.dir
/conf$$.
file
25881 mkdir conf$$.dir
2>/dev
/null
25883 if (echo >conf$$.
file) 2>/dev
/null
; then
25884 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25886 # ... but there are two gotchas:
25887 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25888 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25889 # In both cases, we have to default to `cp -p'.
25890 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25892 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25900 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25901 rmdir conf$$.dir
2>/dev
/null
25903 if mkdir
-p .
2>/dev
/null
; then
25906 test -d .
/-p && rmdir .
/-p
25910 if test -x / >/dev
/null
2>&1; then
25911 as_test_x
='test -x'
25913 if ls -dL / >/dev
/null
2>&1; then
25920 if test -d "$1"; then
25926 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25927 ???[sx]*):;;*)false;;esac;fi
25931 as_executable_p
=$as_test_x
25933 # Sed expression to map a string onto a valid CPP name.
25934 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25936 # Sed expression to map a string onto a valid variable name.
25937 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25942 # Save the log message, to keep $[0] and so on meaningful, and to
25943 # report actual input values of CONFIG_FILES etc. instead of their
25944 # values after options handling.
25946 This file was extended by $as_me, which was
25947 generated by GNU Autoconf 2.63. Invocation command line was
25949 CONFIG_FILES = $CONFIG_FILES
25950 CONFIG_HEADERS = $CONFIG_HEADERS
25951 CONFIG_LINKS = $CONFIG_LINKS
25952 CONFIG_COMMANDS = $CONFIG_COMMANDS
25955 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25960 case $ac_config_files in *"
25961 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
25964 case $ac_config_headers in *"
25965 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
25969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25970 # Files that config.status was made for.
25971 config_files="$ac_config_files"
25972 config_headers="$ac_config_headers"
25973 config_commands="$ac_config_commands"
25977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25979 \`$as_me' instantiates files from templates according to the
25980 current configuration.
25982 Usage: $0 [OPTION]... [FILE]...
25984 -h, --help print this help, then exit
25985 -V, --version print version number and configuration settings, then exit
25986 -q, --quiet, --silent
25987 do not print progress messages
25988 -d, --debug don't remove temporary files
25989 --recheck update $as_me by reconfiguring in the same conditions
25990 --file=FILE[:TEMPLATE]
25991 instantiate the configuration file FILE
25992 --header=FILE[:TEMPLATE]
25993 instantiate the configuration header FILE
25995 Configuration files:
25998 Configuration headers:
26001 Configuration commands:
26004 Report bugs to <bug-autoconf@gnu.org>."
26007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26010 configured by $0, generated by GNU Autoconf 2.63,
26011 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26013 Copyright (C) 2008 Free Software Foundation, Inc.
26014 This config.status script is free software; the Free Software Foundation
26015 gives unlimited permission to copy, distribute and modify it."
26022 test -n "\$AWK" || AWK=awk
26025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26026 # The default lists apply if the user does not specify any file.
26032 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26033 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26044 # Handling of the options.
26045 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26047 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26048 $as_echo "$ac_cs_version"; exit ;;
26049 --debug |
--debu |
--deb |
--de |
--d |
-d )
26051 --file |
--fil |
--fi |
--f )
26054 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26056 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26057 ac_need_defaults
=false
;;
26058 --header |
--heade |
--head |
--hea )
26061 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26063 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26064 ac_need_defaults
=false
;;
26066 # Conflict between --help and --header
26067 { $as_echo "$as_me: error: ambiguous option: $1
26068 Try \`$0 --help' for more information." >&2
26069 { (exit 1); exit 1; }; };;
26070 --help |
--hel |
-h )
26071 $as_echo "$ac_cs_usage"; exit ;;
26072 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26073 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26076 # This is an error.
26077 -*) { $as_echo "$as_me: error: unrecognized option: $1
26078 Try \`$0 --help' for more information." >&2
26079 { (exit 1); exit 1; }; } ;;
26081 *) ac_config_targets
="$ac_config_targets $1"
26082 ac_need_defaults
=false
;;
26088 ac_configure_extra_args
=
26090 if $ac_cs_silent; then
26092 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26097 if \$ac_cs_recheck; then
26098 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26100 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26101 CONFIG_SHELL='$SHELL'
26102 export CONFIG_SHELL
26107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26112 ## Running $as_me. ##
26118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26122 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26125 # The HP-UX ksh and POSIX shell print the target directory to stdout
26126 # if CDPATH is set.
26127 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26129 sed_quote_subst='$sed_quote_subst'
26130 double_quote_subst='$double_quote_subst'
26131 delay_variable_subst='$delay_variable_subst'
26132 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
26133 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
26134 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
26135 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
26136 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
26137 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
26138 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
26139 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
26140 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
26141 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
26142 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
26143 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
26144 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
26145 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
26146 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
26147 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
26148 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
26149 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
26150 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
26151 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
26152 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
26153 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
26154 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
26155 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
26156 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
26157 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
26158 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
26159 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26160 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
26161 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
26162 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
26163 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
26164 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26165 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
26166 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
26167 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26168 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26169 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26170 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
26171 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26172 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
26173 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
26174 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
26175 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
26176 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"`'
26177 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"`'
26178 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
26179 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
26180 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
26181 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
26182 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
26183 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
26184 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
26185 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
26186 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
26187 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
26188 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
26189 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
26190 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
26191 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
26192 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
26193 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
26194 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26195 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26196 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
26197 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
26198 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26199 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26200 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
26201 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26202 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26203 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26204 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26205 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26206 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26207 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
26208 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26209 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26210 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26211 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
26212 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
26213 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
26214 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
26215 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
26216 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26217 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
26218 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
26219 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
26220 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
26221 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
26222 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26223 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26224 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26225 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26226 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
26227 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
26228 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26229 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
26230 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
26231 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26232 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26233 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
26234 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26235 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
26236 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26237 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26238 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26239 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26240 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
26241 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
26242 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26243 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26244 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
26245 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
26246 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
26247 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
26248 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
26249 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
26252 LTCFLAGS='$LTCFLAGS'
26253 compiler='$compiler_DEFAULT'
26255 # Quote evaled strings.
26267 deplibs_check_method \
26276 lt_cv_sys_global_symbol_pipe \
26277 lt_cv_sys_global_symbol_to_cdecl \
26278 lt_cv_sys_global_symbol_to_c_name_address \
26279 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26282 lt_prog_compiler_no_builtin_flag \
26283 lt_prog_compiler_wl \
26284 lt_prog_compiler_pic \
26285 lt_prog_compiler_static \
26286 lt_cv_prog_compiler_c_o \
26294 export_dynamic_flag_spec \
26295 whole_archive_flag_spec \
26296 compiler_needs_object \
26298 allow_undefined_flag \
26299 no_undefined_flag \
26300 hardcode_libdir_flag_spec \
26301 hardcode_libdir_flag_spec_ld \
26302 hardcode_libdir_separator \
26307 variables_saved_for_relink \
26309 library_names_spec \
26314 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26315 *[\\\\\\\`\\"\\\$]*)
26316 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26319 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26324 # Double-quote double-evaled strings.
26325 for var in reload_cmds \
26326 old_postinstall_cmds \
26327 old_postuninstall_cmds \
26329 extract_expsyms_cmds \
26330 old_archive_from_new_cmds \
26331 old_archive_from_expsyms_cmds \
26333 archive_expsym_cmds \
26335 module_expsym_cmds \
26336 export_symbols_cmds \
26339 postuninstall_cmds \
26341 sys_lib_search_path_spec \
26342 sys_lib_dlsearch_path_spec; do
26343 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26344 *[\\\\\\\`\\"\\\$]*)
26345 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26348 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26353 # Fix-up fallback echo if it was mangled by the above quoting rules.
26355 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
26359 ac_aux_dir='$ac_aux_dir'
26360 xsi_shell='$xsi_shell'
26361 lt_shell_append='$lt_shell_append'
26363 # See if we are running on zsh, and set the options which allow our
26364 # commands through without removal of \ escapes INIT.
26365 if test -n "\${ZSH_VERSION+set}" ; then
26366 setopt NO_GLOB_SUBST
26372 TIMESTAMP='$TIMESTAMP'
26381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26383 # Handling of arguments.
26384 for ac_config_target
in $ac_config_targets
26386 case $ac_config_target in
26387 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
26388 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
26389 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
26390 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26391 "dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/Makefile" ;;
26392 "dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/90zfs/Makefile" ;;
26393 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
26394 "udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/rules.d/Makefile" ;;
26395 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
26396 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
26397 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
26398 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
26399 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
26400 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
26401 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
26402 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
26403 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
26404 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
26405 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
26406 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
26407 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
26408 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
26409 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
26410 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
26411 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
26412 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
26413 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
26414 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
26415 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
26416 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
26417 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
26418 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
26419 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
26420 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
26421 "lib/libshare/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libshare/Makefile" ;;
26422 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
26423 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
26424 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
26425 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
26426 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
26427 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
26428 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
26429 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
26430 "cmd/zpool_layout/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
26431 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
26432 "cmd/zpool_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
26433 "cmd/vdev_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
26434 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
26435 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
26436 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
26437 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
26438 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
26439 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
26440 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
26441 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
26442 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
26443 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
26444 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
26445 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
26446 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
26447 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
26448 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
26449 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
26450 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
26451 "scripts/zpool-layout/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
26452 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
26453 "zfs.spec") CONFIG_FILES
="$CONFIG_FILES zfs.spec" ;;
26454 "zfs-modules.spec") CONFIG_FILES
="$CONFIG_FILES zfs-modules.spec" ;;
26455 "PKGBUILD-zfs") CONFIG_FILES
="$CONFIG_FILES PKGBUILD-zfs" ;;
26456 "PKGBUILD-zfs-modules") CONFIG_FILES
="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
26457 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
26458 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
26460 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26461 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26462 { (exit 1); exit 1; }; };;
26467 # If the user did not use the arguments to specify the items to instantiate,
26468 # then the envvar interface is used. Set only those that are not.
26469 # We use the long form for the default assignment because of an extremely
26470 # bizarre bug on SunOS 4.1.3.
26471 if $ac_need_defaults; then
26472 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26473 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26474 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26477 # Have a temporary directory for convenience. Make it in the build tree
26478 # simply because there is no reason against having it here, and in addition,
26479 # creating and moving files from /tmp can sometimes cause problems.
26480 # Hook for its removal unless debugging.
26481 # Note that there is a small window in which the directory will not be cleaned:
26482 # after its creation but before its name has been assigned to `$tmp'.
26486 trap 'exit_status=$?
26487 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26489 trap '{ (exit 1); exit 1; }' 1 2 13 15
26491 # Create a (secure) tmp directory for tmp files.
26494 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26495 test -n "$tmp" && test -d "$tmp"
26498 tmp
=.
/conf$$
-$RANDOM
26499 (umask 077 && mkdir
"$tmp")
26502 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26503 { (exit 1); exit 1; }
26506 # Set up the scripts for CONFIG_FILES section.
26507 # No need to generate them if there are no CONFIG_FILES.
26508 # This happens for instance with `./config.status config.h'.
26509 if test -n "$CONFIG_FILES"; then
26513 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26514 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26517 ac_cs_awk_cr
=$ac_cr
26520 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26525 echo "cat >conf$$subs.awk <<_ACEOF" &&
26526 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26528 } >conf$$subs.sh ||
26529 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26530 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26531 { (exit 1); exit 1; }; }
26532 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26534 for ac_last_try in false false false false false :; do
26535 . ./conf$$subs.sh ||
26536 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26537 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26538 { (exit 1); exit 1; }; }
26540 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26541 if test $ac_delim_n = $ac_delim_num; then
26543 elif $ac_last_try; then
26544 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26545 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26546 { (exit 1); exit 1; }; }
26548 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26551 rm -f conf$$subs.sh
26553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26554 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26558 s/^/S["/; s
/!.
*/"]=/
26568 s/\(.\{148\}\).*/\1/
26570 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26575 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26582 s/\(.\{148\}\).*/\1/
26584 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26588 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26593 ' <conf$$subs.awk | sed '
26598 ' >>$CONFIG_STATUS || ac_write_fail=1
26599 rm -f conf$$subs.awk
26600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26602 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26603 for (key in S) S_is_set[key] = 1
26609 nfields = split(line, field, "@
")
26611 len = length(field[1])
26612 for (i = 2; i < nfields; i++) {
26614 keylen = length(key)
26615 if (S_is_set[key]) {
26617 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26618 len += length(value) + length(field[++i])
26629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26630 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26631 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26634 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26635 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26636 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26637 { (exit 1); exit 1; }; }
26640 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26641 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26642 # trailing colons and then remove the whole line if VPATH becomes empty
26643 # (actually we leave an empty line to preserve line numbers).
26644 if test "x
$srcdir" = x.; then
26645 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26646 s/:*\$(srcdir):*/:/
26647 s/:*\${srcdir}:*/:/
26649 s/^\([^=]*=[ ]*\):*/\1/
26655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26656 fi # test -n "$CONFIG_FILES"
26658 # Set up the scripts for CONFIG_HEADERS section.
26659 # No need to generate them if there are no CONFIG_HEADERS.
26660 # This happens for instance with `./config.status Makefile'.
26661 if test -n "$CONFIG_HEADERS"; then
26662 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26666 # Transform confdefs.h into an awk script `defines.awk', embedded as
26667 # here-document in config.status, that substitutes the proper values into
26668 # config.h.in to produce config.h.
26670 # Create a delimiter string that does not exist in confdefs.h, to ease
26671 # handling of long lines.
26673 for ac_last_try in false false :; do
26674 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26675 if test -z "$ac_t"; then
26677 elif $ac_last_try; then
26678 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26679 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26680 { (exit 1); exit 1; }; }
26682 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26686 # For the awk script, D is an array of macro values keyed by name,
26687 # likewise P contains macro parameters if any. Preserve backslash
26688 # newline sequences.
26690 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26692 s/.\{148\}/&'"$ac_delim"'/g
26695 s/^[ ]*#[ ]*define[ ][ ]*/ /
26702 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26704 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26709 D["\
1"]=" \
3\\\\\\n
"\\/p
26711 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26716 s/.\{148\}/&'"$ac_delim"'/g
26721 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26724 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26726 ' <confdefs.h | sed '
26727 s/'"$ac_delim"'/"\\\
26728 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26731 for (key in D) D_is_set[key] = 1
26734 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26736 split(line, arg, " ")
26737 if (arg[1] == "#") {
26741 defundef
= substr
(arg
[1], 2)
26744 split(mac1
, mac2
, "(") #)
26746 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26747 if (D_is_set
[macro
]) {
26748 # Preserve the white space surrounding the "#".
26749 print prefix
"define", macro P
[macro
] D
[macro
]
26752 # Replace #undef with comments. This is necessary, for example,
26753 # in the case of _POSIX_SOURCE, which is predefined and required
26754 # on some systems where configure will not decide to define it.
26755 if (defundef
== "undef") {
26756 print
"/*", prefix defundef
, macro
, "*/"
26764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26765 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26766 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26767 { (exit 1); exit 1; }; }
26768 fi # test -n "$CONFIG_HEADERS"
26771 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26776 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26778 case $ac_mode$ac_tag in
26780 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
26781 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
26782 { (exit 1); exit 1; }; };;
26783 :[FH
]-) ac_tag
=-:-;;
26784 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26801 -) ac_f
="$tmp/stdin";;
26802 *) # Look for the file first in the build tree, then in the source tree
26803 # (if the path is not absolute). The absolute path cannot be DOS-style,
26804 # because $ac_f cannot contain `:'.
26808 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26810 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26811 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26812 { (exit 1); exit 1; }; };;
26814 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26815 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26818 # Let's still pretend it is `configure' which instantiates (i.e., don't
26819 # use $as_me), people would be surprised to read:
26820 # /* config.h. Generated by config.status. */
26821 configure_input
='Generated from '`
26822 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26824 if test x
"$ac_file" != x-
; then
26825 configure_input
="$ac_file. $configure_input"
26826 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26827 $as_echo "$as_me: creating $ac_file" >&6;}
26829 # Neutralize special characters interpreted by sed in replacement strings.
26830 case $configure_input in #(
26831 *\
&* |
*\|
* |
*\\* )
26832 ac_sed_conf_input
=`$as_echo "$configure_input" |
26833 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26834 *) ac_sed_conf_input
=$configure_input;;
26838 *:-:* |
*:-) cat >"$tmp/stdin" \
26839 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26840 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26841 { (exit 1); exit 1; }; } ;;
26846 ac_dir
=`$as_dirname -- "$ac_file" ||
26847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26848 X"$ac_file" : 'X\(//\)[^/]' \| \
26849 X"$ac_file" : 'X\(//\)$' \| \
26850 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26851 $as_echo X"$ac_file" |
26852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26856 /^X\(\/\/\)[^/].*/{
26871 -*) as_dir
=.
/$as_dir;;
26873 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26877 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26878 *) as_qdir
=$as_dir;;
26880 as_dirs
="'$as_qdir' $as_dirs"
26881 as_dir
=`$as_dirname -- "$as_dir" ||
26882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26883 X"$as_dir" : 'X\(//\)[^/]' \| \
26884 X"$as_dir" : 'X\(//\)$' \| \
26885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26886 $as_echo X"$as_dir" |
26887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26891 /^X\(\/\/\)[^/].*/{
26904 test -d "$as_dir" && break
26906 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26907 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26908 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26909 { (exit 1); exit 1; }; }; }
26913 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26915 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26916 # A ".." for each directory in $ac_dir_suffix.
26917 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26918 case $ac_top_builddir_sub in
26919 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26920 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26923 ac_abs_top_builddir
=$ac_pwd
26924 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26925 # for backward compatibility:
26926 ac_top_builddir
=$ac_top_build_prefix
26929 .
) # We are building in place.
26931 ac_top_srcdir
=$ac_top_builddir_sub
26932 ac_abs_top_srcdir
=$ac_pwd ;;
26933 [\\/]* | ?
:[\\/]* ) # Absolute name.
26934 ac_srcdir
=$srcdir$ac_dir_suffix;
26935 ac_top_srcdir
=$srcdir
26936 ac_abs_top_srcdir
=$srcdir ;;
26937 *) # Relative name.
26938 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26939 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26940 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26942 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26952 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26953 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26955 ac_MKDIR_P
=$MKDIR_P
26957 [\\/$
]* | ?
:[\\/]* ) ;;
26958 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26963 # If the template does not know about datarootdir, expand it.
26964 # FIXME: This hack should be removed a few years after 2.60.
26965 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26978 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26979 *datarootdir
*) ac_datarootdir_seen
=yes;;
26980 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26981 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26982 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26985 ac_datarootdir_hack='
26986 s&@datadir@&$datadir&g
26987 s&@docdir@&$docdir&g
26988 s&@infodir@&$infodir&g
26989 s&@localedir@&$localedir&g
26990 s&@mandir@&$mandir&g
26991 s&\\\${datarootdir}&$datarootdir&g' ;;
26995 # Neutralize VPATH when `$srcdir' = `.'.
26996 # Shell code in configure.ac might set extrasub.
26997 # FIXME: do we really want to maintain this feature?
26998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26999 ac_sed_extra="$ac_vpsub
27002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27004 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27005 s|@configure_input@|
$ac_sed_conf_input|
;t t
27006 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27007 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27008 s
&@srcdir@
&$ac_srcdir&;t t
27009 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27010 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27011 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27012 s
&@builddir@
&$ac_builddir&;t t
27013 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27014 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27015 s
&@INSTALL@
&$ac_INSTALL&;t t
27016 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
27017 $ac_datarootdir_hack
27019 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27020 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27021 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27022 { (exit 1); exit 1; }; }
27024 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27025 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27026 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27027 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27028 which seems to be undefined. Please make sure it is defined." >&5
27029 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27030 which seems to be undefined. Please make sure it is defined." >&2;}
27034 -) cat "$tmp/out" && rm -f "$tmp/out";;
27035 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27037 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27038 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27039 { (exit 1); exit 1; }; }
27045 if test x"$ac_file" != x-; then
27047 $as_echo "/* $configure_input */" \
27048 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27049 } >"$tmp/config.h" \
27050 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27051 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27052 { (exit 1); exit 1; }; }
27053 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27054 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27055 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27058 mv "$tmp/config.h" "$ac_file" \
27059 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27060 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27061 { (exit 1); exit 1; }; }
27064 $as_echo "/* $configure_input */" \
27065 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27066 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27067 $as_echo "$as_me: error: could not create -" >&2;}
27068 { (exit 1); exit 1; }; }
27070 # Compute "$ac_file"'s index
in $config_headers.
27073 for _am_header
in $config_headers :; do
27074 case $_am_header in
27075 $_am_arg |
$_am_arg:* )
27078 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
27081 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27082 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27083 X"$_am_arg" : 'X\(//\)[^/]' \| \
27084 X"$_am_arg" : 'X\(//\)$' \| \
27085 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27086 $as_echo X"$_am_arg" |
27087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27091 /^X\(\/\/\)[^/].*/{
27103 s/.*/./; q'`/stamp-h
$_am_stamp_count
27106 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27107 $as_echo "$as_me: executing $ac_file commands" >&6;}
27112 case $ac_file$ac_mode in
27114 (mv zfs_config.h zfs_config.h.tmp
&&
27115 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
27116 rm zfs_config.h.tmp
) ||
exit 1 ;;
27117 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
27118 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27119 # are listed without --file. Let's play safe and only enable the eval
27120 # if we detect the quoting.
27121 case $CONFIG_FILES in
27122 *\'*) eval set x
"$CONFIG_FILES" ;;
27123 *) set x
$CONFIG_FILES ;;
27128 # Strip MF so we end up with the name of the file.
27129 mf
=`echo "$mf" | sed -e 's/:.*$//'`
27130 # Check whether this is an Automake generated Makefile or not.
27131 # We used to match only the files named `Makefile.in', but
27132 # some people rename them; so instead we look at the file content.
27133 # Grep'ing the first line is not enough: some people post-process
27134 # each Makefile.in and add a new line on top of each file to say so.
27135 # Grep'ing the whole file is not good either: AIX grep has a line
27136 # limit of 2048, but all sed's we know have understand at least 4000.
27137 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
27138 dirpart
=`$as_dirname -- "$mf" ||
27139 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27140 X"$mf" : 'X\(//\)[^/]' \| \
27141 X"$mf" : 'X\(//\)$' \| \
27142 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27148 /^X\(\/\/\)[^/].*/{
27164 # Extract the definition of DEPDIR, am__include, and am__quote
27165 # from the Makefile without running `make'.
27166 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27167 test -z "$DEPDIR" && continue
27168 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27169 test -z "am__include" && continue
27170 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27171 # When using ansi2knr, U may be empty or an underscore; expand it
27172 U
=`sed -n 's/^U = //p' < "$mf"`
27173 # Find all dependency output files, they are included files with
27174 # $(DEPDIR) in their names. We invoke sed twice because it is the
27175 # simplest approach to changing $(DEPDIR) to its actual value in the
27177 for file in `sed -n "
27178 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27179 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27180 # Make sure the directory exists.
27181 test -f "$dirpart/$file" && continue
27182 fdir
=`$as_dirname -- "$file" ||
27183 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27184 X"$file" : 'X\(//\)[^/]' \| \
27185 X"$file" : 'X\(//\)$' \| \
27186 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27187 $as_echo X"$file" |
27188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27192 /^X\(\/\/\)[^/].*/{
27205 { as_dir
=$dirpart/$fdir
27207 -*) as_dir
=.
/$as_dir;;
27209 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27213 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27214 *) as_qdir
=$as_dir;;
27216 as_dirs
="'$as_qdir' $as_dirs"
27217 as_dir
=`$as_dirname -- "$as_dir" ||
27218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27219 X"$as_dir" : 'X\(//\)[^/]' \| \
27220 X"$as_dir" : 'X\(//\)$' \| \
27221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27222 $as_echo X"$as_dir" |
27223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27227 /^X\(\/\/\)[^/].*/{
27240 test -d "$as_dir" && break
27242 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27243 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27244 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27245 { (exit 1); exit 1; }; }; }
27246 # echo "creating $dirpart/$file"
27247 echo '# dummy' > "$dirpart/$file"
27254 # See if we are running on zsh, and set the options which allow our
27255 # commands through without removal of \ escapes.
27256 if test -n "${ZSH_VERSION+set}" ; then
27257 setopt NO_GLOB_SUBST
27260 cfgfile
="${ofile}T"
27261 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27264 cat <<_LT_EOF >> "$cfgfile"
27267 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27268 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27269 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27270 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27272 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27273 # 2006, 2007, 2008 Free Software Foundation, Inc.
27274 # Written by Gordon Matzigkeit, 1996
27276 # This file is part of GNU Libtool.
27278 # GNU Libtool is free software; you can redistribute it and/or
27279 # modify it under the terms of the GNU General Public License as
27280 # published by the Free Software Foundation; either version 2 of
27281 # the License, or (at your option) any later version.
27283 # As a special exception to the GNU General Public License,
27284 # if you distribute this file as part of a program or library that
27285 # is built using GNU Libtool, you may include this file under the
27286 # same distribution terms that you use for the rest of that program.
27288 # GNU Libtool is distributed in the hope that it will be useful,
27289 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27290 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27291 # GNU General Public License for more details.
27293 # You should have received a copy of the GNU General Public License
27294 # along with GNU Libtool; see the file COPYING. If not, a copy
27295 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27296 # obtained by writing to the Free Software Foundation, Inc.,
27297 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27300 # The names of the tagged configurations supported by this script.
27303 # ### BEGIN LIBTOOL CONFIG
27305 # Which release of libtool.m4 was used?
27306 macro_version=$macro_version
27307 macro_revision=$macro_revision
27309 # Whether or not to build shared libraries.
27310 build_libtool_libs=$enable_shared
27312 # Whether or not to build static libraries.
27313 build_old_libs=$enable_static
27315 # What type of objects to build.
27318 # Whether or not to optimize for fast installation.
27319 fast_install=$enable_fast_install
27322 host_alias=$host_alias
27326 # The build system.
27327 build_alias=$build_alias
27331 # A sed program that does not truncate output.
27334 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27335 Xsed="\$SED -e 1s/^X//"
27337 # A grep program that handles long lines.
27343 # A literal string matcher.
27346 # A BSD- or MS-compatible name lister.
27349 # Whether we need soft or hard links.
27352 # What is the maximum length of a command?
27353 max_cmd_len=$max_cmd_len
27355 # Object file suffix (normally "o").
27358 # Executable file suffix (normally "").
27361 # whether the shell understands "unset".
27364 # turn spaces into newlines.
27367 # turn newlines into spaces.
27370 # How to create reloadable object files.
27371 reload_flag=$lt_reload_flag
27372 reload_cmds=$lt_reload_cmds
27374 # An object symbol dumper.
27375 OBJDUMP=$lt_OBJDUMP
27377 # Method to check whether dependent libraries are shared objects.
27378 deplibs_check_method=$lt_deplibs_check_method
27380 # Command to use when deplibs_check_method == "file_magic".
27381 file_magic_cmd=$lt_file_magic_cmd
27385 AR_FLAGS=$lt_AR_FLAGS
27387 # A symbol stripping program.
27390 # Commands used to install an old-style archive.
27392 old_postinstall_cmds=$lt_old_postinstall_cmds
27393 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27398 # LTCC compiler flags.
27399 LTCFLAGS=$lt_CFLAGS
27401 # Take the output of nm and produce a listing of raw symbols and C names.
27402 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27404 # Transform the output of nm in a proper C declaration.
27405 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27407 # Transform the output of nm in a C name address pair.
27408 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27410 # Transform the output of nm in a C name address pair when lib prefix is needed.
27411 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27413 # The name of the directory that contains temporary libtool files.
27416 # Shell to use when invoking shell scripts.
27419 # An echo program that does not interpret backslashes.
27422 # Used to examine libraries when file_magic_cmd begins with "file".
27423 MAGIC_CMD=$MAGIC_CMD
27425 # Must we lock files when doing compilation?
27426 need_locks=$lt_need_locks
27428 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27429 DSYMUTIL=$lt_DSYMUTIL
27431 # Tool to change global to local symbols on Mac OS X.
27434 # Tool to manipulate fat objects and archives on Mac OS X.
27437 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27440 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27441 OTOOL64=$lt_OTOOL64
27443 # Old archive suffix (normally "a").
27446 # Shared library suffix (normally ".so").
27447 shrext_cmds=$lt_shrext_cmds
27449 # The commands to extract the exported symbol list from a shared archive.
27450 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27452 # Variables whose values should be saved in libtool wrapper scripts and
27453 # restored at link time.
27454 variables_saved_for_relink=$lt_variables_saved_for_relink
27456 # Do we need the "lib" prefix for modules?
27457 need_lib_prefix=$need_lib_prefix
27459 # Do we need a version for libraries?
27460 need_version=$need_version
27462 # Library versioning type.
27463 version_type=$version_type
27465 # Shared library runtime path variable.
27466 runpath_var=$runpath_var
27468 # Shared library path variable.
27469 shlibpath_var=$shlibpath_var
27471 # Is shlibpath searched before the hard-coded library search path?
27472 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27474 # Format of library name prefix.
27475 libname_spec=$lt_libname_spec
27477 # List of archive names. First name is the real one, the rest are links.
27478 # The last name is the one that the linker finds with -lNAME
27479 library_names_spec=$lt_library_names_spec
27481 # The coded name of the library, if different from the real name.
27482 soname_spec=$lt_soname_spec
27484 # Command to use after installation of a shared archive.
27485 postinstall_cmds=$lt_postinstall_cmds
27487 # Command to use after uninstallation of a shared archive.
27488 postuninstall_cmds=$lt_postuninstall_cmds
27490 # Commands used to finish a libtool library installation in a directory.
27491 finish_cmds=$lt_finish_cmds
27493 # As "finish_cmds", except a single script fragment to be evaled but
27495 finish_eval=$lt_finish_eval
27497 # Whether we should hardcode library paths into libraries.
27498 hardcode_into_libs=$hardcode_into_libs
27500 # Compile-time system search path for libraries.
27501 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27503 # Run-time system search path for libraries.
27504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27506 # Whether dlopen is supported.
27507 dlopen_support=$enable_dlopen
27509 # Whether dlopen of programs is supported.
27510 dlopen_self=$enable_dlopen_self
27512 # Whether dlopen of statically linked programs is supported.
27513 dlopen_self_static=$enable_dlopen_self_static
27515 # Commands to strip libraries.
27516 old_striplib=$lt_old_striplib
27517 striplib=$lt_striplib
27520 # The linker used to build libraries.
27523 # Commands used to build an old-style archive.
27524 old_archive_cmds=$lt_old_archive_cmds
27526 # A language specific compiler.
27529 # Is the compiler the GNU compiler?
27532 # Compiler flag to turn off builtin functions.
27533 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27535 # How to pass a linker flag through the compiler.
27536 wl=$lt_lt_prog_compiler_wl
27538 # Additional compiler flags for building library objects.
27539 pic_flag=$lt_lt_prog_compiler_pic
27541 # Compiler flag to prevent dynamic linking.
27542 link_static_flag=$lt_lt_prog_compiler_static
27544 # Does compiler simultaneously support -c and -o options?
27545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27547 # Whether or not to add -lc for building shared libraries.
27548 build_libtool_need_lc=$archive_cmds_need_lc
27550 # Whether or not to disallow shared libs when runtime libs are static.
27551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27553 # Compiler flag to allow reflexive dlopens.
27554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27556 # Compiler flag to generate shared objects directly from archives.
27557 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27559 # Whether the compiler copes with passing no objects directly.
27560 compiler_needs_object=$lt_compiler_needs_object
27562 # Create an old-style archive from a shared archive.
27563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27565 # Create a temporary old-style archive to link instead of a shared archive.
27566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27568 # Commands used to build a shared archive.
27569 archive_cmds=$lt_archive_cmds
27570 archive_expsym_cmds=$lt_archive_expsym_cmds
27572 # Commands used to build a loadable module if different from building
27573 # a shared archive.
27574 module_cmds=$lt_module_cmds
27575 module_expsym_cmds=$lt_module_expsym_cmds
27577 # Whether we are building with GNU ld or not.
27578 with_gnu_ld=$lt_with_gnu_ld
27580 # Flag that allows shared libraries with undefined symbols to be built.
27581 allow_undefined_flag=$lt_allow_undefined_flag
27583 # Flag that enforces no undefined symbols.
27584 no_undefined_flag=$lt_no_undefined_flag
27586 # Flag to hardcode \$libdir into a binary during linking.
27587 # This must work even if \$libdir does not exist
27588 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27590 # If ld is used when linking, flag to hardcode \$libdir into a binary
27591 # during linking. This must work even if \$libdir does not exist.
27592 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27594 # Whether we need a single "-rpath" flag with a separated argument.
27595 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27597 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27598 # DIR into the resulting binary.
27599 hardcode_direct=$hardcode_direct
27601 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27602 # DIR into the resulting binary and the resulting library dependency is
27603 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27604 # library is relocated.
27605 hardcode_direct_absolute=$hardcode_direct_absolute
27607 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27608 # into the resulting binary.
27609 hardcode_minus_L=$hardcode_minus_L
27611 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27612 # into the resulting binary.
27613 hardcode_shlibpath_var=$hardcode_shlibpath_var
27615 # Set to "yes" if building a shared library automatically hardcodes DIR
27616 # into the library and all subsequent libraries and executables linked
27618 hardcode_automatic=$hardcode_automatic
27620 # Set to yes if linker adds runtime paths of dependent libraries
27621 # to runtime path list.
27622 inherit_rpath=$inherit_rpath
27624 # Whether libtool must link a program against all its dependency libraries.
27625 link_all_deplibs=$link_all_deplibs
27627 # Fix the shell variable \$srcfile for the compiler.
27628 fix_srcfile_path=$lt_fix_srcfile_path
27630 # Set to "yes" if exported symbols are required.
27631 always_export_symbols=$always_export_symbols
27633 # The commands to list exported symbols.
27634 export_symbols_cmds=$lt_export_symbols_cmds
27636 # Symbols that should not be listed in the preloaded symbols.
27637 exclude_expsyms=$lt_exclude_expsyms
27639 # Symbols that must always be exported.
27640 include_expsyms=$lt_include_expsyms
27642 # Commands necessary for linking programs (against libraries) with templates.
27643 prelink_cmds=$lt_prelink_cmds
27645 # Specify filename containing input files.
27646 file_list_spec=$lt_file_list_spec
27648 # How to hardcode a shared library path into an executable.
27649 hardcode_action=$hardcode_action
27651 # ### END LIBTOOL CONFIG
27657 cat <<\_LT_EOF
>> "$cfgfile"
27658 # AIX sometimes has problems with the GCC collect2 program. For some
27659 # reason, if we set the COLLECT_NAMES environment variable, the problems
27660 # vanish in a puff of smoke.
27661 if test "X${COLLECT_NAMES+set}" != Xset
; then
27663 export COLLECT_NAMES
27670 ltmain
="$ac_aux_dir/ltmain.sh"
27673 # We use sed instead of cat because bash on DJGPP gets confused if
27674 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27675 # text mode, it properly converts lines to CR/LF. This bash problem
27676 # is reportedly fixed, but why not run on old versions too?
27677 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27678 ||
(rm -f "$cfgfile"; exit 1)
27682 cat << \_LT_EOF
>> "$cfgfile"
27684 # func_dirname file append nondir_replacement
27685 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27686 # otherwise set result to NONDIR_REPLACEMENT.
27690 */*) func_dirname_result
="${1%/*}${2}" ;;
27691 * ) func_dirname_result
="${3}" ;;
27695 # func_basename file
27698 func_basename_result
="${1##*/}"
27701 # func_dirname_and_basename file append nondir_replacement
27702 # perform func_basename and func_dirname in a single function
27704 # dirname: Compute the dirname of FILE. If nonempty,
27705 # add APPEND to the result, otherwise set result
27706 # to NONDIR_REPLACEMENT.
27707 # value returned in "$func_dirname_result"
27708 # basename: Compute filename of FILE.
27709 # value retuned in "$func_basename_result"
27710 # Implementation must be kept synchronized with func_dirname
27711 # and func_basename. For efficiency, we do not delegate to
27712 # those functions but instead duplicate the functionality here.
27713 func_dirname_and_basename
()
27716 */*) func_dirname_result
="${1%/*}${2}" ;;
27717 * ) func_dirname_result
="${3}" ;;
27719 func_basename_result
="${1##*/}"
27722 # func_stripname prefix suffix name
27723 # strip PREFIX and SUFFIX off of NAME.
27724 # PREFIX and SUFFIX must not contain globbing or regex special
27725 # characters, hashes, percent signs, but SUFFIX may contain a leading
27726 # dot (in which case that matches only a dot).
27729 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27730 # positional parameters, so assign one to ordinary parameter first.
27731 func_stripname_result
=${3}
27732 func_stripname_result
=${func_stripname_result#"${1}"}
27733 func_stripname_result
=${func_stripname_result%"${2}"}
27739 func_opt_split_opt
=${1%%=*}
27740 func_opt_split_arg
=${1#*=}
27747 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
27748 *) func_lo2o_result
=${1} ;;
27752 # func_xform libobj-or-source
27755 func_xform_result
=${1%.*}.lo
27758 # func_arith arithmetic-term...
27761 func_arith_result
=$
(( $
* ))
27765 # STRING may not start with a hyphen.
27768 func_len_result
=${#1}
27773 *) # Bourne compatible functions.
27774 cat << \_LT_EOF
>> "$cfgfile"
27776 # func_dirname file append nondir_replacement
27777 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27778 # otherwise set result to NONDIR_REPLACEMENT.
27781 # Extract subdirectory from the argument.
27782 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27783 if test "X$func_dirname_result" = "X${1}"; then
27784 func_dirname_result
="${3}"
27786 func_dirname_result
="$func_dirname_result${2}"
27790 # func_basename file
27793 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
27797 # func_stripname prefix suffix name
27798 # strip PREFIX and SUFFIX off of NAME.
27799 # PREFIX and SUFFIX must not contain globbing or regex special
27800 # characters, hashes, percent signs, but SUFFIX may contain a leading
27801 # dot (in which case that matches only a dot).
27802 # func_strip_suffix prefix name
27806 .
*) func_stripname_result
=`$ECHO "X${3}" \
27807 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27808 *) func_stripname_result
=`$ECHO "X${3}" \
27809 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27814 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
27815 my_sed_long_arg
='1s/^-[^=]*=//'
27820 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27821 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27827 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27830 # func_xform libobj-or-source
27833 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27836 # func_arith arithmetic-term...
27839 func_arith_result
=`expr "$@"`
27843 # STRING may not start with a hyphen.
27846 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27852 case $lt_shell_append in
27854 cat << \_LT_EOF
>> "$cfgfile"
27856 # func_append var value
27857 # Append VALUE to the end of shell variable VAR.
27865 cat << \_LT_EOF
>> "$cfgfile"
27867 # func_append var value
27868 # Append VALUE to the end of shell variable VAR.
27879 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27880 ||
(rm -f "$cfgfile"; exit 1)
27882 mv -f "$cfgfile" "$ofile" ||
27883 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27892 { (exit 0); exit 0; }
27894 chmod +x
$CONFIG_STATUS
27895 ac_clean_files
=$ac_clean_files_save
27897 test $ac_write_fail = 0 ||
27898 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27899 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27900 { (exit 1); exit 1; }; }
27903 # configure is writing to config.log, and then calls config.status.
27904 # config.status does its own redirection, appending to config.log.
27905 # Unfortunately, on DOS this fails, as config.log is still kept open
27906 # by configure, so config.status won't be able to write to it; its
27907 # output is simply discarded. So we exec the FD to /dev/null,
27908 # effectively closing config.log, so it can be properly (re)opened and
27909 # appended to by config.status. When coming back to configure, we
27910 # need to make the FD available again.
27911 if test "$no_create" != yes; then
27913 ac_config_status_args
=
27914 test "$silent" = yes &&
27915 ac_config_status_args
="$ac_config_status_args --quiet"
27917 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27919 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27920 # would make configure fail if this is the last instruction.
27921 $ac_cs_success ||
{ (exit 1); exit 1; }
27923 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27924 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27925 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}