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
996 ac_precious_vars
='build_alias
1009 # Initialize some variables set by options.
1011 ac_init_version
=false
1012 ac_unrecognized_opts
=
1013 ac_unrecognized_sep
=
1014 # The variables have the same names as the options, with
1015 # dashes changed to underlines.
1016 cache_file
=/dev
/null
1023 program_transform_name
=s
,x
,x
,
1031 # Installation directory options.
1032 # These are left unexpanded so users can "make install exec_prefix=/foo"
1033 # and all the variables that are supposed to be based on exec_prefix
1034 # by default will actually change.
1035 # Use braces instead of parens because sh, perl, etc. also accept them.
1036 # (The list follows the same order as the GNU Coding Standards.)
1037 bindir
='${exec_prefix}/bin'
1038 sbindir
='${exec_prefix}/sbin'
1039 libexecdir
='${exec_prefix}/libexec'
1040 datarootdir
='${prefix}/share'
1041 datadir
='${datarootdir}'
1042 sysconfdir
='${prefix}/etc'
1043 sharedstatedir
='${prefix}/com'
1044 localstatedir
='${prefix}/var'
1045 includedir
='${prefix}/include'
1046 oldincludedir
='/usr/include'
1047 docdir
='${datarootdir}/doc/${PACKAGE}'
1048 infodir
='${datarootdir}/info'
1053 libdir
='${exec_prefix}/lib'
1054 localedir
='${datarootdir}/locale'
1055 mandir
='${datarootdir}/man'
1061 # If the previous option needs an argument, assign it.
1062 if test -n "$ac_prev"; then
1063 eval $ac_prev=\
$ac_option
1069 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1073 # Accept the important Cygnus configure options, so we can diagnose typos.
1075 case $ac_dashdash$ac_option in
1079 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1081 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1082 bindir
=$ac_optarg ;;
1084 -build |
--build |
--buil |
--bui |
--bu)
1085 ac_prev
=build_alias
;;
1086 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1087 build_alias
=$ac_optarg ;;
1089 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1090 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1091 ac_prev
=cache_file
;;
1092 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1093 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1094 cache_file
=$ac_optarg ;;
1096 --config-cache |
-C)
1097 cache_file
=config.cache
;;
1099 -datadir |
--datadir |
--datadi |
--datad)
1101 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1102 datadir
=$ac_optarg ;;
1104 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1105 |
--dataroo |
--dataro |
--datar)
1106 ac_prev
=datarootdir
;;
1107 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1108 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1109 datarootdir
=$ac_optarg ;;
1111 -disable-* |
--disable-*)
1112 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1115 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_useropt_orig
=$ac_useropt
1118 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1121 "enable_
$ac_useropt"
1123 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1124 ac_unrecognized_sep
=', ';;
1126 eval enable_
$ac_useropt=no
;;
1128 -docdir |
--docdir |
--docdi |
--doc |
--do)
1130 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1131 docdir
=$ac_optarg ;;
1133 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1135 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1136 dvidir
=$ac_optarg ;;
1138 -enable-* |
--enable-*)
1139 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1142 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_useropt_orig
=$ac_useropt
1145 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1148 "enable_
$ac_useropt"
1150 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1151 ac_unrecognized_sep
=', ';;
1153 eval enable_
$ac_useropt=\
$ac_optarg ;;
1155 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1156 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1157 |
--exec |
--exe |
--ex)
1158 ac_prev
=exec_prefix
;;
1159 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1160 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1161 |
--exec=* |
--exe=* |
--ex=*)
1162 exec_prefix
=$ac_optarg ;;
1164 -gas |
--gas |
--ga |
--g)
1165 # Obsolete; use --with-gas.
1168 -help |
--help |
--hel |
--he |
-h)
1169 ac_init_help
=long
;;
1170 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1171 ac_init_help
=recursive
;;
1172 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1173 ac_init_help
=short
;;
1175 -host |
--host |
--hos |
--ho)
1176 ac_prev
=host_alias
;;
1177 -host=* |
--host=* |
--hos=* |
--ho=*)
1178 host_alias
=$ac_optarg ;;
1180 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1182 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1184 htmldir
=$ac_optarg ;;
1186 -includedir |
--includedir |
--includedi |
--included |
--include \
1187 |
--includ |
--inclu |
--incl |
--inc)
1188 ac_prev
=includedir
;;
1189 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1190 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1191 includedir
=$ac_optarg ;;
1193 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1195 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1196 infodir
=$ac_optarg ;;
1198 -libdir |
--libdir |
--libdi |
--libd)
1200 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1201 libdir
=$ac_optarg ;;
1203 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1204 |
--libexe |
--libex |
--libe)
1205 ac_prev
=libexecdir
;;
1206 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1207 |
--libexe=* |
--libex=* |
--libe=*)
1208 libexecdir
=$ac_optarg ;;
1210 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1211 ac_prev
=localedir
;;
1212 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1213 localedir
=$ac_optarg ;;
1215 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1216 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1217 ac_prev
=localstatedir
;;
1218 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1219 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1220 localstatedir
=$ac_optarg ;;
1222 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1224 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1225 mandir
=$ac_optarg ;;
1227 -nfp |
--nfp |
--nf)
1228 # Obsolete; use --without-fp.
1231 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1232 |
--no-cr |
--no-c |
-n)
1235 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1236 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1239 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1240 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1241 |
--oldin |
--oldi |
--old |
--ol |
--o)
1242 ac_prev
=oldincludedir
;;
1243 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1244 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1245 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1246 oldincludedir
=$ac_optarg ;;
1248 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1250 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1251 prefix
=$ac_optarg ;;
1253 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1254 |
--program-pre |
--program-pr |
--program-p)
1255 ac_prev
=program_prefix
;;
1256 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1257 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1258 program_prefix
=$ac_optarg ;;
1260 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1261 |
--program-suf |
--program-su |
--program-s)
1262 ac_prev
=program_suffix
;;
1263 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1264 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1265 program_suffix
=$ac_optarg ;;
1267 -program-transform-name |
--program-transform-name \
1268 |
--program-transform-nam |
--program-transform-na \
1269 |
--program-transform-n |
--program-transform- \
1270 |
--program-transform |
--program-transfor \
1271 |
--program-transfo |
--program-transf \
1272 |
--program-trans |
--program-tran \
1273 |
--progr-tra |
--program-tr |
--program-t)
1274 ac_prev
=program_transform_name
;;
1275 -program-transform-name=* |
--program-transform-name=* \
1276 |
--program-transform-nam=* |
--program-transform-na=* \
1277 |
--program-transform-n=* |
--program-transform-=* \
1278 |
--program-transform=* |
--program-transfor=* \
1279 |
--program-transfo=* |
--program-transf=* \
1280 |
--program-trans=* |
--program-tran=* \
1281 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1282 program_transform_name
=$ac_optarg ;;
1284 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1286 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1287 pdfdir
=$ac_optarg ;;
1289 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1291 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1294 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1295 |
-silent |
--silent |
--silen |
--sile |
--sil)
1298 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1300 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1302 sbindir
=$ac_optarg ;;
1304 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1305 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1306 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1308 ac_prev
=sharedstatedir
;;
1309 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1310 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1311 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1313 sharedstatedir
=$ac_optarg ;;
1315 -site |
--site |
--sit)
1317 -site=* |
--site=* |
--sit=*)
1320 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1322 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1323 srcdir
=$ac_optarg ;;
1325 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1326 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1327 ac_prev
=sysconfdir
;;
1328 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1329 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1330 sysconfdir
=$ac_optarg ;;
1332 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1333 ac_prev
=target_alias
;;
1334 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1335 target_alias
=$ac_optarg ;;
1337 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1340 -version |
--version |
--versio |
--versi |
--vers |
-V)
1341 ac_init_version
=: ;;
1344 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1347 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1348 { (exit 1); exit 1; }; }
1349 ac_useropt_orig
=$ac_useropt
1350 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1355 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1356 ac_unrecognized_sep
=', ';;
1358 eval with_
$ac_useropt=\
$ac_optarg ;;
1360 -without-* |
--without-*)
1361 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1364 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1365 { (exit 1); exit 1; }; }
1366 ac_useropt_orig
=$ac_useropt
1367 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368 case $ac_user_opts in
1372 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1373 ac_unrecognized_sep
=', ';;
1375 eval with_
$ac_useropt=no
;;
1378 # Obsolete; use --with-x.
1381 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1382 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1383 ac_prev
=x_includes
;;
1384 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1385 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1386 x_includes
=$ac_optarg ;;
1388 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1389 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1390 ac_prev
=x_libraries
;;
1391 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1392 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1393 x_libraries
=$ac_optarg ;;
1395 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1396 Try \`$0 --help' for more information." >&2
1397 { (exit 1); exit 1; }; }
1401 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1402 # Reject names that are not valid shell variable names.
1403 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1404 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1405 { (exit 1); exit 1; }; }
1406 eval $ac_envvar=\
$ac_optarg
1407 export $ac_envvar ;;
1410 # FIXME: should be removed in autoconf 3.0.
1411 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1412 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1413 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1414 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1420 if test -n "$ac_prev"; then
1421 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1422 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1423 { (exit 1); exit 1; }; }
1426 if test -n "$ac_unrecognized_opts"; then
1427 case $enable_option_checking in
1429 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1430 { (exit 1); exit 1; }; } ;;
1431 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1435 # Check all directory arguments for consistency.
1436 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1437 datadir sysconfdir sharedstatedir localstatedir includedir \
1438 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1439 libdir localedir mandir
1441 eval ac_val
=\$
$ac_var
1442 # Remove trailing slashes.
1445 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1446 eval $ac_var=\
$ac_val;;
1448 # Be sure to have absolute directory names.
1450 [\\/$
]* | ?
:[\\/]* ) continue;;
1451 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1453 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1454 { (exit 1); exit 1; }; }
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1462 target
=$target_alias
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x
; then
1466 if test "x$build_alias" = x
; then
1467 cross_compiling
=maybe
1468 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469 If a cross compiler is detected then cross compile mode will be used." >&2
1470 elif test "x$build_alias" != "x$host_alias"; then
1476 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1478 test "$silent" = yes && exec 6>/dev
/null
1481 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di
=`ls -di .` &&
1483 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1484 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1485 { (exit 1); exit 1; }; }
1486 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1488 { (exit 1); exit 1; }; }
1491 # Find the source files, if location was not specified.
1492 if test -z "$srcdir"; then
1493 ac_srcdir_defaulted
=yes
1494 # Try the directory containing this script, then the parent directory.
1495 ac_confdir
=`$as_dirname -- "$as_myself" ||
1496 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1497 X"$as_myself" : 'X\(//\)[^/]' \| \
1498 X"$as_myself" : 'X\(//\)$' \| \
1499 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1500 $as_echo X"$as_myself" |
1501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1523 ac_srcdir_defaulted
=no
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1527 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1528 { (exit 1); exit 1; }; }
1530 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1532 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1533 { (exit 1); exit 1; }; }
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1543 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1545 for ac_var
in $ac_precious_vars; do
1546 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1547 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1548 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1549 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1553 # Report the --help message.
1555 if test "$ac_init_help" = "long"; then
1556 # Omit some internal or obsolete options to make the list less imposing.
1557 # This message is too long to be a string in the A/UX 3.1 sh.
1559 \`configure' configures this package to adapt to many kinds of systems.
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE. See below for descriptions of some of the useful variables.
1566 Defaults for the options are specified in brackets.
1569 -h, --help display this help and exit
1570 --help=short display options specific to this package
1571 --help=recursive display the short help of all the included packages
1572 -V, --version display version information and exit
1573 -q, --quiet, --silent do not print \`checking...' messages
1574 --cache-file=FILE cache test results in FILE [disabled]
1575 -C, --config-cache alias for \`--cache-file=config.cache'
1576 -n, --no-create do not create output files
1577 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1579 Installation directories:
1580 --prefix=PREFIX install architecture-independent files in PREFIX
1581 [$ac_default_prefix]
1582 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1590 For better control, use the options below.
1592 Fine tuning of the installation directories:
1593 --bindir=DIR user executables [EPREFIX/bin]
1594 --sbindir=DIR system admin executables [EPREFIX/sbin]
1595 --libexecdir=DIR program executables [EPREFIX/libexec]
1596 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1597 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1598 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1599 --libdir=DIR object code libraries [EPREFIX/lib]
1600 --includedir=DIR C header files [PREFIX/include]
1601 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1602 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1603 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1604 --infodir=DIR info documentation [DATAROOTDIR/info]
1605 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1606 --mandir=DIR man documentation [DATAROOTDIR/man]
1607 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1608 --htmldir=DIR html documentation [DOCDIR]
1609 --dvidir=DIR dvi documentation [DOCDIR]
1610 --pdfdir=DIR pdf documentation [DOCDIR]
1611 --psdir=DIR ps documentation [DOCDIR]
1617 --program-prefix=PREFIX prepend PREFIX to installed program names
1618 --program-suffix=SUFFIX append SUFFIX to installed program names
1619 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1622 --build=BUILD configure
for building on BUILD
[guessed
]
1623 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1624 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1628 if test -n "$ac_init_help"; then
1633 --disable-option-checking ignore unrecognized
--enable/--with options
1634 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1635 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1636 --enable-maintainer-mode enable make rules and dependencies not useful
1637 (and sometimes confusing
) to the casual installer
1638 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1639 --disable-silent-rules verbose build output (undo: `make V
=0')
1640 --disable-dependency-tracking speeds up one-time build
1641 --enable-dependency-tracking do not reject slow dependency extractors
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=yes]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-linux-builtin Configure for builtin in-tree kernel modules
1649 --enable-debug Enable generic debug support [default=no]
1650 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1653 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1654 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1655 --with-pic try to use only PIC/non-PIC objects [default=use
1657 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1658 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1659 --with-linux=PATH Path to kernel source
1660 --with-linux-obj=PATH Path to kernel build objects
1661 --with-spl=PATH Path to spl source
1662 --with-spl-obj=PATH Path to spl build objects
1663 --with-udevdir=DIR install udev helpers [EPREFIX/lib/udev]
1664 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1665 --with-blkid support blkid caching [default=check]
1666 --with-selinux support selinux [default=check]
1668 Some influential environment variables:
1669 CC C compiler command
1670 CFLAGS C compiler flags
1671 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1672 nonstandard directory <lib dir>
1673 LIBS libraries to pass to the linker, e.g. -l<library>
1674 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1675 you have headers in a nonstandard directory <include dir>
1677 CCAS assembler compiler command (defaults to CC)
1678 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1680 Use these variables to override the choices made by `configure' or to
help
1681 it to
find libraries and programs with nonstandard names
/locations.
1687 if test "$ac_init_help" = "recursive"; then
1688 # If there are subdirs, report their specific --help.
1689 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1690 test -d "$ac_dir" ||
1691 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1696 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1698 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1699 # A ".." for each directory in $ac_dir_suffix.
1700 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1701 case $ac_top_builddir_sub in
1702 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1703 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1706 ac_abs_top_builddir
=$ac_pwd
1707 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1708 # for backward compatibility:
1709 ac_top_builddir
=$ac_top_build_prefix
1712 .
) # We are building in place.
1714 ac_top_srcdir
=$ac_top_builddir_sub
1715 ac_abs_top_srcdir
=$ac_pwd ;;
1716 [\\/]* | ?
:[\\/]* ) # Absolute name.
1717 ac_srcdir
=$srcdir$ac_dir_suffix;
1718 ac_top_srcdir
=$srcdir
1719 ac_abs_top_srcdir
=$srcdir ;;
1721 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1723 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1725 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1727 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1728 # Check for guested configure.
1729 if test -f "$ac_srcdir/configure.gnu"; then
1731 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1732 elif test -f "$ac_srcdir/configure"; then
1734 $SHELL "$ac_srcdir/configure" --help=recursive
1736 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1738 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1742 test -n "$ac_init_help" && exit $ac_status
1743 if $ac_init_version; then
1746 generated by GNU Autoconf
2.63
1748 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1749 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1750 This configure
script is free software
; the Free Software Foundation
1751 gives unlimited permission to copy
, distribute and modify it.
1755 cat >config.log
<<_ACEOF
1756 This file contains any messages produced by compilers while
1757 running configure, to aid debugging if configure makes a mistake.
1759 It was created by $as_me, which was
1760 generated by GNU Autoconf 2.63. Invocation command line was
1772 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1773 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1774 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1775 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1776 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1778 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1779 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1781 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1782 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1783 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1784 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1785 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1786 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1787 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1795 test -z "$as_dir" && as_dir
=.
1796 $as_echo "PATH: $as_dir"
1812 # Keep a trace of the command line.
1813 # Strip out --no-create and --no-recursion so they do not pile up.
1814 # Strip out --silent because we don't want to record it for future runs.
1815 # Also quote any args containing shell meta-characters.
1816 # Make two passes to allow for proper duplicate-argument suppression.
1820 ac_must_keep_next
=false
1826 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1827 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1828 |
-silent |
--silent |
--silen |
--sile |
--sil)
1831 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1834 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1836 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1837 if test $ac_must_keep_next = true
; then
1838 ac_must_keep_next
=false
# Got value, back to normal.
1841 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1842 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1843 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1844 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1845 case "$ac_configure_args0 " in
1846 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1849 -* ) ac_must_keep_next
=true
;;
1852 ac_configure_args
="$ac_configure_args '$ac_arg'"
1857 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1858 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1860 # When interrupted or exit'd, cleanup temporary files, and complete
1861 # config.log. We remove comments because anyway the quotes in there
1862 # would cause problems or look ugly.
1863 # WARNING: Use '\'' to represent an apostrophe within the trap.
1864 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1865 trap 'exit_status=$?
1866 # Save into config.log some information that might help in debugging.
1871 ## ---------------- ##
1872 ## Cache variables. ##
1873 ## ---------------- ##
1876 # The following way of writing the cache mishandles newlines in values,
1878 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1879 eval ac_val=\$$ac_var
1883 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1884 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1887 _ | IFS | as_nl) ;; #(
1888 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1889 *) $as_unset $ac_var ;;
1894 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1895 *${as_nl}ac_space=\ *)
1897 "s/'\''/'\''\\\\'\'''\''/g;
1898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1909 ## ----------------- ##
1910 ## Output variables. ##
1911 ## ----------------- ##
1914 for ac_var in $ac_subst_vars
1916 eval ac_val=\$$ac_var
1918 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 $as_echo "$ac_var='\''$ac_val'\''"
1924 if test -n "$ac_subst_files"; then
1926 ## ------------------- ##
1927 ## File substitutions. ##
1928 ## ------------------- ##
1931 for ac_var
in $ac_subst_files
1933 eval ac_val
=\$
$ac_var
1935 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1937 $as_echo "$ac_var='\''$ac_val'\''"
1942 if test -s confdefs.h; then
1952 test "$ac_signal" != 0 &&
1953 $as_echo "$as_me: caught signal $ac_signal"
1954 $as_echo "$as_me: exit $exit_status"
1956 rm -f core *.core core.conftest.* &&
1957 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1960 for ac_signal
in 1 2 13 15; do
1961 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1965 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1966 rm -f -r conftest
* confdefs.h
1968 # Predefined preprocessor variables.
1970 cat >>confdefs.h
<<_ACEOF
1971 #define PACKAGE_NAME "$PACKAGE_NAME"
1975 cat >>confdefs.h
<<_ACEOF
1976 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1980 cat >>confdefs.h
<<_ACEOF
1981 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1985 cat >>confdefs.h
<<_ACEOF
1986 #define PACKAGE_STRING "$PACKAGE_STRING"
1990 cat >>confdefs.h
<<_ACEOF
1991 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1995 # Let the site file select an alternate cache file if it wants to.
1996 # Prefer an explicitly selected file to automatically selected ones.
1999 if test -n "$CONFIG_SITE"; then
2000 ac_site_file1
=$CONFIG_SITE
2001 elif test "x$prefix" != xNONE
; then
2002 ac_site_file1
=$prefix/share
/config.site
2003 ac_site_file2
=$prefix/etc
/config.site
2005 ac_site_file1
=$ac_default_prefix/share
/config.site
2006 ac_site_file2
=$ac_default_prefix/etc
/config.site
2008 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2010 test "x$ac_site_file" = xNONE
&& continue
2011 if test -r "$ac_site_file"; then
2012 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2013 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2014 sed 's/^/| /' "$ac_site_file" >&5
2019 if test -r "$cache_file"; then
2020 # Some versions of bash will fail to source /dev/null (special
2021 # files actually), so we avoid doing that.
2022 if test -f "$cache_file"; then
2023 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2024 $as_echo "$as_me: loading cache $cache_file" >&6;}
2026 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2027 *) .
"./$cache_file";;
2031 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2032 $as_echo "$as_me: creating cache $cache_file" >&6;}
2036 # Check that the precious variables saved in the cache have kept the same
2038 ac_cache_corrupted
=false
2039 for ac_var
in $ac_precious_vars; do
2040 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2041 eval ac_new_set
=\
$ac_env_${ac_var}_set
2042 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2043 eval ac_new_val
=\
$ac_env_${ac_var}_value
2044 case $ac_old_set,$ac_new_set in
2046 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2047 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2048 ac_cache_corrupted
=: ;;
2050 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2051 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2052 ac_cache_corrupted
=: ;;
2055 if test "x$ac_old_val" != "x$ac_new_val"; then
2056 # differences in whitespace do not lead to failure.
2057 ac_old_val_w
=`echo x $ac_old_val`
2058 ac_new_val_w
=`echo x $ac_new_val`
2059 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2060 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2061 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2062 ac_cache_corrupted
=:
2064 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2065 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2066 eval $ac_var=\
$ac_old_val
2068 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2069 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2070 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2071 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2074 # Pass precious variables to config.status.
2075 if test "$ac_new_set" = set; then
2077 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2078 *) ac_arg
=$ac_var=$ac_new_val ;;
2080 case " $ac_configure_args " in
2081 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2082 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2086 if $ac_cache_corrupted; then
2087 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2090 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2091 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2092 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2093 { (exit 1); exit 1; }; }
2113 ac_cpp
='$CPP $CPPFLAGS'
2114 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2115 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2116 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2120 ac_cpp
='$CPP $CPPFLAGS'
2121 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2130 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2131 $as_echo_n "checking metadata... " >&6; }
2134 _zfs_ac_meta_got_file
=no
2135 if test -f "$META"; then
2136 _zfs_ac_meta_got_file
=yes
2138 ZFS_META_NAME
=`perl -n\
2139 -e "BEGIN { \\$key=shift @ARGV; }"\
2140 -e "next unless s/^\s*\\$key[:=]//i;"\
2141 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2144 -e "s/^(['\"])(.*)\1/\\$2/;"\
2146 -e "END { print \\$val if defined \\$val; }"\
2147 '(?:NAME|PROJECT|PACKAGE)' $META`;
2148 if test -n "$ZFS_META_NAME"; then
2150 cat >>confdefs.h
<<_ACEOF
2151 #define ZFS_META_NAME "$ZFS_META_NAME"
2157 ZFS_META_VERSION
=`perl -n\
2158 -e "BEGIN { \\$key=shift @ARGV; }"\
2159 -e "next unless s/^\s*\\$key[:=]//i;"\
2160 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2163 -e "s/^(['\"])(.*)\1/\\$2/;"\
2165 -e "END { print \\$val if defined \\$val; }"\
2167 if test -n "$ZFS_META_VERSION"; then
2169 cat >>confdefs.h
<<_ACEOF
2170 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2176 ZFS_META_RELEASE
=`perl -n\
2177 -e "BEGIN { \\$key=shift @ARGV; }"\
2178 -e "next unless s/^\s*\\$key[:=]//i;"\
2179 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2182 -e "s/^(['\"])(.*)\1/\\$2/;"\
2184 -e "END { print \\$val if defined \\$val; }"\
2186 if test -n "$ZFS_META_RELEASE"; then
2188 cat >>confdefs.h
<<_ACEOF
2189 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2195 ZFS_META_LICENSE
=`perl -n\
2196 -e "BEGIN { \\$key=shift @ARGV; }"\
2197 -e "next unless s/^\s*\\$key[:=]//i;"\
2198 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2201 -e "s/^(['\"])(.*)\1/\\$2/;"\
2203 -e "END { print \\$val if defined \\$val; }"\
2205 if test -n "$ZFS_META_LICENSE"; then
2207 cat >>confdefs.h
<<_ACEOF
2208 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2214 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2215 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2216 test -n "$ZFS_META_RELEASE" &&
2217 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2219 cat >>confdefs.h
<<_ACEOF
2220 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2226 ZFS_META_DATA
=`perl -n\
2227 -e "BEGIN { \\$key=shift @ARGV; }"\
2228 -e "next unless s/^\s*\\$key[:=]//i;"\
2229 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2232 -e "s/^(['\"])(.*)\1/\\$2/;"\
2234 -e "END { print \\$val if defined \\$val; }"\
2236 if test -n "$ZFS_META_DATA"; then
2238 cat >>confdefs.h
<<_ACEOF
2239 #define ZFS_META_DATA "$ZFS_META_DATA"
2245 ZFS_META_AUTHOR
=`perl -n\
2246 -e "BEGIN { \\$key=shift @ARGV; }"\
2247 -e "next unless s/^\s*\\$key[:=]//i;"\
2248 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2251 -e "s/^(['\"])(.*)\1/\\$2/;"\
2253 -e "END { print \\$val if defined \\$val; }"\
2255 if test -n "$ZFS_META_AUTHOR"; then
2257 cat >>confdefs.h
<<_ACEOF
2258 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2265 ZFS_META_LT_CURRENT
=`perl -n\
2266 -e "BEGIN { \\$key=shift @ARGV; }"\
2267 -e "next unless s/^\s*\\$key[:=]//i;"\
2268 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2271 -e "s/^(['\"])(.*)\1/\\$2/;"\
2273 -e "END { print \\$val if defined \\$val; }"\
2274 'LT_CURRENT' $META`;
2275 ZFS_META_LT_REVISION
=`perl -n\
2276 -e "BEGIN { \\$key=shift @ARGV; }"\
2277 -e "next unless s/^\s*\\$key[:=]//i;"\
2278 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2281 -e "s/^(['\"])(.*)\1/\\$2/;"\
2283 -e "END { print \\$val if defined \\$val; }"\
2284 'LT_REVISION' $META`;
2285 ZFS_META_LT_AGE
=`perl -n\
2286 -e "BEGIN { \\$key=shift @ARGV; }"\
2287 -e "next unless s/^\s*\\$key[:=]//i;"\
2288 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2291 -e "s/^(['\"])(.*)\1/\\$2/;"\
2293 -e "END { print \\$val if defined \\$val; }"\
2295 if test -n "$ZFS_META_LT_CURRENT" \
2296 -o -n "$ZFS_META_LT_REVISION" \
2297 -o -n "$ZFS_META_LT_AGE"; then
2298 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2299 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2300 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2302 cat >>confdefs.h
<<_ACEOF
2303 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2307 cat >>confdefs.h
<<_ACEOF
2308 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2312 cat >>confdefs.h
<<_ACEOF
2313 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2322 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2323 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2327 for ac_dir
in config
"$srcdir"/config
; do
2328 if test -f "$ac_dir/install-sh"; then
2330 ac_install_sh
="$ac_aux_dir/install-sh -c"
2332 elif test -f "$ac_dir/install.sh"; then
2334 ac_install_sh
="$ac_aux_dir/install.sh -c"
2336 elif test -f "$ac_dir/shtool"; then
2338 ac_install_sh
="$ac_aux_dir/shtool install -c"
2342 if test -z "$ac_aux_dir"; then
2343 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2344 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2345 { (exit 1); exit 1; }; }
2348 # These three variables are undocumented and unsupported,
2349 # and are intended to be withdrawn in a future Autoconf release.
2350 # They can cause serious problems if a builder's source tree is in a directory
2351 # whose full name contains unusual characters.
2352 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2357 # Make sure we can run config.sub.
2358 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2359 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2360 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2361 { (exit 1); exit 1; }; }
2363 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2364 $as_echo_n "checking build system type... " >&6; }
2365 if test "${ac_cv_build+set}" = set; then
2366 $as_echo_n "(cached) " >&6
2368 ac_build_alias
=$build_alias
2369 test "x$ac_build_alias" = x
&&
2370 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2371 test "x$ac_build_alias" = x
&&
2372 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2373 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2374 { (exit 1); exit 1; }; }
2375 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2376 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2377 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2378 { (exit 1); exit 1; }; }
2381 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2382 $as_echo "$ac_cv_build" >&6; }
2383 case $ac_cv_build in
2385 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2386 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2387 { (exit 1); exit 1; }; };;
2390 ac_save_IFS
=$IFS; IFS
='-'
2396 # Remember, the first character of IFS is used to create $*,
2397 # except with old shells:
2400 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2403 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2404 $as_echo_n "checking host system type... " >&6; }
2405 if test "${ac_cv_host+set}" = set; then
2406 $as_echo_n "(cached) " >&6
2408 if test "x$host_alias" = x
; then
2409 ac_cv_host
=$ac_cv_build
2411 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2412 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2413 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2414 { (exit 1); exit 1; }; }
2418 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2419 $as_echo "$ac_cv_host" >&6; }
2422 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2423 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2424 { (exit 1); exit 1; }; };;
2427 ac_save_IFS
=$IFS; IFS
='-'
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2437 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2440 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2441 $as_echo_n "checking target system type... " >&6; }
2442 if test "${ac_cv_target+set}" = set; then
2443 $as_echo_n "(cached) " >&6
2445 if test "x$target_alias" = x
; then
2446 ac_cv_target
=$ac_cv_host
2448 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2449 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2450 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2451 { (exit 1); exit 1; }; }
2455 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2456 $as_echo "$ac_cv_target" >&6; }
2457 case $ac_cv_target in
2459 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2460 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2461 { (exit 1); exit 1; }; };;
2463 target
=$ac_cv_target
2464 ac_save_IFS
=$IFS; IFS
='-'
2470 # Remember, the first character of IFS is used to create $*,
2471 # except with old shells:
2474 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2477 # The aliases save the names the user supplied, while $host etc.
2478 # will get canonicalized.
2479 test -n "$target_alias" &&
2480 test "$program_prefix$program_suffix$program_transform_name" = \
2482 program_prefix
=${target_alias}-
2484 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2485 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2486 # Check whether --enable-maintainer-mode was given.
2487 if test "${enable_maintainer_mode+set}" = set; then
2488 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2490 USE_MAINTAINER_MODE
=no
2493 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2494 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2495 if test $USE_MAINTAINER_MODE = yes; then
2496 MAINTAINER_MODE_TRUE
=
2497 MAINTAINER_MODE_FALSE
='#'
2499 MAINTAINER_MODE_TRUE
='#'
2500 MAINTAINER_MODE_FALSE
=
2503 MAINT
=$MAINTAINER_MODE_TRUE
2506 # Check whether --enable-silent-rules was given.
2507 if test "${enable_silent_rules+set}" = set; then
2508 enableval
=$enable_silent_rules;
2511 case $enable_silent_rules in
2512 yes) AM_DEFAULT_VERBOSITY
=0;;
2513 no
) AM_DEFAULT_VERBOSITY
=1;;
2514 *) AM_DEFAULT_VERBOSITY
=1;;
2518 am__api_version='1.11'
2520 # Find a good install program. We prefer a C program (faster),
2521 # so one script is as good as another. But avoid the broken or
2522 # incompatible versions:
2523 # SysV /etc/install, /usr/sbin/install
2524 # SunOS /usr/etc/install
2525 # IRIX /sbin/install
2527 # AmigaOS /C/install, which installs bootblocks on floppy discs
2528 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2529 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2530 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2531 # OS/2's system install, which has a completely different semantic
2532 # ./install, which can be erroneously created by make from ./install.sh.
2533 # Reject install programs that cannot install multiple files.
2534 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2535 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2536 if test -z "$INSTALL"; then
2537 if test "${ac_cv_path_install+set}" = set; then
2538 $as_echo_n "(cached) " >&6
2540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir
=.
2545 # Account for people who put trailing slashes in PATH elements.
2547 .
/ | .
// |
/cC
/* | \
2548 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2549 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2552 # OSF1 and SCO ODT 3.0 have their own names for install.
2553 # Don't use installbsd from OSF since it installs stuff as root
2555 for ac_prog
in ginstall scoinst
install; do
2556 for ac_exec_ext
in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2558 if test $ac_prog = install &&
2559 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2560 # AIX install. It has an incompatible calling convention.
2562 elif test $ac_prog = install &&
2563 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2564 # program-specific install script used by HP pwplus--don't use.
2567 rm -rf conftest.one conftest.two conftest.dir
2568 echo one
> conftest.one
2569 echo two
> conftest.two
2571 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2572 test -s conftest.one
&& test -s conftest.two
&&
2573 test -s conftest.dir
/conftest.one
&&
2574 test -s conftest.dir
/conftest.two
2576 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2589 rm -rf conftest.one conftest.two conftest.dir
2592 if test "${ac_cv_path_install+set}" = set; then
2593 INSTALL
=$ac_cv_path_install
2595 # As a last resort, use the slow shell script. Don't cache a
2596 # value for INSTALL within a source directory, because that will
2597 # break other packages using the cache if that directory is
2598 # removed, or if the value is a relative name.
2599 INSTALL
=$ac_install_sh
2602 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2603 $as_echo "$INSTALL" >&6; }
2605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2606 # It thinks the first close brace ends the variable substitution.
2607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2611 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2613 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2614 $as_echo_n "checking whether build environment is sane... " >&6; }
2617 echo timestamp
> conftest.
file
2618 # Reject unsafe characters in $srcdir or the absolute working directory
2619 # name. Accept space and tab only in the latter.
2623 *[\\\"\
#\$\&\'\`$am_lf]*)
2624 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2625 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2626 { (exit 1); exit 1; }; };;
2629 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2630 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2631 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2632 { (exit 1); exit 1; }; };;
2635 # Do `set' in a subshell so we don't clobber the current shell's
2636 # arguments. Must try -L first in case configure is actually a
2637 # symlink; some systems play weird games with the mod time of symlinks
2638 # (eg FreeBSD returns the mod time of the symlink's containing
2641 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2642 if test "$*" = "X"; then
2644 set X
`ls -t "$srcdir/configure" conftest.file`
2647 if test "$*" != "X $srcdir/configure conftest.file" \
2648 && test "$*" != "X conftest.file $srcdir/configure"; then
2650 # If neither matched, then we have a broken ls. This can happen
2651 # if, for instance, CONFIG_SHELL is bash and it inherits a
2652 # broken ls alias from the environment. This has actually
2653 # happened. Such a system could not be considered "sane".
2654 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2655 alias in your environment" >&5
2656 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2657 alias in your environment" >&2;}
2658 { (exit 1); exit 1; }; }
2661 test "$2" = conftest.
file
2667 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2668 Check your system clock" >&5
2669 $as_echo "$as_me: error: newly created file is older than distributed files!
2670 Check your system clock" >&2;}
2671 { (exit 1); exit 1; }; }
2673 { $as_echo "$as_me:$LINENO: result: yes" >&5
2674 $as_echo "yes" >&6; }
2675 test "$program_prefix" != NONE
&&
2676 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2677 # Use a double $ so make ignores it.
2678 test "$program_suffix" != NONE
&&
2679 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2680 # Double any \ or $.
2681 # By default was `s,x,x', remove it if useless.
2682 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2683 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2685 # expand $ac_aux_dir to an absolute path
2686 am_aux_dir
=`cd $ac_aux_dir && pwd`
2688 if test x
"${MISSING+set}" != xset
; then
2691 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2693 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2696 # Use eval to expand $SHELL
2697 if eval "$MISSING --run true"; then
2698 am_missing_run
="$MISSING --run "
2701 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2702 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2705 if test x
"${install_sh}" != xset
; then
2708 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2710 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2714 # Installed binaries are usually stripped using `strip' when the user
2715 # run `make install-strip'. However `strip' might not be the right
2716 # tool to use in cross-compilation environments, therefore Automake
2717 # will honor the `STRIP' environment variable to overrule this program.
2718 if test "$cross_compiling" != no
; then
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2721 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if test "${ac_cv_prog_STRIP+set}" = set; then
2725 $as_echo_n "(cached) " >&6
2727 if test -n "$STRIP"; then
2728 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir
=.
2735 for ac_exec_ext
in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 STRIP
=$ac_cv_prog_STRIP
2748 if test -n "$STRIP"; then
2749 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2750 $as_echo "$STRIP" >&6; }
2752 { $as_echo "$as_me:$LINENO: result: no" >&5
2753 $as_echo "no" >&6; }
2758 if test -z "$ac_cv_prog_STRIP"; then
2760 # Extract the first word of "strip", so it can be a program name with args.
2761 set dummy strip
; ac_word
=$2
2762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2765 $as_echo_n "(cached) " >&6
2767 if test -n "$ac_ct_STRIP"; then
2768 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir
=.
2775 for ac_exec_ext
in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_ac_ct_STRIP
="strip"
2778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2788 if test -n "$ac_ct_STRIP"; then
2789 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2790 $as_echo "$ac_ct_STRIP" >&6; }
2792 { $as_echo "$as_me:$LINENO: result: no" >&5
2793 $as_echo "no" >&6; }
2796 if test "x$ac_ct_STRIP" = x
; then
2799 case $cross_compiling:$ac_tool_warned in
2801 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned
=yes ;;
2808 STRIP
="$ac_cv_prog_STRIP"
2812 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2814 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2815 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2816 if test -z "$MKDIR_P"; then
2817 if test "${ac_cv_path_mkdir+set}" = set; then
2818 $as_echo_n "(cached) " >&6
2820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2821 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2824 test -z "$as_dir" && as_dir
=.
2825 for ac_prog
in mkdir gmkdir
; do
2826 for ac_exec_ext
in '' $ac_executable_extensions; do
2827 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2828 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2829 'mkdir (GNU coreutils) '* | \
2830 'mkdir (coreutils) '* | \
2831 'mkdir (fileutils) '4.1*)
2832 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2842 if test "${ac_cv_path_mkdir+set}" = set; then
2843 MKDIR_P
="$ac_cv_path_mkdir -p"
2845 # As a last resort, use the slow shell script. Don't cache a
2846 # value for MKDIR_P within a source directory, because that will
2847 # break other packages using the cache if that directory is
2848 # removed, or if the value is a relative name.
2849 test -d .
/--version && rmdir .
/--version
2850 MKDIR_P
="$ac_install_sh -d"
2853 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2854 $as_echo "$MKDIR_P" >&6; }
2858 [\\/$
]* | ?
:[\\/]*) ;;
2859 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2862 for ac_prog
in gawk mawk nawk
awk
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865 set dummy
$ac_prog; ac_word
=$2
2866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_AWK+set}" = set; then
2869 $as_echo_n "(cached) " >&6
2871 if test -n "$AWK"; then
2872 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2878 test -z "$as_dir" && as_dir
=.
2879 for ac_exec_ext
in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_AWK
="$ac_prog"
2882 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 if test -n "$AWK"; then
2893 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2894 $as_echo "$AWK" >&6; }
2896 { $as_echo "$as_me:$LINENO: result: no" >&5
2897 $as_echo "no" >&6; }
2901 test -n "$AWK" && break
2904 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2905 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2907 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2908 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2909 $as_echo_n "(cached) " >&6
2911 cat >conftest.
make <<\_ACEOF
2914 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2916 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2917 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2919 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2921 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2925 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2926 { $as_echo "$as_me:$LINENO: result: yes" >&5
2927 $as_echo "yes" >&6; }
2930 { $as_echo "$as_me:$LINENO: result: no" >&5
2931 $as_echo "no" >&6; }
2932 SET_MAKE
="MAKE=${MAKE-make}"
2935 rm -rf .tst
2>/dev
/null
2936 mkdir .tst
2>/dev
/null
2937 if test -d .tst
; then
2942 rmdir .tst
2>/dev
/null
2944 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2945 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2946 # is not polluted with repeated "-I."
2947 am__isrc
=' -I$(srcdir)'
2948 # test to see if srcdir already configured
2949 if test -f $srcdir/config.status
; then
2950 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2951 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2952 { (exit 1); exit 1; }; }
2956 # test whether we have cygpath
2957 if test -z "$CYGPATH_W"; then
2958 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2959 CYGPATH_W
='cygpath -w'
2966 # Define the identity of the package.
2967 PACKAGE
=$ZFS_META_NAME
2968 VERSION
=$ZFS_META_VERSION
2971 cat >>confdefs.h
<<_ACEOF
2972 #define PACKAGE "$PACKAGE"
2976 cat >>confdefs.h
<<_ACEOF
2977 #define VERSION "$VERSION"
2980 # Some tools Automake needs.
2982 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2985 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2988 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2991 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2994 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2996 # We need awk for the "check" target. The system "awk" is bad on
2998 # Always define AMTAR for backward compatibility.
3000 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3002 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3008 ac_config_headers
="$ac_config_headers zfs_config.h"
3011 # Find a good install program. We prefer a C program (faster),
3012 # so one script is as good as another. But avoid the broken or
3013 # incompatible versions:
3014 # SysV /etc/install, /usr/sbin/install
3015 # SunOS /usr/etc/install
3016 # IRIX /sbin/install
3018 # AmigaOS /C/install, which installs bootblocks on floppy discs
3019 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3022 # OS/2's system install, which has a completely different semantic
3023 # ./install, which can be erroneously created by make from ./install.sh.
3024 # Reject install programs that cannot install multiple files.
3025 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3026 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3027 if test -z "$INSTALL"; then
3028 if test "${ac_cv_path_install+set}" = set; then
3029 $as_echo_n "(cached) " >&6
3031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir
=.
3036 # Account for people who put trailing slashes in PATH elements.
3038 .
/ | .
// |
/cC
/* | \
3039 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3040 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3043 # OSF1 and SCO ODT 3.0 have their own names for install.
3044 # Don't use installbsd from OSF since it installs stuff as root
3046 for ac_prog
in ginstall scoinst
install; do
3047 for ac_exec_ext
in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3049 if test $ac_prog = install &&
3050 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3051 # AIX install. It has an incompatible calling convention.
3053 elif test $ac_prog = install &&
3054 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3055 # program-specific install script used by HP pwplus--don't use.
3058 rm -rf conftest.one conftest.two conftest.dir
3059 echo one
> conftest.one
3060 echo two
> conftest.two
3062 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3063 test -s conftest.one
&& test -s conftest.two
&&
3064 test -s conftest.dir
/conftest.one
&&
3065 test -s conftest.dir
/conftest.two
3067 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3080 rm -rf conftest.one conftest.two conftest.dir
3083 if test "${ac_cv_path_install+set}" = set; then
3084 INSTALL
=$ac_cv_path_install
3086 # As a last resort, use the slow shell script. Don't cache a
3087 # value for INSTALL within a source directory, because that will
3088 # break other packages using the cache if that directory is
3089 # removed, or if the value is a relative name.
3090 INSTALL
=$ac_install_sh
3093 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3094 $as_echo "$INSTALL" >&6; }
3096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3097 # It thinks the first close brace ends the variable substitution.
3098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3102 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3105 ac_cpp
='$CPP $CPPFLAGS'
3106 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3109 if test -n "$ac_tool_prefix"; then
3110 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3111 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if test "${ac_cv_prog_CC+set}" = set; then
3115 $as_echo_n "(cached) " >&6
3117 if test -n "$CC"; then
3118 ac_cv_prog_CC
="$CC" # Let the user override the test.
3120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3124 test -z "$as_dir" && as_dir
=.
3125 for ac_exec_ext
in '' $ac_executable_extensions; do
3126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 if test -n "$CC"; then
3139 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3142 { $as_echo "$as_me:$LINENO: result: no" >&5
3143 $as_echo "no" >&6; }
3148 if test -z "$ac_cv_prog_CC"; then
3150 # Extract the first word of "gcc", so it can be a program name with args.
3151 set dummy gcc
; ac_word
=$2
3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$ac_ct_CC"; then
3158 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir
=.
3165 for ac_exec_ext
in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_ac_ct_CC
="gcc"
3168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3178 if test -n "$ac_ct_CC"; then
3179 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3180 $as_echo "$ac_ct_CC" >&6; }
3182 { $as_echo "$as_me:$LINENO: result: no" >&5
3183 $as_echo "no" >&6; }
3186 if test "x$ac_ct_CC" = x
; then
3189 case $cross_compiling:$ac_tool_warned in
3191 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned
=yes ;;
3201 if test -z "$CC"; then
3202 if test -n "$ac_tool_prefix"; then
3203 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3204 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3205 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if test "${ac_cv_prog_CC+set}" = set; then
3208 $as_echo_n "(cached) " >&6
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC
="$CC" # Let the user override the test.
3213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir
=.
3218 for ac_exec_ext
in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 if test -n "$CC"; then
3232 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3235 { $as_echo "$as_me:$LINENO: result: no" >&5
3236 $as_echo "no" >&6; }
3242 if test -z "$CC"; then
3243 # Extract the first word of "cc", so it can be a program name with args.
3244 set dummy cc
; ac_word
=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 $as_echo_n "(cached) " >&6
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC
="$CC" # Let the user override the test.
3254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3258 test -z "$as_dir" && as_dir
=.
3259 for ac_exec_ext
in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3262 ac_prog_rejected
=yes
3266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 if test $ac_prog_rejected = yes; then
3274 # We found a bogon in the path, so make sure we never use it.
3275 set dummy
$ac_cv_prog_CC
3277 if test $# != 0; then
3278 # We chose a different compiler from the bogus one.
3279 # However, it has the same basename, so the bogon will be chosen
3280 # first if we set CC to just the basename; use the full file name.
3282 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3288 if test -n "$CC"; then
3289 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3290 $as_echo "$CC" >&6; }
3292 { $as_echo "$as_me:$LINENO: result: no" >&5
3293 $as_echo "no" >&6; }
3298 if test -z "$CC"; then
3299 if test -n "$ac_tool_prefix"; then
3300 for ac_prog
in cl.exe
3302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3303 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if test "${ac_cv_prog_CC+set}" = set; then
3307 $as_echo_n "(cached) " >&6
3309 if test -n "$CC"; then
3310 ac_cv_prog_CC
="$CC" # Let the user override the test.
3312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3316 test -z "$as_dir" && as_dir
=.
3317 for ac_exec_ext
in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3334 { $as_echo "$as_me:$LINENO: result: no" >&5
3335 $as_echo "no" >&6; }
3339 test -n "$CC" && break
3342 if test -z "$CC"; then
3344 for ac_prog
in cl.exe
3346 # Extract the first word of "$ac_prog", so it can be a program name with args.
3347 set dummy
$ac_prog; ac_word
=$2
3348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3351 $as_echo_n "(cached) " >&6
3353 if test -n "$ac_ct_CC"; then
3354 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir
=.
3361 for ac_exec_ext
in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_prog_ac_ct_CC
="$ac_prog"
3364 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3374 if test -n "$ac_ct_CC"; then
3375 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3376 $as_echo "$ac_ct_CC" >&6; }
3378 { $as_echo "$as_me:$LINENO: result: no" >&5
3379 $as_echo "no" >&6; }
3383 test -n "$ac_ct_CC" && break
3386 if test "x$ac_ct_CC" = x
; then
3389 case $cross_compiling:$ac_tool_warned in
3391 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3393 ac_tool_warned
=yes ;;
3402 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3405 See \`config.log' for more details." >&5
3406 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3407 See \`config.log' for more details." >&2;}
3408 { (exit 1); exit 1; }; }; }
3410 # Provide some information about the compiler.
3411 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3414 { (ac_try
="$ac_compiler --version >&5"
3416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420 $as_echo "$ac_try_echo") >&5
3421 (eval "$ac_compiler --version >&5") 2>&5
3423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }
3425 { (ac_try="$ac_compiler -v >&5"
3427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3428 *) ac_try_echo
=$ac_try;;
3430 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432 (eval "$ac_compiler -v >&5") 2>&5
3434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }
3436 { (ac_try
="$ac_compiler -V >&5"
3438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442 $as_echo "$ac_try_echo") >&5
3443 (eval "$ac_compiler -V >&5") 2>&5
3445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }
3448 cat >conftest.$ac_ext <<_ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3463 ac_clean_files_save=$ac_clean_files
3464 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3465 # Try to create an executable without -o first, disregard a.out.
3466 # It will help us diagnose broken compilers, and finding out an intuition
3468 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3469 $as_echo_n "checking for C compiler default output file name... " >&6; }
3470 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3472 # The possible output files:
3473 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3476 for ac_file in $ac_files
3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3480 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3485 if { (ac_try="$ac_link_default"
3487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3488 *) ac_try_echo
=$ac_try;;
3490 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3491 $as_echo "$ac_try_echo") >&5
3492 (eval "$ac_link_default") 2>&5
3494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; then
3496 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3497 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3498 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3499 # so that the user can short-circuit this test for compilers unknown to
3501 for ac_file
in $ac_files ''
3503 test -f "$ac_file" ||
continue
3505 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3508 # We found the default executable, but exeext='' is most
3512 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3514 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516 # We set ac_cv_exeext here because the later test for it is not
3517 # safe: cross compilers may not add the suffix if given an `-o'
3518 # argument, so we may need to know it at that point already.
3519 # Even if this section looks crufty: it has the advantage of
3526 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3532 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3533 $as_echo "$ac_file" >&6; }
3534 if test -z "$ac_file"; then
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.
$ac_ext >&5
3538 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3541 See \`config.log' for more details." >&5
3542 $as_echo "$as_me: error: C compiler cannot create executables
3543 See \`config.log' for more details." >&2;}
3544 { (exit 77); exit 77; }; }; }
3547 ac_exeext
=$ac_cv_exeext
3549 # Check that the compiler produces executables we can run. If not, either
3550 # the compiler is broken, or we cross compile.
3551 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3552 $as_echo_n "checking whether the C compiler works... " >&6; }
3553 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3554 # If not cross compiling, check that we can run a simple program.
3555 if test "$cross_compiling" != yes; then
3556 if { ac_try
='./$ac_file'
3557 { (case "(($ac_try" in
3558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3562 $as_echo "$ac_try_echo") >&5
3563 (eval "$ac_try") 2>&5
3565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3569 if test "$cross_compiling" = maybe; then
3572 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3575 If you meant to cross compile
, use \
`--host'.
3576 See \`config.log
' for more details." >&5
3577 $as_echo "$as_me: error: cannot run C compiled programs.
3578 If you meant to cross compile, use \`--host'.
3579 See \
`config.log' for more details." >&2;}
3580 { (exit 1); exit 1; }; }; }
3584 { $as_echo "$as_me:$LINENO: result: yes" >&5
3585 $as_echo "yes" >&6; }
3587 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3588 ac_clean_files=$ac_clean_files_save
3589 # Check that the compiler produces executables we can run. If not, either
3590 # the compiler is broken, or we cross compile.
3591 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3592 $as_echo_n "checking whether we are cross compiling... " >&6; }
3593 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3594 $as_echo "$cross_compiling" >&6; }
3596 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3597 $as_echo_n "checking for suffix of executables... " >&6; }
3598 if { (ac_try="$ac_link"
3600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3601 *) ac_try_echo
=$ac_try;;
3603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3604 $as_echo "$ac_try_echo") >&5
3605 (eval "$ac_link") 2>&5
3607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; then
3609 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3610 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3611 # work properly (i.e., refer to `conftest.exe'), while it won't with
3613 for ac_file
in conftest.exe conftest conftest.
*; do
3614 test -f "$ac_file" ||
continue
3616 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3617 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3623 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3626 See \`config.log' for more details." >&5
3627 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3628 See \`config.log' for more details." >&2;}
3629 { (exit 1); exit 1; }; }; }
3632 rm -f conftest
$ac_cv_exeext
3633 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3634 $as_echo "$ac_cv_exeext" >&6; }
3636 rm -f conftest.
$ac_ext
3637 EXEEXT
=$ac_cv_exeext
3639 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3640 $as_echo_n "checking for suffix of object files... " >&6; }
3641 if test "${ac_cv_objext+set}" = set; then
3642 $as_echo_n "(cached) " >&6
3644 cat >conftest.
$ac_ext <<_ACEOF
3647 cat confdefs.h
>>conftest.
$ac_ext
3648 cat >>conftest.
$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3659 rm -f conftest.o conftest.obj
3660 if { (ac_try
="$ac_compile"
3662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3666 $as_echo "$ac_try_echo") >&5
3667 (eval "$ac_compile") 2>&5
3669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; then
3671 for ac_file in conftest.o conftest.obj conftest.*; do
3672 test -f "$ac_file" || continue;
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3675 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3680 $as_echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3686 See \
`config.log' for more details." >&5
3687 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3688 See \`config.log
' for more details." >&2;}
3689 { (exit 1); exit 1; }; }; }
3692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3694 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3695 $as_echo "$ac_cv_objext" >&6; }
3696 OBJEXT=$ac_cv_objext
3698 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3699 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3700 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3701 $as_echo_n "(cached) " >&6
3703 cat >conftest.$ac_ext <<_ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3721 rm -f conftest.$ac_objext
3722 if { (ac_try="$ac_compile"
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3728 $as_echo "$ac_try_echo") >&5
3729 (eval "$ac_compile") 2>conftest.er1
3731 grep -v '^
*+' conftest.er1 >conftest.err
3733 cat conftest.err >&5
3734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } && {
3736 test -z "$ac_c_werror_flag" ||
3737 test ! -s conftest.err
3738 } && test -s conftest.$ac_objext; then
3741 $as_echo "$as_me: failed program was:" >&5
3742 sed 's
/^
/|
/' conftest.$ac_ext >&5
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3751 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3752 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3753 if test $ac_compiler_gnu = yes; then
3758 ac_test_CFLAGS=${CFLAGS+set}
3759 ac_save_CFLAGS=$CFLAGS
3760 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3761 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3762 if test "${ac_cv_prog_cc_g+set}" = set; then
3763 $as_echo_n "(cached) " >&6
3765 ac_save_c_werror_flag=$ac_c_werror_flag
3766 ac_c_werror_flag=yes
3769 cat >conftest.$ac_ext <<_ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3784 rm -f conftest.$ac_objext
3785 if { (ac_try="$ac_compile"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3791 $as_echo "$ac_try_echo") >&5
3792 (eval "$ac_compile") 2>conftest.er1
3794 grep -v '^
*+' conftest.er1 >conftest.err
3796 cat conftest.err >&5
3797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } && {
3799 test -z "$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3801 } && test -s conftest.$ac_objext; then
3804 $as_echo "$as_me: failed program was:" >&5
3805 sed 's
/^
/|
/' conftest.$ac_ext >&5
3808 cat >conftest.$ac_ext <<_ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3823 rm -f conftest.$ac_objext
3824 if { (ac_try="$ac_compile"
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3830 $as_echo "$ac_try_echo") >&5
3831 (eval "$ac_compile") 2>conftest.er1
3833 grep -v '^
*+' conftest.er1 >conftest.err
3835 cat conftest.err >&5
3836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } && {
3838 test -z "$ac_c_werror_flag" ||
3839 test ! -s conftest.err
3840 } && test -s conftest.$ac_objext; then
3843 $as_echo "$as_me: failed program was:" >&5
3844 sed 's
/^
/|
/' conftest.$ac_ext >&5
3846 ac_c_werror_flag=$ac_save_c_werror_flag
3848 cat >conftest.$ac_ext <<_ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3870 $as_echo "$ac_try_echo") >&5
3871 (eval "$ac_compile") 2>conftest.er1
3873 grep -v '^
*+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } && {
3878 test -z "$ac_c_werror_flag" ||
3879 test ! -s conftest.err
3880 } && test -s conftest.$ac_objext; then
3883 $as_echo "$as_me: failed program was:" >&5
3884 sed 's
/^
/|
/' conftest.$ac_ext >&5
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_c_werror_flag=$ac_save_c_werror_flag
3898 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3899 $as_echo "$ac_cv_prog_cc_g" >&6; }
3900 if test "$ac_test_CFLAGS" = set; then
3901 CFLAGS=$ac_save_CFLAGS
3902 elif test $ac_cv_prog_cc_g = yes; then
3903 if test "$GCC" = yes; then
3909 if test "$GCC" = yes; then
3915 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3916 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3917 if test "${ac_cv_prog_cc_c89+set}" = set; then
3918 $as_echo_n "(cached) " >&6
3920 ac_cv_prog_cc_c89=no
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3930 #include <sys/types.h>
3931 #include <sys/stat.h>
3932 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3933 struct buf
{ int x
; };
3934 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3935 static char
*e
(p
, i
)
3941 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3946 s
= g
(p
, va_arg
(v
,int
));
3951 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3952 function prototypes and stuff
, but not
'\xHH' hex character constants.
3953 These don
't provoke an error unfortunately, instead are silently treated
3954 as 'x
'. The following induces an error, until -std is added to get
3955 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3956 array size at least. It's necessary to
write '\x00'==0 to get something
3957 that
's true only with -std. */
3958 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3960 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3961 inside strings and character constants. */
3963 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3965 int test (int i, double x);
3966 struct s1 {int (*f) (int a);};
3967 struct s2 {int (*f) (double a);};
3968 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3974 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3979 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3980 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3982 CC="$ac_save_CC $ac_arg"
3983 rm -f conftest.$ac_objext
3984 if { (ac_try="$ac_compile"
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3990 $as_echo "$ac_try_echo") >&5
3991 (eval "$ac_compile") 2>conftest.er1
3993 grep -v '^
*+' conftest.er1 >conftest.err
3995 cat conftest.err >&5
3996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } && {
3998 test -z "$ac_c_werror_flag" ||
3999 test ! -s conftest.err
4000 } && test -s conftest.$ac_objext; then
4001 ac_cv_prog_cc_c89=$ac_arg
4003 $as_echo "$as_me: failed program was:" >&5
4004 sed 's
/^
/|
/' conftest.$ac_ext >&5
4009 rm -f core conftest.err conftest.$ac_objext
4010 test "x$ac_cv_prog_cc_c89" != "xno" && break
4012 rm -f conftest.$ac_ext
4017 case "x$ac_cv_prog_cc_c89" in
4019 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4020 $as_echo "none needed" >&6; } ;;
4022 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4023 $as_echo "unsupported" >&6; } ;;
4025 CC="$CC $ac_cv_prog_cc_c89"
4026 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4027 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4034 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036 DEPDIR="${am__leading_dot}deps"
4038 ac_config_commands="$ac_config_commands depfiles"
4041 am_make=${MAKE-make}
4042 cat > confinc << 'END
'
4044 @echo this is the am__doit target
4047 # If we don't
find an include directive
, just comment out the code.
4048 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4049 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4053 # First try GNU make style include.
4054 echo "include confinc" > confmf
4055 # Ignore all kinds of additional output from `make'.
4056 case `$am_make -s -f confmf 2> /dev/null` in #(
4057 *the\ am__doit\ target
*)
4063 # Now try BSD make style include.
4064 if test "$am__include" = "#"; then
4065 echo '.include "confinc"' > confmf
4066 case `$am_make -s -f confmf 2> /dev/null` in #(
4067 *the\ am__doit\ target
*)
4068 am__include
=.include
4076 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4077 $as_echo "$_am_result" >&6; }
4078 rm -f confinc confmf
4080 # Check whether --enable-dependency-tracking was given.
4081 if test "${enable_dependency_tracking+set}" = set; then
4082 enableval
=$enable_dependency_tracking;
4085 if test "x$enable_dependency_tracking" != xno
; then
4086 am_depcomp
="$ac_aux_dir/depcomp"
4089 if test "x$enable_dependency_tracking" != xno; then
4099 depcc
="$CC" am_compiler_list
=
4101 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4102 $as_echo_n "checking dependency style of $depcc... " >&6; }
4103 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4104 $as_echo_n "(cached) " >&6
4106 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4107 # We make a subdir and do the tests there. Otherwise we can end up
4108 # making bogus files that we don't know about and never remove. For
4109 # instance it was reported that on HP-UX the gcc test will end up
4110 # making a dummy file named `D' -- because `-MD' means `put the output
4113 # Copy depcomp to subdir because otherwise we won't find it if we're
4114 # using a relative directory.
4115 cp "$am_depcomp" conftest.dir
4117 # We will build objects and dependencies in a subdirectory because
4118 # it helps to detect inapplicable dependency modes. For instance
4119 # both Tru64's cc and ICC support -MD to output dependencies as a
4120 # side effect of compilation, but ICC will put the dependencies in
4121 # the current directory while Tru64 will put them in the object
4125 am_cv_CC_dependencies_compiler_type
=none
4126 if test "$am_compiler_list" = ""; then
4127 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4130 case " $depcc " in #(
4131 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4134 for depmode
in $am_compiler_list; do
4135 # Setup a source with many dependencies, because some compilers
4136 # like to wrap large dependency lists on column 80 (with \), and
4137 # we should not choose a depcomp mode which is confused by this.
4139 # We need to recreate these files for each test, as the compiler may
4140 # overwrite some of them when testing with obscure command lines.
4141 # This happens at least with the AIX C compiler.
4143 for i
in 1 2 3 4 5 6; do
4144 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4146 # Solaris 8's {/usr,}/bin/sh.
4147 touch sub
/conftst
$i.h
4149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4151 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4152 # mode. It turns out that the SunPro C++ compiler does not properly
4153 # handle `-M -o', and we need to detect this. Also, some Intel
4154 # versions had trouble with output in subdirs
4155 am__obj
=sub
/conftest.
${OBJEXT-o}
4156 am__minus_obj
="-o $am__obj"
4159 # This depmode causes a compiler race in universal mode.
4160 test "$am__universal" = false ||
continue
4163 # after this tag, mechanisms are not by side-effect, so they'll
4164 # only be used when explicitly requested
4165 if test "x$enable_dependency_tracking" = xyes
; then
4171 msvisualcpp | msvcmsys
)
4172 # This compiler won't grok `-c -o', but also, the minuso test has
4173 # not run yet. These depmodes are late enough in the game, and
4174 # so weak that their functioning should not be impacted.
4175 am__obj
=conftest.
${OBJEXT-o}
4180 if depmode
=$depmode \
4181 source=sub
/conftest.c object
=$am__obj \
4182 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4183 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4184 >/dev
/null
2>conftest.err
&&
4185 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4186 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4187 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4188 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4189 # icc doesn't choke on unknown options, it will just issue warnings
4190 # or remarks (even with -Werror). So we grep stderr for any message
4191 # that says an option was ignored or not supported.
4192 # When given -MP, icc 7.0 and 7.1 complain thusly:
4193 # icc: Command line warning: ignoring option '-M'; no argument required
4194 # The diagnosis changed in icc 8.0:
4195 # icc: Command line remark: option '-MP' not supported
4196 if (grep 'ignoring option' conftest.err ||
4197 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4198 am_cv_CC_dependencies_compiler_type
=$depmode
4207 am_cv_CC_dependencies_compiler_type
=none
4211 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4212 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4213 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4216 test "x$enable_dependency_tracking" != xno \
4217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4219 am__fastdepCC_FALSE
='#'
4221 am__fastdepCC_TRUE
='#'
4222 am__fastdepCC_FALSE
=
4228 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4229 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4234 macro_version
='2.2.6b'
4235 macro_revision
='1.3017'
4249 ltmain
="$ac_aux_dir/ltmain.sh"
4251 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4252 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4253 if test "${ac_cv_path_SED+set}" = set; then
4254 $as_echo_n "(cached) " >&6
4256 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4257 for ac_i
in 1 2 3 4 5 6 7; do
4258 ac_script
="$ac_script$as_nl$ac_script"
4260 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4261 $as_unset ac_script || ac_script
=
4262 if test -z "$SED"; then
4263 ac_path_SED_found
=false
4264 # Loop through the user's path and test for each of PROGNAME-LIST
4265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4269 test -z "$as_dir" && as_dir
=.
4270 for ac_prog
in sed gsed
; do
4271 for ac_exec_ext
in '' $ac_executable_extensions; do
4272 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4273 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4274 # Check for GNU ac_path_SED and select it if it is found.
4275 # Check for GNU $ac_path_SED
4276 case `"$ac_path_SED" --version 2>&1` in
4278 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4281 $as_echo_n 0123456789 >"conftest.in"
4284 cat "conftest.in" "conftest.in" >"conftest.tmp"
4285 mv "conftest.tmp" "conftest.in"
4286 cp "conftest.in" "conftest.nl"
4287 $as_echo '' >> "conftest.nl"
4288 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4289 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4290 ac_count
=`expr $ac_count + 1`
4291 if test $ac_count -gt ${ac_path_SED_max-0}; then
4292 # Best one so far, save it but keep looking for a better one
4293 ac_cv_path_SED
="$ac_path_SED"
4294 ac_path_SED_max
=$ac_count
4296 # 10*(2^10) chars as input seems more than enough
4297 test $ac_count -gt 10 && break
4299 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4302 $ac_path_SED_found && break 3
4307 if test -z "$ac_cv_path_SED"; then
4308 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4309 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4310 { (exit 1); exit 1; }; }
4317 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4318 $as_echo "$ac_cv_path_SED" >&6; }
4319 SED
="$ac_cv_path_SED"
4322 test -z "$SED" && SED
=sed
4323 Xsed
="$SED -e 1s/^X//"
4335 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4336 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4337 if test "${ac_cv_path_GREP+set}" = set; then
4338 $as_echo_n "(cached) " >&6
4340 if test -z "$GREP"; then
4341 ac_path_GREP_found
=false
4342 # Loop through the user's path and test for each of PROGNAME-LIST
4343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4344 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4347 test -z "$as_dir" && as_dir
=.
4348 for ac_prog
in grep ggrep
; do
4349 for ac_exec_ext
in '' $ac_executable_extensions; do
4350 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4351 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4352 # Check for GNU ac_path_GREP and select it if it is found.
4353 # Check for GNU $ac_path_GREP
4354 case `"$ac_path_GREP" --version 2>&1` in
4356 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4359 $as_echo_n 0123456789 >"conftest.in"
4362 cat "conftest.in" "conftest.in" >"conftest.tmp"
4363 mv "conftest.tmp" "conftest.in"
4364 cp "conftest.in" "conftest.nl"
4365 $as_echo 'GREP' >> "conftest.nl"
4366 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4367 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4368 ac_count
=`expr $ac_count + 1`
4369 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4370 # Best one so far, save it but keep looking for a better one
4371 ac_cv_path_GREP
="$ac_path_GREP"
4372 ac_path_GREP_max
=$ac_count
4374 # 10*(2^10) chars as input seems more than enough
4375 test $ac_count -gt 10 && break
4377 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4380 $ac_path_GREP_found && break 3
4385 if test -z "$ac_cv_path_GREP"; then
4386 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4387 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4388 { (exit 1); exit 1; }; }
4391 ac_cv_path_GREP
=$GREP
4395 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4396 $as_echo "$ac_cv_path_GREP" >&6; }
4397 GREP
="$ac_cv_path_GREP"
4400 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4401 $as_echo_n "checking for egrep... " >&6; }
4402 if test "${ac_cv_path_EGREP+set}" = set; then
4403 $as_echo_n "(cached) " >&6
4405 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4406 then ac_cv_path_EGREP
="$GREP -E"
4408 if test -z "$EGREP"; then
4409 ac_path_EGREP_found
=false
4410 # Loop through the user's path and test for each of PROGNAME-LIST
4411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4412 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4415 test -z "$as_dir" && as_dir
=.
4416 for ac_prog
in egrep; do
4417 for ac_exec_ext
in '' $ac_executable_extensions; do
4418 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4419 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4420 # Check for GNU ac_path_EGREP and select it if it is found.
4421 # Check for GNU $ac_path_EGREP
4422 case `"$ac_path_EGREP" --version 2>&1` in
4424 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4427 $as_echo_n 0123456789 >"conftest.in"
4430 cat "conftest.in" "conftest.in" >"conftest.tmp"
4431 mv "conftest.tmp" "conftest.in"
4432 cp "conftest.in" "conftest.nl"
4433 $as_echo 'EGREP' >> "conftest.nl"
4434 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4435 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4436 ac_count
=`expr $ac_count + 1`
4437 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4438 # Best one so far, save it but keep looking for a better one
4439 ac_cv_path_EGREP
="$ac_path_EGREP"
4440 ac_path_EGREP_max
=$ac_count
4442 # 10*(2^10) chars as input seems more than enough
4443 test $ac_count -gt 10 && break
4445 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4448 $ac_path_EGREP_found && break 3
4453 if test -z "$ac_cv_path_EGREP"; then
4454 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4455 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4456 { (exit 1); exit 1; }; }
4459 ac_cv_path_EGREP
=$EGREP
4464 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4465 $as_echo "$ac_cv_path_EGREP" >&6; }
4466 EGREP
="$ac_cv_path_EGREP"
4469 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4470 $as_echo_n "checking for fgrep... " >&6; }
4471 if test "${ac_cv_path_FGREP+set}" = set; then
4472 $as_echo_n "(cached) " >&6
4474 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4475 then ac_cv_path_FGREP
="$GREP -F"
4477 if test -z "$FGREP"; then
4478 ac_path_FGREP_found
=false
4479 # Loop through the user's path and test for each of PROGNAME-LIST
4480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4481 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4484 test -z "$as_dir" && as_dir
=.
4485 for ac_prog
in fgrep
; do
4486 for ac_exec_ext
in '' $ac_executable_extensions; do
4487 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4488 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4489 # Check for GNU ac_path_FGREP and select it if it is found.
4490 # Check for GNU $ac_path_FGREP
4491 case `"$ac_path_FGREP" --version 2>&1` in
4493 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4496 $as_echo_n 0123456789 >"conftest.in"
4499 cat "conftest.in" "conftest.in" >"conftest.tmp"
4500 mv "conftest.tmp" "conftest.in"
4501 cp "conftest.in" "conftest.nl"
4502 $as_echo 'FGREP' >> "conftest.nl"
4503 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4504 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4505 ac_count
=`expr $ac_count + 1`
4506 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4507 # Best one so far, save it but keep looking for a better one
4508 ac_cv_path_FGREP
="$ac_path_FGREP"
4509 ac_path_FGREP_max
=$ac_count
4511 # 10*(2^10) chars as input seems more than enough
4512 test $ac_count -gt 10 && break
4514 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4517 $ac_path_FGREP_found && break 3
4522 if test -z "$ac_cv_path_FGREP"; then
4523 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4524 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4525 { (exit 1); exit 1; }; }
4528 ac_cv_path_FGREP
=$FGREP
4533 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4534 $as_echo "$ac_cv_path_FGREP" >&6; }
4535 FGREP
="$ac_cv_path_FGREP"
4538 test -z "$GREP" && GREP
=grep
4558 # Check whether --with-gnu-ld was given.
4559 if test "${with_gnu_ld+set}" = set; then
4560 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4566 if test "$GCC" = yes; then
4567 # Check if gcc -print-prog-name=ld gives a path.
4568 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4569 $as_echo_n "checking for ld used by $CC... " >&6; }
4572 # gcc leaves a trailing carriage return which upsets mingw
4573 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4575 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4578 # Accept absolute paths.
4580 re_direlt
='/[^/][^/]*/\.\./'
4581 # Canonicalize the pathname of ld
4582 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4583 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4584 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4586 test -z "$LD" && LD
="$ac_prog"
4589 # If it fails, then pretend we aren't using GCC.
4593 # If it is relative, then search for the first ld in PATH.
4597 elif test "$with_gnu_ld" = yes; then
4598 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4599 $as_echo_n "checking for GNU ld... " >&6; }
4601 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4602 $as_echo_n "checking for non-GNU ld... " >&6; }
4604 if test "${lt_cv_path_LD+set}" = set; then
4605 $as_echo_n "(cached) " >&6
4607 if test -z "$LD"; then
4608 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4609 for ac_dir
in $PATH; do
4611 test -z "$ac_dir" && ac_dir
=.
4612 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4613 lt_cv_path_LD
="$ac_dir/$ac_prog"
4614 # Check to see if the program is GNU ld. I'd rather use --version,
4615 # but apparently some variants of GNU ld only accept -v.
4616 # Break only if it was the GNU/non-GNU ld that we prefer.
4617 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4618 *GNU
* |
*'with BFD'*)
4619 test "$with_gnu_ld" != no
&& break
4622 test "$with_gnu_ld" != yes && break
4629 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4634 if test -n "$LD"; then
4635 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4636 $as_echo "$LD" >&6; }
4638 { $as_echo "$as_me:$LINENO: result: no" >&5
4639 $as_echo "no" >&6; }
4641 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4642 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4643 { (exit 1); exit 1; }; }
4644 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4645 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4646 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4647 $as_echo_n "(cached) " >&6
4649 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4650 case `$LD -v 2>&1 </dev/null` in
4651 *GNU
* |
*'with BFD'*)
4652 lt_cv_prog_gnu_ld
=yes
4655 lt_cv_prog_gnu_ld
=no
4659 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4660 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4661 with_gnu_ld
=$lt_cv_prog_gnu_ld
4671 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4672 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4673 if test "${lt_cv_path_NM+set}" = set; then
4674 $as_echo_n "(cached) " >&6
4676 if test -n "$NM"; then
4677 # Let the user override the test.
4680 lt_nm_to_check
="${ac_tool_prefix}nm"
4681 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4682 lt_nm_to_check
="$lt_nm_to_check nm"
4684 for lt_tmp_nm
in $lt_nm_to_check; do
4685 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4686 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4688 test -z "$ac_dir" && ac_dir
=.
4689 tmp_nm
="$ac_dir/$lt_tmp_nm"
4690 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4691 # Check to see if the nm accepts a BSD-compat flag.
4692 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4693 # nm: unknown option "B" ignored
4694 # Tru64's nm complains that /dev/null is an invalid object file
4695 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4696 */dev
/null
* |
*'Invalid file or object type'*)
4697 lt_cv_path_NM
="$tmp_nm -B"
4701 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4703 lt_cv_path_NM
="$tmp_nm -p"
4707 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4708 continue # so that we can try to find one that supports BSD flags
4717 : ${lt_cv_path_NM=no}
4720 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4721 $as_echo "$lt_cv_path_NM" >&6; }
4722 if test "$lt_cv_path_NM" != "no"; then
4725 # Didn't find any BSD compatible name lister, look for dumpbin.
4726 if test -n "$ac_tool_prefix"; then
4727 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4730 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4734 $as_echo_n "(cached) " >&6
4736 if test -n "$DUMPBIN"; then
4737 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir
=.
4744 for ac_exec_ext
in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 DUMPBIN
=$ac_cv_prog_DUMPBIN
4757 if test -n "$DUMPBIN"; then
4758 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4759 $as_echo "$DUMPBIN" >&6; }
4761 { $as_echo "$as_me:$LINENO: result: no" >&5
4762 $as_echo "no" >&6; }
4766 test -n "$DUMPBIN" && break
4769 if test -z "$DUMPBIN"; then
4770 ac_ct_DUMPBIN
=$DUMPBIN
4771 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4773 # Extract the first word of "$ac_prog", so it can be a program name with args.
4774 set dummy
$ac_prog; ac_word
=$2
4775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4778 $as_echo_n "(cached) " >&6
4780 if test -n "$ac_ct_DUMPBIN"; then
4781 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir
=.
4788 for ac_exec_ext
in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4801 if test -n "$ac_ct_DUMPBIN"; then
4802 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4803 $as_echo "$ac_ct_DUMPBIN" >&6; }
4805 { $as_echo "$as_me:$LINENO: result: no" >&5
4806 $as_echo "no" >&6; }
4810 test -n "$ac_ct_DUMPBIN" && break
4813 if test "x$ac_ct_DUMPBIN" = x
; then
4816 case $cross_compiling:$ac_tool_warned in
4818 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4820 ac_tool_warned
=yes ;;
4822 DUMPBIN
=$ac_ct_DUMPBIN
4827 if test "$DUMPBIN" != ":"; then
4831 test -z "$NM" && NM
=nm
4838 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4839 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4840 if test "${lt_cv_nm_interface+set}" = set; then
4841 $as_echo_n "(cached) " >&6
4843 lt_cv_nm_interface
="BSD nm"
4844 echo "int some_variable = 0;" > conftest.
$ac_ext
4845 (eval echo "\"\$as_me:4845: $ac_compile\"" >&5)
4846 (eval "$ac_compile" 2>conftest.err
)
4847 cat conftest.err
>&5
4848 (eval echo "\"\$as_me:4848: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4849 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4850 cat conftest.err
>&5
4851 (eval echo "\"\$as_me:4851: output\"" >&5)
4852 cat conftest.out
>&5
4853 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4854 lt_cv_nm_interface
="MS dumpbin"
4858 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4859 $as_echo "$lt_cv_nm_interface" >&6; }
4861 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4862 $as_echo_n "checking whether ln -s works... " >&6; }
4864 if test "$LN_S" = "ln -s"; then
4865 { $as_echo "$as_me:$LINENO: result: yes" >&5
4866 $as_echo "yes" >&6; }
4868 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4869 $as_echo "no, using $LN_S" >&6; }
4872 # find the maximum length of command line arguments
4873 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4874 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4875 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4876 $as_echo_n "(cached) " >&6
4883 # On DJGPP, this test can blow up pretty badly due to problems in libc
4884 # (any single argument exceeding 2000 bytes causes a buffer overrun
4885 # during glob expansion). Even if it were fixed, the result of this
4886 # check would be larger than it should be.
4887 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4891 # Under GNU Hurd, this test is not required because there is
4892 # no limit to the length of command line arguments.
4893 # Libtool will interpret -1 as no limit whatsoever
4894 lt_cv_sys_max_cmd_len
=-1;
4897 cygwin
* | mingw
* | cegcc
*)
4898 # On Win9x/ME, this test blows up -- it succeeds, but takes
4899 # about 5 minutes as the teststring grows exponentially.
4900 # Worse, since 9x/ME are not pre-emptively multitasking,
4901 # you end up with a "frozen" computer, even though with patience
4902 # the test eventually succeeds (with a max line length of 256k).
4903 # Instead, let's just punt: use the minimum linelength reported by
4904 # all of the supported platforms: 8192 (on NT/2K/XP).
4905 lt_cv_sys_max_cmd_len
=8192;
4909 # On AmigaOS with pdksh, this test takes hours, literally.
4910 # So we just punt and use a minimum line length of 8192.
4911 lt_cv_sys_max_cmd_len
=8192;
4914 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4915 # This has been around since 386BSD, at least. Likely further.
4916 if test -x /sbin
/sysctl
; then
4917 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4918 elif test -x /usr
/sbin
/sysctl
; then
4919 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4921 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4923 # And add a safety zone
4924 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4925 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4929 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4930 lt_cv_sys_max_cmd_len
=196608
4934 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4935 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4936 # nice to cause kernel panics so lets avoid the loop below.
4937 # First set a reasonable default.
4938 lt_cv_sys_max_cmd_len
=16384
4940 if test -x /sbin
/sysconfig
; then
4941 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4942 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4947 lt_cv_sys_max_cmd_len
=102400
4949 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4950 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4951 if test -n "$kargmax"; then
4952 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4954 lt_cv_sys_max_cmd_len
=32768
4958 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4959 if test -n "$lt_cv_sys_max_cmd_len"; then
4960 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4961 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4963 # Make teststring a little bigger before we do anything with it.
4964 # a 1K string should be a reasonable start.
4965 for i
in 1 2 3 4 5 6 7 8 ; do
4966 teststring
=$teststring$teststring
4968 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4969 # If test is not a shell built-in, we'll probably end up computing a
4970 # maximum length that is only half of the actual maximum length, but
4972 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4973 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4974 test $i != 17 # 1/2 MB should be enough
4977 teststring
=$teststring$teststring
4979 # Only check the string length outside the loop.
4980 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4982 # Add a significant safety factor because C++ compilers can tack on
4983 # massive amounts of additional arguments before passing them to the
4984 # linker. It appears as though 1/2 is a usable value.
4985 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4992 if test -n $lt_cv_sys_max_cmd_len ; then
4993 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4994 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4996 { $as_echo "$as_me:$LINENO: result: none" >&5
4997 $as_echo "none" >&6; }
4999 max_cmd_len
=$lt_cv_sys_max_cmd_len
5010 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5011 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5012 # Try some XSI features
5015 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5017 && eval 'test $(( 1 + 1 )) -eq 2 \
5018 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5020 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
5021 $as_echo "$xsi_shell" >&6; }
5024 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
5025 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5027 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5029 && lt_shell_append=yes
5030 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
5031 $as_echo "$lt_shell_append" >&6; }
5034 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5044 # test EBCDIC or ASCII
5045 case `echo X|tr X '\101'` in
5046 A) # ASCII based system
5047 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5048 lt_SP2NL='tr \040 \012'
5049 lt_NL2SP='tr \015\012 \040\040'
5051 *) # EBCDIC based system
5052 lt_SP2NL='tr \100 \n'
5053 lt_NL2SP='tr \r\n \100\100'
5065 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
5066 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5067 if test "${lt_cv_ld_reload_flag+set}" = set; then
5068 $as_echo_n "(cached
) " >&6
5070 lt_cv_ld_reload_flag='-r'
5072 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
5073 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5074 reload_flag=$lt_cv_ld_reload_flag
5075 case $reload_flag in
5077 *) reload_flag=" $reload_flag" ;;
5079 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5082 if test "$GCC" = yes; then
5083 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5085 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5098 if test -n "$ac_tool_prefix"; then
5099 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5100 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5101 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5102 $as_echo_n "checking
for $ac_word...
" >&6; }
5103 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5104 $as_echo_n "(cached
) " >&6
5106 if test -n "$OBJDUMP"; then
5107 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5117 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5126 OBJDUMP=$ac_cv_prog_OBJDUMP
5127 if test -n "$OBJDUMP"; then
5128 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5129 $as_echo "$OBJDUMP" >&6; }
5131 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5132 $as_echo "no
" >&6; }
5137 if test -z "$ac_cv_prog_OBJDUMP"; then
5138 ac_ct_OBJDUMP=$OBJDUMP
5139 # Extract the first word of "objdump
", so it can be a program name with args.
5140 set dummy objdump; ac_word=$2
5141 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5142 $as_echo_n "checking
for $ac_word...
" >&6; }
5143 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5144 $as_echo_n "(cached
) " >&6
5146 if test -n "$ac_ct_OBJDUMP"; then
5147 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5157 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5166 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5167 if test -n "$ac_ct_OBJDUMP"; then
5168 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5169 $as_echo "$ac_ct_OBJDUMP" >&6; }
5171 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5172 $as_echo "no
" >&6; }
5175 if test "x
$ac_ct_OBJDUMP" = x; then
5178 case $cross_compiling:$ac_tool_warned in
5180 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5181 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5182 ac_tool_warned=yes ;;
5184 OBJDUMP=$ac_ct_OBJDUMP
5187 OBJDUMP="$ac_cv_prog_OBJDUMP"
5190 test -z "$OBJDUMP" && OBJDUMP=objdump
5200 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5201 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5202 if test "${lt_cv_deplibs_check_method+set}" = set; then
5203 $as_echo_n "(cached
) " >&6
5205 lt_cv_file_magic_cmd='$MAGIC_CMD'
5206 lt_cv_file_magic_test_file=
5207 lt_cv_deplibs_check_method='unknown'
5208 # Need to set the preceding variable on all platforms that support
5209 # interlibrary dependencies.
5210 # 'none' -- dependencies not supported.
5211 # `unknown' -- same as none, but documents that we really don't know.
5212 # 'pass_all' -- all dependencies passed with no checks.
5213 # 'test_compile' -- check by making test program.
5214 # 'file_magic [[regex]]' -- check by looking for files in library path
5215 # which responds to the $file_magic_cmd with a given extended regex.
5216 # If you have `file' or equivalent on your system and you're not sure
5217 # whether `pass_all' will *always* work, you probably want this one.
5221 lt_cv_deplibs_check_method=pass_all
5225 lt_cv_deplibs_check_method=pass_all
5229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5230 lt_cv_file_magic_cmd='/usr/bin/file -L'
5231 lt_cv_file_magic_test_file=/shlib/libc.so
5235 # func_win32_libid is a shell function defined in ltmain.sh
5236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5237 lt_cv_file_magic_cmd='func_win32_libid'
5241 # Base MSYS/MinGW do not provide the 'file' command needed by
5242 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5243 # unless we find 'file', for example because we are cross-compiling.
5244 if ( file / ) >/dev/null 2>&1; then
5245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5246 lt_cv_file_magic_cmd='func_win32_libid'
5248 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5249 lt_cv_file_magic_cmd='$OBJDUMP -f'
5254 # use the weaker test based on 'objdump'. See mingw*.
5255 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5256 lt_cv_file_magic_cmd='$OBJDUMP -f'
5259 darwin* | rhapsody*)
5260 lt_cv_deplibs_check_method=pass_all
5263 freebsd* | dragonfly*)
5264 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5267 # Not sure whether the presence of OpenBSD here was a mistake.
5268 # Let's accept both of them until this is cleared up.
5269 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5270 lt_cv_file_magic_cmd=/usr/bin/file
5271 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5275 lt_cv_deplibs_check_method=pass_all
5280 lt_cv_deplibs_check_method=pass_all
5283 hpux10.20* | hpux11*)
5284 lt_cv_file_magic_cmd=/usr/bin/file
5287 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5288 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5291 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]'
5292 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5295 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5296 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5302 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5306 irix5* | irix6* | nonstopux*)
5308 *-32|*"-32 ") libmagic=32-bit;;
5309 *-n32|*"-n32 ") libmagic=N32;;
5310 *-64|*"-64 ") libmagic=64-bit;;
5311 *) libmagic=never-match;;
5313 lt_cv_deplibs_check_method=pass_all
5316 # This must be Linux ELF.
5317 linux* | k*bsd*-gnu)
5318 lt_cv_deplibs_check_method=pass_all
5322 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5331 lt_cv_file_magic_cmd=/usr/bin/file
5332 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5336 lt_cv_deplibs_check_method=pass_all
5340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5347 osf3* | osf4* | osf5*)
5348 lt_cv_deplibs_check_method=pass_all
5352 lt_cv_deplibs_check_method=pass_all
5356 lt_cv_deplibs_check_method=pass_all
5359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5360 lt_cv_deplibs_check_method=pass_all
5364 case $host_vendor in
5366 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]'
5367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5370 lt_cv_deplibs_check_method=pass_all
5373 lt_cv_file_magic_cmd='/bin/file'
5374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5377 lt_cv_file_magic_cmd='/bin/file'
5378 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5379 lt_cv_file_magic_test_file=/lib/libc.so
5382 lt_cv_deplibs_check_method=pass_all
5385 lt_cv_deplibs_check_method=pass_all
5391 lt_cv_deplibs_check_method=pass_all
5396 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5397 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5398 file_magic_cmd=$lt_cv_file_magic_cmd
5399 deplibs_check_method=$lt_cv_deplibs_check_method
5400 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5413 if test -n "$ac_tool_prefix"; then
5414 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5415 set dummy ${ac_tool_prefix}ar; ac_word=$2
5416 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5417 $as_echo_n "checking
for $ac_word...
" >&6; }
5418 if test "${ac_cv_prog_AR+set}" = set; then
5419 $as_echo_n "(cached
) " >&6
5421 if test -n "$AR"; then
5422 ac_cv_prog_AR="$AR" # Let the user override the test.
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431 ac_cv_prog_AR="${ac_tool_prefix}ar"
5432 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5442 if test -n "$AR"; then
5443 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5444 $as_echo "$AR" >&6; }
5446 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5447 $as_echo "no
" >&6; }
5452 if test -z "$ac_cv_prog_AR"; then
5454 # Extract the first word of "ar", so it can be a program name with args.
5455 set dummy ar; ac_word=$2
5456 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5457 $as_echo_n "checking
for $ac_word...
" >&6; }
5458 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5459 $as_echo_n "(cached
) " >&6
5461 if test -n "$ac_ct_AR"; then
5462 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_ac_ct_AR="ar"
5472 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5481 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5482 if test -n "$ac_ct_AR"; then
5483 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5484 $as_echo "$ac_ct_AR" >&6; }
5486 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5487 $as_echo "no
" >&6; }
5490 if test "x
$ac_ct_AR" = x; then
5493 case $cross_compiling:$ac_tool_warned in
5495 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5496 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5497 ac_tool_warned=yes ;;
5505 test -z "$AR" && AR=ar
5506 test -z "$AR_FLAGS" && AR_FLAGS=cru
5518 if test -n "$ac_tool_prefix"; then
5519 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5520 set dummy ${ac_tool_prefix}strip; ac_word=$2
5521 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5522 $as_echo_n "checking
for $ac_word...
" >&6; }
5523 if test "${ac_cv_prog_STRIP+set}" = set; then
5524 $as_echo_n "(cached
) " >&6
5526 if test -n "$STRIP"; then
5527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5537 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5546 STRIP=$ac_cv_prog_STRIP
5547 if test -n "$STRIP"; then
5548 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5549 $as_echo "$STRIP" >&6; }
5551 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5552 $as_echo "no
" >&6; }
5557 if test -z "$ac_cv_prog_STRIP"; then
5559 # Extract the first word of "strip
", so it can be a program name with args.
5560 set dummy strip; ac_word=$2
5561 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5562 $as_echo_n "checking
for $ac_word...
" >&6; }
5563 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5564 $as_echo_n "(cached
) " >&6
5566 if test -n "$ac_ct_STRIP"; then
5567 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_ac_ct_STRIP="strip
"
5577 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5586 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5587 if test -n "$ac_ct_STRIP"; then
5588 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5589 $as_echo "$ac_ct_STRIP" >&6; }
5591 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5592 $as_echo "no
" >&6; }
5595 if test "x
$ac_ct_STRIP" = x; then
5598 case $cross_compiling:$ac_tool_warned in
5600 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5601 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5602 ac_tool_warned=yes ;;
5607 STRIP="$ac_cv_prog_STRIP"
5610 test -z "$STRIP" && STRIP=:
5617 if test -n "$ac_tool_prefix"; then
5618 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5619 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5620 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5621 $as_echo_n "checking
for $ac_word...
" >&6; }
5622 if test "${ac_cv_prog_RANLIB+set}" = set; then
5623 $as_echo_n "(cached
) " >&6
5625 if test -n "$RANLIB"; then
5626 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5636 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5645 RANLIB=$ac_cv_prog_RANLIB
5646 if test -n "$RANLIB"; then
5647 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5648 $as_echo "$RANLIB" >&6; }
5650 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5651 $as_echo "no
" >&6; }
5656 if test -z "$ac_cv_prog_RANLIB"; then
5657 ac_ct_RANLIB=$RANLIB
5658 # Extract the first word of "ranlib
", so it can be a program name with args.
5659 set dummy ranlib; ac_word=$2
5660 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5661 $as_echo_n "checking
for $ac_word...
" >&6; }
5662 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5663 $as_echo_n "(cached
) " >&6
5665 if test -n "$ac_ct_RANLIB"; then
5666 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5676 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5685 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5686 if test -n "$ac_ct_RANLIB"; then
5687 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5688 $as_echo "$ac_ct_RANLIB" >&6; }
5690 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5691 $as_echo "no
" >&6; }
5694 if test "x
$ac_ct_RANLIB" = x; then
5697 case $cross_compiling:$ac_tool_warned in
5699 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5700 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5701 ac_tool_warned=yes ;;
5703 RANLIB=$ac_ct_RANLIB
5706 RANLIB="$ac_cv_prog_RANLIB"
5709 test -z "$RANLIB" && RANLIB=:
5716 # Determine commands to create old-style static archives.
5717 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5718 old_postinstall_cmds='chmod 644 $oldlib'
5719 old_postuninstall_cmds=
5721 if test -n "$RANLIB"; then
5724 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5727 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5730 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5766 # If no C compiler was specified, use CC.
5769 # If no C compiler flags were specified, use CFLAGS.
5770 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5772 # Allow CC to be a program name with arguments.
5776 # Check for command to grab the raw symbol name followed by C symbol from nm.
5777 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5778 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5779 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5780 $as_echo_n "(cached
) " >&6
5783 # These are sane defaults that work on at least a few old systems.
5784 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5786 # Character class describing NM global symbol codes.
5787 symcode='[BCDEGRST]'
5789 # Regexp to match symbols that can be accessed directly from C.
5790 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5792 # Define system-specific variables.
5797 cygwin* | mingw* | pw32* | cegcc*)
5798 symcode='[ABCDGISTW]'
5801 if test "$host_cpu" = ia64; then
5802 symcode='[ABCDEGRST]'
5806 symcode='[BCDEGRST]'
5809 symcode='[BCDEGQRST]'
5820 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5828 # If we're using GNU nm, then use its standard symbol codes.
5829 case `$NM -V 2>&1` in
5830 *GNU* | *'with BFD'*)
5831 symcode='[ABCDGIRSTW]' ;;
5834 # Transform an extracted symbol line into a proper C declaration.
5835 # Some systems (esp. on ia64) link data and code symbols differently,
5836 # so use this general approach.
5837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5839 # Transform an extracted symbol line into symbol name and symbol address
5840 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5841 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'"
5843 # Handle CRLF in mingw tool chain
5847 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5851 # Try without a prefix underscore, then with it.
5852 for ac_symprfx in "" "_
"; do
5854 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5855 symxfrm="\\1 $ac_symprfx\\2 \\2"
5857 # Write the raw and C identifiers.
5858 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5859 # Fake it for dumpbin and say T for any non-static function
5860 # and D for any global variable.
5861 # Also find C++ and __fastcall symbols from MSVC++,
5862 # which start with @ or ?.
5863 lt_cv_sys_global_symbol_pipe="$AWK '"\
5864 " {last_section=section; section=\$ 3};"\
5865 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5866 " \$ 0!~/External *\|/{next};"\
5867 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5868 " {if(hide[section]) next};"\
5869 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5870 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5871 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5872 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5873 " ' prfx
=^
$ac_symprfx"
5875 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5878 # Check to see that the pipe works correctly.
5882 cat > conftest.$ac_ext <<_LT_EOF
5887 void nm_test_func(void);
5888 void nm_test_func(void){}
5892 int main(){nm_test_var='a';nm_test_func();return(0);}
5895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896 (eval $ac_compile) 2>&5
5898 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5899 (exit $ac_status); }; then
5900 # Now try to grab the symbols.
5902 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5903 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5905 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5906 (exit $ac_status); } && test -s "$nlist"; then
5907 # Try sorting and uniquifying the output.
5908 if sort "$nlist" | uniq > "$nlist"T; then
5909 mv -f "$nlist"T "$nlist"
5914 # Make sure that we snagged all the symbols we need.
5915 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5916 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5917 cat <<_LT_EOF > conftest.$ac_ext
5923 # Now generate the symbol file.
5924 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5926 cat <<_LT_EOF >> conftest.$ac_ext
5928 /* The mapping between symbol names and symbols. */
5933 lt__PROGRAM__LTX_preloaded_symbols[] =
5935 { "@PROGRAM@
", (void *) 0 },
5937 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5938 cat <<\_LT_EOF >> conftest.$ac_ext
5942 /* This works around a problem in FreeBSD linker */
5943 #ifdef FREEBSD_WORKAROUND
5944 static const void *lt_preloaded_setup() {
5945 return lt__PROGRAM__LTX_preloaded_symbols;
5953 # Now try linking the two files.
5954 mv conftest.$ac_objext conftstm.$ac_objext
5955 lt_save_LIBS="$LIBS"
5956 lt_save_CFLAGS="$CFLAGS"
5957 LIBS="conftstm.
$ac_objext"
5958 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5960 (eval $ac_link) 2>&5
5962 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5963 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5966 LIBS="$lt_save_LIBS"
5967 CFLAGS="$lt_save_CFLAGS"
5969 echo "cannot
find nm_test_func
in $nlist" >&5
5972 echo "cannot
find nm_test_var
in $nlist" >&5
5975 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5978 echo "$progname: failed program was
:" >&5
5979 cat conftest.$ac_ext >&5
5981 rm -rf conftest* conftst*
5983 # Do not use the global_symbol_pipe unless it works.
5984 if test "$pipe_works" = yes; then
5987 lt_cv_sys_global_symbol_pipe=
5993 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5994 lt_cv_sys_global_symbol_to_cdecl=
5996 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5997 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
5998 $as_echo "failed
" >&6; }
6000 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
6001 $as_echo "ok
" >&6; }
6026 # Check whether --enable-libtool-lock was given.
6027 if test "${enable_libtool_lock+set}" = set; then
6028 enableval=$enable_libtool_lock;
6031 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6033 # Some flags need to be propagated to the compiler or linker for good
6037 # Find out which ABI we are using.
6038 echo 'int i;' > conftest.$ac_ext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>&5
6042 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6043 (exit $ac_status); }; then
6044 case `/usr/bin/file conftest.$ac_objext` in
6056 # Find out which ABI we are using.
6057 echo '#line 6057 "configure
"' > conftest.$ac_ext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>&5
6061 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6062 (exit $ac_status); }; then
6063 if test "$lt_cv_prog_gnu_ld" = yes; then
6064 case `/usr/bin/file conftest.$ac_objext` in
6066 LD="${LD-ld} -melf32bsmip"
6069 LD="${LD-ld} -melf32bmipn32"
6072 LD="${LD-ld} -melf64bmip"
6076 case `/usr/bin/file conftest.$ac_objext` in
6092 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6093 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6094 # Find out which ABI we are using.
6095 echo 'int i;' > conftest.$ac_ext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097 (eval $ac_compile) 2>&5
6099 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6100 (exit $ac_status); }; then
6101 case `/usr/bin/file conftest.o` in
6104 x86_64-*kfreebsd*-gnu)
6105 LD="${LD-ld} -m elf_i386_fbsd
"
6108 LD="${LD-ld} -m elf_i386
"
6110 ppc64-*linux*|powerpc64-*linux*)
6111 LD="${LD-ld} -m elf32ppclinux
"
6114 LD="${LD-ld} -m elf_s390
"
6117 LD="${LD-ld} -m elf32_sparc
"
6123 x86_64-*kfreebsd*-gnu)
6124 LD="${LD-ld} -m elf_x86_64_fbsd
"
6127 LD="${LD-ld} -m elf_x86_64
"
6129 ppc*-*linux*|powerpc*-*linux*)
6130 LD="${LD-ld} -m elf64ppc
"
6132 s390*-*linux*|s390*-*tpf*)
6133 LD="${LD-ld} -m elf64_s390
"
6136 LD="${LD-ld} -m elf64_sparc
"
6146 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6147 SAVE_CFLAGS="$CFLAGS"
6148 CFLAGS="$CFLAGS -belf"
6149 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6150 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6151 if test "${lt_cv_cc_needs_belf+set}" = set; then
6152 $as_echo_n "(cached
) " >&6
6155 ac_cpp='$CPP $CPPFLAGS'
6156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6160 cat >conftest.$ac_ext <<_ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6175 rm -f conftest.$ac_objext conftest$ac_exeext
6176 if { (ac_try="$ac_link"
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6181 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6182 $as_echo "$ac_try_echo") >&5
6183 (eval "$ac_link") 2>conftest.er1
6185 grep -v '^ *+' conftest.er1 >conftest.err
6187 cat conftest.err >&5
6188 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6189 (exit $ac_status); } && {
6190 test -z "$ac_c_werror_flag" ||
6191 test ! -s conftest.err
6192 } && test -s conftest$ac_exeext && {
6193 test "$cross_compiling" = yes ||
6194 $as_test_x conftest$ac_exeext
6196 lt_cv_cc_needs_belf=yes
6198 $as_echo "$as_me: failed program was
:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6201 lt_cv_cc_needs_belf=no
6204 rm -rf conftest.dSYM
6205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6206 conftest$ac_exeext conftest.$ac_ext
6208 ac_cpp='$CPP $CPPFLAGS'
6209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6214 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6215 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6216 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6217 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6218 CFLAGS="$SAVE_CFLAGS"
6222 # Find out which ABI we are using.
6223 echo 'int i;' > conftest.$ac_ext
6224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6225 (eval $ac_compile) 2>&5
6227 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6228 (exit $ac_status); }; then
6229 case `/usr/bin/file conftest.o` in
6231 case $lt_cv_prog_gnu_ld in
6232 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6234 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6246 need_locks="$enable_libtool_lock"
6250 rhapsody* | darwin*)
6251 if test -n "$ac_tool_prefix"; then
6252 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6254 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6255 $as_echo_n "checking
for $ac_word...
" >&6; }
6256 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6257 $as_echo_n "(cached
) " >&6
6259 if test -n "$DSYMUTIL"; then
6260 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6270 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6279 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6280 if test -n "$DSYMUTIL"; then
6281 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6282 $as_echo "$DSYMUTIL" >&6; }
6284 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6285 $as_echo "no
" >&6; }
6290 if test -z "$ac_cv_prog_DSYMUTIL"; then
6291 ac_ct_DSYMUTIL=$DSYMUTIL
6292 # Extract the first word of "dsymutil
", so it can be a program name with args.
6293 set dummy dsymutil; ac_word=$2
6294 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6295 $as_echo_n "checking
for $ac_word...
" >&6; }
6296 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6297 $as_echo_n "(cached
) " >&6
6299 if test -n "$ac_ct_DSYMUTIL"; then
6300 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6310 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6319 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6320 if test -n "$ac_ct_DSYMUTIL"; then
6321 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6322 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6324 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6325 $as_echo "no
" >&6; }
6328 if test "x
$ac_ct_DSYMUTIL" = x; then
6331 case $cross_compiling:$ac_tool_warned in
6333 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6334 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6335 ac_tool_warned=yes ;;
6337 DSYMUTIL=$ac_ct_DSYMUTIL
6340 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6346 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6347 $as_echo_n "checking
for $ac_word...
" >&6; }
6348 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6349 $as_echo_n "(cached
) " >&6
6351 if test -n "$NMEDIT"; then
6352 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6362 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6371 NMEDIT=$ac_cv_prog_NMEDIT
6372 if test -n "$NMEDIT"; then
6373 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6374 $as_echo "$NMEDIT" >&6; }
6376 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6377 $as_echo "no
" >&6; }
6382 if test -z "$ac_cv_prog_NMEDIT"; then
6383 ac_ct_NMEDIT=$NMEDIT
6384 # Extract the first word of "nmedit
", so it can be a program name with args.
6385 set dummy nmedit; ac_word=$2
6386 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6387 $as_echo_n "checking
for $ac_word...
" >&6; }
6388 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6389 $as_echo_n "(cached
) " >&6
6391 if test -n "$ac_ct_NMEDIT"; then
6392 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6402 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6411 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6412 if test -n "$ac_ct_NMEDIT"; then
6413 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6414 $as_echo "$ac_ct_NMEDIT" >&6; }
6416 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6417 $as_echo "no
" >&6; }
6420 if test "x
$ac_ct_NMEDIT" = x; then
6423 case $cross_compiling:$ac_tool_warned in
6425 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6426 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6427 ac_tool_warned=yes ;;
6429 NMEDIT=$ac_ct_NMEDIT
6432 NMEDIT="$ac_cv_prog_NMEDIT"
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6438 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6439 $as_echo_n "checking
for $ac_word...
" >&6; }
6440 if test "${ac_cv_prog_LIPO+set}" = set; then
6441 $as_echo_n "(cached
) " >&6
6443 if test -n "$LIPO"; then
6444 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6454 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6463 LIPO=$ac_cv_prog_LIPO
6464 if test -n "$LIPO"; then
6465 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6466 $as_echo "$LIPO" >&6; }
6468 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6469 $as_echo "no
" >&6; }
6474 if test -z "$ac_cv_prog_LIPO"; then
6476 # Extract the first word of "lipo
", so it can be a program name with args.
6477 set dummy lipo; ac_word=$2
6478 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6479 $as_echo_n "checking
for $ac_word...
" >&6; }
6480 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6481 $as_echo_n "(cached
) " >&6
6483 if test -n "$ac_ct_LIPO"; then
6484 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_ac_ct_LIPO="lipo
"
6494 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6503 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6504 if test -n "$ac_ct_LIPO"; then
6505 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6506 $as_echo "$ac_ct_LIPO" >&6; }
6508 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6509 $as_echo "no
" >&6; }
6512 if test "x
$ac_ct_LIPO" = x; then
6515 case $cross_compiling:$ac_tool_warned in
6517 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6518 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6519 ac_tool_warned=yes ;;
6524 LIPO="$ac_cv_prog_LIPO"
6527 if test -n "$ac_tool_prefix"; then
6528 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}otool; ac_word=$2
6530 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6531 $as_echo_n "checking
for $ac_word...
" >&6; }
6532 if test "${ac_cv_prog_OTOOL+set}" = set; then
6533 $as_echo_n "(cached
) " >&6
6535 if test -n "$OTOOL"; then
6536 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6546 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6555 OTOOL=$ac_cv_prog_OTOOL
6556 if test -n "$OTOOL"; then
6557 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6558 $as_echo "$OTOOL" >&6; }
6560 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6561 $as_echo "no
" >&6; }
6566 if test -z "$ac_cv_prog_OTOOL"; then
6568 # Extract the first word of "otool
", so it can be a program name with args.
6569 set dummy otool; ac_word=$2
6570 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6571 $as_echo_n "checking
for $ac_word...
" >&6; }
6572 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6573 $as_echo_n "(cached
) " >&6
6575 if test -n "$ac_ct_OTOOL"; then
6576 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_ac_ct_OTOOL="otool
"
6586 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6595 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6596 if test -n "$ac_ct_OTOOL"; then
6597 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6598 $as_echo "$ac_ct_OTOOL" >&6; }
6600 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6601 $as_echo "no
" >&6; }
6604 if test "x
$ac_ct_OTOOL" = x; then
6607 case $cross_compiling:$ac_tool_warned in
6609 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6610 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6611 ac_tool_warned=yes ;;
6616 OTOOL="$ac_cv_prog_OTOOL"
6619 if test -n "$ac_tool_prefix"; then
6620 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6622 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6623 $as_echo_n "checking
for $ac_word...
" >&6; }
6624 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6625 $as_echo_n "(cached
) " >&6
6627 if test -n "$OTOOL64"; then
6628 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6638 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6647 OTOOL64=$ac_cv_prog_OTOOL64
6648 if test -n "$OTOOL64"; then
6649 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6650 $as_echo "$OTOOL64" >&6; }
6652 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6653 $as_echo "no
" >&6; }
6658 if test -z "$ac_cv_prog_OTOOL64"; then
6659 ac_ct_OTOOL64=$OTOOL64
6660 # Extract the first word of "otool64
", so it can be a program name with args.
6661 set dummy otool64; ac_word=$2
6662 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6663 $as_echo_n "checking
for $ac_word...
" >&6; }
6664 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6665 $as_echo_n "(cached
) " >&6
6667 if test -n "$ac_ct_OTOOL64"; then
6668 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6678 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6687 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6688 if test -n "$ac_ct_OTOOL64"; then
6689 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6690 $as_echo "$ac_ct_OTOOL64" >&6; }
6692 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6693 $as_echo "no
" >&6; }
6696 if test "x
$ac_ct_OTOOL64" = x; then
6699 case $cross_compiling:$ac_tool_warned in
6701 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6702 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6703 ac_tool_warned=yes ;;
6705 OTOOL64=$ac_ct_OTOOL64
6708 OTOOL64="$ac_cv_prog_OTOOL64"
6737 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6738 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6739 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6740 $as_echo_n "(cached
) " >&6
6742 lt_cv_apple_cc_single_mod=no
6743 if test -z "${LT_MULTI_MODULE}"; then
6744 # By default we will add the -single_module flag. You can override
6745 # by either setting the environment variable LT_MULTI_MODULE
6746 # non-empty at configure time, or by adding -multi_module to the
6748 rm -rf libconftest.dylib*
6749 echo "int foo
(void
){return 1;}" > conftest.c
6750 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6751 -dynamiclib -Wl,-single_module conftest.c
" >&5
6752 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6753 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6755 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6756 lt_cv_apple_cc_single_mod=yes
6758 cat conftest.err >&5
6760 rm -rf libconftest.dylib*
6764 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6765 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6766 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6767 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6768 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6769 $as_echo_n "(cached
) " >&6
6771 lt_cv_ld_exported_symbols_list=no
6772 save_LDFLAGS=$LDFLAGS
6773 echo "_main
" > conftest.sym
6774 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6775 cat >conftest.$ac_ext <<_ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6790 rm -f conftest.$ac_objext conftest$ac_exeext
6791 if { (ac_try="$ac_link"
6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6796 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6797 $as_echo "$ac_try_echo") >&5
6798 (eval "$ac_link") 2>conftest.er1
6800 grep -v '^ *+' conftest.er1 >conftest.err
6802 cat conftest.err >&5
6803 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6804 (exit $ac_status); } && {
6805 test -z "$ac_c_werror_flag" ||
6806 test ! -s conftest.err
6807 } && test -s conftest$ac_exeext && {
6808 test "$cross_compiling" = yes ||
6809 $as_test_x conftest$ac_exeext
6811 lt_cv_ld_exported_symbols_list=yes
6813 $as_echo "$as_me: failed program was
:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6816 lt_cv_ld_exported_symbols_list=no
6819 rm -rf conftest.dSYM
6820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6821 conftest$ac_exeext conftest.$ac_ext
6822 LDFLAGS="$save_LDFLAGS"
6825 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6826 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6828 rhapsody* | darwin1.[012])
6829 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6831 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6832 darwin*) # darwin 5.x on
6833 # if running on 10.5 or later, the deployment target defaults
6834 # to the OS version, if on x86, and 10.4, the deployment
6835 # target defaults to 10.4. Don't you love it?
6836 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6837 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6838 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6840 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6842 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6846 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6847 _lt_dar_single_mod='$single_module'
6849 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6850 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6852 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6854 if test "$DSYMUTIL" != ":"; then
6855 _lt_dsymutil='~$DSYMUTIL $lib || :'
6863 ac_cpp='$CPP $CPPFLAGS'
6864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6867 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6868 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6869 # On Suns, sometimes $CPP names a directory.
6870 if test -n "$CPP" && test -d "$CPP"; then
6873 if test -z "$CPP"; then
6874 if test "${ac_cv_prog_CPP+set}" = set; then
6875 $as_echo_n "(cached
) " >&6
6877 # Double quotes because CPP needs to be expanded
6878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6881 for ac_c_preproc_warn_flag in '' yes
6883 # Use a header file that comes with gcc, so configuring glibc
6884 # with a fresh cross-compiler works.
6885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6886 # <limits.h> exists even on freestanding compilers.
6887 # On the NeXT, cc -E runs the code through the compiler's parser,
6888 # not just through cpp. "Syntax error
" is here to catch this case.
6889 cat >conftest.$ac_ext <<_ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6896 # include <limits.h>
6898 # include <assert.h>
6902 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6907 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6908 $as_echo "$ac_try_echo") >&5
6909 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6911 grep -v '^ *+' conftest.er1 >conftest.err
6913 cat conftest.err >&5
6914 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6915 (exit $ac_status); } >/dev/null && {
6916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6917 test ! -s conftest.err
6921 $as_echo "$as_me: failed program was
:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6924 # Broken: fails on valid input.
6928 rm -f conftest.err conftest.$ac_ext
6930 # OK, works on sane cases. Now check whether nonexistent headers
6931 # can be detected and how.
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <ac_nonexistent.h>
6940 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6945 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6946 $as_echo "$ac_try_echo") >&5
6947 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6949 grep -v '^ *+' conftest.er1 >conftest.err
6951 cat conftest.err >&5
6952 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6953 (exit $ac_status); } >/dev/null && {
6954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6955 test ! -s conftest.err
6957 # Broken: success on invalid input.
6960 $as_echo "$as_me: failed program was
:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 # Passes both tests.
6968 rm -f conftest.err conftest.$ac_ext
6971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6972 rm -f conftest.err conftest.$ac_ext
6973 if $ac_preproc_ok; then
6985 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
6986 $as_echo "$CPP" >&6; }
6988 for ac_c_preproc_warn_flag in '' yes
6990 # Use a header file that comes with gcc, so configuring glibc
6991 # with a fresh cross-compiler works.
6992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6993 # <limits.h> exists even on freestanding compilers.
6994 # On the NeXT, cc -E runs the code through the compiler's parser,
6995 # not just through cpp. "Syntax error
" is here to catch this case.
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7003 # include <limits.h>
7005 # include <assert.h>
7009 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7014 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7015 $as_echo "$ac_try_echo") >&5
7016 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7018 grep -v '^ *+' conftest.er1 >conftest.err
7020 cat conftest.err >&5
7021 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7022 (exit $ac_status); } >/dev/null && {
7023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7024 test ! -s conftest.err
7028 $as_echo "$as_me: failed program was
:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 # Broken: fails on valid input.
7035 rm -f conftest.err conftest.$ac_ext
7037 # OK, works on sane cases. Now check whether nonexistent headers
7038 # can be detected and how.
7039 cat >conftest.$ac_ext <<_ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 #include <ac_nonexistent.h>
7047 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7052 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7053 $as_echo "$ac_try_echo") >&5
7054 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7056 grep -v '^ *+' conftest.er1 >conftest.err
7058 cat conftest.err >&5
7059 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7060 (exit $ac_status); } >/dev/null && {
7061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7064 # Broken: success on invalid input.
7067 $as_echo "$as_me: failed program was
:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 # Passes both tests.
7075 rm -f conftest.err conftest.$ac_ext
7078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7079 rm -f conftest.err conftest.$ac_ext
7080 if $ac_preproc_ok; then
7083 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7085 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7086 See \`config.log' for more details.
" >&5
7087 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7088 See \
`config.log' for more details." >&2;}
7089 { (exit 1); exit 1; }; }; }
7093 ac_cpp='$CPP $CPPFLAGS'
7094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7099 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7100 $as_echo_n "checking for ANSI C header files... " >&6; }
7101 if test "${ac_cv_header_stdc+set}" = set; then
7102 $as_echo_n "(cached) " >&6
7104 cat >conftest.$ac_ext <<_ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7127 *) ac_try_echo
=$ac_try;;
7129 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7130 $as_echo "$ac_try_echo") >&5
7131 (eval "$ac_compile") 2>conftest.er1
7133 grep -v '^ *+' conftest.er1
>conftest.err
7135 cat conftest.err
>&5
7136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest.
$ac_objext; then
7141 ac_cv_header_stdc
=yes
7143 $as_echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.
$ac_ext >&5
7146 ac_cv_header_stdc
=no
7149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7151 if test $ac_cv_header_stdc = yes; then
7152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7153 cat >conftest.
$ac_ext <<_ACEOF
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7163 $EGREP "memchr" >/dev
/null
2>&1; then
7166 ac_cv_header_stdc
=no
7172 if test $ac_cv_header_stdc = yes; then
7173 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7174 cat >conftest.
$ac_ext <<_ACEOF
7177 cat confdefs.h
>>conftest.
$ac_ext
7178 cat >>conftest.
$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7184 $EGREP "free" >/dev
/null
2>&1; then
7187 ac_cv_header_stdc
=no
7193 if test $ac_cv_header_stdc = yes; then
7194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7195 if test "$cross_compiling" = yes; then
7198 cat >conftest.
$ac_ext <<_ACEOF
7201 cat confdefs.h
>>conftest.
$ac_ext
7202 cat >>conftest.
$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7206 #if ((' ' & 0x0FF) == 0x020)
7207 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7208 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7210 # define ISLOWER(c) \
7211 (('a' <= (c) && (c) <= 'i') \
7212 || ('j' <= (c) && (c) <= 'r') \
7213 || ('s' <= (c) && (c) <= 'z'))
7214 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7217 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7222 for (i = 0; i < 256; i++)
7223 if (XOR (islower (i), ISLOWER (i))
7224 || toupper (i) != TOUPPER (i))
7229 rm -f conftest
$ac_exeext
7230 if { (ac_try
="$ac_link"
7232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7236 $as_echo "$ac_try_echo") >&5
7237 (eval "$ac_link") 2>&5
7239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7241 { (case "(($ac_try" in
7242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7243 *) ac_try_echo
=$ac_try;;
7245 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7246 $as_echo "$ac_try_echo") >&5
7247 (eval "$ac_try") 2>&5
7249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7253 $as_echo "$as_me: program exited with status $ac_status" >&5
7254 $as_echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.
$ac_ext >&5
7258 ac_cv_header_stdc
=no
7260 rm -rf conftest.dSYM
7261 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7267 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7268 $as_echo "$ac_cv_header_stdc" >&6; }
7269 if test $ac_cv_header_stdc = yes; then
7271 cat >>confdefs.h
<<\_ACEOF
7272 #define STDC_HEADERS 1
7277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7287 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7288 inttypes.h stdint.h unistd.h
7290 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7291 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7292 $as_echo_n "checking for $ac_header... " >&6; }
7293 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7294 $as_echo_n "(cached) " >&6
7296 cat >conftest.
$ac_ext <<_ACEOF
7299 cat confdefs.h
>>conftest.
$ac_ext
7300 cat >>conftest.
$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7302 $ac_includes_default
7304 #include <$ac_header>
7306 rm -f conftest.
$ac_objext
7307 if { (ac_try
="$ac_compile"
7309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7310 *) ac_try_echo=$ac_try;;
7312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7313 $as_echo "$ac_try_echo") >&5
7314 (eval "$ac_compile") 2>conftest.er1
7316 grep -v '^ *+' conftest.er1 >conftest.err
7318 cat conftest.err >&5
7319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } && {
7321 test -z "$ac_c_werror_flag" ||
7322 test ! -s conftest.err
7323 } && test -s conftest.$ac_objext; then
7324 eval "$as_ac_Header=yes"
7326 $as_echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7329 eval "$as_ac_Header=no"
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 ac_res=`eval 'as_val=${'$as_ac_Header'}
7335 $as_echo "$as_val"'`
7336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7337 $as_echo "$ac_res" >&6; }
7338 as_val=`eval 'as_val=${'$as_ac_Header'}
7339 $as_echo "$as_val"'`
7340 if test "x$as_val" = x""yes; then
7341 cat >>confdefs.h <<_ACEOF
7342 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7351 for ac_header in dlfcn.h
7353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7355 $as_echo_n "checking for $ac_header... " >&6; }
7356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7357 $as_echo_n "(cached) " >&6
7359 cat >conftest.$ac_ext <<_ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 $ac_includes_default
7367 #include <$ac_header>
7369 rm -f conftest.$ac_objext
7370 if { (ac_try="$ac_compile"
7372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7373 *) ac_try_echo
=$ac_try;;
7375 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7376 $as_echo "$ac_try_echo") >&5
7377 (eval "$ac_compile") 2>conftest.er1
7379 grep -v '^ *+' conftest.er1
>conftest.err
7381 cat conftest.err
>&5
7382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } && {
7384 test -z "$ac_c_werror_flag" ||
7385 test ! -s conftest.err
7386 } && test -s conftest.
$ac_objext; then
7387 eval "$as_ac_Header=yes"
7389 $as_echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.
$ac_ext >&5
7392 eval "$as_ac_Header=no"
7395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7397 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7398 $as_echo "$as_val"'`
7399 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7400 $as_echo "$ac_res" >&6; }
7401 as_val
=`eval 'as_val=${'$as_ac_Header'}
7402 $as_echo "$as_val"'`
7403 if test "x$as_val" = x
""yes; then
7404 cat >>confdefs.h
<<_ACEOF
7405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7424 # Check whether --enable-shared was given.
7425 if test "${enable_shared+set}" = set; then
7426 enableval
=$enable_shared; p
=${PACKAGE-default}
7428 yes) enable_shared
=yes ;;
7429 no
) enable_shared
=no
;;
7432 # Look at the argument we got. We use all the common list separators.
7433 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7434 for pkg
in $enableval; do
7436 if test "X$pkg" = "X$p"; then
7455 # Check whether --enable-static was given.
7456 if test "${enable_static+set}" = set; then
7457 enableval
=$enable_static; p
=${PACKAGE-default}
7459 yes) enable_static
=yes ;;
7460 no
) enable_static
=no
;;
7463 # Look at the argument we got. We use all the common list separators.
7464 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7465 for pkg
in $enableval; do
7467 if test "X$pkg" = "X$p"; then
7487 # Check whether --with-pic was given.
7488 if test "${with_pic+set}" = set; then
7489 withval
=$with_pic; pic_mode
="$withval"
7495 test -z "$pic_mode" && pic_mode
=default
7503 # Check whether --enable-fast-install was given.
7504 if test "${enable_fast_install+set}" = set; then
7505 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7507 yes) enable_fast_install
=yes ;;
7508 no
) enable_fast_install
=no
;;
7510 enable_fast_install
=no
7511 # Look at the argument we got. We use all the common list separators.
7512 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7513 for pkg
in $enableval; do
7515 if test "X$pkg" = "X$p"; then
7516 enable_fast_install
=yes
7523 enable_fast_install
=yes
7536 # This can be used to rebuild libtool when needed
7537 LIBTOOL_DEPS
="$ltmain"
7539 # Always use our own libtool.
7540 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7566 test -z "$LN_S" && LN_S
="ln -s"
7581 if test -n "${ZSH_VERSION+set}" ; then
7582 setopt NO_GLOB_SUBST
7585 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7586 $as_echo_n "checking for objdir... " >&6; }
7587 if test "${lt_cv_objdir+set}" = set; then
7588 $as_echo_n "(cached) " >&6
7590 rm -f .libs
2>/dev
/null
7591 mkdir .libs
2>/dev
/null
7592 if test -d .libs
; then
7595 # MS-DOS does not allow filenames that begin with a dot.
7598 rmdir .libs
2>/dev
/null
7600 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7601 $as_echo "$lt_cv_objdir" >&6; }
7602 objdir
=$lt_cv_objdir
7608 cat >>confdefs.h
<<_ACEOF
7609 #define LT_OBJDIR "$lt_cv_objdir/"
7630 # AIX sometimes has problems with the GCC collect2 program. For some
7631 # reason, if we set the COLLECT_NAMES environment variable, the problems
7632 # vanish in a puff of smoke.
7633 if test "X${COLLECT_NAMES+set}" != Xset
; then
7635 export COLLECT_NAMES
7640 # Sed substitution that helps us do robust quoting. It backslashifies
7641 # metacharacters that are still active within double-quoted strings.
7642 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7644 # Same as above, but do not quote variable references.
7645 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7647 # Sed substitution to delay expansion of an escaped shell variable in a
7648 # double_quote_subst'ed string.
7649 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7651 # Sed substitution to delay expansion of an escaped single quote.
7652 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7654 # Sed substitution to avoid accidental globbing in evaled expressions
7655 no_glob_subst
='s/\*/\\\*/g'
7659 can_build_shared
=yes
7661 # All known linkers require a `.a' archive for static linking (except MSVC,
7662 # which needs '.lib').
7665 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7668 old_CFLAGS
="$CFLAGS"
7670 # Set sane defaults for various variables
7671 test -z "$CC" && CC
=cc
7672 test -z "$LTCC" && LTCC
=$CC
7673 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7674 test -z "$LD" && LD
=ld
7675 test -z "$ac_objext" && ac_objext
=o
7677 for cc_temp
in $compiler""; do
7679 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7680 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7685 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7688 # Only perform the check for file, if the check method requires it
7689 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7690 case $deplibs_check_method in
7692 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7693 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7694 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7696 $as_echo_n "(cached) " >&6
7700 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7703 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7704 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7705 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7706 for ac_dir
in $ac_dummy; do
7708 test -z "$ac_dir" && ac_dir
=.
7709 if test -f $ac_dir/${ac_tool_prefix}file; then
7710 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7711 if test -n "$file_magic_test_file"; then
7712 case $deplibs_check_method in
7714 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7715 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7716 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7717 $EGREP "$file_magic_regex" > /dev
/null
; then
7722 *** Warning: the command libtool uses to detect shared libraries,
7723 *** $file_magic_cmd, produces output that libtool cannot recognize.
7724 *** The result is that libtool may fail to recognize shared libraries
7725 *** as such. This will affect the creation of libtool libraries that
7726 *** depend on shared libraries, but programs linked with such libtool
7727 *** libraries will work regardless of this problem. Nevertheless, you
7728 *** may want to report the problem to your system manager and/or to
7729 *** bug-libtool@gnu.org
7739 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7744 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7745 if test -n "$MAGIC_CMD"; then
7746 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7747 $as_echo "$MAGIC_CMD" >&6; }
7749 { $as_echo "$as_me:$LINENO: result: no" >&5
7750 $as_echo "no" >&6; }
7757 if test -z "$lt_cv_path_MAGIC_CMD"; then
7758 if test -n "$ac_tool_prefix"; then
7759 { $as_echo "$as_me:$LINENO: checking for file" >&5
7760 $as_echo_n "checking for file... " >&6; }
7761 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7762 $as_echo_n "(cached) " >&6
7766 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7769 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7770 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7771 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7772 for ac_dir
in $ac_dummy; do
7774 test -z "$ac_dir" && ac_dir
=.
7775 if test -f $ac_dir/file; then
7776 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7777 if test -n "$file_magic_test_file"; then
7778 case $deplibs_check_method in
7780 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7781 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7782 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7783 $EGREP "$file_magic_regex" > /dev
/null
; then
7788 *** Warning: the command libtool uses to detect shared libraries,
7789 *** $file_magic_cmd, produces output that libtool cannot recognize.
7790 *** The result is that libtool may fail to recognize shared libraries
7791 *** as such. This will affect the creation of libtool libraries that
7792 *** depend on shared libraries, but programs linked with such libtool
7793 *** libraries will work regardless of this problem. Nevertheless, you
7794 *** may want to report the problem to your system manager and/or to
7795 *** bug-libtool@gnu.org
7805 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7810 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7811 if test -n "$MAGIC_CMD"; then
7812 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7813 $as_echo "$MAGIC_CMD" >&6; }
7815 { $as_echo "$as_me:$LINENO: result: no" >&5
7816 $as_echo "no" >&6; }
7829 # Use C for the default configuration in the libtool script
7833 ac_cpp
='$CPP $CPPFLAGS'
7834 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7835 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7836 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7839 # Source file extension for C test sources.
7842 # Object file extension for compiled C test sources.
7846 # Code to be used in simple compile tests
7847 lt_simple_compile_test_code
="int some_variable = 0;"
7849 # Code to be used in simple link tests
7850 lt_simple_link_test_code
='int main(){return(0);}'
7858 # If no C compiler was specified, use CC.
7861 # If no C compiler flags were specified, use CFLAGS.
7862 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7864 # Allow CC to be a program name with arguments.
7867 # Save the default compiler, since it gets overwritten when the other
7868 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7869 compiler_DEFAULT
=$CC
7871 # save warnings/boilerplate of simple test code
7872 ac_outfile
=conftest.
$ac_objext
7873 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7874 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7875 _lt_compiler_boilerplate
=`cat conftest.err`
7878 ac_outfile
=conftest.
$ac_objext
7879 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7880 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7881 _lt_linker_boilerplate
=`cat conftest.err`
7885 if test -n "$compiler"; then
7887 lt_prog_compiler_no_builtin_flag
=
7889 if test "$GCC" = yes; then
7890 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7892 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7893 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7894 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7895 $as_echo_n "(cached) " >&6
7897 lt_cv_prog_compiler_rtti_exceptions
=no
7898 ac_outfile
=conftest.
$ac_objext
7899 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7900 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7901 # Insert the option either (1) after the last *FLAGS variable, or
7902 # (2) before a word containing "conftest.", or (3) at the end.
7903 # Note that $ac_compile itself does not contain backslashes and begins
7904 # with a dollar sign (not a hyphen), so the echo should work correctly.
7905 # The option is referenced via a variable to avoid confusing sed.
7906 lt_compile
=`echo "$ac_compile" | $SED \
7907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7909 -e 's:$: $lt_compiler_flag:'`
7910 (eval echo "\"\$as_me:7910: $lt_compile\"" >&5)
7911 (eval "$lt_compile" 2>conftest.err
)
7913 cat conftest.err
>&5
7914 echo "$as_me:7914: \$? = $ac_status" >&5
7915 if (exit $ac_status) && test -s "$ac_outfile"; then
7916 # The compiler can only warn and ignore the option if not recognized
7917 # So say no if there are warnings other than the usual output.
7918 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7919 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7920 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7921 lt_cv_prog_compiler_rtti_exceptions
=yes
7927 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7928 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7930 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7931 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7943 lt_prog_compiler_wl
=
7944 lt_prog_compiler_pic
=
7945 lt_prog_compiler_static
=
7947 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7948 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7950 if test "$GCC" = yes; then
7951 lt_prog_compiler_wl
='-Wl,'
7952 lt_prog_compiler_static
='-static'
7956 # All AIX code is PIC.
7957 if test "$host_cpu" = ia64
; then
7958 # AIX 5 now supports IA64 processor
7959 lt_prog_compiler_static
='-Bstatic'
7966 # see comment about AmigaOS4 .so support
7967 lt_prog_compiler_pic
='-fPIC'
7970 # FIXME: we need at least 68020 code to build shared libraries, but
7971 # adding the `-m68020' flag to GCC prevents building anything better,
7973 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7978 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7979 # PIC is the default for these OSes.
7982 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7983 # This hack is so that the source file can tell whether it is being
7984 # built for inclusion in a dll (and should export symbols for example).
7985 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7986 # (--disable-auto-import) libraries
7987 lt_prog_compiler_pic
='-DDLL_EXPORT'
7990 darwin
* | rhapsody
*)
7991 # PIC is the default on this platform
7992 # Common symbols not allowed in MH_DYLIB files
7993 lt_prog_compiler_pic
='-fno-common'
7997 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7998 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7999 # sets the default TLS model and affects inlining.
8005 lt_prog_compiler_pic
='-fPIC'
8011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8012 # Instead, we relocate shared libraries at runtime.
8016 # Just because we use GCC doesn't mean we suddenly get shared libraries
8017 # on systems that don't support them.
8018 lt_prog_compiler_can_build_shared
=no
8023 # QNX uses GNU C++, but need to define -shared option too, otherwise
8025 lt_prog_compiler_pic
='-fPIC -shared'
8029 if test -d /usr
/nec
; then
8030 lt_prog_compiler_pic
=-Kconform_pic
8035 lt_prog_compiler_pic
='-fPIC'
8039 # PORTME Check for flag to pass linker flags through the system compiler.
8042 lt_prog_compiler_wl
='-Wl,'
8043 if test "$host_cpu" = ia64
; then
8044 # AIX 5 now supports IA64 processor
8045 lt_prog_compiler_static
='-Bstatic'
8047 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8051 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8052 # This hack is so that the source file can tell whether it is being
8053 # built for inclusion in a dll (and should export symbols for example).
8054 lt_prog_compiler_pic
='-DDLL_EXPORT'
8057 hpux9
* | hpux10
* | hpux11
*)
8058 lt_prog_compiler_wl
='-Wl,'
8059 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8066 lt_prog_compiler_pic
='+Z'
8069 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8070 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8073 irix5
* | irix6
* | nonstopux
*)
8074 lt_prog_compiler_wl
='-Wl,'
8075 # PIC (with -KPIC) is the default.
8076 lt_prog_compiler_static
='-non_shared'
8079 linux
* | k
*bsd
*-gnu)
8080 case $cc_basename in
8081 # old Intel for x86_64 which still supported -KPIC.
8083 lt_prog_compiler_wl
='-Wl,'
8084 lt_prog_compiler_pic
='-KPIC'
8085 lt_prog_compiler_static
='-static'
8087 # icc used to be incompatible with GCC.
8088 # ICC 10 doesn't accept -KPIC any more.
8090 lt_prog_compiler_wl
='-Wl,'
8091 lt_prog_compiler_pic
='-fPIC'
8092 lt_prog_compiler_static
='-static'
8094 # Lahey Fortran 8.1.
8096 lt_prog_compiler_wl
='-Wl,'
8097 lt_prog_compiler_pic
='--shared'
8098 lt_prog_compiler_static
='--static'
8100 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8101 # Portland Group compilers (*not* the Pentium gcc compiler,
8102 # which looks to be a dead project)
8103 lt_prog_compiler_wl
='-Wl,'
8104 lt_prog_compiler_pic
='-fpic'
8105 lt_prog_compiler_static
='-Bstatic'
8108 lt_prog_compiler_wl
='-Wl,'
8109 # All Alpha code is PIC.
8110 lt_prog_compiler_static
='-non_shared'
8113 # IBM XL C 8.0/Fortran 10.1 on PPC
8114 lt_prog_compiler_wl
='-Wl,'
8115 lt_prog_compiler_pic
='-qpic'
8116 lt_prog_compiler_static
='-qstaticlink'
8119 case `$CC -V 2>&1 | sed 5q` in
8122 lt_prog_compiler_pic
='-KPIC'
8123 lt_prog_compiler_static
='-Bstatic'
8124 lt_prog_compiler_wl
='-Wl,'
8127 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8128 lt_prog_compiler_pic
='-KPIC'
8129 lt_prog_compiler_static
='-Bstatic'
8130 lt_prog_compiler_wl
=''
8138 lt_prog_compiler_pic
='-KPIC'
8139 lt_prog_compiler_static
='-Bstatic'
8143 # QNX uses GNU C++, but need to define -shared option too, otherwise
8145 lt_prog_compiler_pic
='-fPIC -shared'
8148 osf3
* | osf4
* | osf5
*)
8149 lt_prog_compiler_wl
='-Wl,'
8150 # All OSF/1 code is PIC.
8151 lt_prog_compiler_static
='-non_shared'
8155 lt_prog_compiler_static
='-non_shared'
8159 lt_prog_compiler_pic
='-KPIC'
8160 lt_prog_compiler_static
='-Bstatic'
8161 case $cc_basename in
8163 lt_prog_compiler_wl
='-Qoption ld ';;
8165 lt_prog_compiler_wl
='-Wl,';;
8170 lt_prog_compiler_wl
='-Qoption ld '
8171 lt_prog_compiler_pic
='-PIC'
8172 lt_prog_compiler_static
='-Bstatic'
8175 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8176 lt_prog_compiler_wl
='-Wl,'
8177 lt_prog_compiler_pic
='-KPIC'
8178 lt_prog_compiler_static
='-Bstatic'
8182 if test -d /usr
/nec
;then
8183 lt_prog_compiler_pic
='-Kconform_pic'
8184 lt_prog_compiler_static
='-Bstatic'
8188 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8189 lt_prog_compiler_wl
='-Wl,'
8190 lt_prog_compiler_pic
='-KPIC'
8191 lt_prog_compiler_static
='-Bstatic'
8195 lt_prog_compiler_wl
='-Wl,'
8196 lt_prog_compiler_can_build_shared
=no
8200 lt_prog_compiler_pic
='-pic'
8201 lt_prog_compiler_static
='-Bstatic'
8205 lt_prog_compiler_can_build_shared
=no
8211 # For platforms which do not support PIC, -DPIC is meaningless:
8213 lt_prog_compiler_pic
=
8216 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8219 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8220 $as_echo "$lt_prog_compiler_pic" >&6; }
8228 # Check to make sure the PIC flag actually works.
8230 if test -n "$lt_prog_compiler_pic"; then
8231 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8232 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8233 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8234 $as_echo_n "(cached) " >&6
8236 lt_cv_prog_compiler_pic_works
=no
8237 ac_outfile
=conftest.
$ac_objext
8238 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8239 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8240 # Insert the option either (1) after the last *FLAGS variable, or
8241 # (2) before a word containing "conftest.", or (3) at the end.
8242 # Note that $ac_compile itself does not contain backslashes and begins
8243 # with a dollar sign (not a hyphen), so the echo should work correctly.
8244 # The option is referenced via a variable to avoid confusing sed.
8245 lt_compile
=`echo "$ac_compile" | $SED \
8246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8248 -e 's:$: $lt_compiler_flag:'`
8249 (eval echo "\"\$as_me:8249: $lt_compile\"" >&5)
8250 (eval "$lt_compile" 2>conftest.err
)
8252 cat conftest.err
>&5
8253 echo "$as_me:8253: \$? = $ac_status" >&5
8254 if (exit $ac_status) && test -s "$ac_outfile"; then
8255 # The compiler can only warn and ignore the option if not recognized
8256 # So say no if there are warnings other than the usual output.
8257 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8258 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8259 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8260 lt_cv_prog_compiler_pic_works
=yes
8266 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8267 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8269 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8270 case $lt_prog_compiler_pic in
8272 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8275 lt_prog_compiler_pic
=
8276 lt_prog_compiler_can_build_shared
=no
8287 # Check to make sure the static flag actually works.
8289 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8290 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8291 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8292 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8293 $as_echo_n "(cached) " >&6
8295 lt_cv_prog_compiler_static_works
=no
8296 save_LDFLAGS
="$LDFLAGS"
8297 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8298 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8299 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8300 # The linker can only warn and ignore the option if not recognized
8301 # So say no if there are warnings
8302 if test -s conftest.err
; then
8303 # Append any errors to the config.log.
8304 cat conftest.err
1>&5
8305 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8306 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8307 if diff conftest.exp conftest.er2
>/dev
/null
; then
8308 lt_cv_prog_compiler_static_works
=yes
8311 lt_cv_prog_compiler_static_works
=yes
8315 LDFLAGS
="$save_LDFLAGS"
8318 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8319 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8321 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8324 lt_prog_compiler_static
=
8333 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8334 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8335 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8336 $as_echo_n "(cached) " >&6
8338 lt_cv_prog_compiler_c_o
=no
8339 $RM -r conftest
2>/dev
/null
8343 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8345 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8346 # Insert the option either (1) after the last *FLAGS variable, or
8347 # (2) before a word containing "conftest.", or (3) at the end.
8348 # Note that $ac_compile itself does not contain backslashes and begins
8349 # with a dollar sign (not a hyphen), so the echo should work correctly.
8350 lt_compile
=`echo "$ac_compile" | $SED \
8351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8353 -e 's:$: $lt_compiler_flag:'`
8354 (eval echo "\"\$as_me:8354: $lt_compile\"" >&5)
8355 (eval "$lt_compile" 2>out
/conftest.err
)
8357 cat out
/conftest.err
>&5
8358 echo "$as_me:8358: \$? = $ac_status" >&5
8359 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8361 # The compiler can only warn and ignore the option if not recognized
8362 # So say no if there are warnings
8363 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8364 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8365 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8366 lt_cv_prog_compiler_c_o
=yes
8371 # SGI C++ compiler will create directory out/ii_files/ for
8372 # template instantiation
8373 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8374 $RM out
/* && rmdir out
8380 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8381 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8388 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8389 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8390 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8391 $as_echo_n "(cached) " >&6
8393 lt_cv_prog_compiler_c_o
=no
8394 $RM -r conftest
2>/dev
/null
8398 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8400 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8401 # Insert the option either (1) after the last *FLAGS variable, or
8402 # (2) before a word containing "conftest.", or (3) at the end.
8403 # Note that $ac_compile itself does not contain backslashes and begins
8404 # with a dollar sign (not a hyphen), so the echo should work correctly.
8405 lt_compile
=`echo "$ac_compile" | $SED \
8406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8408 -e 's:$: $lt_compiler_flag:'`
8409 (eval echo "\"\$as_me:8409: $lt_compile\"" >&5)
8410 (eval "$lt_compile" 2>out
/conftest.err
)
8412 cat out
/conftest.err
>&5
8413 echo "$as_me:8413: \$? = $ac_status" >&5
8414 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8416 # The compiler can only warn and ignore the option if not recognized
8417 # So say no if there are warnings
8418 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8419 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8420 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8421 lt_cv_prog_compiler_c_o
=yes
8426 # SGI C++ compiler will create directory out/ii_files/ for
8427 # template instantiation
8428 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8429 $RM out
/* && rmdir out
8435 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8436 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8441 hard_links
="nottested"
8442 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8443 # do not overwrite the value of need_locks provided by the user
8444 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8445 $as_echo_n "checking if we can lock with hard links... " >&6; }
8448 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8450 ln conftest.a conftest.b
2>&5 || hard_links
=no
8451 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8452 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8453 $as_echo "$hard_links" >&6; }
8454 if test "$hard_links" = no
; then
8455 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8456 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8468 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8469 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8472 allow_undefined_flag
=
8473 always_export_symbols
=no
8475 archive_expsym_cmds
=
8476 compiler_needs_object
=no
8477 enable_shared_with_static_runtimes
=no
8478 export_dynamic_flag_spec
=
8479 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8480 hardcode_automatic
=no
8482 hardcode_direct_absolute
=no
8483 hardcode_libdir_flag_spec
=
8484 hardcode_libdir_flag_spec_ld
=
8485 hardcode_libdir_separator
=
8487 hardcode_shlibpath_var
=unsupported
8489 link_all_deplibs
=unknown
8492 old_archive_from_new_cmds
=
8493 old_archive_from_expsyms_cmds
=
8494 thread_safe_flag_spec
=
8495 whole_archive_flag_spec
=
8496 # include_expsyms should be a list of space-separated symbols to be *always*
8497 # included in the symbol list
8499 # exclude_expsyms can be an extended regexp of symbols to exclude
8500 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8501 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8502 # as well as any symbol that contains `d'.
8503 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8504 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8505 # platforms (ab)use it in PIC code, but their linkers get confused if
8506 # the symbol is explicitly referenced. Since portable code cannot
8507 # rely on this symbol name, it's probably fine to never include it in
8508 # preloaded symbol tables.
8509 # Exclude shared library initialization/finalization symbols.
8510 extract_expsyms_cmds
=
8513 cygwin
* | mingw
* | pw32
* | cegcc
*)
8514 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8515 # When not using gcc, we currently assume that we are using
8516 # Microsoft Visual C++.
8517 if test "$GCC" != yes; then
8522 # we just hope/assume this is gcc and not c89 (= MSVC++)
8531 if test "$with_gnu_ld" = yes; then
8532 # If archive_cmds runs LD, not CC, wlarc should be empty
8535 # Set some defaults for GNU ld with shared library support. These
8536 # are reset later if shared libraries are not supported. Putting them
8537 # here allows them to be overridden if necessary.
8538 runpath_var
=LD_RUN_PATH
8539 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8540 export_dynamic_flag_spec
='${wl}--export-dynamic'
8541 # ancient GNU ld didn't support --whole-archive et. al.
8542 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8543 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8545 whole_archive_flag_spec
=
8547 supports_anon_versioning
=no
8548 case `$LD -v 2>&1` in
8549 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8550 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8551 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8552 *\
2.11.
*) ;; # other 2.11 versions
8553 *) supports_anon_versioning
=yes ;;
8556 # See if GNU ld supports shared libraries.
8559 # On AIX/PPC, the GNU linker is very broken
8560 if test "$host_cpu" != ia64
; then
8564 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8565 *** to be unable to reliably create shared libraries on AIX.
8566 *** Therefore, libtool is disabling shared libraries support. If you
8567 *** really care for shared libraries, you may want to modify your PATH
8568 *** so that a non-GNU linker is found, and then restart.
8577 # see comment about AmigaOS4 .so support
8578 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579 archive_expsym_cmds
=''
8582 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)'
8583 hardcode_libdir_flag_spec
='-L$libdir'
8584 hardcode_minus_L
=yes
8590 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8591 allow_undefined_flag
=unsupported
8592 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8593 # support --undefined. This deserves some investigation. FIXME
8594 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600 cygwin
* | mingw
* | pw32
* | cegcc
*)
8601 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8602 # as there is no search path for DLLs.
8603 hardcode_libdir_flag_spec
='-L$libdir'
8604 allow_undefined_flag
=unsupported
8605 always_export_symbols
=no
8606 enable_shared_with_static_runtimes
=yes
8607 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8609 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8610 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8611 # If the export-symbols file already is a .def file (1st line
8612 # is EXPORTS), use it as is; otherwise, prepend...
8613 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8614 cp $export_symbols $output_objdir/$soname.def;
8616 echo EXPORTS > $output_objdir/$soname.def;
8617 cat $export_symbols >> $output_objdir/$soname.def;
8619 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8627 hardcode_shlibpath_var
=no
8628 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8629 export_dynamic_flag_spec
='${wl}-E'
8630 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8631 # Instead, shared libraries are loaded at an image base (0x10000000 by
8632 # default) and relocated if they conflict, which is a slow very memory
8633 # consuming and fragmenting process. To avoid this, we pick a random,
8634 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8635 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8636 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8637 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'
8640 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8642 if test "$host_os" = linux-dietlibc
; then
8643 case $cc_basename in
8644 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8647 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8648 && test "$tmp_diet" = no
8651 tmp_sharedflag
='-shared'
8652 case $cc_basename,$host_cpu in
8653 pgcc
*) # Portland Group C compiler
8654 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'
8655 tmp_addflag
=' $pic_flag'
8657 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8658 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'
8659 tmp_addflag
=' $pic_flag -Mnomain' ;;
8660 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8661 tmp_addflag
=' -i_dynamic' ;;
8662 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8663 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8664 ifc
* | ifort
*) # Intel Fortran compiler
8665 tmp_addflag
=' -nofor_main' ;;
8666 lf95
*) # Lahey Fortran 8.1
8667 whole_archive_flag_spec
=
8668 tmp_sharedflag
='--shared' ;;
8669 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8670 tmp_sharedflag
='-qmkshrobj'
8673 case `$CC -V 2>&1 | sed 5q` in
8674 *Sun\ C
*) # Sun C 5.9
8675 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'
8676 compiler_needs_object
=yes
8677 tmp_sharedflag
='-G' ;;
8678 *Sun\ F
*) # Sun Fortran 8.3
8679 tmp_sharedflag
='-G' ;;
8681 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683 if test "x$supports_anon_versioning" = xyes
; then
8684 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8685 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8686 echo "local: *; };" >> $output_objdir/$libname.ver~
8687 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8690 case $cc_basename in
8692 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8693 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8694 hardcode_libdir_flag_spec
=
8695 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8696 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8697 if test "x$supports_anon_versioning" = xyes
; then
8698 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8699 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8700 echo "local: *; };" >> $output_objdir/$libname.ver~
8701 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8711 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8712 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8715 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8716 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8721 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8725 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8726 *** create shared libraries on Solaris systems. Therefore, libtool
8727 *** is disabling shared libraries support. We urge you to upgrade GNU
8728 *** binutils to release 2.9.1 or newer. Another option is to modify
8729 *** your PATH or compiler configuration so that the native linker is
8730 *** used, and then restart.
8733 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8734 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8735 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8741 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8742 case `$LD -v 2>&1` in
8743 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8747 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8748 *** reliably create shared libraries on SCO systems. Therefore, libtool
8749 *** is disabling shared libraries support. We urge you to upgrade GNU
8750 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8751 *** your PATH or compiler configuration so that the native linker is
8752 *** used, and then restart.
8757 # For security reasons, it is highly recommended that you always
8758 # use absolute paths for naming shared libraries, and exclude the
8759 # DT_RUNPATH tag from executables and libraries. But doing so
8760 # requires that you compile everything twice, which is a pain.
8761 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8762 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8763 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8773 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8776 hardcode_shlibpath_var
=no
8780 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8781 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8789 if test "$ld_shlibs" = no
; then
8791 hardcode_libdir_flag_spec
=
8792 export_dynamic_flag_spec
=
8793 whole_archive_flag_spec
=
8796 # PORTME fill in a description of your system's linker (not GNU ld)
8799 allow_undefined_flag
=unsupported
8800 always_export_symbols
=yes
8801 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'
8802 # Note: this linker hardcodes the directories in LIBPATH if there
8803 # are no directories specified by -L.
8804 hardcode_minus_L
=yes
8805 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8806 # Neither direct hardcoding nor static linking is supported with a
8808 hardcode_direct
=unsupported
8813 if test "$host_cpu" = ia64
; then
8814 # On IA64, the linker does run time linking by default, so we don't
8815 # have to do anything special.
8816 aix_use_runtimelinking
=no
8817 exp_sym_flag
='-Bexport'
8820 # If we're using GNU nm, then we don't want the "-C" option.
8821 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8822 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8823 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'
8825 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'
8827 aix_use_runtimelinking
=no
8829 # Test if we are trying to use run time linking or normal
8830 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8831 # need to do runtime linking.
8832 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8833 for ld_flag
in $LDFLAGS; do
8834 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8835 aix_use_runtimelinking
=yes
8842 exp_sym_flag
='-bexport'
8843 no_entry_flag
='-bnoentry'
8846 # When large executables or shared objects are built, AIX ld can
8847 # have problems creating the table of contents. If linking a library
8848 # or program results in "error TOC overflow" add -mminimal-toc to
8849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8854 hardcode_direct_absolute
=yes
8855 hardcode_libdir_separator
=':'
8856 link_all_deplibs
=yes
8857 file_list_spec
='${wl}-f,'
8859 if test "$GCC" = yes; then
8860 case $host_os in aix4.
[012]|aix4.
[012].
*)
8861 # We only want to do this on AIX 4.2 and lower, the check
8862 # below for broken collect2 doesn't work under 4.3+
8863 collect2name
=`${CC} -print-prog-name=collect2`
8864 if test -f "$collect2name" &&
8865 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8867 # We have reworked collect2
8870 # We have old collect2
8871 hardcode_direct
=unsupported
8872 # It fails to find uninstalled libraries when the uninstalled
8873 # path is not listed in the libpath. Setting hardcode_minus_L
8874 # to unsupported forces relinking
8875 hardcode_minus_L
=yes
8876 hardcode_libdir_flag_spec
='-L$libdir'
8877 hardcode_libdir_separator
=
8881 shared_flag
='-shared'
8882 if test "$aix_use_runtimelinking" = yes; then
8883 shared_flag
="$shared_flag "'${wl}-G'
8887 if test "$host_cpu" = ia64
; then
8888 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8889 # chokes on -Wl,-G. The following line is correct:
8892 if test "$aix_use_runtimelinking" = yes; then
8893 shared_flag
='${wl}-G'
8895 shared_flag
='${wl}-bM:SRE'
8900 export_dynamic_flag_spec
='${wl}-bexpall'
8901 # It seems that -bexpall does not export symbols beginning with
8902 # underscore (_), so it is better to generate a list of symbols to export.
8903 always_export_symbols
=yes
8904 if test "$aix_use_runtimelinking" = yes; then
8905 # Warning - without using the other runtime loading flags (-brtl),
8906 # -berok will link without error, but may produce a broken library.
8907 allow_undefined_flag
='-berok'
8908 # Determine the default libpath from the value encoded in an
8910 cat >conftest.
$ac_ext <<_ACEOF
8913 cat confdefs.h
>>conftest.
$ac_ext
8914 cat >>conftest.
$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8925 rm -f conftest.
$ac_objext conftest
$ac_exeext
8926 if { (ac_try
="$ac_link"
8928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932 $as_echo "$ac_try_echo") >&5
8933 (eval "$ac_link") 2>conftest.er1
8935 grep -v '^ *+' conftest.er1 >conftest.err
8937 cat conftest.err >&5
8938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest$ac_exeext && {
8943 test "$cross_compiling" = yes ||
8944 $as_test_x conftest$ac_exeext
8947 lt_aix_libpath_sed='
8948 /Import File Strings/,/^$/ {
8954 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8955 # Check for a 64-bit object if we didn't find anything.
8956 if test -z "$aix_libpath"; then
8957 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8960 $as_echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8966 rm -rf conftest.dSYM
8967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8968 conftest$ac_exeext conftest.$ac_ext
8969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8971 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8972 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"
8974 if test "$host_cpu" = ia64; then
8975 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8976 allow_undefined_flag="-z nodefs"
8977 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"
8979 # Determine the default libpath from the value encoded in an
8981 cat >conftest.$ac_ext <<_ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (ac_try="$ac_link"
8999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9000 *) ac_try_echo
=$ac_try;;
9002 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9003 $as_echo "$ac_try_echo") >&5
9004 (eval "$ac_link") 2>conftest.er1
9006 grep -v '^ *+' conftest.er1
>conftest.err
9008 cat conftest.err
>&5
9009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest
$ac_exeext && {
9014 test "$cross_compiling" = yes ||
9015 $as_test_x conftest
$ac_exeext
9018 lt_aix_libpath_sed
='
9019 /Import File Strings/,/^$/ {
9025 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9026 # Check for a 64-bit object if we didn't find anything.
9027 if test -z "$aix_libpath"; then
9028 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9031 $as_echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.
$ac_ext >&5
9037 rm -rf conftest.dSYM
9038 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9039 conftest
$ac_exeext conftest.
$ac_ext
9040 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9042 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9043 # Warning - without using the other run time loading flags,
9044 # -berok will link without error, but may produce a broken library.
9045 no_undefined_flag
=' ${wl}-bernotok'
9046 allow_undefined_flag
=' ${wl}-berok'
9047 # Exported symbols can be pulled into shared objects from archives
9048 whole_archive_flag_spec
='$convenience'
9049 archive_cmds_need_lc
=yes
9050 # This is similar to how AIX traditionally builds its shared libraries.
9051 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'
9059 # see comment about AmigaOS4 .so support
9060 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061 archive_expsym_cmds
=''
9064 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)'
9065 hardcode_libdir_flag_spec
='-L$libdir'
9066 hardcode_minus_L
=yes
9072 export_dynamic_flag_spec
=-rdynamic
9075 cygwin
* | mingw
* | pw32
* | cegcc
*)
9076 # When not using gcc, we currently assume that we are using
9077 # Microsoft Visual C++.
9078 # hardcode_libdir_flag_spec is actually meaningless, as there is
9079 # no search path for DLLs.
9080 hardcode_libdir_flag_spec
=' '
9081 allow_undefined_flag
=unsupported
9082 # Tell ltmain to make .lib files, not .a files.
9084 # Tell ltmain to make .dll files, not .so files.
9086 # FIXME: Setting linknames here is a bad hack.
9087 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9088 # The linker will automatically build a .lib file if we build a DLL.
9089 old_archive_from_new_cmds
='true'
9090 # FIXME: Should let the user specify the lib program.
9091 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9092 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9093 enable_shared_with_static_runtimes
=yes
9096 darwin
* | rhapsody
*)
9099 archive_cmds_need_lc
=no
9101 hardcode_automatic
=yes
9102 hardcode_shlibpath_var
=unsupported
9103 whole_archive_flag_spec
=''
9104 link_all_deplibs
=yes
9105 allow_undefined_flag
="$_lt_dar_allow_undefined"
9106 case $cc_basename in
9107 ifort
*) _lt_dar_can_shared
=yes ;;
9108 *) _lt_dar_can_shared
=$GCC ;;
9110 if test "$_lt_dar_can_shared" = "yes"; then
9111 output_verbose_link_cmd
=echo
9112 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9113 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9114 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}"
9115 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}"
9124 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9125 hardcode_libdir_flag_spec
='-L$libdir'
9126 hardcode_shlibpath_var
=no
9133 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9134 # support. Future versions do this automatically, but an explicit c++rt0.o
9135 # does not break anything, and helps significantly (at the cost of a little
9138 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9139 hardcode_libdir_flag_spec
='-R$libdir'
9141 hardcode_shlibpath_var
=no
9144 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9146 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9148 hardcode_minus_L
=yes
9149 hardcode_shlibpath_var
=no
9152 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9153 freebsd
* | dragonfly
*)
9154 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9155 hardcode_libdir_flag_spec
='-R$libdir'
9157 hardcode_shlibpath_var
=no
9161 if test "$GCC" = yes; then
9162 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'
9164 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'
9166 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9167 hardcode_libdir_separator
=:
9170 # hardcode_minus_L: Not really in the search PATH,
9171 # but as the default location of the library.
9172 hardcode_minus_L
=yes
9173 export_dynamic_flag_spec
='${wl}-E'
9177 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9178 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9180 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9182 if test "$with_gnu_ld" = no
; then
9183 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9184 hardcode_libdir_flag_spec_ld
='+b $libdir'
9185 hardcode_libdir_separator
=:
9187 hardcode_direct_absolute
=yes
9188 export_dynamic_flag_spec
='${wl}-E'
9189 # hardcode_minus_L: Not really in the search PATH,
9190 # but as the default location of the library.
9191 hardcode_minus_L
=yes
9196 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9199 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9202 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9205 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9211 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9214 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9217 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9221 if test "$with_gnu_ld" = no
; then
9222 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9223 hardcode_libdir_separator
=:
9228 hardcode_shlibpath_var
=no
9232 hardcode_direct_absolute
=yes
9233 export_dynamic_flag_spec
='${wl}-E'
9235 # hardcode_minus_L: Not really in the search PATH,
9236 # but as the default location of the library.
9237 hardcode_minus_L
=yes
9243 irix5
* | irix6
* | nonstopux
*)
9244 if test "$GCC" = yes; then
9245 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'
9246 # Try to use the -exported_symbol ld option, if it does not
9247 # work, assume that -exports_file does not work either and
9248 # implicitly export all symbols.
9249 save_LDFLAGS
="$LDFLAGS"
9250 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9251 cat >conftest.
$ac_ext <<_ACEOF
9254 rm -f conftest.
$ac_objext conftest
$ac_exeext
9255 if { (ac_try
="$ac_link"
9257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9261 $as_echo "$ac_try_echo") >&5
9262 (eval "$ac_link") 2>conftest.er1
9264 grep -v '^ *+' conftest.er1 >conftest.err
9266 cat conftest.err >&5
9267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } && {
9269 test -z "$ac_c_werror_flag" ||
9270 test ! -s conftest.err
9271 } && test -s conftest$ac_exeext && {
9272 test "$cross_compiling" = yes ||
9273 $as_test_x conftest$ac_exeext
9275 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'
9278 $as_echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9284 rm -rf conftest.dSYM
9285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9286 conftest$ac_exeext conftest.$ac_ext
9287 LDFLAGS="$save_LDFLAGS"
9289 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'
9290 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'
9292 archive_cmds_need_lc='no'
9293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294 hardcode_libdir_separator=:
9296 link_all_deplibs=yes
9300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9305 hardcode_libdir_flag_spec='-R$libdir'
9307 hardcode_shlibpath_var=no
9311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314 hardcode_libdir_separator=:
9315 hardcode_shlibpath_var=no
9322 if test -f /usr/libexec/ld.so; then
9324 hardcode_shlibpath_var=no
9325 hardcode_direct_absolute=yes
9326 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9327 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9328 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9330 export_dynamic_flag_spec='${wl}-E'
9333 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9335 hardcode_libdir_flag_spec='-R$libdir'
9338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9339 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9349 hardcode_libdir_flag_spec='-L$libdir'
9350 hardcode_minus_L=yes
9351 allow_undefined_flag=unsupported
9352 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'
9353 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9357 if test "$GCC" = yes; then
9358 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9359 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'
9361 allow_undefined_flag=' -expect_unresolved \*'
9362 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'
9364 archive_cmds_need_lc='no'
9365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366 hardcode_libdir_separator=:
9369 osf4* | osf5*) # as osf3* with the addition of -msym flag
9370 if test "$GCC" = yes; then
9371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9372 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'
9373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9375 allow_undefined_flag=' -expect_unresolved \*'
9376 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'
9377 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~
9378 $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'
9380 # Both c and cxx compiler support -rpath directly
9381 hardcode_libdir_flag_spec='-rpath $libdir'
9383 archive_cmds_need_lc='no'
9384 hardcode_libdir_separator=:
9388 no_undefined_flag=' -z defs'
9389 if test "$GCC" = yes; then
9391 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9393 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9395 case `$CC -V 2>&1` in
9398 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9400 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9404 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9405 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9406 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9410 hardcode_libdir_flag_spec='-R$libdir'
9411 hardcode_shlibpath_var=no
9413 solaris2.[0-5] | solaris2.[0-5].*) ;;
9415 # The compiler driver will combine and reorder linker options,
9416 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9417 # but is careful enough not to reorder.
9418 # Supported since Solaris 2.6 (maybe 2.5.1?)
9419 if test "$GCC" = yes; then
9420 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9422 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9426 link_all_deplibs
=yes
9430 if test "x$host_vendor" = xsequent
; then
9431 # Use $CC to link under sequent, because it throws in some extra .o
9432 # files that make .init and .fini sections work.
9433 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9435 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9437 hardcode_libdir_flag_spec
='-L$libdir'
9439 hardcode_minus_L
=yes
9440 hardcode_shlibpath_var
=no
9444 case $host_vendor in
9446 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447 hardcode_direct
=yes # is this really true???
9450 ## LD is ld it makes a PLAMLIB
9451 ## CC just makes a GrossModule.
9452 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9453 reload_cmds
='$CC -r -o $output$reload_objs'
9457 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9458 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9461 runpath_var
='LD_RUN_PATH'
9462 hardcode_shlibpath_var
=no
9466 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_shlibpath_var
=no
9468 export_dynamic_flag_spec
='-Bexport'
9472 if test -d /usr
/nec
; then
9473 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_shlibpath_var
=no
9475 runpath_var
=LD_RUN_PATH
9476 hardcode_runpath_var
=yes
9481 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9482 no_undefined_flag
='${wl}-z,text'
9483 archive_cmds_need_lc
=no
9484 hardcode_shlibpath_var
=no
9485 runpath_var
='LD_RUN_PATH'
9487 if test "$GCC" = yes; then
9488 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9489 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9492 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 sysv5
* | sco3.2v5
* | sco5v6
*)
9497 # Note: We can NOT use -z defs as we might desire, because we do not
9498 # link with -lc, and that would cause any symbols used from libc to
9499 # always be unresolved, which means just about no library would
9500 # ever link correctly. If we're not using GNU ld we use -z text
9501 # though, which does catch some bad symbols but isn't as heavy-handed
9503 no_undefined_flag
='${wl}-z,text'
9504 allow_undefined_flag
='${wl}-z,nodefs'
9505 archive_cmds_need_lc
=no
9506 hardcode_shlibpath_var
=no
9507 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9508 hardcode_libdir_separator
=':'
9509 link_all_deplibs
=yes
9510 export_dynamic_flag_spec
='${wl}-Bexport'
9511 runpath_var
='LD_RUN_PATH'
9513 if test "$GCC" = yes; then
9514 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9515 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9523 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9524 hardcode_libdir_flag_spec
='-L$libdir'
9525 hardcode_shlibpath_var
=no
9533 if test x
$host_vendor = xsni
; then
9535 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9536 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9542 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9543 $as_echo "$ld_shlibs" >&6; }
9544 test "$ld_shlibs" = no
&& can_build_shared
=no
9546 with_gnu_ld
=$with_gnu_ld
9563 # Do we need to explicitly link libc?
9565 case "x$archive_cmds_need_lc" in
9567 # Assume -lc should be added
9568 archive_cmds_need_lc
=yes
9570 if test "$enable_shared" = yes && test "$GCC" = yes; then
9571 case $archive_cmds in
9573 # FIXME: we may have to deal with multi-command sequences.
9576 # Test whether the compiler implicitly links with -lc since on some
9577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9578 # to ld, don't add -lc before -lgcc.
9579 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9580 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9582 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9585 (eval $ac_compile) 2>&5
9587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } 2>conftest.err
; then
9591 libobjs
=conftest.
$ac_objext
9593 wl
=$lt_prog_compiler_wl
9594 pic_flag
=$lt_prog_compiler_pic
9600 lt_save_allow_undefined_flag
=$allow_undefined_flag
9601 allow_undefined_flag
=
9602 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9603 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }
9608 archive_cmds_need_lc
=no
9610 archive_cmds_need_lc
=yes
9612 allow_undefined_flag
=$lt_save_allow_undefined_flag
9614 cat conftest.err
1>&5
9617 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9618 $as_echo "$archive_cmds_need_lc" >&6; }
9781 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9782 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9784 if test "$GCC" = yes; then
9786 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9787 *) lt_awk_arg
="/^libraries:/" ;;
9789 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9790 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9791 # if the path contains ";" then we assume it to be the separator
9792 # otherwise default to the standard path separator (i.e. ":") - it is
9793 # assumed that no part of a normal pathname contains ";" but that should
9794 # okay in the real world where ";" in dirpaths is itself problematic.
9795 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9797 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9799 # Ok, now we have the path, separated by spaces, we can step through it
9800 # and add multilib dir if necessary.
9801 lt_tmp_lt_search_path_spec
=
9802 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9803 for lt_sys_path
in $lt_search_path_spec; do
9804 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9805 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9807 test -d "$lt_sys_path" && \
9808 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9811 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9812 BEGIN {RS=" "; FS="/|\n";} {
9815 for (lt_i = NF; lt_i > 0; lt_i--) {
9816 if ($lt_i != "" && $lt_i != ".") {
9817 if ($lt_i == "..") {
9820 if (lt_count == 0) {
9821 lt_foo="/" $lt_i lt_foo;
9828 if (lt_foo != "") { lt_freq[lt_foo]++; }
9829 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9831 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9833 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9836 libname_spec
='lib$name'
9844 shlibpath_overrides_runpath
=unknown
9846 dynamic_linker
="$host_os ld.so"
9847 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9848 need_lib_prefix
=unknown
9849 hardcode_into_libs
=no
9851 # when you set need_version to no, make sure it does not cause -set_version
9852 # flags to be left without arguments
9853 need_version
=unknown
9858 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9859 shlibpath_var
=LIBPATH
9861 # AIX 3 has no versioning support, so we append a major version to the name.
9862 soname_spec
='${libname}${release}${shared_ext}$major'
9869 hardcode_into_libs
=yes
9870 if test "$host_cpu" = ia64
; then
9871 # AIX 5 supports IA64
9872 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9873 shlibpath_var
=LD_LIBRARY_PATH
9875 # With GCC up to 2.95.x, collect2 would create an import file
9876 # for dependence libraries. The import file would start with
9877 # the line `#! .'. This would cause the generated library to
9878 # depend on `.', always an invalid library. This was fixed in
9879 # development snapshots of GCC prior to 3.0.
9881 aix4 | aix4.
[01] | aix4.
[01].
*)
9882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9884 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9892 # soname into executable. Probably we can add versioning support to
9893 # collect2, so additional links can be useful in future.
9894 if test "$aix_use_runtimelinking" = yes; then
9895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9896 # instead of lib<name>.a to let people know that these are not
9897 # typical AIX shared libraries.
9898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900 # We preserve .a as extension for shared libraries through AIX4.2
9901 # and later when we are not doing run time linking.
9902 library_names_spec
='${libname}${release}.a $libname.a'
9903 soname_spec
='${libname}${release}${shared_ext}$major'
9905 shlibpath_var
=LIBPATH
9912 # Since July 2007 AmigaOS4 officially supports .so libraries.
9913 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917 library_names_spec
='$libname.ixlibrary $libname.a'
9918 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9919 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'
9925 library_names_spec
='${libname}${shared_ext}'
9926 dynamic_linker
="$host_os ld.so"
9927 shlibpath_var
=LIBRARY_PATH
9933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 soname_spec
='${libname}${release}${shared_ext}$major'
9935 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9936 shlibpath_var
=LD_LIBRARY_PATH
9937 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9938 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9939 # the default ld.so.conf also contains /usr/contrib/lib and
9940 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9941 # libtool to hard-code these into programs
9944 cygwin
* | mingw
* | pw32
* | cegcc
*)
9945 version_type
=windows
9950 case $GCC,$host_os in
9951 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9952 library_names_spec
='$libname.dll.a'
9953 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9954 postinstall_cmds
='base_file=`basename \${file}`~
9955 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9956 dldir=$destdir/`dirname \$dlpath`~
9957 test -d \$dldir || mkdir -p \$dldir~
9958 $install_prog $dir/$dlname \$dldir/$dlname~
9959 chmod a+x \$dldir/$dlname~
9960 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9961 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9963 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9964 dlpath=$dir/\$dldll~
9966 shlibpath_overrides_runpath
=yes
9970 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9971 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9972 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9975 # MinGW DLLs use traditional 'lib' prefix
9976 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9977 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9978 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9979 # It is most probably a Windows format PATH printed by
9980 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9981 # path with ; separators, and with drive letters. We can handle the
9982 # drive letters (cygwin fileutils understands them), so leave them,
9983 # especially as we might pass files found there to a mingw objdump,
9984 # which wouldn't understand a cygwinified path. Ahh.
9985 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9987 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9991 # pw32 DLLs use 'pw' prefix rather than 'lib'
9992 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9998 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10001 dynamic_linker
='Win32 ld.exe'
10002 # FIXME: first we should search . and the directory the executable is in
10006 darwin
* | rhapsody
*)
10007 dynamic_linker
="$host_os dyld"
10008 version_type
=darwin
10011 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10012 soname_spec
='${libname}${release}${major}$shared_ext'
10013 shlibpath_overrides_runpath
=yes
10014 shlibpath_var
=DYLD_LIBRARY_PATH
10015 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10017 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10018 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10025 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10026 soname_spec
='${libname}${release}${shared_ext}$major'
10027 shlibpath_var
=LD_LIBRARY_PATH
10034 freebsd
* | dragonfly
*)
10035 # DragonFly does not have aout. When/if they implement a new
10036 # versioning mechanism, adjust this.
10037 if test -x /usr
/bin
/objformat
; then
10038 objformat
=`/usr/bin/objformat`
10041 freebsd
[123]*) objformat
=aout
;;
10042 *) objformat
=elf
;;
10045 version_type
=freebsd-
$objformat
10046 case $version_type in
10048 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10053 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10057 shlibpath_var
=LD_LIBRARY_PATH
10060 shlibpath_overrides_runpath
=yes
10062 freebsd3.
[01]* | freebsdelf3.
[01]*)
10063 shlibpath_overrides_runpath
=yes
10064 hardcode_into_libs
=yes
10066 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10067 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10068 shlibpath_overrides_runpath
=no
10069 hardcode_into_libs
=yes
10071 *) # from 4.6 on, and DragonFly
10072 shlibpath_overrides_runpath
=yes
10073 hardcode_into_libs
=yes
10082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10083 soname_spec
='${libname}${release}${shared_ext}$major'
10084 shlibpath_var
=LD_LIBRARY_PATH
10085 hardcode_into_libs
=yes
10088 hpux9
* | hpux10
* | hpux11
*)
10089 # Give a soname corresponding to the major version so that dld.sl refuses to
10090 # link against other versions.
10097 hardcode_into_libs
=yes
10098 dynamic_linker
="$host_os dld.so"
10099 shlibpath_var
=LD_LIBRARY_PATH
10100 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 soname_spec
='${libname}${release}${shared_ext}$major'
10103 if test "X$HPUX_IA64_MODE" = X32
; then
10104 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10106 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10108 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10112 hardcode_into_libs
=yes
10113 dynamic_linker
="$host_os dld.sl"
10114 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10115 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 soname_spec
='${libname}${release}${shared_ext}$major'
10118 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10119 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10123 dynamic_linker
="$host_os dld.sl"
10124 shlibpath_var
=SHLIB_PATH
10125 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127 soname_spec
='${libname}${release}${shared_ext}$major'
10130 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10131 postinstall_cmds
='chmod 555 $lib'
10138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10139 soname_spec
='${libname}${release}${shared_ext}$major'
10140 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10141 shlibpath_var
=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath
=no
10143 hardcode_into_libs
=yes
10146 irix5
* | irix6
* | nonstopux
*)
10148 nonstopux
*) version_type
=nonstopux
;;
10150 if test "$lt_cv_prog_gnu_ld" = yes; then
10158 soname_spec
='${libname}${release}${shared_ext}$major'
10159 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10161 irix5
* | nonstopux
*)
10162 libsuff
= shlibsuff
=
10165 case $LD in # libtool.m4 will add one of these switches to LD
10166 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10167 libsuff
= shlibsuff
= libmagic
=32-bit;;
10168 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10169 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10170 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10171 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10172 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10176 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10177 shlibpath_overrides_runpath
=no
10178 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10179 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10180 hardcode_into_libs
=yes
10183 # No shared lib support for Linux oldld, aout, or coff.
10184 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10188 # This must be Linux ELF.
10189 linux
* | k
*bsd
*-gnu)
10193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194 soname_spec
='${libname}${release}${shared_ext}$major'
10195 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10196 shlibpath_var
=LD_LIBRARY_PATH
10197 shlibpath_overrides_runpath
=no
10198 # Some binutils ld are patched to set DT_RUNPATH
10199 save_LDFLAGS
=$LDFLAGS
10200 save_libdir
=$libdir
10201 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10202 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10203 cat >conftest.
$ac_ext <<_ACEOF
10206 cat confdefs.h
>>conftest.
$ac_ext
10207 cat >>conftest.
$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10218 rm -f conftest.
$ac_objext conftest
$ac_exeext
10219 if { (ac_try
="$ac_link"
10220 case "(($ac_try" in
10221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10225 $as_echo "$ac_try_echo") >&5
10226 (eval "$ac_link") 2>conftest.er1
10228 grep -v '^ *+' conftest.er1 >conftest.err
10230 cat conftest.err >&5
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && {
10233 test -z "$ac_c_werror_flag" ||
10234 test ! -s conftest.err
10235 } && test -s conftest$ac_exeext && {
10236 test "$cross_compiling" = yes ||
10237 $as_test_x conftest$ac_exeext
10239 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10240 shlibpath_overrides_runpath=yes
10244 $as_echo "$as_me: failed program was:" >&5
10245 sed 's/^/| /' conftest.$ac_ext >&5
10250 rm -rf conftest.dSYM
10251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10252 conftest$ac_exeext conftest.$ac_ext
10253 LDFLAGS=$save_LDFLAGS
10254 libdir=$save_libdir
10256 # This implies no fast_install, which is unacceptable.
10257 # Some rework will be needed to allow for fast_install
10258 # before this can be enabled.
10259 hardcode_into_libs=yes
10261 # Add ABI-specific directories to the system library path.
10262 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10264 # Append ld.so.conf contents to the search path
10265 if test -f /etc/ld.so.conf; then
10266 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' ' '`
10267 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10270 # We used to test for /lib/ld.so.1 and disable shared libraries on
10271 # powerpc, because MkLinux only supported shared libraries with the
10272 # GNU dynamic linker. Since this was broken with cross compilers,
10273 # most powerpc-linux boxes support dynamic linking these days and
10274 # people can always --disable-shared, the test was removed, and we
10275 # assume the GNU/Linux dynamic linker is in use.
10276 dynamic_linker='GNU/Linux ld.so'
10283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10286 dynamic_linker='NetBSD (a.out) ld.so'
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 dynamic_linker='NetBSD ld.elf_so'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 shlibpath_overrides_runpath=yes
10294 hardcode_into_libs=yes
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 shlibpath_overrides_runpath=yes
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309 soname_spec='${libname}${release}${shared_ext}$major'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 shlibpath_overrides_runpath=no
10312 hardcode_into_libs=yes
10313 dynamic_linker='ldqnx.so'
10318 sys_lib_dlsearch_path_spec="/usr/lib"
10320 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10322 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10323 *) need_version=no ;;
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10330 openbsd2.[89] | openbsd2.[89].*)
10331 shlibpath_overrides_runpath=no
10334 shlibpath_overrides_runpath=yes
10338 shlibpath_overrides_runpath=yes
10343 libname_spec='$name'
10346 library_names_spec='$libname${shared_ext} $libname.a'
10347 dynamic_linker='OS/2 ld.exe'
10348 shlibpath_var=LIBPATH
10351 osf3* | osf4* | osf5*)
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=yes
10374 hardcode_into_libs=yes
10375 # ldd complains unless libraries are executable
10376 postinstall_cmds='chmod +x $lib'
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10382 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10383 shlibpath_var=LD_LIBRARY_PATH
10384 shlibpath_overrides_runpath=yes
10385 if test "$with_gnu_ld" = yes; then
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 case $host_vendor in
10398 shlibpath_overrides_runpath=no
10400 runpath_var=LD_RUN_PATH
10408 shlibpath_overrides_runpath=no
10409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10415 if test -d /usr/nec ;then
10417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10418 soname_spec='$libname${shared_ext}.$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10424 version_type=freebsd-elf
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=yes
10431 hardcode_into_libs=yes
10432 if test "$with_gnu_ld" = yes; then
10433 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10438 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10442 sys_lib_dlsearch_path_spec='/usr/lib'
10446 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 shlibpath_var=LD_LIBRARY_PATH
10452 shlibpath_overrides_runpath=no
10453 hardcode_into_libs=yes
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 shlibpath_var=LD_LIBRARY_PATH
10467 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10468 $as_echo "$dynamic_linker" >&6; }
10469 test "$dynamic_linker" = no && can_build_shared=no
10471 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10472 if test "$GCC" = yes; then
10473 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10476 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10477 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10479 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10480 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10569 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10570 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10572 if test -n "$hardcode_libdir_flag_spec" ||
10573 test -n "$runpath_var" ||
10574 test "X$hardcode_automatic" = "Xyes" ; then
10576 # We can hardcode non-existent directories.
10577 if test "$hardcode_direct" != no &&
10578 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10579 # have to relink, otherwise we might link with an installed library
10580 # when we should be linking with a yet-to-be-installed one
10581 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10582 test "$hardcode_minus_L" != no; then
10583 # Linking always hardcodes the temporary library directory.
10584 hardcode_action=relink
10586 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10587 hardcode_action=immediate
10590 # We cannot hardcode anything, or else we can only hardcode existing
10592 hardcode_action=unsupported
10594 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10595 $as_echo "$hardcode_action" >&6; }
10597 if test "$hardcode_action" = relink ||
10598 test "$inherit_rpath" = yes; then
10599 # Fast installation is not supported
10600 enable_fast_install=no
10601 elif test "$shlibpath_overrides_runpath" = yes ||
10602 test "$enable_shared" = no; then
10603 # Fast installation is not necessary
10604 enable_fast_install=needless
10612 if test "x$enable_dlopen" != xyes; then
10613 enable_dlopen=unknown
10614 enable_dlopen_self=unknown
10615 enable_dlopen_self_static=unknown
10622 lt_cv_dlopen="load_add_on"
10624 lt_cv_dlopen_self=yes
10627 mingw* | pw32* | cegcc*)
10628 lt_cv_dlopen="LoadLibrary"
10633 lt_cv_dlopen="dlopen"
10638 # if libdl is installed we need to link against it
10639 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10640 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10641 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10642 $as_echo_n "(cached) " >&6
10644 ac_check_lib_save_LIBS=$LIBS
10646 cat >conftest.$ac_ext <<_ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10668 rm -f conftest.$ac_objext conftest$ac_exeext
10669 if { (ac_try="$ac_link"
10670 case "(($ac_try" in
10671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10672 *) ac_try_echo
=$ac_try;;
10674 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10675 $as_echo "$ac_try_echo") >&5
10676 (eval "$ac_link") 2>conftest.er1
10678 grep -v '^ *+' conftest.er1
>conftest.err
10680 cat conftest.err
>&5
10681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } && {
10683 test -z "$ac_c_werror_flag" ||
10684 test ! -s conftest.err
10685 } && test -s conftest
$ac_exeext && {
10686 test "$cross_compiling" = yes ||
10687 $as_test_x conftest
$ac_exeext
10689 ac_cv_lib_dl_dlopen
=yes
10691 $as_echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.
$ac_ext >&5
10694 ac_cv_lib_dl_dlopen
=no
10697 rm -rf conftest.dSYM
10698 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10699 conftest
$ac_exeext conftest.
$ac_ext
10700 LIBS
=$ac_check_lib_save_LIBS
10702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10703 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10704 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10705 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10708 lt_cv_dlopen
="dyld"
10710 lt_cv_dlopen_self
=yes
10717 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10718 $as_echo_n "checking for shl_load... " >&6; }
10719 if test "${ac_cv_func_shl_load+set}" = set; then
10720 $as_echo_n "(cached) " >&6
10722 cat >conftest.
$ac_ext <<_ACEOF
10725 cat confdefs.h
>>conftest.
$ac_ext
10726 cat >>conftest.
$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10728 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10730 #define shl_load innocuous_shl_load
10732 /* System header to define __stub macros and hopefully few prototypes,
10733 which can conflict with char shl_load (); below.
10734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10735 <limits.h> exists even on freestanding compilers. */
10738 # include <limits.h>
10740 # include <assert.h>
10745 /* Override any GCC internal prototype to avoid an error.
10746 Use char because int might match the return type of a GCC
10747 builtin and then its argument prototype would still apply. */
10752 /* The GNU C library defines this for functions which it implements
10753 to always fail with ENOSYS. Some functions are actually named
10754 something starting with __ and the normal name is an alias. */
10755 #if defined __stub_shl_load || defined __stub___shl_load
10762 return shl_load ();
10767 rm -f conftest.
$ac_objext conftest
$ac_exeext
10768 if { (ac_try
="$ac_link"
10769 case "(($ac_try" in
10770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10774 $as_echo "$ac_try_echo") >&5
10775 (eval "$ac_link") 2>conftest.er1
10777 grep -v '^ *+' conftest.er1 >conftest.err
10779 cat conftest.err >&5
10780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } && {
10782 test -z "$ac_c_werror_flag" ||
10783 test ! -s conftest.err
10784 } && test -s conftest$ac_exeext && {
10785 test "$cross_compiling" = yes ||
10786 $as_test_x conftest$ac_exeext
10788 ac_cv_func_shl_load=yes
10790 $as_echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_cv_func_shl_load=no
10796 rm -rf conftest.dSYM
10797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10798 conftest$ac_exeext conftest.$ac_ext
10800 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10801 $as_echo "$ac_cv_func_shl_load" >&6; }
10802 if test "x$ac_cv_func_shl_load" = x""yes; then
10803 lt_cv_dlopen="shl_load"
10805 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10806 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10807 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10808 $as_echo_n "(cached) " >&6
10810 ac_check_lib_save_LIBS=$LIBS
10812 cat >conftest.$ac_ext <<_ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10819 /* Override any GCC internal prototype to avoid an error.
10820 Use char because int might match the return type of a GCC
10821 builtin and then its argument prototype would still apply. */
10829 return shl_load ();
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (ac_try="$ac_link"
10836 case "(($ac_try" in
10837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10838 *) ac_try_echo
=$ac_try;;
10840 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10841 $as_echo "$ac_try_echo") >&5
10842 (eval "$ac_link") 2>conftest.er1
10844 grep -v '^ *+' conftest.er1
>conftest.err
10846 cat conftest.err
>&5
10847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } && {
10849 test -z "$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 } && test -s conftest
$ac_exeext && {
10852 test "$cross_compiling" = yes ||
10853 $as_test_x conftest
$ac_exeext
10855 ac_cv_lib_dld_shl_load
=yes
10857 $as_echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.
$ac_ext >&5
10860 ac_cv_lib_dld_shl_load
=no
10863 rm -rf conftest.dSYM
10864 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10865 conftest
$ac_exeext conftest.
$ac_ext
10866 LIBS
=$ac_check_lib_save_LIBS
10868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10869 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10870 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10871 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10873 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10874 $as_echo_n "checking for dlopen... " >&6; }
10875 if test "${ac_cv_func_dlopen+set}" = set; then
10876 $as_echo_n "(cached) " >&6
10878 cat >conftest.
$ac_ext <<_ACEOF
10881 cat confdefs.h
>>conftest.
$ac_ext
10882 cat >>conftest.
$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10884 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10886 #define dlopen innocuous_dlopen
10888 /* System header to define __stub macros and hopefully few prototypes,
10889 which can conflict with char dlopen (); below.
10890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10891 <limits.h> exists even on freestanding compilers. */
10894 # include <limits.h>
10896 # include <assert.h>
10901 /* Override any GCC internal prototype to avoid an error.
10902 Use char because int might match the return type of a GCC
10903 builtin and then its argument prototype would still apply. */
10908 /* The GNU C library defines this for functions which it implements
10909 to always fail with ENOSYS. Some functions are actually named
10910 something starting with __ and the normal name is an alias. */
10911 #if defined __stub_dlopen || defined __stub___dlopen
10923 rm -f conftest.
$ac_objext conftest
$ac_exeext
10924 if { (ac_try
="$ac_link"
10925 case "(($ac_try" in
10926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10930 $as_echo "$ac_try_echo") >&5
10931 (eval "$ac_link") 2>conftest.er1
10933 grep -v '^ *+' conftest.er1 >conftest.err
10935 cat conftest.err >&5
10936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && {
10938 test -z "$ac_c_werror_flag" ||
10939 test ! -s conftest.err
10940 } && test -s conftest$ac_exeext && {
10941 test "$cross_compiling" = yes ||
10942 $as_test_x conftest$ac_exeext
10944 ac_cv_func_dlopen=yes
10946 $as_echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10949 ac_cv_func_dlopen=no
10952 rm -rf conftest.dSYM
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954 conftest$ac_exeext conftest.$ac_ext
10956 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10957 $as_echo "$ac_cv_func_dlopen" >&6; }
10958 if test "x$ac_cv_func_dlopen" = x""yes; then
10959 lt_cv_dlopen="dlopen"
10961 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10962 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10964 $as_echo_n "(cached) " >&6
10966 ac_check_lib_save_LIBS=$LIBS
10968 cat >conftest.$ac_ext <<_ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10975 /* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10990 rm -f conftest.$ac_objext conftest$ac_exeext
10991 if { (ac_try="$ac_link"
10992 case "(($ac_try" in
10993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10994 *) ac_try_echo
=$ac_try;;
10996 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10997 $as_echo "$ac_try_echo") >&5
10998 (eval "$ac_link") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1
>conftest.err
11002 cat conftest.err
>&5
11003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_c_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest
$ac_exeext && {
11008 test "$cross_compiling" = yes ||
11009 $as_test_x conftest
$ac_exeext
11011 ac_cv_lib_dl_dlopen
=yes
11013 $as_echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.
$ac_ext >&5
11016 ac_cv_lib_dl_dlopen
=no
11019 rm -rf conftest.dSYM
11020 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11021 conftest
$ac_exeext conftest.
$ac_ext
11022 LIBS
=$ac_check_lib_save_LIBS
11024 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11025 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11026 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
11027 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11029 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11030 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11031 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11032 $as_echo_n "(cached) " >&6
11034 ac_check_lib_save_LIBS
=$LIBS
11035 LIBS
="-lsvld $LIBS"
11036 cat >conftest.
$ac_ext <<_ACEOF
11039 cat confdefs.h
>>conftest.
$ac_ext
11040 cat >>conftest.
$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11043 /* Override any GCC internal prototype to avoid an error.
11044 Use char because int might match the return type of a GCC
11045 builtin and then its argument prototype would still apply. */
11058 rm -f conftest.
$ac_objext conftest
$ac_exeext
11059 if { (ac_try
="$ac_link"
11060 case "(($ac_try" in
11061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066 (eval "$ac_link") 2>conftest.er1
11068 grep -v '^ *+' conftest.er1 >conftest.err
11070 cat conftest.err >&5
11071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } && {
11073 test -z "$ac_c_werror_flag" ||
11074 test ! -s conftest.err
11075 } && test -s conftest$ac_exeext && {
11076 test "$cross_compiling" = yes ||
11077 $as_test_x conftest$ac_exeext
11079 ac_cv_lib_svld_dlopen=yes
11081 $as_echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 ac_cv_lib_svld_dlopen=no
11087 rm -rf conftest.dSYM
11088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11089 conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11093 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11094 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11097 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11098 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11099 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11100 $as_echo_n "(cached) " >&6
11102 ac_check_lib_save_LIBS=$LIBS
11104 cat >conftest.$ac_ext <<_ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11111 /* Override any GCC internal prototype to avoid an error.
11112 Use char because int might match the return type of a GCC
11113 builtin and then its argument prototype would still apply. */
11121 return dld_link ();
11126 rm -f conftest.$ac_objext conftest$ac_exeext
11127 if { (ac_try="$ac_link"
11128 case "(($ac_try" in
11129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11130 *) ac_try_echo
=$ac_try;;
11132 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11133 $as_echo "$ac_try_echo") >&5
11134 (eval "$ac_link") 2>conftest.er1
11136 grep -v '^ *+' conftest.er1
>conftest.err
11138 cat conftest.err
>&5
11139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } && {
11141 test -z "$ac_c_werror_flag" ||
11142 test ! -s conftest.err
11143 } && test -s conftest
$ac_exeext && {
11144 test "$cross_compiling" = yes ||
11145 $as_test_x conftest
$ac_exeext
11147 ac_cv_lib_dld_dld_link
=yes
11149 $as_echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.
$ac_ext >&5
11152 ac_cv_lib_dld_dld_link
=no
11155 rm -rf conftest.dSYM
11156 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11157 conftest
$ac_exeext conftest.
$ac_ext
11158 LIBS
=$ac_check_lib_save_LIBS
11160 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11161 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11162 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11163 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11184 if test "x$lt_cv_dlopen" != xno
; then
11190 case $lt_cv_dlopen in
11192 save_CPPFLAGS
="$CPPFLAGS"
11193 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11195 save_LDFLAGS
="$LDFLAGS"
11196 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11199 LIBS
="$lt_cv_dlopen_libs $LIBS"
11201 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11202 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11203 if test "${lt_cv_dlopen_self+set}" = set; then
11204 $as_echo_n "(cached) " >&6
11206 if test "$cross_compiling" = yes; then :
11207 lt_cv_dlopen_self
=cross
11209 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11210 lt_status
=$lt_dlunknown
11211 cat > conftest.
$ac_ext <<_LT_EOF
11212 #line 11212 "configure"
11213 #include "confdefs.h"
11222 # define LT_DLGLOBAL RTLD_GLOBAL
11225 # define LT_DLGLOBAL DL_GLOBAL
11227 # define LT_DLGLOBAL 0
11231 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11232 find out it does not work in some platform. */
11233 #ifndef LT_DLLAZY_OR_NOW
11235 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11238 # define LT_DLLAZY_OR_NOW DL_LAZY
11241 # define LT_DLLAZY_OR_NOW RTLD_NOW
11244 # define LT_DLLAZY_OR_NOW DL_NOW
11246 # define LT_DLLAZY_OR_NOW 0
11253 void fnord() { int i=42;}
11256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11257 int status = $lt_dlunknown;
11261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11262 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11263 /* dlclose (self); */
11271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11272 (eval $ac_link) 2>&5
11274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11276 (.
/conftest
; exit; ) >&5 2>/dev
/null
11278 case x
$lt_status in
11279 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11280 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11281 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11284 # compilation failed
11285 lt_cv_dlopen_self
=no
11292 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11293 $as_echo "$lt_cv_dlopen_self" >&6; }
11295 if test "x$lt_cv_dlopen_self" = xyes
; then
11296 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11297 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11298 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11299 if test "${lt_cv_dlopen_self_static+set}" = set; then
11300 $as_echo_n "(cached) " >&6
11302 if test "$cross_compiling" = yes; then :
11303 lt_cv_dlopen_self_static
=cross
11305 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11306 lt_status
=$lt_dlunknown
11307 cat > conftest.
$ac_ext <<_LT_EOF
11308 #line 11308 "configure"
11309 #include "confdefs.h"
11318 # define LT_DLGLOBAL RTLD_GLOBAL
11321 # define LT_DLGLOBAL DL_GLOBAL
11323 # define LT_DLGLOBAL 0
11327 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11328 find out it does not work in some platform. */
11329 #ifndef LT_DLLAZY_OR_NOW
11331 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11334 # define LT_DLLAZY_OR_NOW DL_LAZY
11337 # define LT_DLLAZY_OR_NOW RTLD_NOW
11340 # define LT_DLLAZY_OR_NOW DL_NOW
11342 # define LT_DLLAZY_OR_NOW 0
11349 void fnord() { int i=42;}
11352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11353 int status = $lt_dlunknown;
11357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11359 /* dlclose (self); */
11367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368 (eval $ac_link) 2>&5
11370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11372 (.
/conftest
; exit; ) >&5 2>/dev
/null
11374 case x
$lt_status in
11375 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11376 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11377 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11380 # compilation failed
11381 lt_cv_dlopen_self_static
=no
11388 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11389 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11392 CPPFLAGS
="$save_CPPFLAGS"
11393 LDFLAGS
="$save_LDFLAGS"
11398 case $lt_cv_dlopen_self in
11399 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11400 *) enable_dlopen_self
=unknown
;;
11403 case $lt_cv_dlopen_self_static in
11404 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11405 *) enable_dlopen_self_static
=unknown
;;
11427 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11428 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11429 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11430 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11431 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11432 { $as_echo "$as_me:$LINENO: result: yes" >&5
11433 $as_echo "yes" >&6; }
11435 # FIXME - insert some real tests, host_os isn't really good enough
11438 if test -n "$STRIP" ; then
11439 striplib
="$STRIP -x"
11440 old_striplib
="$STRIP -S"
11441 { $as_echo "$as_me:$LINENO: result: yes" >&5
11442 $as_echo "yes" >&6; }
11444 { $as_echo "$as_me:$LINENO: result: no" >&5
11445 $as_echo "no" >&6; }
11449 { $as_echo "$as_me:$LINENO: result: no" >&5
11450 $as_echo "no" >&6; }
11466 # Report which library types will actually be built
11467 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11468 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11469 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11470 $as_echo "$can_build_shared" >&6; }
11472 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11473 $as_echo_n "checking whether to build shared libraries... " >&6; }
11474 test "$can_build_shared" = "no" && enable_shared
=no
11476 # On AIX, shared libraries and static libraries use the same namespace, and
11477 # are all built from PIC.
11480 test "$enable_shared" = yes && enable_static
=no
11481 if test -n "$RANLIB"; then
11482 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11483 postinstall_cmds
='$RANLIB $lib'
11488 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11489 test "$enable_shared" = yes && enable_static
=no
11493 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11494 $as_echo "$enable_shared" >&6; }
11496 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11497 $as_echo_n "checking whether to build static libraries... " >&6; }
11498 # Make sure either enable_shared or enable_static is yes.
11499 test "$enable_shared" = yes || enable_static
=yes
11500 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11501 $as_echo "$enable_static" >&6; }
11508 ac_cpp
='$CPP $CPPFLAGS'
11509 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11527 ac_config_commands
="$ac_config_commands libtool"
11532 # Only expand once:
11535 # By default we simply use the C compiler to build assembly code.
11537 test "${CCAS+set}" = set || CCAS
=$CC
11538 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11542 depcc
="$CCAS" am_compiler_list
=
11544 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11545 $as_echo_n "checking dependency style of $depcc... " >&6; }
11546 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11547 $as_echo_n "(cached) " >&6
11549 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11550 # We make a subdir and do the tests there. Otherwise we can end up
11551 # making bogus files that we don't know about and never remove. For
11552 # instance it was reported that on HP-UX the gcc test will end up
11553 # making a dummy file named `D' -- because `-MD' means `put the output
11556 # Copy depcomp to subdir because otherwise we won't find it if we're
11557 # using a relative directory.
11558 cp "$am_depcomp" conftest.dir
11560 # We will build objects and dependencies in a subdirectory because
11561 # it helps to detect inapplicable dependency modes. For instance
11562 # both Tru64's cc and ICC support -MD to output dependencies as a
11563 # side effect of compilation, but ICC will put the dependencies in
11564 # the current directory while Tru64 will put them in the object
11568 am_cv_CCAS_dependencies_compiler_type
=none
11569 if test "$am_compiler_list" = ""; then
11570 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11572 am__universal
=false
11575 for depmode
in $am_compiler_list; do
11576 # Setup a source with many dependencies, because some compilers
11577 # like to wrap large dependency lists on column 80 (with \), and
11578 # we should not choose a depcomp mode which is confused by this.
11580 # We need to recreate these files for each test, as the compiler may
11581 # overwrite some of them when testing with obscure command lines.
11582 # This happens at least with the AIX C compiler.
11584 for i
in 1 2 3 4 5 6; do
11585 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11586 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11587 # Solaris 8's {/usr,}/bin/sh.
11588 touch sub
/conftst
$i.h
11590 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11592 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11593 # mode. It turns out that the SunPro C++ compiler does not properly
11594 # handle `-M -o', and we need to detect this. Also, some Intel
11595 # versions had trouble with output in subdirs
11596 am__obj
=sub
/conftest.
${OBJEXT-o}
11597 am__minus_obj
="-o $am__obj"
11600 # This depmode causes a compiler race in universal mode.
11601 test "$am__universal" = false ||
continue
11604 # after this tag, mechanisms are not by side-effect, so they'll
11605 # only be used when explicitly requested
11606 if test "x$enable_dependency_tracking" = xyes
; then
11612 msvisualcpp | msvcmsys
)
11613 # This compiler won't grok `-c -o', but also, the minuso test has
11614 # not run yet. These depmodes are late enough in the game, and
11615 # so weak that their functioning should not be impacted.
11616 am__obj
=conftest.
${OBJEXT-o}
11621 if depmode
=$depmode \
11622 source=sub
/conftest.c object
=$am__obj \
11623 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11624 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11625 >/dev
/null
2>conftest.err
&&
11626 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11627 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11628 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11629 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11630 # icc doesn't choke on unknown options, it will just issue warnings
11631 # or remarks (even with -Werror). So we grep stderr for any message
11632 # that says an option was ignored or not supported.
11633 # When given -MP, icc 7.0 and 7.1 complain thusly:
11634 # icc: Command line warning: ignoring option '-M'; no argument required
11635 # The diagnosis changed in icc 8.0:
11636 # icc: Command line remark: option '-MP' not supported
11637 if (grep 'ignoring option' conftest.err ||
11638 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11639 am_cv_CCAS_dependencies_compiler_type
=$depmode
11646 rm -rf conftest.dir
11648 am_cv_CCAS_dependencies_compiler_type
=none
11652 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11653 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11654 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11657 test "x$enable_dependency_tracking" != xno \
11658 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11659 am__fastdepCCAS_TRUE
=
11660 am__fastdepCCAS_FALSE
='#'
11662 am__fastdepCCAS_TRUE
='#'
11663 am__fastdepCCAS_FALSE
=
11669 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11670 $as_echo_n "checking zfs author... " >&6; }
11671 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11672 $as_echo "$ZFS_META_AUTHOR" >&6; }
11674 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11675 $as_echo_n "checking zfs license... " >&6; }
11676 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11677 $as_echo "$ZFS_META_LICENSE" >&6; }
11681 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11682 $as_echo_n "checking linux distribution... " >&6; }
11683 if test -f /etc
/toss-release
; then
11685 elif test -f /etc
/fedora-release
; then
11687 elif test -f /etc
/redhat-release
; then
11689 elif test -f /etc
/gentoo-release
; then
11691 elif test -f /etc
/arch-release
; then
11693 elif test -f /etc
/SuSE-release
; then
11695 elif test -f /etc
/slackware-version
; then
11697 elif test -f /etc
/lunar.release
; then
11699 elif test -f /etc
/lsb-release
; then
11701 elif test -f /etc
/debian_version
; then
11706 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11707 $as_echo "$VENDOR" >&6; }
11710 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11711 $as_echo_n "checking default package type... " >&6; }
11713 toss
) DEFAULT_PACKAGE
=rpm
;;
11714 redhat
) DEFAULT_PACKAGE
=rpm
;;
11715 fedora
) DEFAULT_PACKAGE
=rpm
;;
11716 gentoo
) DEFAULT_PACKAGE
=tgz
;;
11717 arch
) DEFAULT_PACKAGE
=arch
;;
11718 sles
) DEFAULT_PACKAGE
=rpm
;;
11719 slackware
) DEFAULT_PACKAGE
=tgz
;;
11720 lunar
) DEFAULT_PACKAGE
=tgz
;;
11721 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11722 debian
) DEFAULT_PACKAGE
=deb
;;
11723 *) DEFAULT_PACKAGE
=rpm
;;
11726 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11727 $as_echo "$DEFAULT_PACKAGE" >&6; }
11730 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11731 $as_echo_n "checking default init directory... " >&6; }
11733 arch
) DEFAULT_INIT_DIR
=$sysconfdir/rc.d
;;
11734 *) DEFAULT_INIT_DIR
=$sysconfdir/init.d
;;
11737 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11738 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11741 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11742 $as_echo_n "checking default init script type... " >&6; }
11744 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
11745 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
11746 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
11747 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
11748 arch
) DEFAULT_INIT_SCRIPT
=arch
;;
11749 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
11750 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
11751 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
11752 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
11753 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
11754 *) DEFAULT_INIT_SCRIPT
=lsb
;;
11757 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11758 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11765 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11766 $as_echo_n "checking whether $RPM is available... " >&6; }
11767 if tmp
=$
($RPM --version 2>/dev
/null
); then
11769 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11771 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11772 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11777 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11778 $as_echo "$HAVE_RPM" >&6; }
11783 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11784 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11785 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then
11787 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11789 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11790 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11795 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11796 $as_echo "$HAVE_RPMBUILD" >&6; }
11811 DPKGBUILD
=dpkg-buildpackage
11813 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11814 $as_echo_n "checking whether $DPKG is available... " >&6; }
11815 if tmp
=$
($DPKG --version 2>/dev
/null
); then
11817 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11819 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11820 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11825 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11826 $as_echo "$HAVE_DPKG" >&6; }
11831 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11832 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11833 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then
11835 DPKGBUILD_VERSION
=$
(echo $tmp | \
11836 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11838 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11839 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11844 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11845 $as_echo "$HAVE_DPKGBUILD" >&6; }
11861 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11862 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11863 if tmp
=$
($ALIEN --version 2>/dev
/null
); then
11865 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11867 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11868 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11873 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11874 $as_echo "$HAVE_ALIEN" >&6; }
11884 if test "$VENDOR" = "arch"; then
11889 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11890 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11891 tmp
=$
($PACMAN --version 2>/dev
/null
)
11892 if test -n "$tmp"; then
11894 PACMAN_VERSION
=$
(echo $tmp |
11895 $AWK '/Pacman/ { print $3 }' |
11898 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11899 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11904 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11905 $as_echo "$HAVE_PACMAN" >&6; }
11910 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11911 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11912 tmp
=$
($MAKEPKG --version 2>/dev
/null
)
11913 if test -n "$tmp"; then
11915 MAKEPKG_VERSION
=$
(echo $tmp |
$AWK '/makepkg/ { print $3 }')
11917 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11918 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11923 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11924 $as_echo "$HAVE_MAKEPKG" >&6; }
11941 TARGET_ASM_DIR
=asm-generic
11946 # Check whether --with-config was given.
11947 if test "${with_config+set}" = set; then
11948 withval
=$with_config; ZFS_CONFIG
="$withval"
11951 # Check whether --enable-linux-builtin was given.
11952 if test "${enable_linux_builtin+set}" = set; then
11953 enableval
=$enable_linux_builtin;
11955 enable_linux_builtin
=no
11959 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11960 $as_echo_n "checking zfs config... " >&6; }
11961 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11962 $as_echo "$ZFS_CONFIG" >&6; };
11967 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11968 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11970 saved_flags
="$CFLAGS"
11971 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
11973 if test "$cross_compiling" = yes; then
11974 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11976 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11977 See \`config.log' for more details." >&5
11978 $as_echo "$as_me: error: cannot run test program while cross compiling
11979 See \`config.log' for more details." >&2;}
11980 { (exit 1); exit 1; }; }; }
11982 cat >conftest.
$ac_ext <<_ACEOF
11985 cat confdefs.h
>>conftest.
$ac_ext
11986 cat >>conftest.
$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11997 rm -f conftest
$ac_exeext
11998 if { (ac_try
="$ac_link"
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_link") 2>&5
12007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12009 { (case "(($ac_try" in
12010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12011 *) ac_try_echo
=$ac_try;;
12013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12014 $as_echo "$ac_try_echo") >&5
12015 (eval "$ac_try") 2>&5
12017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; }; then
12020 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12021 { $as_echo "$as_me:$LINENO: result: yes" >&5
12022 $as_echo "yes" >&6; }
12025 $as_echo "$as_me: program exited with status $ac_status" >&5
12026 $as_echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.
$ac_ext >&5
12029 ( exit $ac_status )
12031 NO_UNUSED_BUT_SET_VARIABLE
=
12032 { $as_echo "$as_me:$LINENO: result: no" >&5
12033 $as_echo "no" >&6; }
12036 rm -rf conftest.dSYM
12037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12042 CFLAGS
="$saved_flags"
12047 case "$ZFS_CONFIG" in
12051 # Check whether --with-linux was given.
12052 if test "${with_linux+set}" = set; then
12053 withval
=$with_linux; kernelsrc
="$withval"
12058 # Check whether --with-linux-obj was given.
12059 if test "${with_linux_obj+set}" = set; then
12060 withval
=$with_linux_obj; kernelbuild
="$withval"
12064 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12065 $as_echo_n "checking kernel source directory... " >&6; }
12066 if test -z "$kernelsrc"; then
12068 if test -e "/lib/modules/$(uname -r)/source"; then
12070 headersdir
="/lib/modules/$(uname -r)/source"
12071 sourcelink
=$
(readlink
-f "$headersdir")
12073 elif test -e "/lib/modules/$(uname -r)/build"; then
12075 headersdir
="/lib/modules/$(uname -r)/build"
12076 sourcelink
=$
(readlink
-f "$headersdir")
12080 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
12082 2>/dev
/null |
grep -v obj |
tail -1)
12087 if test -n "$sourcelink" && test -e ${sourcelink}; then
12089 kernelsrc
=`readlink -f ${sourcelink}`
12093 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12094 $as_echo "Not found" >&6; }
12095 { { $as_echo "$as_me:$LINENO: error:
12096 *** Please make sure the kernel devel package for your distribution
12097 *** is installed then try again. If that fails you can specify the
12098 *** location of the kernel source with the '--with-linux=PATH' option." >&5
12099 $as_echo "$as_me: error:
12100 *** Please make sure the kernel devel package for your distribution
12101 *** is installed then try again. If that fails you can specify the
12102 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12103 { (exit 1); exit 1; }; }
12110 if test "$kernelsrc" = "NONE"; then
12120 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12121 $as_echo "$kernelsrc" >&6; }
12122 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12123 $as_echo_n "checking kernel build directory... " >&6; }
12124 if test -z "$kernelbuild"; then
12126 if test -e "/lib/modules/$(uname -r)/build"; then
12128 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
12130 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12132 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12134 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
12136 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
12138 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
12140 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
12144 kernelbuild
=${kernelsrc}
12151 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12152 $as_echo "$kernelbuild" >&6; }
12154 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12155 $as_echo_n "checking kernel source version... " >&6; }
12156 utsrelease1
=$kernelbuild/include
/linux
/version.h
12157 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
12158 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
12159 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
12161 utsrelease
=linux
/version.h
12163 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
12165 utsrelease
=linux
/utsrelease.h
12167 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
12169 utsrelease
=generated
/utsrelease.h
12174 if test "$utsrelease"; then
12176 kernsrcver
=`(echo "#include <$utsrelease>";
12177 echo "kernsrcver=UTS_RELEASE") |
12178 cpp -I $kernelbuild/include |
12179 grep "^kernsrcver=" | cut -d \" -f 2`
12181 if test -z "$kernsrcver"; then
12183 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12184 $as_echo "Not found" >&6; }
12185 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12186 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12187 { (exit 1); exit 1; }; }
12194 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12195 $as_echo "Not found" >&6; }
12196 if test "x$enable_linux_builtin" != xyes
; then
12197 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12198 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12199 { (exit 1); exit 1; }; }
12201 { { $as_echo "$as_me:$LINENO: error:
12202 *** Cannot find UTS_RELEASE definition.
12203 *** Please run 'make prepare' inside the kernel source tree." >&5
12204 $as_echo "$as_me: error:
12205 *** Cannot find UTS_RELEASE definition.
12206 *** Please run 'make prepare' inside the kernel source tree." >&2;}
12207 { (exit 1); exit 1; }; }
12213 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12214 $as_echo "$kernsrcver" >&6; }
12217 LINUX_OBJ
=${kernelbuild}
12218 LINUX_VERSION
=${kernsrcver}
12225 modpost
=$LINUX/scripts
/Makefile.modpost
12226 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12227 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12228 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then
12230 if grep -q Modules.symvers
$modpost; then
12232 LINUX_SYMBOLS
=Modules.symvers
12236 LINUX_SYMBOLS
=Module.symvers
12241 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12243 { { $as_echo "$as_me:$LINENO: error:
12244 *** Please make sure the kernel devel package for your distribution
12245 *** is installed. If your building with a custom kernel make sure the
12246 *** kernel is configured, built, and the '--with-linux=PATH' configure
12247 *** option refers to the location of the kernel source." >&5
12248 $as_echo "$as_me: error:
12249 *** Please make sure the kernel devel package for your distribution
12250 *** is installed. If your building with a custom kernel make sure the
12251 *** kernel is configured, built, and the '--with-linux=PATH' configure
12252 *** option refers to the location of the kernel source." >&2;}
12253 { (exit 1); exit 1; }; }
12264 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12265 $as_echo "$LINUX_SYMBOLS" >&6; }
12271 # Check whether --with-spl was given.
12272 if test "${with_spl+set}" = set; then
12273 withval
=$with_spl; splsrc
="$withval"
12278 # Check whether --with-spl-obj was given.
12279 if test "${with_spl_obj+set}" = set; then
12280 withval
=$with_spl_obj; splbuild
="$withval"
12285 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12286 $as_echo_n "checking spl source directory... " >&6; }
12287 if test -z "$splsrc"; then
12289 sourcelink
=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12290 2>/dev/null | tail -1`
12292 if test -z "$sourcelink" ||
test ! -e $sourcelink; then
12299 if test -e $sourcelink; then
12301 splsrc
=`readlink -f ${sourcelink}`
12305 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12306 $as_echo "Not found" >&6; }
12307 { { $as_echo "$as_me:$LINENO: error:
12308 *** Please make sure the spl devel package for your distribution
12309 *** is installed then try again. If that fails you can specify the
12310 *** location of the spl source with the '--with-spl=PATH' option." >&5
12311 $as_echo "$as_me: error:
12312 *** Please make sure the spl devel package for your distribution
12313 *** is installed then try again. If that fails you can specify the
12314 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12315 { (exit 1); exit 1; }; }
12322 if test "$splsrc" = "NONE"; then
12333 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12334 $as_echo "$splsrc" >&6; }
12335 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12336 $as_echo_n "checking spl build directory... " >&6; }
12337 if test -z "$splbuild"; then
12343 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12344 $as_echo "$splbuild" >&6; }
12346 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12347 $as_echo_n "checking spl source version... " >&6; }
12348 if test -r $splbuild/spl_config.h
&&
12349 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then
12352 splsrcver
=`(echo "#include <spl_config.h>";
12353 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12355 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12360 if test -z "$splsrcver"; then
12362 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12363 $as_echo "Not found" >&6; }
12364 { { $as_echo "$as_me:$LINENO: error:
12365 *** Cannot determine the version of the spl source.
12366 *** Please prepare the spl source before running this script" >&5
12367 $as_echo "$as_me: error:
12368 *** Cannot determine the version of the spl source.
12369 *** Please prepare the spl source before running this script" >&2;}
12370 { (exit 1); exit 1; }; }
12375 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12376 $as_echo "$splsrcver" >&6; }
12379 SPL_OBJ
=${splbuild}
12380 SPL_VERSION
=${splsrcver}
12387 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12388 $as_echo_n "checking spl file name for module symbols... " >&6; }
12389 if test -r $SPL_OBJ/Module.symvers
; then
12391 SPL_SYMBOLS
=Module.symvers
12393 elif test -r $SPL_OBJ/Modules.symvers
; then
12395 SPL_SYMBOLS
=Modules.symvers
12397 elif test -r $SPL_OBJ/module
/Module.symvers
; then
12399 SPL_SYMBOLS
=Module.symvers
12401 elif test -r $SPL_OBJ/module
/Modules.symvers
; then
12403 SPL_SYMBOLS
=Modules.symvers
12407 SPL_SYMBOLS
=$LINUX_SYMBOLS
12412 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12413 $as_echo "$SPL_SYMBOLS" >&6; }
12417 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
12418 $as_echo_n "checking whether modules can be built... " >&6; }
12421 cat confdefs.h
- <<_ACEOF >conftest.c
12424 cat confdefs.h
>>conftest.
$ac_ext
12425 cat >>conftest.
$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12440 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12441 echo "obj-m := conftest.o" >build
/Makefile
12443 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12444 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12456 { $as_echo "$as_me:$LINENO: result: yes" >&5
12457 $as_echo "yes" >&6; }
12460 $as_echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.
$ac_ext >&5
12463 { $as_echo "$as_me:$LINENO: result: no" >&5
12464 $as_echo "no" >&6; }
12465 if test "x$enable_linux_builtin" != xyes
; then
12466 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
12467 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
12468 { (exit 1); exit 1; }; }
12470 { { $as_echo "$as_me:$LINENO: error:
12471 *** Unable to build an empty module.
12472 *** Please run 'make scripts' inside the kernel source tree." >&5
12473 $as_echo "$as_me: error:
12474 *** Unable to build an empty module.
12475 *** Please run 'make scripts' inside the kernel source tree." >&2;}
12476 { (exit 1); exit 1; }; }
12489 if test "$ZFS_META_LICENSE" = GPL
; then
12492 cat >>confdefs.h
<<\_ACEOF
12493 #define HAVE_GPL_ONLY_SYMBOLS 1
12502 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12503 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12506 cat confdefs.h
- <<_ACEOF >conftest.c
12509 cat confdefs.h
>>conftest.
$ac_ext
12510 cat >>conftest.
$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12514 #include <linux/module.h>
12520 #ifndef CONFIG_PREEMPT
12521 #error CONFIG_PREEMPT not #defined
12531 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12532 echo "obj-m := conftest.o" >build
/Makefile
12534 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12535 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12547 { $as_echo "$as_me:$LINENO: result: yes" >&5
12548 $as_echo "yes" >&6; }
12549 { { $as_echo "$as_me:$LINENO: error:
12550 *** Kernel built with CONFIG_PREEMPT which is not supported.
12551 *** You must rebuild your kernel without this option." >&5
12552 $as_echo "$as_me: error:
12553 *** Kernel built with CONFIG_PREEMPT which is not supported.
12554 *** You must rebuild your kernel without this option." >&2;}
12555 { (exit 1); exit 1; }; }
12558 $as_echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.
$ac_ext >&5
12561 { $as_echo "$as_me:$LINENO: result: no" >&5
12562 $as_echo "no" >&6; }
12576 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12577 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12580 cat confdefs.h
- <<_ACEOF >conftest.c
12583 cat confdefs.h
>>conftest.
$ac_ext
12584 cat >>conftest.
$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12588 #include <linux/module.h>
12594 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12595 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12605 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12606 echo "obj-m := conftest.o" >build
/Makefile
12608 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12609 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12621 { $as_echo "$as_me:$LINENO: result: yes" >&5
12622 $as_echo "yes" >&6; }
12624 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
12625 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12626 tmp_flags
="$EXTRA_KCFLAGS"
12629 cat confdefs.h
- <<_ACEOF >conftest.c
12632 cat confdefs.h
>>conftest.
$ac_ext
12633 cat >>conftest.
$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12637 #include <linux/module.h>
12638 #include <linux/mutex.h>
12640 MODULE_LICENSE("$ZFS_META_LICENSE");
12650 mutex_unlock(&lock);
12659 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12660 echo "obj-m := conftest.o" >build
/Makefile
12662 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12663 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; }; then
12675 { $as_echo "$as_me:$LINENO: result: no" >&5
12676 $as_echo "no" >&6; }
12679 $as_echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.
$ac_ext >&5
12682 { $as_echo "$as_me:$LINENO: result: yes" >&5
12683 $as_echo "yes" >&6; }
12684 { { $as_echo "$as_me:$LINENO: error:
12685 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12686 *** with the CDDL license and will prevent the module linking stage
12687 *** from succeeding. You must rebuild your kernel without this
12688 *** option enabled." >&5
12689 $as_echo "$as_me: error:
12690 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12691 *** with the CDDL license and will prevent the module linking stage
12692 *** from succeeding. You must rebuild your kernel without this
12693 *** option enabled." >&2;}
12694 { (exit 1); exit 1; }; }
12703 EXTRA_KCFLAGS
="$tmp_flags"
12707 $as_echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.
$ac_ext >&5
12710 { $as_echo "$as_me:$LINENO: result: no" >&5
12711 $as_echo "no" >&6; }
12725 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12726 $as_echo_n "checking block device operation prototypes... " >&6; }
12727 tmp_flags
="$EXTRA_KCFLAGS"
12728 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
12731 cat confdefs.h
- <<_ACEOF >conftest.c
12734 cat confdefs.h
>>conftest.
$ac_ext
12735 cat >>conftest.
$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12739 #include <linux/blkdev.h>
12745 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12746 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12747 int (*blk_ioctl) (struct block_device *, fmode_t,
12748 unsigned, unsigned long) = NULL;
12749 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12750 unsigned, unsigned long) = NULL;
12751 struct block_device_operations blk_ops = {
12753 .release = blk_release,
12754 .ioctl = blk_ioctl,
12755 .compat_ioctl = blk_compat_ioctl,
12758 blk_ops.open(NULL, 0);
12759 blk_ops.release(NULL, 0);
12760 blk_ops.ioctl(NULL, 0, 0, 0);
12761 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12770 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12771 echo "obj-m := conftest.o" >build
/Makefile
12773 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12774 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776 (eval $ac_try) 2>&5
12778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; }; then
12786 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12787 $as_echo "struct block_device" >&6; }
12789 cat >>confdefs.h
<<\_ACEOF
12790 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12795 $as_echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.
$ac_ext >&5
12798 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12799 $as_echo "struct inode" >&6; }
12808 EXTRA_KCFLAGS
="$tmp_flags"
12810 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12811 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12814 cat confdefs.h
- <<_ACEOF >conftest.c
12817 cat confdefs.h
>>conftest.
$ac_ext
12818 cat >>conftest.
$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12822 #include <linux/types.h>
12828 fmode_t *ptr __attribute__ ((unused));
12837 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12838 echo "obj-m := conftest.o" >build
/Makefile
12840 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12841 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
12853 { $as_echo "$as_me:$LINENO: result: yes" >&5
12854 $as_echo "yes" >&6; }
12856 cat >>confdefs.h
<<\_ACEOF
12857 #define HAVE_FMODE_T 1
12862 $as_echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.
$ac_ext >&5
12865 { $as_echo "$as_me:$LINENO: result: no" >&5
12866 $as_echo "no" >&6; }
12877 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12878 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12881 cat confdefs.h
- <<_ACEOF >conftest.c
12884 cat confdefs.h
>>conftest.
$ac_ext
12885 cat >>conftest.
$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12889 #include <linux/kobject.h>
12895 int val __attribute__ ((unused));
12896 val = KOBJ_NAME_LEN;
12905 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12906 echo "obj-m := conftest.o" >build
/Makefile
12908 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12909 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12921 { $as_echo "$as_me:$LINENO: result: yes" >&5
12922 $as_echo "yes" >&6; }
12924 cat >>confdefs.h
<<\_ACEOF
12925 #define HAVE_KOBJ_NAME_LEN 1
12930 $as_echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.
$ac_ext >&5
12933 { $as_echo "$as_me:$LINENO: result: no" >&5
12934 $as_echo "no" >&6; }
12945 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
12946 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
12949 cat confdefs.h
- <<_ACEOF >conftest.c
12952 cat confdefs.h
>>conftest.
$ac_ext
12953 cat >>conftest.
$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12957 #include <linux/fs.h>
12963 struct block_device *bdev = NULL;
12964 (void) blkdev_get(bdev, 0, NULL);
12973 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12974 echo "obj-m := conftest.o" >build
/Makefile
12976 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12977 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12989 { $as_echo "$as_me:$LINENO: result: yes" >&5
12990 $as_echo "yes" >&6; }
12992 cat >>confdefs.h
<<\_ACEOF
12993 #define HAVE_3ARG_BLKDEV_GET 1
12998 $as_echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.
$ac_ext >&5
13001 { $as_echo "$as_me:$LINENO: result: no" >&5
13002 $as_echo "no" >&6; }
13012 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
13013 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
13017 cat confdefs.h
- <<_ACEOF >conftest.c
13020 cat confdefs.h
>>conftest.
$ac_ext
13021 cat >>conftest.
$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13025 #include <linux/fs.h>
13031 blkdev_get_by_path(NULL, 0, NULL);
13040 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13041 echo "obj-m := conftest.o" >build
/Makefile
13043 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13044 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
13057 $as_echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.
$ac_ext >&5
13067 if test $rc -ne 0; then :
13069 { $as_echo "$as_me:$LINENO: result: no" >&5
13070 $as_echo "no" >&6; }
13073 if test "x$enable_linux_builtin" != xyes
; then
13075 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
13076 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
13078 if test $rc -ne 0; then
13080 for file in fs
/block_dev.c
; do
13081 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
13082 "$LINUX/$file" 2>/dev
/null
13084 if test $rc -eq 0; then
13089 if test $export -eq 0; then :
13099 if test $rc -ne 0; then :
13101 { $as_echo "$as_me:$LINENO: result: no" >&5
13102 $as_echo "no" >&6; }
13106 { $as_echo "$as_me:$LINENO: result: yes" >&5
13107 $as_echo "yes" >&6; }
13109 cat >>confdefs.h
<<\_ACEOF
13110 #define HAVE_BLKDEV_GET_BY_PATH 1
13118 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
13119 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
13123 cat confdefs.h
- <<_ACEOF >conftest.c
13126 cat confdefs.h
>>conftest.
$ac_ext
13127 cat >>conftest.
$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13131 #include <linux/fs.h>
13137 open_bdev_exclusive(NULL, 0, NULL);
13146 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13147 echo "obj-m := conftest.o" >build
/Makefile
13149 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13150 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13163 $as_echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.
$ac_ext >&5
13173 if test $rc -ne 0; then :
13175 { $as_echo "$as_me:$LINENO: result: no" >&5
13176 $as_echo "no" >&6; }
13179 if test "x$enable_linux_builtin" != xyes
; then
13181 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
13182 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
13184 if test $rc -ne 0; then
13186 for file in fs
/block_dev.c
; do
13187 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
13188 "$LINUX/$file" 2>/dev
/null
13190 if test $rc -eq 0; then
13195 if test $export -eq 0; then :
13205 if test $rc -ne 0; then :
13207 { $as_echo "$as_me:$LINENO: result: no" >&5
13208 $as_echo "no" >&6; }
13212 { $as_echo "$as_me:$LINENO: result: yes" >&5
13213 $as_echo "yes" >&6; }
13215 cat >>confdefs.h
<<\_ACEOF
13216 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
13225 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
13226 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
13229 cat confdefs.h
- <<_ACEOF >conftest.c
13232 cat confdefs.h
>>conftest.
$ac_ext
13233 cat >>conftest.
$ac_ext <<_ACEOF
13234 /* end confdefs.h. */
13237 #include <linux/buffer_head.h>
13243 struct block_device *bdev = NULL;
13244 invalidate_bdev(bdev);
13253 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13254 echo "obj-m := conftest.o" >build
/Makefile
13256 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13257 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13269 { $as_echo "$as_me:$LINENO: result: yes" >&5
13270 $as_echo "yes" >&6; }
13272 cat >>confdefs.h
<<\_ACEOF
13273 #define HAVE_1ARG_INVALIDATE_BDEV 1
13278 $as_echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.
$ac_ext >&5
13281 { $as_echo "$as_me:$LINENO: result: no" >&5
13282 $as_echo "no" >&6; }
13293 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
13294 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13295 tmp_flags
="$EXTRA_KCFLAGS"
13296 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
13299 cat confdefs.h
- <<_ACEOF >conftest.c
13302 cat confdefs.h
>>conftest.
$ac_ext
13303 cat >>conftest.
$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13307 #include <linux/blkdev.h>
13313 struct block_device *bdev = NULL;
13314 bdev_logical_block_size(bdev);
13323 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13324 echo "obj-m := conftest.o" >build
/Makefile
13326 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13327 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13339 { $as_echo "$as_me:$LINENO: result: yes" >&5
13340 $as_echo "yes" >&6; }
13342 cat >>confdefs.h
<<\_ACEOF
13343 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
13348 $as_echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.
$ac_ext >&5
13351 { $as_echo "$as_me:$LINENO: result: no" >&5
13352 $as_echo "no" >&6; }
13361 EXTRA_KCFLAGS
="$tmp_flags"
13364 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13365 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13366 EXTRA_KCFLAGS
="-Werror"
13369 cat confdefs.h
- <<_ACEOF >conftest.c
13372 cat confdefs.h
>>conftest.
$ac_ext
13373 cat >>conftest.
$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13377 #include <linux/bio.h>
13384 (void)bio_empty_barrier(&bio);
13393 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13394 echo "obj-m := conftest.o" >build
/Makefile
13396 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13397 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13409 { $as_echo "$as_me:$LINENO: result: yes" >&5
13410 $as_echo "yes" >&6; }
13412 cat >>confdefs.h
<<\_ACEOF
13413 #define HAVE_BIO_EMPTY_BARRIER 1
13418 $as_echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.
$ac_ext >&5
13421 { $as_echo "$as_me:$LINENO: result: no" >&5
13422 $as_echo "no" >&6; }
13433 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13434 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13437 cat confdefs.h
- <<_ACEOF >conftest.c
13440 cat confdefs.h
>>conftest.
$ac_ext
13441 cat >>conftest.
$ac_ext <<_ACEOF
13442 /* end confdefs.h. */
13445 #include <linux/bio.h>
13451 int flags __attribute__ ((unused));
13452 flags = (1 << BIO_RW_FAILFAST);
13461 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13462 echo "obj-m := conftest.o" >build
/Makefile
13464 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13465 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13477 { $as_echo "$as_me:$LINENO: result: yes" >&5
13478 $as_echo "yes" >&6; }
13480 cat >>confdefs.h
<<\_ACEOF
13481 #define HAVE_BIO_RW_FAILFAST 1
13486 $as_echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.
$ac_ext >&5
13489 { $as_echo "$as_me:$LINENO: result: no" >&5
13490 $as_echo "no" >&6; }
13501 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13502 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13505 cat confdefs.h
- <<_ACEOF >conftest.c
13508 cat confdefs.h
>>conftest.
$ac_ext
13509 cat >>conftest.
$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13513 #include <linux/bio.h>
13519 int flags __attribute__ ((unused));
13520 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13521 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13522 (1 << BIO_RW_FAILFAST_DRIVER));
13531 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13532 echo "obj-m := conftest.o" >build
/Makefile
13534 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13535 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13547 { $as_echo "$as_me:$LINENO: result: yes" >&5
13548 $as_echo "yes" >&6; }
13550 cat >>confdefs.h
<<\_ACEOF
13551 #define HAVE_BIO_RW_FAILFAST_DTD 1
13556 $as_echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.
$ac_ext >&5
13559 { $as_echo "$as_me:$LINENO: result: no" >&5
13560 $as_echo "no" >&6; }
13571 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13572 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13575 cat confdefs.h
- <<_ACEOF >conftest.c
13578 cat confdefs.h
>>conftest.
$ac_ext
13579 cat >>conftest.
$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13583 #include <linux/bio.h>
13589 int flags __attribute__ ((unused));
13590 flags = REQ_FAILFAST_MASK;
13599 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13600 echo "obj-m := conftest.o" >build
/Makefile
13602 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13603 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13615 { $as_echo "$as_me:$LINENO: result: yes" >&5
13616 $as_echo "yes" >&6; }
13618 cat >>confdefs.h
<<\_ACEOF
13619 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13624 $as_echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.
$ac_ext >&5
13627 { $as_echo "$as_me:$LINENO: result: no" >&5
13628 $as_echo "no" >&6; }
13639 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13640 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13641 tmp_flags
="$EXTRA_KCFLAGS"
13642 EXTRA_KCFLAGS
="-Werror"
13645 cat confdefs.h
- <<_ACEOF >conftest.c
13648 cat confdefs.h
>>conftest.
$ac_ext
13649 cat >>conftest.
$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13653 #include <linux/bio.h>
13659 void (*wanted_end_io)(struct bio *, int) = NULL;
13660 bio_end_io_t *local_end_io __attribute__ ((unused));
13662 local_end_io = wanted_end_io;
13671 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13672 echo "obj-m := conftest.o" >build
/Makefile
13674 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13675 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13687 { $as_echo "$as_me:$LINENO: result: yes" >&5
13688 $as_echo "yes" >&6; }
13690 cat >>confdefs.h
<<\_ACEOF
13691 #define HAVE_2ARGS_BIO_END_IO_T 1
13696 $as_echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.
$ac_ext >&5
13699 { $as_echo "$as_me:$LINENO: result: no" >&5
13700 $as_echo "no" >&6; }
13709 EXTRA_KCFLAGS
="$tmp_flags"
13712 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13713 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13716 cat confdefs.h
- <<_ACEOF >conftest.c
13719 cat confdefs.h
>>conftest.
$ac_ext
13720 cat >>conftest.
$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13724 #include <linux/bio.h>
13730 int flags __attribute__ ((unused));
13731 flags = BIO_RW_SYNC;
13740 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13741 echo "obj-m := conftest.o" >build
/Makefile
13743 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13744 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13756 { $as_echo "$as_me:$LINENO: result: yes" >&5
13757 $as_echo "yes" >&6; }
13759 cat >>confdefs.h
<<\_ACEOF
13760 #define HAVE_BIO_RW_SYNC 1
13765 $as_echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.
$ac_ext >&5
13768 { $as_echo "$as_me:$LINENO: result: no" >&5
13769 $as_echo "no" >&6; }
13780 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13781 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13784 cat confdefs.h
- <<_ACEOF >conftest.c
13787 cat confdefs.h
>>conftest.
$ac_ext
13788 cat >>conftest.
$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13792 #include <linux/bio.h>
13798 int flags __attribute__ ((unused));
13799 flags = BIO_RW_SYNCIO;
13808 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13809 echo "obj-m := conftest.o" >build
/Makefile
13811 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13812 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13824 { $as_echo "$as_me:$LINENO: result: yes" >&5
13825 $as_echo "yes" >&6; }
13827 cat >>confdefs.h
<<\_ACEOF
13828 #define HAVE_BIO_RW_SYNCIO 1
13833 $as_echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.
$ac_ext >&5
13836 { $as_echo "$as_me:$LINENO: result: no" >&5
13837 $as_echo "no" >&6; }
13848 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13849 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13852 cat confdefs.h
- <<_ACEOF >conftest.c
13855 cat confdefs.h
>>conftest.
$ac_ext
13856 cat >>conftest.
$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13860 #include <linux/bio.h>
13866 int flags __attribute__ ((unused));
13876 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13877 echo "obj-m := conftest.o" >build
/Makefile
13879 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13880 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; }; then
13892 { $as_echo "$as_me:$LINENO: result: yes" >&5
13893 $as_echo "yes" >&6; }
13895 cat >>confdefs.h
<<\_ACEOF
13896 #define HAVE_REQ_SYNC 1
13901 $as_echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.
$ac_ext >&5
13904 { $as_echo "$as_me:$LINENO: result: no" >&5
13905 $as_echo "no" >&6; }
13916 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13917 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13918 tmp_flags
="$EXTRA_KCFLAGS"
13919 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
13922 cat confdefs.h
- <<_ACEOF >conftest.c
13925 cat confdefs.h
>>conftest.
$ac_ext
13926 cat >>conftest.
$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13930 #include <linux/blkdev.h>
13936 struct request *req = NULL;
13937 (void) blk_end_request(req, 0, 0);
13946 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13947 echo "obj-m := conftest.o" >build
/Makefile
13949 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13950 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; }; then
13962 { $as_echo "$as_me:$LINENO: result: yes" >&5
13963 $as_echo "yes" >&6; }
13965 cat >>confdefs.h
<<\_ACEOF
13966 #define HAVE_BLK_END_REQUEST 1
13971 $as_echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.
$ac_ext >&5
13974 { $as_echo "$as_me:$LINENO: result: no" >&5
13975 $as_echo "no" >&6; }
13985 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13986 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13989 cat confdefs.h
- <<_ACEOF >conftest.c
13992 cat confdefs.h
>>conftest.
$ac_ext
13993 cat >>conftest.
$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13997 #include <linux/module.h>
13998 #include <linux/blkdev.h>
14000 MODULE_LICENSE("CDDL");
14006 struct request *req = NULL;
14007 (void) blk_end_request(req, 0, 0);
14016 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14017 echo "obj-m := conftest.o" >build
/Makefile
14019 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14020 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14032 { $as_echo "$as_me:$LINENO: result: no" >&5
14033 $as_echo "no" >&6; }
14036 $as_echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.
$ac_ext >&5
14039 { $as_echo "$as_me:$LINENO: result: yes" >&5
14040 $as_echo "yes" >&6; }
14042 cat >>confdefs.h
<<\_ACEOF
14043 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
14054 EXTRA_KCFLAGS
="$tmp_flags"
14057 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
14058 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
14059 tmp_flags
="$EXTRA_KCFLAGS"
14060 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14063 cat confdefs.h
- <<_ACEOF >conftest.c
14066 cat confdefs.h
>>conftest.
$ac_ext
14067 cat >>conftest.
$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14071 #include <linux/blkdev.h>
14077 struct request_queue *q = NULL;
14078 (void) blk_queue_flush(q, REQ_FLUSH);
14087 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14088 echo "obj-m := conftest.o" >build
/Makefile
14090 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14091 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14103 { $as_echo "$as_me:$LINENO: result: yes" >&5
14104 $as_echo "yes" >&6; }
14106 cat >>confdefs.h
<<\_ACEOF
14107 #define HAVE_BLK_QUEUE_FLUSH 1
14112 $as_echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.
$ac_ext >&5
14115 { $as_echo "$as_me:$LINENO: result: no" >&5
14116 $as_echo "no" >&6; }
14126 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
14127 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
14130 cat confdefs.h
- <<_ACEOF >conftest.c
14133 cat confdefs.h
>>conftest.
$ac_ext
14134 cat >>conftest.
$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14138 #include <linux/module.h>
14139 #include <linux/blkdev.h>
14141 MODULE_LICENSE("CDDL");
14147 struct request_queue *q = NULL;
14148 (void) blk_queue_flush(q, REQ_FLUSH);
14157 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14158 echo "obj-m := conftest.o" >build
/Makefile
14160 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14161 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14173 { $as_echo "$as_me:$LINENO: result: no" >&5
14174 $as_echo "no" >&6; }
14177 $as_echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.
$ac_ext >&5
14180 { $as_echo "$as_me:$LINENO: result: yes" >&5
14181 $as_echo "yes" >&6; }
14183 cat >>confdefs.h
<<\_ACEOF
14184 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
14195 EXTRA_KCFLAGS
="$tmp_flags"
14198 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
14199 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
14200 tmp_flags
="$EXTRA_KCFLAGS"
14201 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14204 cat confdefs.h
- <<_ACEOF >conftest.c
14207 cat confdefs.h
>>conftest.
$ac_ext
14208 cat >>conftest.
$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14212 #include <linux/blkdev.h>
14218 struct request_queue *q = NULL;
14219 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
14228 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14229 echo "obj-m := conftest.o" >build
/Makefile
14231 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14232 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14244 { $as_echo "$as_me:$LINENO: result: yes" >&5
14245 $as_echo "yes" >&6; }
14247 cat >>confdefs.h
<<\_ACEOF
14248 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
14253 $as_echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.
$ac_ext >&5
14256 { $as_echo "$as_me:$LINENO: result: no" >&5
14257 $as_echo "no" >&6; }
14266 EXTRA_KCFLAGS
="$tmp_flags"
14269 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
14270 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
14271 tmp_flags
="$EXTRA_KCFLAGS"
14272 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14275 cat confdefs.h
- <<_ACEOF >conftest.c
14278 cat confdefs.h
>>conftest.
$ac_ext
14279 cat >>conftest.
$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14283 #include <linux/blkdev.h>
14289 struct request_queue *q = NULL;
14290 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
14299 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14300 echo "obj-m := conftest.o" >build
/Makefile
14302 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14303 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14315 { $as_echo "$as_me:$LINENO: result: yes" >&5
14316 $as_echo "yes" >&6; }
14318 cat >>confdefs.h
<<\_ACEOF
14319 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
14324 $as_echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.
$ac_ext >&5
14327 { $as_echo "$as_me:$LINENO: result: no" >&5
14328 $as_echo "no" >&6; }
14337 EXTRA_KCFLAGS
="$tmp_flags"
14340 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
14341 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
14342 tmp_flags
="$EXTRA_KCFLAGS"
14343 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14346 cat confdefs.h
- <<_ACEOF >conftest.c
14349 cat confdefs.h
>>conftest.
$ac_ext
14350 cat >>conftest.
$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14354 #include <linux/blkdev.h>
14360 struct request_queue *q = NULL;
14361 unsigned short block_size = 1;
14362 (void) blk_queue_physical_block_size(q, block_size);
14371 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14372 echo "obj-m := conftest.o" >build
/Makefile
14374 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14375 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14387 { $as_echo "$as_me:$LINENO: result: yes" >&5
14388 $as_echo "yes" >&6; }
14390 cat >>confdefs.h
<<\_ACEOF
14391 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
14396 $as_echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.
$ac_ext >&5
14399 { $as_echo "$as_me:$LINENO: result: no" >&5
14400 $as_echo "no" >&6; }
14409 EXTRA_KCFLAGS
="$tmp_flags"
14412 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
14413 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14414 tmp_flags
="$EXTRA_KCFLAGS"
14415 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14418 cat confdefs.h
- <<_ACEOF >conftest.c
14421 cat confdefs.h
>>conftest.
$ac_ext
14422 cat >>conftest.
$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14426 #include <linux/blkdev.h>
14432 struct request_queue *q = NULL;
14433 unsigned int opt = 1;
14434 (void) blk_queue_io_opt(q, opt);
14443 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14444 echo "obj-m := conftest.o" >build
/Makefile
14446 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14447 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14459 { $as_echo "$as_me:$LINENO: result: yes" >&5
14460 $as_echo "yes" >&6; }
14462 cat >>confdefs.h
<<\_ACEOF
14463 #define HAVE_BLK_QUEUE_IO_OPT 1
14468 $as_echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.
$ac_ext >&5
14471 { $as_echo "$as_me:$LINENO: result: no" >&5
14472 $as_echo "no" >&6; }
14481 EXTRA_KCFLAGS
="$tmp_flags"
14484 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
14485 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
14486 tmp_flags
="$EXTRA_KCFLAGS"
14487 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14490 cat confdefs.h
- <<_ACEOF >conftest.c
14493 cat confdefs.h
>>conftest.
$ac_ext
14494 cat >>conftest.
$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14498 #include <linux/blkdev.h>
14504 struct request_queue *q = NULL;
14505 (void) blk_queue_nonrot(q);
14514 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14515 echo "obj-m := conftest.o" >build
/Makefile
14517 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14518 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14530 { $as_echo "$as_me:$LINENO: result: yes" >&5
14531 $as_echo "yes" >&6; }
14533 cat >>confdefs.h
<<\_ACEOF
14534 #define HAVE_BLK_QUEUE_NONROT 1
14539 $as_echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.
$ac_ext >&5
14542 { $as_echo "$as_me:$LINENO: result: no" >&5
14543 $as_echo "no" >&6; }
14552 EXTRA_KCFLAGS
="$tmp_flags"
14555 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
14556 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
14557 tmp_flags
="$EXTRA_KCFLAGS"
14558 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14561 cat confdefs.h
- <<_ACEOF >conftest.c
14564 cat confdefs.h
>>conftest.
$ac_ext
14565 cat >>conftest.
$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14569 #include <linux/blkdev.h>
14575 struct request_queue *q = NULL;
14576 (void) blk_queue_discard(q);
14585 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14586 echo "obj-m := conftest.o" >build
/Makefile
14588 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14589 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591 (eval $ac_try) 2>&5
14593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14601 { $as_echo "$as_me:$LINENO: result: yes" >&5
14602 $as_echo "yes" >&6; }
14604 cat >>confdefs.h
<<\_ACEOF
14605 #define HAVE_BLK_QUEUE_DISCARD 1
14610 $as_echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.
$ac_ext >&5
14613 { $as_echo "$as_me:$LINENO: result: no" >&5
14614 $as_echo "no" >&6; }
14623 EXTRA_KCFLAGS
="$tmp_flags"
14626 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
14627 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
14628 tmp_flags
="$EXTRA_KCFLAGS"
14629 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14632 cat confdefs.h
- <<_ACEOF >conftest.c
14635 cat confdefs.h
>>conftest.
$ac_ext
14636 cat >>conftest.
$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14640 #include <linux/blkdev.h>
14646 struct request_queue *q = NULL;
14647 (void) blk_fetch_request(q);
14656 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14657 echo "obj-m := conftest.o" >build
/Makefile
14659 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14660 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14672 { $as_echo "$as_me:$LINENO: result: yes" >&5
14673 $as_echo "yes" >&6; }
14675 cat >>confdefs.h
<<\_ACEOF
14676 #define HAVE_BLK_FETCH_REQUEST 1
14681 $as_echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.
$ac_ext >&5
14684 { $as_echo "$as_me:$LINENO: result: no" >&5
14685 $as_echo "no" >&6; }
14694 EXTRA_KCFLAGS
="$tmp_flags"
14697 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
14698 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
14699 tmp_flags
="$EXTRA_KCFLAGS"
14700 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14703 cat confdefs.h
- <<_ACEOF >conftest.c
14706 cat confdefs.h
>>conftest.
$ac_ext
14707 cat >>conftest.
$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14711 #include <linux/blkdev.h>
14717 struct request_queue *q = NULL;
14718 struct request *req = NULL;
14719 blk_requeue_request(q, req);
14728 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14729 echo "obj-m := conftest.o" >build
/Makefile
14731 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14732 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14744 { $as_echo "$as_me:$LINENO: result: yes" >&5
14745 $as_echo "yes" >&6; }
14747 cat >>confdefs.h
<<\_ACEOF
14748 #define HAVE_BLK_REQUEUE_REQUEST 1
14753 $as_echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.
$ac_ext >&5
14756 { $as_echo "$as_me:$LINENO: result: no" >&5
14757 $as_echo "no" >&6; }
14766 EXTRA_KCFLAGS
="$tmp_flags"
14769 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
14770 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
14771 tmp_flags
="$EXTRA_KCFLAGS"
14772 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14775 cat confdefs.h
- <<_ACEOF >conftest.c
14778 cat confdefs.h
>>conftest.
$ac_ext
14779 cat >>conftest.
$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14783 #include <linux/blkdev.h>
14789 struct request *req = NULL;
14790 (void) blk_rq_bytes(req);
14799 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14800 echo "obj-m := conftest.o" >build
/Makefile
14802 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14803 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }; then
14815 { $as_echo "$as_me:$LINENO: result: yes" >&5
14816 $as_echo "yes" >&6; }
14818 cat >>confdefs.h
<<\_ACEOF
14819 #define HAVE_BLK_RQ_BYTES 1
14824 $as_echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.
$ac_ext >&5
14827 { $as_echo "$as_me:$LINENO: result: no" >&5
14828 $as_echo "no" >&6; }
14838 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
14839 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
14842 cat confdefs.h
- <<_ACEOF >conftest.c
14845 cat confdefs.h
>>conftest.
$ac_ext
14846 cat >>conftest.
$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14850 #include <linux/module.h>
14851 #include <linux/blkdev.h>
14853 MODULE_LICENSE("CDDL");
14859 struct request *req = NULL;
14860 (void) blk_rq_bytes(req);
14869 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14870 echo "obj-m := conftest.o" >build
/Makefile
14872 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14873 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14885 { $as_echo "$as_me:$LINENO: result: no" >&5
14886 $as_echo "no" >&6; }
14889 $as_echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.
$ac_ext >&5
14892 { $as_echo "$as_me:$LINENO: result: yes" >&5
14893 $as_echo "yes" >&6; }
14895 cat >>confdefs.h
<<\_ACEOF
14896 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
14907 EXTRA_KCFLAGS
="$tmp_flags"
14910 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
14911 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
14912 tmp_flags
="$EXTRA_KCFLAGS"
14913 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14916 cat confdefs.h
- <<_ACEOF >conftest.c
14919 cat confdefs.h
>>conftest.
$ac_ext
14920 cat >>conftest.
$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14924 #include <linux/blkdev.h>
14930 struct request *req = NULL;
14931 (void) blk_rq_pos(req);
14940 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14941 echo "obj-m := conftest.o" >build
/Makefile
14943 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
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 $modpost_flag'
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_BLK_RQ_POS 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 blk_rq_sectors() is available" >&5
14982 $as_echo_n "checking whether blk_rq_sectors() 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 request *req = NULL;
15002 (void) blk_rq_sectors(req);
15011 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15012 echo "obj-m := conftest.o" >build
/Makefile
15014 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
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 $modpost_flag'
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_BLK_RQ_SECTORS 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"
15052 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
15053 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
15054 tmp_flags
="$EXTRA_KCFLAGS"
15055 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
15058 cat confdefs.h
- <<_ACEOF >conftest.c
15061 cat confdefs.h
>>conftest.
$ac_ext
15062 cat >>conftest.
$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15066 #include <linux/blkdev.h>
15072 struct gendisk *disk = NULL;
15073 (void) get_disk_ro(disk);
15082 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15083 echo "obj-m := conftest.o" >build
/Makefile
15085 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15086 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; }; then
15098 { $as_echo "$as_me:$LINENO: result: yes" >&5
15099 $as_echo "yes" >&6; }
15101 cat >>confdefs.h
<<\_ACEOF
15102 #define HAVE_GET_DISK_RO 1
15107 $as_echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.
$ac_ext >&5
15110 { $as_echo "$as_me:$LINENO: result: no" >&5
15111 $as_echo "no" >&6; }
15120 EXTRA_KCFLAGS
="$tmp_flags"
15122 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
15123 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
15127 cat confdefs.h
- <<_ACEOF >conftest.c
15130 cat confdefs.h
>>conftest.
$ac_ext
15131 cat >>conftest.
$ac_ext <<_ACEOF
15132 /* end confdefs.h. */
15135 #include <linux/genhd.h>
15141 get_gendisk(0, NULL);
15150 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15151 echo "obj-m := conftest.o" >build
/Makefile
15153 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15154 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15167 $as_echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.
$ac_ext >&5
15177 if test $rc -ne 0; then :
15179 { $as_echo "$as_me:$LINENO: result: no" >&5
15180 $as_echo "no" >&6; }
15183 if test "x$enable_linux_builtin" != xyes
; then
15185 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
15186 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15188 if test $rc -ne 0; then
15190 for file in block
/genhd.c
; do
15191 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
15192 "$LINUX/$file" 2>/dev
/null
15194 if test $rc -eq 0; then
15199 if test $export -eq 0; then :
15209 if test $rc -ne 0; then :
15211 { $as_echo "$as_me:$LINENO: result: no" >&5
15212 $as_echo "no" >&6; }
15216 { $as_echo "$as_me:$LINENO: result: yes" >&5
15217 $as_echo "yes" >&6; }
15219 cat >>confdefs.h
<<\_ACEOF
15220 #define HAVE_GET_GENDISK 1
15229 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
15230 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
15231 tmp_flags
="$EXTRA_KCFLAGS"
15232 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
15235 cat confdefs.h
- <<_ACEOF >conftest.c
15238 cat confdefs.h
>>conftest.
$ac_ext
15239 cat >>conftest.
$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15243 #include <linux/blkdev.h>
15249 struct request *req = NULL;
15250 (void) rq_is_sync(req);
15259 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15260 echo "obj-m := conftest.o" >build
/Makefile
15262 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15263 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15275 { $as_echo "$as_me:$LINENO: result: yes" >&5
15276 $as_echo "yes" >&6; }
15278 cat >>confdefs.h
<<\_ACEOF
15279 #define HAVE_RQ_IS_SYNC 1
15284 $as_echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.
$ac_ext >&5
15287 { $as_echo "$as_me:$LINENO: result: no" >&5
15288 $as_echo "no" >&6; }
15297 EXTRA_KCFLAGS
="$tmp_flags"
15300 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
15301 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
15302 tmp_flags
="$EXTRA_KCFLAGS"
15303 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
15306 cat confdefs.h
- <<_ACEOF >conftest.c
15309 cat confdefs.h
>>conftest.
$ac_ext
15310 cat >>conftest.
$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15314 #include <linux/blkdev.h>
15320 struct bio_vec *bv;
15321 struct req_iterator iter;
15322 struct request *req = NULL;
15323 rq_for_each_segment(bv, req, iter) { }
15332 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15333 echo "obj-m := conftest.o" >build
/Makefile
15335 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15336 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15348 { $as_echo "$as_me:$LINENO: result: yes" >&5
15349 $as_echo "yes" >&6; }
15351 cat >>confdefs.h
<<\_ACEOF
15352 #define HAVE_RQ_FOR_EACH_SEGMENT 1
15357 $as_echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.
$ac_ext >&5
15360 { $as_echo "$as_me:$LINENO: result: no" >&5
15361 $as_echo "no" >&6; }
15370 EXTRA_KCFLAGS
="$tmp_flags"
15372 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
15373 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
15376 cat confdefs.h
- <<_ACEOF >conftest.c
15379 cat confdefs.h
>>conftest.
$ac_ext
15380 cat >>conftest.
$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15384 #include <linux/fs.h>
15385 #include <linux/xattr.h>
15387 const struct xattr_handler xattr_test_handler = {
15393 const struct xattr_handler *xattr_handlers[] = {
15394 &xattr_test_handler,
15401 struct super_block sb __attribute__ ((unused));
15403 sb.s_xattr = xattr_handlers;
15412 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15413 echo "obj-m := conftest.o" >build
/Makefile
15415 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15416 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; }; then
15428 { $as_echo "$as_me:$LINENO: result: yes" >&5
15429 $as_echo "yes" >&6; }
15431 cat >>confdefs.h
<<\_ACEOF
15432 #define HAVE_CONST_XATTR_HANDLER 1
15437 $as_echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.
$ac_ext >&5
15440 { $as_echo "$as_me:$LINENO: result: no" >&5
15441 $as_echo "no" >&6; }
15452 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
15453 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
15456 cat confdefs.h
- <<_ACEOF >conftest.c
15459 cat confdefs.h
>>conftest.
$ac_ext
15460 cat >>conftest.
$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15464 #include <linux/xattr.h>
15470 int (*get)(struct dentry *dentry, const char *name,
15471 void *buffer, size_t size, int handler_flags) = NULL;
15472 struct xattr_handler xops __attribute__ ((unused));
15483 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15484 echo "obj-m := conftest.o" >build
/Makefile
15486 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15487 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15499 { $as_echo "$as_me:$LINENO: result: yes" >&5
15500 $as_echo "yes" >&6; }
15502 cat >>confdefs.h
<<\_ACEOF
15503 #define HAVE_DENTRY_XATTR_GET 1
15508 $as_echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.
$ac_ext >&5
15511 { $as_echo "$as_me:$LINENO: result: no" >&5
15512 $as_echo "no" >&6; }
15523 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
15524 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15527 cat confdefs.h
- <<_ACEOF >conftest.c
15530 cat confdefs.h
>>conftest.
$ac_ext
15531 cat >>conftest.
$ac_ext <<_ACEOF
15532 /* end confdefs.h. */
15535 #include <linux/xattr.h>
15541 int (*set)(struct dentry *dentry, const char *name,
15542 const void *buffer, size_t size, int flags,
15543 int handler_flags) = NULL;
15544 struct xattr_handler xops __attribute__ ((unused));
15555 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15556 echo "obj-m := conftest.o" >build
/Makefile
15558 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15559 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15571 { $as_echo "$as_me:$LINENO: result: yes" >&5
15572 $as_echo "yes" >&6; }
15574 cat >>confdefs.h
<<\_ACEOF
15575 #define HAVE_DENTRY_XATTR_SET 1
15580 $as_echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.
$ac_ext >&5
15583 { $as_echo "$as_me:$LINENO: result: no" >&5
15584 $as_echo "no" >&6; }
15595 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
15596 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
15600 cat confdefs.h
- <<_ACEOF >conftest.c
15603 cat confdefs.h
>>conftest.
$ac_ext
15604 cat >>conftest.
$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15608 #include <linux/fs.h>
15610 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
15611 static struct super_operations sops __attribute__ ((unused)) = {
15612 .show_options = show_options,
15627 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15628 echo "obj-m := conftest.o" >build
/Makefile
15630 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15631 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15643 { $as_echo "$as_me:$LINENO: result: yes" >&5
15644 $as_echo "yes" >&6; }
15646 cat >>confdefs.h
<<\_ACEOF
15647 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
15652 $as_echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.
$ac_ext >&5
15655 { $as_echo "$as_me:$LINENO: result: no" >&5
15656 $as_echo "no" >&6; }
15667 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
15668 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
15672 cat confdefs.h
- <<_ACEOF >conftest.c
15675 cat confdefs.h
>>conftest.
$ac_ext
15676 cat >>conftest.
$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15680 #include <linux/fs.h>
15686 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15687 struct file_operations fops __attribute__ ((unused));
15689 fops.fsync = fsync;
15698 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15699 echo "obj-m := conftest.o" >build
/Makefile
15701 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15702 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15714 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15715 $as_echo "dentry" >&6; }
15717 cat >>confdefs.h
<<\_ACEOF
15718 #define HAVE_FSYNC_WITH_DENTRY 1
15723 $as_echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.
$ac_ext >&5
15738 cat confdefs.h
- <<_ACEOF >conftest.c
15741 cat confdefs.h
>>conftest.
$ac_ext
15742 cat >>conftest.
$ac_ext <<_ACEOF
15743 /* end confdefs.h. */
15746 #include <linux/fs.h>
15752 int (*fsync) (struct file *, int) = NULL;
15753 struct file_operations fops __attribute__ ((unused));
15755 fops.fsync = fsync;
15764 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15765 echo "obj-m := conftest.o" >build
/Makefile
15767 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15768 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15780 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15781 $as_echo "no dentry" >&6; }
15783 cat >>confdefs.h
<<\_ACEOF
15784 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15789 $as_echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.
$ac_ext >&5
15804 cat confdefs.h
- <<_ACEOF >conftest.c
15807 cat confdefs.h
>>conftest.
$ac_ext
15808 cat >>conftest.
$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15812 #include <linux/fs.h>
15818 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15819 struct file_operations fops __attribute__ ((unused));
15821 fops.fsync = fsync;
15830 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15831 echo "obj-m := conftest.o" >build
/Makefile
15833 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15834 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }; then
15846 { $as_echo "$as_me:$LINENO: result: range" >&5
15847 $as_echo "range" >&6; }
15849 cat >>confdefs.h
<<\_ACEOF
15850 #define HAVE_FSYNC_RANGE 1
15855 $as_echo "$as_me: failed program was:" >&5
15856 sed 's/^/| /' conftest.
$ac_ext >&5
15870 cat confdefs.h
- <<_ACEOF >conftest.c
15873 cat confdefs.h
>>conftest.
$ac_ext
15874 cat >>conftest.
$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15878 #include <linux/fs.h>
15884 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15885 file_operations_no_const fops __attribute__ ((unused));
15887 fops.fsync = fsync;
15896 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15897 echo "obj-m := conftest.o" >build
/Makefile
15899 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15900 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15912 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15913 $as_echo "dentry" >&6; }
15915 cat >>confdefs.h
<<\_ACEOF
15916 #define HAVE_FSYNC_WITH_DENTRY 1
15921 $as_echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.
$ac_ext >&5
15936 cat confdefs.h
- <<_ACEOF >conftest.c
15939 cat confdefs.h
>>conftest.
$ac_ext
15940 cat >>conftest.
$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15944 #include <linux/fs.h>
15950 int (*fsync) (struct file *, int) = NULL;
15951 file_operations_no_const fops __attribute__ ((unused));
15953 fops.fsync = fsync;
15962 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15963 echo "obj-m := conftest.o" >build
/Makefile
15965 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15966 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; }; then
15978 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15979 $as_echo "no dentry" >&6; }
15981 cat >>confdefs.h
<<\_ACEOF
15982 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15987 $as_echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.
$ac_ext >&5
16002 cat confdefs.h
- <<_ACEOF >conftest.c
16005 cat confdefs.h
>>conftest.
$ac_ext
16006 cat >>conftest.
$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16010 #include <linux/fs.h>
16016 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
16017 file_operations_no_const fops __attribute__ ((unused));
16019 fops.fsync = fsync;
16028 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16029 echo "obj-m := conftest.o" >build
/Makefile
16031 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16032 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16044 { $as_echo "$as_me:$LINENO: result: range" >&5
16045 $as_echo "range" >&6; }
16047 cat >>confdefs.h
<<\_ACEOF
16048 #define HAVE_FSYNC_RANGE 1
16053 $as_echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.
$ac_ext >&5
16067 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
16068 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
16071 cat confdefs.h
- <<_ACEOF >conftest.c
16074 cat confdefs.h
>>conftest.
$ac_ext
16075 cat >>conftest.
$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16079 #include <linux/fs.h>
16080 void evict_inode (struct inode * t) { return; }
16081 static struct super_operations sops __attribute__ ((unused)) = {
16082 .evict_inode = evict_inode,
16097 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16098 echo "obj-m := conftest.o" >build
/Makefile
16100 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
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 $modpost_flag'
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_EVICT_INODE 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; }
16137 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
16138 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
16141 cat confdefs.h
- <<_ACEOF >conftest.c
16144 cat confdefs.h
>>conftest.
$ac_ext
16145 cat >>conftest.
$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16149 #include <linux/fs.h>
16155 int (*nr_cached_objects)(struct super_block *)
16156 __attribute__ ((unused)) = NULL;
16157 struct super_operations sops __attribute__ ((unused)) = {
16158 .nr_cached_objects = nr_cached_objects,
16168 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16169 echo "obj-m := conftest.o" >build
/Makefile
16171 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16172 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16184 { $as_echo "$as_me:$LINENO: result: yes" >&5
16185 $as_echo "yes" >&6; }
16187 cat >>confdefs.h
<<\_ACEOF
16188 #define HAVE_NR_CACHED_OBJECTS 1
16193 $as_echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.
$ac_ext >&5
16196 { $as_echo "$as_me:$LINENO: result: no" >&5
16197 $as_echo "no" >&6; }
16208 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
16209 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
16212 cat confdefs.h
- <<_ACEOF >conftest.c
16215 cat confdefs.h
>>conftest.
$ac_ext
16216 cat >>conftest.
$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16220 #include <linux/fs.h>
16226 void (*free_cached_objects)(struct super_block *, int)
16227 __attribute__ ((unused)) = NULL;
16228 struct super_operations sops __attribute__ ((unused)) = {
16229 .free_cached_objects = free_cached_objects,
16239 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16240 echo "obj-m := conftest.o" >build
/Makefile
16242 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16243 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }; then
16255 { $as_echo "$as_me:$LINENO: result: yes" >&5
16256 $as_echo "yes" >&6; }
16258 cat >>confdefs.h
<<\_ACEOF
16259 #define HAVE_FREE_CACHED_OBJECTS 1
16264 $as_echo "$as_me: failed program was:" >&5
16265 sed 's/^/| /' conftest.
$ac_ext >&5
16267 { $as_echo "$as_me:$LINENO: result: no" >&5
16268 $as_echo "no" >&6; }
16280 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
16281 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16284 cat confdefs.h
- <<_ACEOF >conftest.c
16287 cat confdefs.h
>>conftest.
$ac_ext
16288 cat >>conftest.
$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16292 #include <linux/fs.h>
16298 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16299 struct file_operations fops __attribute__ ((unused)) = {
16300 .fallocate = fallocate,
16310 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16311 echo "obj-m := conftest.o" >build
/Makefile
16313 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16314 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16326 { $as_echo "$as_me:$LINENO: result: yes" >&5
16327 $as_echo "yes" >&6; }
16329 cat >>confdefs.h
<<\_ACEOF
16330 #define HAVE_FILE_FALLOCATE 1
16335 $as_echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.
$ac_ext >&5
16338 { $as_echo "$as_me:$LINENO: result: no" >&5
16339 $as_echo "no" >&6; }
16350 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
16351 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
16354 cat confdefs.h
- <<_ACEOF >conftest.c
16357 cat confdefs.h
>>conftest.
$ac_ext
16358 cat >>conftest.
$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16362 #include <linux/fs.h>
16368 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
16369 struct inode_operations fops __attribute__ ((unused)) = {
16370 .fallocate = fallocate,
16380 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16381 echo "obj-m := conftest.o" >build
/Makefile
16383 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16384 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16396 { $as_echo "$as_me:$LINENO: result: yes" >&5
16397 $as_echo "yes" >&6; }
16399 cat >>confdefs.h
<<\_ACEOF
16400 #define HAVE_INODE_FALLOCATE 1
16405 $as_echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.
$ac_ext >&5
16408 { $as_echo "$as_me:$LINENO: result: no" >&5
16409 $as_echo "no" >&6; }
16420 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
16421 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16424 cat confdefs.h
- <<_ACEOF >conftest.c
16427 cat confdefs.h
>>conftest.
$ac_ext
16428 cat >>conftest.
$ac_ext <<_ACEOF
16429 /* end confdefs.h. */
16432 #include <linux/fs.h>
16438 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16439 struct file_operations_no_const fops __attribute__ ((unused)) = {
16440 .fallocate = fallocate,
16450 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16451 echo "obj-m := conftest.o" >build
/Makefile
16453 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16454 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16466 { $as_echo "$as_me:$LINENO: result: yes" >&5
16467 $as_echo "yes" >&6; }
16469 cat >>confdefs.h
<<\_ACEOF
16470 #define HAVE_FILE_FALLOCATE 1
16475 $as_echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.
$ac_ext >&5
16478 { $as_echo "$as_me:$LINENO: result: no" >&5
16479 $as_echo "no" >&6; }
16491 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
16492 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
16495 cat confdefs.h
- <<_ACEOF >conftest.c
16498 cat confdefs.h
>>conftest.
$ac_ext
16499 cat >>conftest.
$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16503 #include <linux/fs.h>
16504 void truncate_range(struct inode *inode, loff_t start,
16505 loff_t end) { return; }
16506 static struct inode_operations iops __attribute__ ((unused)) = {
16507 .truncate_range = truncate_range,
16522 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16523 echo "obj-m := conftest.o" >build
/Makefile
16525 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16526 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; }; then
16538 { $as_echo "$as_me:$LINENO: result: yes" >&5
16539 $as_echo "yes" >&6; }
16541 cat >>confdefs.h
<<\_ACEOF
16542 #define HAVE_INODE_TRUNCATE_RANGE 1
16547 $as_echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.
$ac_ext >&5
16550 { $as_echo "$as_me:$LINENO: result: no" >&5
16551 $as_echo "no" >&6; }
16562 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
16563 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
16566 cat confdefs.h
- <<_ACEOF >conftest.c
16569 cat confdefs.h
>>conftest.
$ac_ext
16570 cat >>conftest.
$ac_ext <<_ACEOF
16571 /* end confdefs.h. */
16574 #include <linux/fs.h>
16580 int (*create) (struct inode *, struct dentry *, umode_t,
16581 struct nameidata *) = NULL;
16582 struct inode_operations iops __attribute__ ((unused)) = {
16593 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16594 echo "obj-m := conftest.o" >build
/Makefile
16596 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16597 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16609 { $as_echo "$as_me:$LINENO: result: yes" >&5
16610 $as_echo "yes" >&6; }
16612 cat >>confdefs.h
<<\_ACEOF
16613 #define HAVE_CREATE_UMODE_T 1
16618 $as_echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.
$ac_ext >&5
16621 { $as_echo "$as_me:$LINENO: result: no" >&5
16622 $as_echo "no" >&6; }
16633 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
16634 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
16637 cat confdefs.h
- <<_ACEOF >conftest.c
16640 cat confdefs.h
>>conftest.
$ac_ext
16641 cat >>conftest.
$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16645 #include <linux/dcache.h>
16651 struct vfsmount *(*d_automount) (struct path *) = NULL;
16652 struct dentry_operations dops __attribute__ ((unused)) = {
16653 .d_automount = d_automount,
16663 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16664 echo "obj-m := conftest.o" >build
/Makefile
16666 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16667 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16679 { $as_echo "$as_me:$LINENO: result: yes" >&5
16680 $as_echo "yes" >&6; }
16682 cat >>confdefs.h
<<\_ACEOF
16683 #define HAVE_AUTOMOUNT 1
16688 $as_echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.
$ac_ext >&5
16691 { $as_echo "$as_me:$LINENO: result: no" >&5
16692 $as_echo "no" >&6; }
16703 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
16704 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
16707 cat confdefs.h
- <<_ACEOF >conftest.c
16710 cat confdefs.h
>>conftest.
$ac_ext
16711 cat >>conftest.
$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16715 #include <linux/exportfs.h>
16716 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
16717 struct inode *parent) { return 0; }
16718 static struct export_operations eops __attribute__ ((unused))={
16719 .encode_fh = encode_fh,
16734 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16735 echo "obj-m := conftest.o" >build
/Makefile
16737 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16738 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
16750 { $as_echo "$as_me:$LINENO: result: yes" >&5
16751 $as_echo "yes" >&6; }
16753 cat >>confdefs.h
<<\_ACEOF
16754 #define HAVE_ENCODE_FH_WITH_INODE 1
16759 $as_echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.
$ac_ext >&5
16762 { $as_echo "$as_me:$LINENO: result: no" >&5
16763 $as_echo "no" >&6; }
16773 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
16774 $as_echo_n "checking whether clear_inode() is available... " >&6; }
16778 cat confdefs.h
- <<_ACEOF >conftest.c
16781 cat confdefs.h
>>conftest.
$ac_ext
16782 cat >>conftest.
$ac_ext <<_ACEOF
16783 /* end confdefs.h. */
16786 #include <linux/fs.h>
16801 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16802 echo "obj-m := conftest.o" >build
/Makefile
16804 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16805 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
16818 $as_echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.
$ac_ext >&5
16828 if test $rc -ne 0; then :
16830 { $as_echo "$as_me:$LINENO: result: no" >&5
16831 $as_echo "no" >&6; }
16834 if test "x$enable_linux_builtin" != xyes
; then
16836 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
16837 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16839 if test $rc -ne 0; then
16841 for file in fs
/inode.c
; do
16842 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
16843 "$LINUX/$file" 2>/dev
/null
16845 if test $rc -eq 0; then
16850 if test $export -eq 0; then :
16860 if test $rc -ne 0; then :
16862 { $as_echo "$as_me:$LINENO: result: no" >&5
16863 $as_echo "no" >&6; }
16867 { $as_echo "$as_me:$LINENO: result: yes" >&5
16868 $as_echo "yes" >&6; }
16870 cat >>confdefs.h
<<\_ACEOF
16871 #define HAVE_CLEAR_INODE 1
16879 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
16880 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
16884 cat confdefs.h
- <<_ACEOF >conftest.c
16887 cat confdefs.h
>>conftest.
$ac_ext
16888 cat >>conftest.
$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16892 #include <linux/fs.h>
16898 insert_inode_locked(NULL);
16907 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16908 echo "obj-m := conftest.o" >build
/Makefile
16910 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16911 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16924 $as_echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.
$ac_ext >&5
16934 if test $rc -ne 0; then :
16936 { $as_echo "$as_me:$LINENO: result: no" >&5
16937 $as_echo "no" >&6; }
16940 if test "x$enable_linux_builtin" != xyes
; then
16942 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
16943 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16945 if test $rc -ne 0; then
16947 for file in fs
/inode.c
; do
16948 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
16949 "$LINUX/$file" 2>/dev
/null
16951 if test $rc -eq 0; then
16956 if test $export -eq 0; then :
16966 if test $rc -ne 0; then :
16968 { $as_echo "$as_me:$LINENO: result: no" >&5
16969 $as_echo "no" >&6; }
16973 { $as_echo "$as_me:$LINENO: result: yes" >&5
16974 $as_echo "yes" >&6; }
16976 cat >>confdefs.h
<<\_ACEOF
16977 #define HAVE_INSERT_INODE_LOCKED 1
16985 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
16986 $as_echo_n "checking whether d_make_root() is available... " >&6; }
16990 cat confdefs.h
- <<_ACEOF >conftest.c
16993 cat confdefs.h
>>conftest.
$ac_ext
16994 cat >>conftest.
$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16998 #include <linux/dcache.h>
17013 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17014 echo "obj-m := conftest.o" >build
/Makefile
17016 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17017 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17030 $as_echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.
$ac_ext >&5
17040 if test $rc -ne 0; then :
17042 { $as_echo "$as_me:$LINENO: result: no" >&5
17043 $as_echo "no" >&6; }
17046 if test "x$enable_linux_builtin" != xyes
; then
17048 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
17049 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17051 if test $rc -ne 0; then
17053 for file in fs
/dcache.c
; do
17054 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
17055 "$LINUX/$file" 2>/dev
/null
17057 if test $rc -eq 0; then
17062 if test $export -eq 0; then :
17072 if test $rc -ne 0; then :
17074 { $as_echo "$as_me:$LINENO: result: no" >&5
17075 $as_echo "no" >&6; }
17079 { $as_echo "$as_me:$LINENO: result: yes" >&5
17080 $as_echo "yes" >&6; }
17082 cat >>confdefs.h
<<\_ACEOF
17083 #define HAVE_D_MAKE_ROOT 1
17091 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
17092 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
17096 cat confdefs.h
- <<_ACEOF >conftest.c
17099 cat confdefs.h
>>conftest.
$ac_ext
17100 cat >>conftest.
$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17104 #include <linux/dcache.h>
17110 d_obtain_alias(NULL);
17119 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17120 echo "obj-m := conftest.o" >build
/Makefile
17122 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17123 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17136 $as_echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.
$ac_ext >&5
17146 if test $rc -ne 0; then :
17148 { $as_echo "$as_me:$LINENO: result: no" >&5
17149 $as_echo "no" >&6; }
17152 if test "x$enable_linux_builtin" != xyes
; then
17154 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
17155 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17157 if test $rc -ne 0; then
17159 for file in fs
/dcache.c
; do
17160 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
17161 "$LINUX/$file" 2>/dev
/null
17163 if test $rc -eq 0; then
17168 if test $export -eq 0; then :
17178 if test $rc -ne 0; then :
17180 { $as_echo "$as_me:$LINENO: result: no" >&5
17181 $as_echo "no" >&6; }
17185 { $as_echo "$as_me:$LINENO: result: yes" >&5
17186 $as_echo "yes" >&6; }
17188 cat >>confdefs.h
<<\_ACEOF
17189 #define HAVE_D_OBTAIN_ALIAS 1
17197 { $as_echo "$as_me:$LINENO: checking whether check_disk_size_change() is available" >&5
17198 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
17202 cat confdefs.h
- <<_ACEOF >conftest.c
17205 cat confdefs.h
>>conftest.
$ac_ext
17206 cat >>conftest.
$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17210 #include <linux/fs.h>
17216 check_disk_size_change(NULL, NULL);
17225 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17226 echo "obj-m := conftest.o" >build
/Makefile
17228 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17229 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17242 $as_echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.
$ac_ext >&5
17252 if test $rc -ne 0; then :
17254 { $as_echo "$as_me:$LINENO: result: no" >&5
17255 $as_echo "no" >&6; }
17258 if test "x$enable_linux_builtin" != xyes
; then
17260 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
17261 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17263 if test $rc -ne 0; then
17265 for file in fs
/block_dev.c
; do
17266 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
17267 "$LINUX/$file" 2>/dev
/null
17269 if test $rc -eq 0; then
17274 if test $export -eq 0; then :
17284 if test $rc -ne 0; then :
17286 { $as_echo "$as_me:$LINENO: result: no" >&5
17287 $as_echo "no" >&6; }
17291 { $as_echo "$as_me:$LINENO: result: yes" >&5
17292 $as_echo "yes" >&6; }
17294 cat >>confdefs.h
<<\_ACEOF
17295 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
17303 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
17304 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
17308 cat confdefs.h
- <<_ACEOF >conftest.c
17311 cat confdefs.h
>>conftest.
$ac_ext
17312 cat >>conftest.
$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17316 #include <linux/mm.h>
17322 truncate_setsize(NULL, 0);
17331 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17332 echo "obj-m := conftest.o" >build
/Makefile
17334 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17335 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; }; then
17348 $as_echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.
$ac_ext >&5
17358 if test $rc -ne 0; then :
17360 { $as_echo "$as_me:$LINENO: result: no" >&5
17361 $as_echo "no" >&6; }
17364 if test "x$enable_linux_builtin" != xyes
; then
17366 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
17367 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17369 if test $rc -ne 0; then
17371 for file in mm
/truncate.c
; do
17372 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
17373 "$LINUX/$file" 2>/dev
/null
17375 if test $rc -eq 0; then
17380 if test $export -eq 0; then :
17390 if test $rc -ne 0; then :
17392 { $as_echo "$as_me:$LINENO: result: no" >&5
17393 $as_echo "no" >&6; }
17397 { $as_echo "$as_me:$LINENO: result: yes" >&5
17398 $as_echo "yes" >&6; }
17400 cat >>confdefs.h
<<\_ACEOF
17401 #define HAVE_TRUNCATE_SETSIZE 1
17410 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
17411 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
17412 tmp_flags
="$EXTRA_KCFLAGS"
17413 EXTRA_KCFLAGS
="-Werror"
17416 cat confdefs.h
- <<_ACEOF >conftest.c
17419 cat confdefs.h
>>conftest.
$ac_ext
17420 cat >>conftest.
$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17424 #include <linux/security.h>
17430 struct inode *ip __attribute__ ((unused)) = NULL;
17431 struct inode *dip __attribute__ ((unused)) = NULL;
17432 const struct qstr *str __attribute__ ((unused)) = NULL;
17433 char *name __attribute__ ((unused)) = NULL;
17434 void *value __attribute__ ((unused)) = NULL;
17435 size_t len __attribute__ ((unused)) = 0;
17437 security_inode_init_security(ip, dip, str, &name, &value, &len);
17446 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17447 echo "obj-m := conftest.o" >build
/Makefile
17449 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17450 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17462 { $as_echo "$as_me:$LINENO: result: yes" >&5
17463 $as_echo "yes" >&6; }
17465 cat >>confdefs.h
<<\_ACEOF
17466 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
17471 $as_echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.
$ac_ext >&5
17474 { $as_echo "$as_me:$LINENO: result: no" >&5
17475 $as_echo "no" >&6; }
17484 EXTRA_KCFLAGS
="$tmp_flags"
17487 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
17488 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
17489 tmp_flags
="$EXTRA_KCFLAGS"
17490 EXTRA_KCFLAGS
="-Werror"
17493 cat confdefs.h
- <<_ACEOF >conftest.c
17496 cat confdefs.h
>>conftest.
$ac_ext
17497 cat >>conftest.
$ac_ext <<_ACEOF
17498 /* end confdefs.h. */
17501 #include <linux/security.h>
17507 struct inode *ip __attribute__ ((unused)) = NULL;
17508 struct inode *dip __attribute__ ((unused)) = NULL;
17509 const struct qstr *str __attribute__ ((unused)) = NULL;
17510 initxattrs func __attribute__ ((unused)) = NULL;
17512 security_inode_init_security(ip, dip, str, func, NULL);
17521 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17522 echo "obj-m := conftest.o" >build
/Makefile
17524 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17525 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17527 (eval $ac_try) 2>&5
17529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; }; then
17537 { $as_echo "$as_me:$LINENO: result: yes" >&5
17538 $as_echo "yes" >&6; }
17540 cat >>confdefs.h
<<\_ACEOF
17541 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
17546 $as_echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.
$ac_ext >&5
17549 { $as_echo "$as_me:$LINENO: result: no" >&5
17550 $as_echo "no" >&6; }
17559 EXTRA_KCFLAGS
="$tmp_flags"
17561 { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
17562 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
17566 cat confdefs.h
- <<_ACEOF >conftest.c
17569 cat confdefs.h
>>conftest.
$ac_ext
17570 cat >>conftest.
$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17574 #include <linux/fs.h>
17580 mount_nodev(NULL, 0, NULL, NULL);
17589 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17590 echo "obj-m := conftest.o" >build
/Makefile
17592 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17593 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17606 $as_echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.
$ac_ext >&5
17616 if test $rc -ne 0; then :
17618 { $as_echo "$as_me:$LINENO: result: no" >&5
17619 $as_echo "no" >&6; }
17622 if test "x$enable_linux_builtin" != xyes
; then
17624 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
17625 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17627 if test $rc -ne 0; then
17629 for file in fs
/super.c
; do
17630 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
17631 "$LINUX/$file" 2>/dev
/null
17633 if test $rc -eq 0; then
17638 if test $export -eq 0; then :
17648 if test $rc -ne 0; then :
17650 { $as_echo "$as_me:$LINENO: result: no" >&5
17651 $as_echo "no" >&6; }
17655 { $as_echo "$as_me:$LINENO: result: yes" >&5
17656 $as_echo "yes" >&6; }
17658 cat >>confdefs.h
<<\_ACEOF
17659 #define HAVE_MOUNT_NODEV 1
17668 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
17669 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
17672 cat confdefs.h
- <<_ACEOF >conftest.c
17675 cat confdefs.h
>>conftest.
$ac_ext
17676 cat >>conftest.
$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17680 #include <linux/fs.h>
17686 int (*shrink)(struct shrinker *, struct shrink_control *sc)
17687 __attribute__ ((unused)) = NULL;
17688 struct super_block sb __attribute__ ((unused)) = {
17689 .s_shrink.shrink = shrink,
17690 .s_shrink.seeks = DEFAULT_SEEKS,
17691 .s_shrink.batch = 0,
17701 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17702 echo "obj-m := conftest.o" >build
/Makefile
17704 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17705 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; }; then
17717 { $as_echo "$as_me:$LINENO: result: yes" >&5
17718 $as_echo "yes" >&6; }
17720 cat >>confdefs.h
<<\_ACEOF
17721 #define HAVE_SHRINK 1
17727 $as_echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.
$ac_ext >&5
17730 { $as_echo "$as_me:$LINENO: result: no" >&5
17731 $as_echo "no" >&6; }
17742 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
17743 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
17746 cat confdefs.h
- <<_ACEOF >conftest.c
17749 cat confdefs.h
>>conftest.
$ac_ext
17750 cat >>conftest.
$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17754 #include <linux/fs.h>
17760 struct super_block sb __attribute__ ((unused));
17770 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17771 echo "obj-m := conftest.o" >build
/Makefile
17773 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17774 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17786 { $as_echo "$as_me:$LINENO: result: yes" >&5
17787 $as_echo "yes" >&6; }
17789 cat >>confdefs.h
<<\_ACEOF
17795 $as_echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.
$ac_ext >&5
17798 { $as_echo "$as_me:$LINENO: result: no" >&5
17799 $as_echo "no" >&6; }
17809 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() is available" >&5
17810 $as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
17814 cat confdefs.h
- <<_ACEOF >conftest.c
17817 cat confdefs.h
>>conftest.
$ac_ext
17818 cat >>conftest.
$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17822 #include <linux/backing-dev.h>
17828 bdi_setup_and_register(NULL, NULL, 0);
17837 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17838 echo "obj-m := conftest.o" >build
/Makefile
17840 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17841 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
17854 $as_echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.
$ac_ext >&5
17864 if test $rc -ne 0; then :
17866 { $as_echo "$as_me:$LINENO: result: no" >&5
17867 $as_echo "no" >&6; }
17870 if test "x$enable_linux_builtin" != xyes
; then
17872 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
17873 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17875 if test $rc -ne 0; then
17877 for file in mm
/backing-dev.c
; do
17878 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
17879 "$LINUX/$file" 2>/dev
/null
17881 if test $rc -eq 0; then
17886 if test $export -eq 0; then :
17896 if test $rc -ne 0; then :
17898 { $as_echo "$as_me:$LINENO: result: no" >&5
17899 $as_echo "no" >&6; }
17903 { $as_echo "$as_me:$LINENO: result: yes" >&5
17904 $as_echo "yes" >&6; }
17906 cat >>confdefs.h
<<\_ACEOF
17907 #define HAVE_BDI_SETUP_AND_REGISTER 1
17916 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
17917 $as_echo_n "checking whether set_nlink() is available... " >&6; }
17920 cat confdefs.h
- <<_ACEOF >conftest.c
17923 cat confdefs.h
>>conftest.
$ac_ext
17924 cat >>conftest.
$ac_ext <<_ACEOF
17925 /* end confdefs.h. */
17928 #include <linux/fs.h>
17935 unsigned int link = 0;
17936 (void) set_nlink(&node, link);
17945 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17946 echo "obj-m := conftest.o" >build
/Makefile
17948 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17949 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17961 { $as_echo "$as_me:$LINENO: result: yes" >&5
17962 $as_echo "yes" >&6; }
17964 cat >>confdefs.h
<<\_ACEOF
17965 #define HAVE_SET_NLINK 1
17970 $as_echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.
$ac_ext >&5
17973 { $as_echo "$as_me:$LINENO: result: no" >&5
17974 $as_echo "no" >&6; }
17985 if test "$LINUX_OBJ" != "$LINUX"; then
17987 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
17994 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
17995 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
17996 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
18003 # Check whether --with-udevdir was given.
18004 if test "${with_udevdir+set}" = set; then
18005 withval
=$with_udevdir; udevdir
=$withval
18007 udevdir
='${exec_prefix}/lib/udev'
18012 # Check whether --with-udevruledir was given.
18013 if test "${with_udevruledir+set}" = set; then
18014 withval
=$with_udevruledir; udevruledir
=$withval
18016 udevruledir
='${udevdir}/rules.d'
18024 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
18025 $as_echo_n "checking for target asm dir... " >&6; }
18026 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
18028 case $TARGET_ARCH in
18030 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
18033 TARGET_ASM_DIR
=asm-generic
18038 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
18039 $as_echo "$TARGET_ASM_DIR" >&6; }
18042 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
18043 $as_echo_n "checking for ioctl()... " >&6; }
18044 cat >conftest.
$ac_ext <<_ACEOF
18047 cat confdefs.h
>>conftest.
$ac_ext
18048 cat >>conftest.
$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 #include <unistd.h>
18053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18054 $EGREP "ioctl" >/dev
/null
2>&1; then
18061 cat >conftest.
$ac_ext <<_ACEOF
18064 cat confdefs.h
>>conftest.
$ac_ext
18065 cat >>conftest.
$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18067 #include <sys/ioctl.h>
18070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18071 $EGREP "ioctl" >/dev
/null
2>&1; then
18078 cat >conftest.
$ac_ext <<_ACEOF
18081 cat confdefs.h
>>conftest.
$ac_ext
18082 cat >>conftest.
$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 #include <stropts.h>
18087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18088 $EGREP "ioctl" >/dev
/null
2>&1; then
18096 if test $is_unistd = yes; then
18099 cat >>confdefs.h
<<\_ACEOF
18100 #define HAVE_IOCTL_IN_UNISTD_H 1
18105 if test $is_sys_ioctl = yes; then
18108 cat >>confdefs.h
<<\_ACEOF
18109 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
18112 elif test $is_stropts = yes; then
18114 cat >>confdefs.h
<<\_ACEOF
18115 #define HAVE_IOCTL_IN_STROPTS_H 1
18123 if test $result = no
; then
18124 { $as_echo "$as_me:$LINENO: result: no" >&5
18125 $as_echo "no" >&6; }
18126 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
18127 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
18128 { (exit 1); exit 1; }; }
18130 { $as_echo "$as_me:$LINENO: result: yes" >&5
18131 $as_echo "yes" >&6; }
18137 if test "${ac_cv_header_zlib_h+set}" = set; then
18138 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18139 $as_echo_n "checking for zlib.h... " >&6; }
18140 if test "${ac_cv_header_zlib_h+set}" = set; then
18141 $as_echo_n "(cached) " >&6
18143 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18144 $as_echo "$ac_cv_header_zlib_h" >&6; }
18146 # Is the header compilable?
18147 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
18148 $as_echo_n "checking zlib.h usability... " >&6; }
18149 cat >conftest.
$ac_ext <<_ACEOF
18152 cat confdefs.h
>>conftest.
$ac_ext
18153 cat >>conftest.
$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18155 $ac_includes_default
18158 rm -f conftest.
$ac_objext
18159 if { (ac_try
="$ac_compile"
18160 case "(($ac_try" in
18161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18165 $as_echo "$ac_try_echo") >&5
18166 (eval "$ac_compile") 2>conftest.er1
18168 grep -v '^ *+' conftest.er1 >conftest.err
18170 cat conftest.err >&5
18171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } && {
18173 test -z "$ac_c_werror_flag" ||
18174 test ! -s conftest.err
18175 } && test -s conftest.$ac_objext; then
18176 ac_header_compiler=yes
18178 $as_echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18181 ac_header_compiler=no
18184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18186 $as_echo "$ac_header_compiler" >&6; }
18188 # Is the header present?
18189 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
18190 $as_echo_n "checking zlib.h presence... " >&6; }
18191 cat >conftest.$ac_ext <<_ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h. */
18199 if { (ac_try="$ac_cpp conftest.$ac_ext"
18200 case "(($ac_try" in
18201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18202 *) ac_try_echo
=$ac_try;;
18204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18205 $as_echo "$ac_try_echo") >&5
18206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18208 grep -v '^ *+' conftest.er1
>conftest.err
18210 cat conftest.err
>&5
18211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } >/dev
/null
&& {
18213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18214 test ! -s conftest.err
18216 ac_header_preproc
=yes
18218 $as_echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.
$ac_ext >&5
18221 ac_header_preproc
=no
18224 rm -f conftest.err conftest.
$ac_ext
18225 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18226 $as_echo "$ac_header_preproc" >&6; }
18228 # So? What about this header?
18229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18231 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18232 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18233 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
18234 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
18235 ac_header_preproc
=yes
18238 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18239 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18240 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18241 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18242 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
18243 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
18244 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
18245 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18246 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18247 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18248 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
18249 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
18253 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18254 $as_echo_n "checking for zlib.h... " >&6; }
18255 if test "${ac_cv_header_zlib_h+set}" = set; then
18256 $as_echo_n "(cached) " >&6
18258 ac_cv_header_zlib_h
=$ac_header_preproc
18260 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18261 $as_echo "$ac_cv_header_zlib_h" >&6; }
18264 if test "x$ac_cv_header_zlib_h" = x
""yes; then
18267 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18269 { { $as_echo "$as_me:$LINENO: error:
18270 *** zlib.h missing, zlib-devel package required
18271 See \`config.log' for more details." >&5
18272 $as_echo "$as_me: error:
18273 *** zlib.h missing, zlib-devel package required
18274 See \`config.log' for more details." >&2;}
18275 { (exit 1); exit 1; }; }; }
18281 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
18282 $as_echo_n "checking for compress2 in -lz... " >&6; }
18283 if test "${ac_cv_lib_z_compress2+set}" = set; then
18284 $as_echo_n "(cached) " >&6
18286 ac_check_lib_save_LIBS
=$LIBS
18288 cat >conftest.
$ac_ext <<_ACEOF
18291 cat confdefs.h
>>conftest.
$ac_ext
18292 cat >>conftest.
$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18295 /* Override any GCC internal prototype to avoid an error.
18296 Use char because int might match the return type of a GCC
18297 builtin and then its argument prototype would still apply. */
18305 return compress2 ();
18310 rm -f conftest.
$ac_objext conftest
$ac_exeext
18311 if { (ac_try
="$ac_link"
18312 case "(($ac_try" in
18313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18317 $as_echo "$ac_try_echo") >&5
18318 (eval "$ac_link") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } && {
18325 test -z "$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 } && test -s conftest$ac_exeext && {
18328 test "$cross_compiling" = yes ||
18329 $as_test_x conftest$ac_exeext
18331 ac_cv_lib_z_compress2=yes
18333 $as_echo "$as_me: failed program was:" >&5
18334 sed 's/^/| /' conftest.$ac_ext >&5
18336 ac_cv_lib_z_compress2=no
18339 rm -rf conftest.dSYM
18340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18341 conftest$ac_exeext conftest.$ac_ext
18342 LIBS=$ac_check_lib_save_LIBS
18344 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
18345 $as_echo "$ac_cv_lib_z_compress2" >&6; }
18346 if test "x$ac_cv_lib_z_compress2" = x""yes; then
18347 cat >>confdefs.h <<_ACEOF
18348 #define HAVE_LIBZ 1
18354 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18356 { { $as_echo "$as_me:$LINENO: error
:
18357 *** compress2
() missing
, zlib-devel package required
18358 See \
`config.log' for more details." >&5
18359 $as_echo "$as_me: error:
18360 *** compress2() missing, zlib-devel package required
18361 See \`config.log
' for more details." >&2;}
18362 { (exit 1); exit 1; }; }; }
18367 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
18368 $as_echo_n "checking for uncompress in -lz... " >&6; }
18369 if test "${ac_cv_lib_z_uncompress+set}" = set; then
18370 $as_echo_n "(cached) " >&6
18372 ac_check_lib_save_LIBS=$LIBS
18374 cat >conftest.$ac_ext <<_ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18381 /* Override any GCC internal prototype to avoid an error.
18382 Use char because int might match the return type of a GCC
18383 builtin and then its argument prototype would still apply. */
18387 char uncompress ();
18391 return uncompress ();
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (ac_try="$ac_link"
18398 case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18403 $as_echo "$ac_try_echo") >&5
18404 (eval "$ac_link") 2>conftest.er1
18406 grep -v '^
*+' conftest.er1 >conftest.err
18408 cat conftest.err >&5
18409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } && {
18411 test -z "$ac_c_werror_flag" ||
18412 test ! -s conftest.err
18413 } && test -s conftest$ac_exeext && {
18414 test "$cross_compiling" = yes ||
18415 $as_test_x conftest$ac_exeext
18417 ac_cv_lib_z_uncompress=yes
18419 $as_echo "$as_me: failed program was:" >&5
18420 sed 's
/^
/|
/' conftest.$ac_ext >&5
18422 ac_cv_lib_z_uncompress=no
18425 rm -rf conftest.dSYM
18426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18427 conftest$ac_exeext conftest.$ac_ext
18428 LIBS=$ac_check_lib_save_LIBS
18430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
18431 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
18432 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
18433 cat >>confdefs.h <<_ACEOF
18434 #define HAVE_LIBZ 1
18440 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18441 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
18442 { { $as_echo "$as_me:$LINENO: error:
18443 *** uncompress() missing, zlib-devel package required
18444 See \`config.log
' for more details." >&5
18445 $as_echo "$as_me: error:
18446 *** uncompress() missing, zlib-devel package required
18447 See \`config.log' for more details.
" >&2;}
18448 { (exit 1); exit 1; }; }; }
18453 { $as_echo "$as_me:$LINENO: checking
for crc32
in -lz" >&5
18454 $as_echo_n "checking
for crc32
in -lz...
" >&6; }
18455 if test "${ac_cv_lib_z_crc32+set}" = set; then
18456 $as_echo_n "(cached
) " >&6
18458 ac_check_lib_save_LIBS=$LIBS
18460 cat >conftest.$ac_ext <<_ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18467 /* Override any GCC internal prototype to avoid an error.
18468 Use char because int might match the return type of a GCC
18469 builtin and then its argument prototype would still apply. */
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (ac_try="$ac_link"
18484 case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18488 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18489 $as_echo "$ac_try_echo") >&5
18490 (eval "$ac_link") 2>conftest.er1
18492 grep -v '^ *+' conftest.er1 >conftest.err
18494 cat conftest.err >&5
18495 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18496 (exit $ac_status); } && {
18497 test -z "$ac_c_werror_flag" ||
18498 test ! -s conftest.err
18499 } && test -s conftest$ac_exeext && {
18500 test "$cross_compiling" = yes ||
18501 $as_test_x conftest$ac_exeext
18503 ac_cv_lib_z_crc32=yes
18505 $as_echo "$as_me: failed program was
:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18508 ac_cv_lib_z_crc32=no
18511 rm -rf conftest.dSYM
18512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18513 conftest$ac_exeext conftest.$ac_ext
18514 LIBS=$ac_check_lib_save_LIBS
18516 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_crc32" >&5
18517 $as_echo "$ac_cv_lib_z_crc32" >&6; }
18518 if test "x
$ac_cv_lib_z_crc32" = x""yes; then
18519 cat >>confdefs.h <<_ACEOF
18520 #define HAVE_LIBZ 1
18526 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
18527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18528 { { $as_echo "$as_me:$LINENO: error:
18529 *** crc32() missing, zlib-devel package required
18530 See \`config.log' for more details.
" >&5
18531 $as_echo "$as_me: error
:
18532 *** crc32
() missing
, zlib-devel package required
18533 See \
`config.log' for more details." >&2;}
18534 { (exit 1); exit 1; }; }; }
18541 cat >>confdefs.h <<\_ACEOF
18542 #define HAVE_ZLIB 1
18549 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18550 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18551 $as_echo_n "checking for uuid/uuid.h... " >&6; }
18552 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18553 $as_echo_n "(cached) " >&6
18555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18556 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18558 # Is the header compilable?
18559 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
18560 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
18561 cat >conftest.$ac_ext <<_ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 $ac_includes_default
18568 #include <uuid/uuid.h>
18570 rm -f conftest.$ac_objext
18571 if { (ac_try="$ac_compile"
18572 case "(($ac_try" in
18573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18574 *) ac_try_echo
=$ac_try;;
18576 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18577 $as_echo "$ac_try_echo") >&5
18578 (eval "$ac_compile") 2>conftest.er1
18580 grep -v '^ *+' conftest.er1
>conftest.err
18582 cat conftest.err
>&5
18583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } && {
18585 test -z "$ac_c_werror_flag" ||
18586 test ! -s conftest.err
18587 } && test -s conftest.
$ac_objext; then
18588 ac_header_compiler
=yes
18590 $as_echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.
$ac_ext >&5
18593 ac_header_compiler
=no
18596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18598 $as_echo "$ac_header_compiler" >&6; }
18600 # Is the header present?
18601 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
18602 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
18603 cat >conftest.
$ac_ext <<_ACEOF
18606 cat confdefs.h
>>conftest.
$ac_ext
18607 cat >>conftest.
$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18609 #include <uuid/uuid.h>
18611 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18612 case "(($ac_try" in
18613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18617 $as_echo "$ac_try_echo") >&5
18618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18620 grep -v '^ *+' conftest.er1 >conftest.err
18622 cat conftest.err >&5
18623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } >/dev/null && {
18625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18626 test ! -s conftest.err
18628 ac_header_preproc=yes
18630 $as_echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18633 ac_header_preproc=no
18636 rm -f conftest.err conftest.$ac_ext
18637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18638 $as_echo "$ac_header_preproc" >&6; }
18640 # So? What about this header?
18641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18643 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
18644 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18645 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
18646 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
18647 ac_header_preproc=yes
18650 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
18651 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
18652 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
18653 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
18654 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
18655 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
18656 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
18657 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
18658 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
18659 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
18660 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
18661 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
18665 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18666 $as_echo_n "checking for uuid/uuid.h... " >&6; }
18667 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18668 $as_echo_n "(cached) " >&6
18670 ac_cv_header_uuid_uuid_h=$ac_header_preproc
18672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18673 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18676 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
18679 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18681 { { $as_echo "$as_me:$LINENO: error
:
18682 *** uuid
/uuid.h missing
, libuuid-devel package required
18683 See \
`config.log' for more details." >&5
18684 $as_echo "$as_me: error:
18685 *** uuid/uuid.h missing, libuuid-devel package required
18686 See \`config.log
' for more details." >&2;}
18687 { (exit 1); exit 1; }; }; }
18693 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
18694 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
18695 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
18696 $as_echo_n "(cached) " >&6
18698 ac_check_lib_save_LIBS=$LIBS
18699 LIBS="-luuid $LIBS"
18700 cat >conftest.$ac_ext <<_ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18707 /* Override any GCC internal prototype to avoid an error.
18708 Use char because int might match the return type of a GCC
18709 builtin and then its argument prototype would still apply. */
18713 char uuid_generate ();
18717 return uuid_generate ();
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (ac_try="$ac_link"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18729 $as_echo "$ac_try_echo") >&5
18730 (eval "$ac_link") 2>conftest.er1
18732 grep -v '^
*+' conftest.er1 >conftest.err
18734 cat conftest.err >&5
18735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } && {
18737 test -z "$ac_c_werror_flag" ||
18738 test ! -s conftest.err
18739 } && test -s conftest$ac_exeext && {
18740 test "$cross_compiling" = yes ||
18741 $as_test_x conftest$ac_exeext
18743 ac_cv_lib_uuid_uuid_generate=yes
18745 $as_echo "$as_me: failed program was:" >&5
18746 sed 's
/^
/|
/' conftest.$ac_ext >&5
18748 ac_cv_lib_uuid_uuid_generate=no
18751 rm -rf conftest.dSYM
18752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18753 conftest$ac_exeext conftest.$ac_ext
18754 LIBS=$ac_check_lib_save_LIBS
18756 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
18757 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
18758 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
18759 cat >>confdefs.h <<_ACEOF
18760 #define HAVE_LIBUUID 1
18763 LIBS="-luuid $LIBS"
18766 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18767 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
18768 { { $as_echo "$as_me:$LINENO: error:
18769 *** uuid_generate() missing, libuuid-devel package required
18770 See \`config.log
' for more details." >&5
18771 $as_echo "$as_me: error:
18772 *** uuid_generate() missing, libuuid-devel package required
18773 See \`config.log' for more details.
" >&2;}
18774 { (exit 1); exit 1; }; }; }
18779 { $as_echo "$as_me:$LINENO: checking
for uuid_is_null
in -luuid" >&5
18780 $as_echo_n "checking
for uuid_is_null
in -luuid...
" >&6; }
18781 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
18782 $as_echo_n "(cached
) " >&6
18784 ac_check_lib_save_LIBS=$LIBS
18785 LIBS="-luuid $LIBS"
18786 cat >conftest.$ac_ext <<_ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h. */
18793 /* Override any GCC internal prototype to avoid an error.
18794 Use char because int might match the return type of a GCC
18795 builtin and then its argument prototype would still apply. */
18799 char uuid_is_null ();
18803 return uuid_is_null ();
18808 rm -f conftest.$ac_objext conftest$ac_exeext
18809 if { (ac_try="$ac_link"
18810 case "(($ac_try" in
18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18814 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18815 $as_echo "$ac_try_echo") >&5
18816 (eval "$ac_link") 2>conftest.er1
18818 grep -v '^ *+' conftest.er1 >conftest.err
18820 cat conftest.err >&5
18821 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18822 (exit $ac_status); } && {
18823 test -z "$ac_c_werror_flag" ||
18824 test ! -s conftest.err
18825 } && test -s conftest$ac_exeext && {
18826 test "$cross_compiling" = yes ||
18827 $as_test_x conftest$ac_exeext
18829 ac_cv_lib_uuid_uuid_is_null=yes
18831 $as_echo "$as_me: failed program was
:" >&5
18832 sed 's/^/| /' conftest.$ac_ext >&5
18834 ac_cv_lib_uuid_uuid_is_null=no
18837 rm -rf conftest.dSYM
18838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18839 conftest$ac_exeext conftest.$ac_ext
18840 LIBS=$ac_check_lib_save_LIBS
18842 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_is_null" >&5
18843 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
18844 if test "x
$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
18845 cat >>confdefs.h <<_ACEOF
18846 #define HAVE_LIBUUID 1
18849 LIBS="-luuid $LIBS"
18852 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
18853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18854 { { $as_echo "$as_me:$LINENO: error:
18855 *** uuid_is_null() missing, libuuid-devel package required
18856 See \`config.log' for more details.
" >&5
18857 $as_echo "$as_me: error
:
18858 *** uuid_is_null
() missing
, libuuid-devel package required
18859 See \
`config.log' for more details." >&2;}
18860 { (exit 1); exit 1; }; }; }
18867 cat >>confdefs.h <<\_ACEOF
18868 #define HAVE_LIBUUID 1
18874 # Check whether --with-blkid was given.
18875 if test "${with_blkid+set}" = set; then
18876 withval=$with_blkid;
18883 if test "x$with_blkid" != xno; then
18885 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
18886 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
18887 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
18888 $as_echo_n "(cached) " >&6
18890 ac_check_lib_save_LIBS=$LIBS
18891 LIBS="-lblkid $LIBS"
18892 cat >conftest.$ac_ext <<_ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18899 /* Override any GCC internal prototype to avoid an error.
18900 Use char because int might match the return type of a GCC
18901 builtin and then its argument prototype would still apply. */
18905 char blkid_get_cache ();
18909 return blkid_get_cache ();
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (ac_try="$ac_link"
18916 case "(($ac_try" in
18917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18918 *) ac_try_echo
=$ac_try;;
18920 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18921 $as_echo "$ac_try_echo") >&5
18922 (eval "$ac_link") 2>conftest.er1
18924 grep -v '^ *+' conftest.er1
>conftest.err
18926 cat conftest.err
>&5
18927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } && {
18929 test -z "$ac_c_werror_flag" ||
18930 test ! -s conftest.err
18931 } && test -s conftest
$ac_exeext && {
18932 test "$cross_compiling" = yes ||
18933 $as_test_x conftest
$ac_exeext
18935 ac_cv_lib_blkid_blkid_get_cache
=yes
18937 $as_echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.
$ac_ext >&5
18940 ac_cv_lib_blkid_blkid_get_cache
=no
18943 rm -rf conftest.dSYM
18944 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18945 conftest
$ac_exeext conftest.
$ac_ext
18946 LIBS
=$ac_check_lib_save_LIBS
18948 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
18949 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
18950 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x
""yes; then
18952 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
18953 $as_echo_n "checking for blkid zfs support... " >&6; }
18956 dd if=/dev
/zero of
=$ZFS_DEV bs
=1024k count
=8 \
18957 >/dev
/null
2>/dev
/null
18958 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
18959 dd of
=$ZFS_DEV bs
=1k count
=8 \
18960 seek
=132 conv
=notrunc
&>/dev
/null \
18961 >/dev
/null
2>/dev
/null
18963 saved_LDFLAGS
="$LDFLAGS"
18966 if test "$cross_compiling" = yes; then
18967 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18969 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18970 See \`config.log' for more details." >&5
18971 $as_echo "$as_me: error: cannot run test program while cross compiling
18972 See \`config.log' for more details." >&2;}
18973 { (exit 1); exit 1; }; }; }
18975 cat >conftest.
$ac_ext <<_ACEOF
18978 cat confdefs.h
>>conftest.
$ac_ext
18979 cat >>conftest.
$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18983 #include <blkid/blkid.h>
18992 if (blkid_get_cache(&cache, NULL) < 0)
18995 value = blkid_get_tag_value(cache, "TYPE",
18998 blkid_put_cache(cache);
19002 if (strcmp(value, "zfs")) {
19004 blkid_put_cache(cache);
19009 blkid_put_cache(cache);
19015 rm -f conftest
$ac_exeext
19016 if { (ac_try
="$ac_link"
19017 case "(($ac_try" in
19018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19022 $as_echo "$ac_try_echo") >&5
19023 (eval "$ac_link") 2>&5
19025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19027 { (case "(($ac_try" in
19028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19029 *) ac_try_echo
=$ac_try;;
19031 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19032 $as_echo "$ac_try_echo") >&5
19033 (eval "$ac_try") 2>&5
19035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19039 { $as_echo "$as_me:$LINENO: result: yes" >&5
19040 $as_echo "yes" >&6; }
19044 cat >>confdefs.h
<<\_ACEOF
19045 #define HAVE_LIBBLKID 1
19050 $as_echo "$as_me: program exited with status $ac_status" >&5
19051 $as_echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.
$ac_ext >&5
19054 ( exit $ac_status )
19057 { $as_echo "$as_me:$LINENO: result: no" >&5
19058 $as_echo "no" >&6; }
19059 if test "x$with_blkid" != xcheck
; then
19060 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19062 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19063 See \`config.log' for more details." >&5
19064 $as_echo "$as_me: error: --with-blkid given but unavailable
19065 See \`config.log' for more details." >&2;}
19066 { (exit 1); exit 1; }; }; }
19071 rm -rf conftest.dSYM
19072 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19077 LDFLAGS
="$saved_LDFLAGS"
19081 if test "x$with_blkid" != xcheck
; then
19082 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19084 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19085 See \`config.log' for more details." >&5
19086 $as_echo "$as_me: error: --with-blkid given but unavailable
19087 See \`config.log' for more details." >&2;}
19088 { (exit 1); exit 1; }; }; }
19101 # Check whether --with-selinux was given.
19102 if test "${with_selinux+set}" = set; then
19103 withval
=$with_selinux;
19110 if test "x$with_selinux" != xno
; then
19112 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19113 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19114 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19115 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19116 $as_echo_n "(cached) " >&6
19118 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19119 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19121 # Is the header compilable?
19122 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
19123 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
19124 cat >conftest.
$ac_ext <<_ACEOF
19127 cat confdefs.h
>>conftest.
$ac_ext
19128 cat >>conftest.
$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19130 $ac_includes_default
19131 #include <selinux/selinux.h>
19133 rm -f conftest.
$ac_objext
19134 if { (ac_try
="$ac_compile"
19135 case "(($ac_try" in
19136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19140 $as_echo "$ac_try_echo") >&5
19141 (eval "$ac_compile") 2>conftest.er1
19143 grep -v '^ *+' conftest.er1 >conftest.err
19145 cat conftest.err >&5
19146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } && {
19148 test -z "$ac_c_werror_flag" ||
19149 test ! -s conftest.err
19150 } && test -s conftest.$ac_objext; then
19151 ac_header_compiler=yes
19153 $as_echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19156 ac_header_compiler=no
19159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19161 $as_echo "$ac_header_compiler" >&6; }
19163 # Is the header present?
19164 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
19165 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
19166 cat >conftest.$ac_ext <<_ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19172 #include <selinux/selinux.h>
19174 if { (ac_try="$ac_cpp conftest.$ac_ext"
19175 case "(($ac_try" in
19176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19177 *) ac_try_echo
=$ac_try;;
19179 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19180 $as_echo "$ac_try_echo") >&5
19181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19183 grep -v '^ *+' conftest.er1
>conftest.err
19185 cat conftest.err
>&5
19186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } >/dev
/null
&& {
19188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19189 test ! -s conftest.err
19191 ac_header_preproc
=yes
19193 $as_echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.
$ac_ext >&5
19196 ac_header_preproc
=no
19199 rm -f conftest.err conftest.
$ac_ext
19200 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19201 $as_echo "$ac_header_preproc" >&6; }
19203 # So? What about this header?
19204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19206 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
19207 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19208 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
19209 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
19210 ac_header_preproc
=yes
19213 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
19214 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
19215 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
19216 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
19217 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
19218 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
19219 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
19220 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
19221 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
19222 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
19223 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
19224 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
19228 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19229 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19230 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19231 $as_echo_n "(cached) " >&6
19233 ac_cv_header_selinux_selinux_h
=$ac_header_preproc
19235 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19236 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19239 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then
19241 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
19242 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
19243 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
19244 $as_echo_n "(cached) " >&6
19246 ac_check_lib_save_LIBS
=$LIBS
19247 LIBS
="-lselinux $LIBS"
19248 cat >conftest.
$ac_ext <<_ACEOF
19251 cat confdefs.h
>>conftest.
$ac_ext
19252 cat >>conftest.
$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19255 /* Override any GCC internal prototype to avoid an error.
19256 Use char because int might match the return type of a GCC
19257 builtin and then its argument prototype would still apply. */
19261 char is_selinux_enabled ();
19265 return is_selinux_enabled ();
19270 rm -f conftest.
$ac_objext conftest
$ac_exeext
19271 if { (ac_try
="$ac_link"
19272 case "(($ac_try" in
19273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19277 $as_echo "$ac_try_echo") >&5
19278 (eval "$ac_link") 2>conftest.er1
19280 grep -v '^ *+' conftest.er1 >conftest.err
19282 cat conftest.err >&5
19283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } && {
19285 test -z "$ac_c_werror_flag" ||
19286 test ! -s conftest.err
19287 } && test -s conftest$ac_exeext && {
19288 test "$cross_compiling" = yes ||
19289 $as_test_x conftest$ac_exeext
19291 ac_cv_lib_selinux_is_selinux_enabled=yes
19293 $as_echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19296 ac_cv_lib_selinux_is_selinux_enabled=no
19299 rm -rf conftest.dSYM
19300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19301 conftest$ac_exeext conftest.$ac_ext
19302 LIBS=$ac_check_lib_save_LIBS
19304 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19305 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19306 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
19308 LIBSELINUX="-lselinux"
19311 cat >>confdefs.h <<\_ACEOF
19312 #define HAVE_LIBSELINUX 1
19318 if test "x$with_selinux" != xcheck; then
19319 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19321 { { $as_echo "$as_me:$LINENO: error
: --with-selinux given but unavailable
19322 See \
`config.log' for more details." >&5
19323 $as_echo "$as_me: error: --with-selinux given but unavailable
19324 See \`config.log
' for more details." >&2;}
19325 { (exit 1); exit 1; }; }; }
19335 if test "x$with_selinux" != xcheck; then
19336 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19337 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
19338 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19339 See \`config.log
' for more details." >&5
19340 $as_echo "$as_me: error: --with-selinux given but unavailable
19341 See \`config.log' for more details.
" >&2;}
19342 { (exit 1); exit 1; }; }; }
19353 { $as_echo "$as_me:$LINENO: checking
for selinux support
" >&5
19354 $as_echo_n "checking
for selinux support...
" >&6; }
19355 { $as_echo "$as_me:$LINENO: result
: no
" >&5
19356 $as_echo "no
" >&6; }
19362 { $as_echo "$as_me:$LINENO: checking
for -Wframe-larger-than=<size
> support
" >&5
19363 $as_echo_n "checking
for -Wframe-larger-than=<size
> support...
" >&6; }
19365 saved_flags="$CFLAGS"
19366 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
19368 if test "$cross_compiling" = yes; then
19369 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
19370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19371 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19372 See \`config.log' for more details.
" >&5
19373 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
19374 See \
`config.log' for more details." >&2;}
19375 { (exit 1); exit 1; }; }; }
19377 cat >conftest.$ac_ext <<_ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h. */
19392 rm -f conftest$ac_exeext
19393 if { (ac_try="$ac_link"
19394 case "(($ac_try" in
19395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19396 *) ac_try_echo
=$ac_try;;
19398 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19399 $as_echo "$ac_try_echo") >&5
19400 (eval "$ac_link") 2>&5
19402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19404 { (case "(($ac_try" in
19405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19409 $as_echo "$ac_try_echo") >&5
19410 (eval "$ac_try") 2>&5
19412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19415 FRAME_LARGER_THAN=-Wframe-larger-than=1024
19416 { $as_echo "$as_me:$LINENO: result: yes" >&5
19417 $as_echo "yes" >&6; }
19420 $as_echo "$as_me: program exited with status $ac_status" >&5
19421 $as_echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ( exit $ac_status )
19427 { $as_echo "$as_me:$LINENO: result: no" >&5
19428 $as_echo "no" >&6; }
19431 rm -rf conftest.dSYM
19432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19437 CFLAGS="$saved_flags"
19442 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
19443 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
19445 saved_CFLAGS="$CFLAGS"
19446 CFLAGS="-fstack-check"
19447 saved_LDFLAGS="$LDFLAGS"
19448 LDFLAGS="-lpthread"
19450 if test "$cross_compiling" = yes; then
19451 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19453 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
19454 See \
`config.log' for more details." >&5
19455 $as_echo "$as_me: error: cannot run test program while cross compiling
19456 See \`config.log
' for more details." >&2;}
19457 { (exit 1); exit 1; }; }; }
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19466 #include <pthread.h>
19467 #include <sys/resource.h>
19468 #include <unistd.h>
19469 #include <bits/local_lim.h>
19471 #define PAGESIZE (sysconf(_SC_PAGESIZE))
19472 #define STACK_SIZE 8192
19473 #define BUFSIZE 4096
19475 void * func(void *arg)
19485 pthread_attr_t attr;
19490 setrlimit(RLIMIT_CORE, &l);
19491 pthread_attr_init(&attr);
19492 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
19493 pthread_attr_setguardsize(&attr, PAGESIZE);
19494 pthread_create(&tid, &attr, func, NULL);
19495 pthread_join(tid, NULL);
19501 rm -f conftest$ac_exeext
19502 if { (ac_try="$ac_link"
19503 case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19508 $as_echo "$ac_try_echo") >&5
19509 (eval "$ac_link") 2>&5
19511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
19513 { (case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19518 $as_echo "$ac_try_echo") >&5
19519 (eval "$ac_try") 2>&5
19521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19524 { $as_echo "$as_me:$LINENO: result: no" >&5
19525 $as_echo "no" >&6; }
19528 $as_echo "$as_me: program exited with status $ac_status" >&5
19529 $as_echo "$as_me: failed program was:" >&5
19530 sed 's
/^
/|
/' conftest.$ac_ext >&5
19532 ( exit $ac_status )
19535 cat >>confdefs.h <<\_ACEOF
19536 #define NPTL_GUARD_WITHIN_STACK 1
19539 { $as_echo "$as_me:$LINENO: result: yes" >&5
19540 $as_echo "yes" >&6; }
19543 rm -rf conftest.dSYM
19544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19548 CFLAGS="$saved_CFLAGS"
19549 LDFLAGS="$saved_LDFLAGS"
19555 # Check whether --with-linux was given.
19556 if test "${with_linux+set}" = set; then
19557 withval=$with_linux; kernelsrc="$withval"
19562 # Check whether --with-linux-obj was given.
19563 if test "${with_linux_obj+set}" = set; then
19564 withval=$with_linux_obj; kernelbuild="$withval"
19568 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
19569 $as_echo_n "checking kernel source directory... " >&6; }
19570 if test -z "$kernelsrc"; then
19572 if test -e "/lib/modules/$(uname -r)/source"; then
19574 headersdir="/lib/modules/$(uname -r)/source"
19575 sourcelink=$(readlink -f "$headersdir")
19577 elif test -e "/lib/modules/$(uname -r)/build"; then
19579 headersdir="/lib/modules/$(uname -r)/build"
19580 sourcelink=$(readlink -f "$headersdir")
19584 sourcelink=$(ls -1d /usr/src/kernels/* \
19586 2>/dev/null | grep -v obj | tail -1)
19591 if test -n "$sourcelink" && test -e ${sourcelink}; then
19593 kernelsrc=`readlink -f ${sourcelink}`
19597 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19598 $as_echo "Not found" >&6; }
19599 { { $as_echo "$as_me:$LINENO: error:
19600 *** Please make sure the kernel devel package for your distribution
19601 *** is installed then try again. If that fails you can specify the
19602 *** location of the kernel source with the '--with-linux=PATH
' option." >&5
19603 $as_echo "$as_me: error:
19604 *** Please make sure the kernel devel package for your distribution
19605 *** is installed then try again. If that fails you can specify the
19606 *** location of the kernel source with the '--with-linux=PATH
' option." >&2;}
19607 { (exit 1); exit 1; }; }
19614 if test "$kernelsrc" = "NONE"; then
19624 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
19625 $as_echo "$kernelsrc" >&6; }
19626 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
19627 $as_echo_n "checking kernel build directory... " >&6; }
19628 if test -z "$kernelbuild"; then
19630 if test -e "/lib/modules/$(uname -r)/build"; then
19632 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
19634 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
19636 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
19638 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
19640 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
19642 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
19644 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
19648 kernelbuild=${kernelsrc}
19655 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
19656 $as_echo "$kernelbuild" >&6; }
19658 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
19659 $as_echo_n "checking kernel source version... " >&6; }
19660 utsrelease1=$kernelbuild/include/linux/version.h
19661 utsrelease2=$kernelbuild/include/linux/utsrelease.h
19662 utsrelease3=$kernelbuild/include/generated/utsrelease.h
19663 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
19665 utsrelease=linux/version.h
19667 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
19669 utsrelease=linux/utsrelease.h
19671 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
19673 utsrelease=generated/utsrelease.h
19678 if test "$utsrelease"; then
19680 kernsrcver=`(echo "#include <$utsrelease>";
19681 echo "kernsrcver=UTS_RELEASE") |
19682 cpp -I $kernelbuild/include |
19683 grep "^kernsrcver=" | cut -d \" -f 2`
19685 if test -z "$kernsrcver"; then
19687 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19688 $as_echo "Not found" >&6; }
19689 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
19690 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
19691 { (exit 1); exit 1; }; }
19698 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19699 $as_echo "Not found" >&6; }
19700 if test "x$enable_linux_builtin" != xyes; then
19701 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
19702 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
19703 { (exit 1); exit 1; }; }
19705 { { $as_echo "$as_me:$LINENO: error:
19706 *** Cannot find UTS_RELEASE definition.
19707 *** Please run 'make prepare
' inside the kernel source tree." >&5
19708 $as_echo "$as_me: error:
19709 *** Cannot find UTS_RELEASE definition.
19710 *** Please run 'make prepare
' inside the kernel source tree." >&2;}
19711 { (exit 1); exit 1; }; }
19717 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
19718 $as_echo "$kernsrcver" >&6; }
19721 LINUX_OBJ=${kernelbuild}
19722 LINUX_VERSION=${kernsrcver}
19729 modpost=$LINUX/scripts/Makefile.modpost
19730 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
19731 $as_echo_n "checking kernel file name for module symbols... " >&6; }
19732 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
19734 if grep -q Modules.symvers $modpost; then
19736 LINUX_SYMBOLS=Modules.symvers
19740 LINUX_SYMBOLS=Module.symvers
19745 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
19747 { { $as_echo "$as_me:$LINENO: error:
19748 *** Please make sure the kernel devel package for your distribution
19749 *** is installed. If your building with a custom kernel make sure the
19750 *** kernel is configured, built, and the '--with-linux=PATH
' configure
19751 *** option refers to the location of the kernel source." >&5
19752 $as_echo "$as_me: error:
19753 *** Please make sure the kernel devel package for your distribution
19754 *** is installed. If your building with a custom kernel make sure the
19755 *** kernel is configured, built, and the '--with-linux=PATH
' configure
19756 *** option refers to the location of the kernel source." >&2;}
19757 { (exit 1); exit 1; }; }
19768 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
19769 $as_echo "$LINUX_SYMBOLS" >&6; }
19775 # Check whether --with-spl was given.
19776 if test "${with_spl+set}" = set; then
19777 withval=$with_spl; splsrc="$withval"
19782 # Check whether --with-spl-obj was given.
19783 if test "${with_spl_obj+set}" = set; then
19784 withval=$with_spl_obj; splbuild="$withval"
19789 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
19790 $as_echo_n "checking spl source directory... " >&6; }
19791 if test -z "$splsrc"; then
19793 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
19794 2>/dev/null | tail -1`
19796 if test -z "$sourcelink" || test ! -e $sourcelink; then
19803 if test -e $sourcelink; then
19805 splsrc=`readlink -f ${sourcelink}`
19809 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19810 $as_echo "Not found" >&6; }
19811 { { $as_echo "$as_me:$LINENO: error:
19812 *** Please make sure the spl devel package for your distribution
19813 *** is installed then try again. If that fails you can specify the
19814 *** location of the spl source with the '--with-spl=PATH
' option." >&5
19815 $as_echo "$as_me: error:
19816 *** Please make sure the spl devel package for your distribution
19817 *** is installed then try again. If that fails you can specify the
19818 *** location of the spl source with the '--with-spl=PATH
' option." >&2;}
19819 { (exit 1); exit 1; }; }
19826 if test "$splsrc" = "NONE"; then
19837 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
19838 $as_echo "$splsrc" >&6; }
19839 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
19840 $as_echo_n "checking spl build directory... " >&6; }
19841 if test -z "$splbuild"; then
19847 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
19848 $as_echo "$splbuild" >&6; }
19850 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
19851 $as_echo_n "checking spl source version... " >&6; }
19852 if test -r $splbuild/spl_config.h &&
19853 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
19856 splsrcver=`(echo "#include <spl_config.h>";
19857 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
19859 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
19864 if test -z "$splsrcver"; then
19866 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19867 $as_echo "Not found" >&6; }
19868 { { $as_echo "$as_me:$LINENO: error:
19869 *** Cannot determine the version of the spl source.
19870 *** Please prepare the spl source before running this script" >&5
19871 $as_echo "$as_me: error:
19872 *** Cannot determine the version of the spl source.
19873 *** Please prepare the spl source before running this script" >&2;}
19874 { (exit 1); exit 1; }; }
19879 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
19880 $as_echo "$splsrcver" >&6; }
19883 SPL_OBJ=${splbuild}
19884 SPL_VERSION=${splsrcver}
19891 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
19892 $as_echo_n "checking spl file name for module symbols... " >&6; }
19893 if test -r $SPL_OBJ/Module.symvers; then
19895 SPL_SYMBOLS=Module.symvers
19897 elif test -r $SPL_OBJ/Modules.symvers; then
19899 SPL_SYMBOLS=Modules.symvers
19901 elif test -r $SPL_OBJ/module/Module.symvers; then
19903 SPL_SYMBOLS=Module.symvers
19905 elif test -r $SPL_OBJ/module/Modules.symvers; then
19907 SPL_SYMBOLS=Modules.symvers
19911 SPL_SYMBOLS=$LINUX_SYMBOLS
19916 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
19917 $as_echo "$SPL_SYMBOLS" >&6; }
19921 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
19922 $as_echo_n "checking whether modules can be built... " >&6; }
19925 cat confdefs.h - <<_ACEOF >conftest.c
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19944 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19945 echo "obj-m := conftest.o" >build/Makefile
19947 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
19948 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950 (eval $ac_try) 2>&5
19952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955 (eval $ac_try) 2>&5
19957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19960 { $as_echo "$as_me:$LINENO: result: yes" >&5
19961 $as_echo "yes" >&6; }
19964 $as_echo "$as_me: failed program was:" >&5
19965 sed 's
/^
/|
/' conftest.$ac_ext >&5
19967 { $as_echo "$as_me:$LINENO: result: no" >&5
19968 $as_echo "no" >&6; }
19969 if test "x$enable_linux_builtin" != xyes; then
19970 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
19971 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
19972 { (exit 1); exit 1; }; }
19974 { { $as_echo "$as_me:$LINENO: error:
19975 *** Unable to build an empty module.
19976 *** Please run 'make scripts
' inside the kernel source tree." >&5
19977 $as_echo "$as_me: error:
19978 *** Unable to build an empty module.
19979 *** Please run 'make scripts
' inside the kernel source tree." >&2;}
19980 { (exit 1); exit 1; }; }
19993 if test "$ZFS_META_LICENSE" = GPL; then
19996 cat >>confdefs.h <<\_ACEOF
19997 #define HAVE_GPL_ONLY_SYMBOLS 1
20006 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
20007 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
20010 cat confdefs.h - <<_ACEOF >conftest.c
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20018 #include <linux/module.h>
20024 #ifndef CONFIG_PREEMPT
20025 #error CONFIG_PREEMPT not #defined
20035 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20036 echo "obj-m := conftest.o" >build/Makefile
20038 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20039 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20051 { $as_echo "$as_me:$LINENO: result: yes" >&5
20052 $as_echo "yes" >&6; }
20053 { { $as_echo "$as_me:$LINENO: error:
20054 *** Kernel built with CONFIG_PREEMPT which is not supported.
20055 *** You must rebuild your kernel without this option." >&5
20056 $as_echo "$as_me: error:
20057 *** Kernel built with CONFIG_PREEMPT which is not supported.
20058 *** You must rebuild your kernel without this option." >&2;}
20059 { (exit 1); exit 1; }; }
20062 $as_echo "$as_me: failed program was:" >&5
20063 sed 's
/^
/|
/' conftest.$ac_ext >&5
20065 { $as_echo "$as_me:$LINENO: result: no" >&5
20066 $as_echo "no" >&6; }
20080 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
20081 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
20084 cat confdefs.h - <<_ACEOF >conftest.c
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20092 #include <linux/module.h>
20098 #ifndef CONFIG_DEBUG_LOCK_ALLOC
20099 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
20109 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20110 echo "obj-m := conftest.o" >build/Makefile
20112 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20113 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20125 { $as_echo "$as_me:$LINENO: result: yes" >&5
20126 $as_echo "yes" >&6; }
20128 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
20129 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
20130 tmp_flags="$EXTRA_KCFLAGS"
20133 cat confdefs.h - <<_ACEOF >conftest.c
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20141 #include <linux/module.h>
20142 #include <linux/mutex.h>
20144 MODULE_LICENSE("$ZFS_META_LICENSE");
20154 mutex_unlock(&lock);
20163 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20164 echo "obj-m := conftest.o" >build/Makefile
20166 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20167 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20179 { $as_echo "$as_me:$LINENO: result: no" >&5
20180 $as_echo "no" >&6; }
20183 $as_echo "$as_me: failed program was:" >&5
20184 sed 's
/^
/|
/' conftest.$ac_ext >&5
20186 { $as_echo "$as_me:$LINENO: result: yes" >&5
20187 $as_echo "yes" >&6; }
20188 { { $as_echo "$as_me:$LINENO: error:
20189 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
20190 *** with the CDDL license and will prevent the module linking stage
20191 *** from succeeding. You must rebuild your kernel without this
20192 *** option enabled." >&5
20193 $as_echo "$as_me: error:
20194 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
20195 *** with the CDDL license and will prevent the module linking stage
20196 *** from succeeding. You must rebuild your kernel without this
20197 *** option enabled." >&2;}
20198 { (exit 1); exit 1; }; }
20207 EXTRA_KCFLAGS="$tmp_flags"
20211 $as_echo "$as_me: failed program was:" >&5
20212 sed 's
/^
/|
/' conftest.$ac_ext >&5
20214 { $as_echo "$as_me:$LINENO: result: no" >&5
20215 $as_echo "no" >&6; }
20229 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
20230 $as_echo_n "checking block device operation prototypes... " >&6; }
20231 tmp_flags="$EXTRA_KCFLAGS"
20232 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20235 cat confdefs.h - <<_ACEOF >conftest.c
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20243 #include <linux/blkdev.h>
20249 int (*blk_open) (struct block_device *, fmode_t) = NULL;
20250 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
20251 int (*blk_ioctl) (struct block_device *, fmode_t,
20252 unsigned, unsigned long) = NULL;
20253 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
20254 unsigned, unsigned long) = NULL;
20255 struct block_device_operations blk_ops = {
20257 .release = blk_release,
20258 .ioctl = blk_ioctl,
20259 .compat_ioctl = blk_compat_ioctl,
20262 blk_ops.open(NULL, 0);
20263 blk_ops.release(NULL, 0);
20264 blk_ops.ioctl(NULL, 0, 0, 0);
20265 blk_ops.compat_ioctl(NULL, 0, 0, 0);
20274 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20275 echo "obj-m := conftest.o" >build/Makefile
20277 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20278 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20290 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
20291 $as_echo "struct block_device" >&6; }
20293 cat >>confdefs.h <<\_ACEOF
20294 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
20299 $as_echo "$as_me: failed program was:" >&5
20300 sed 's
/^
/|
/' conftest.$ac_ext >&5
20302 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
20303 $as_echo "struct inode" >&6; }
20312 EXTRA_KCFLAGS="$tmp_flags"
20314 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
20315 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
20318 cat confdefs.h - <<_ACEOF >conftest.c
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20326 #include <linux/types.h>
20332 fmode_t *ptr __attribute__ ((unused));
20341 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20342 echo "obj-m := conftest.o" >build/Makefile
20344 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20345 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20357 { $as_echo "$as_me:$LINENO: result: yes" >&5
20358 $as_echo "yes" >&6; }
20360 cat >>confdefs.h <<\_ACEOF
20361 #define HAVE_FMODE_T 1
20366 $as_echo "$as_me: failed program was:" >&5
20367 sed 's
/^
/|
/' conftest.$ac_ext >&5
20369 { $as_echo "$as_me:$LINENO: result: no" >&5
20370 $as_echo "no" >&6; }
20381 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
20382 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
20385 cat confdefs.h - <<_ACEOF >conftest.c
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20393 #include <linux/kobject.h>
20399 int val __attribute__ ((unused));
20400 val = KOBJ_NAME_LEN;
20409 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20410 echo "obj-m := conftest.o" >build/Makefile
20412 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20413 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415 (eval $ac_try) 2>&5
20417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20425 { $as_echo "$as_me:$LINENO: result: yes" >&5
20426 $as_echo "yes" >&6; }
20428 cat >>confdefs.h <<\_ACEOF
20429 #define HAVE_KOBJ_NAME_LEN 1
20434 $as_echo "$as_me: failed program was:" >&5
20435 sed 's
/^
/|
/' conftest.$ac_ext >&5
20437 { $as_echo "$as_me:$LINENO: result: no" >&5
20438 $as_echo "no" >&6; }
20449 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
20450 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
20453 cat confdefs.h - <<_ACEOF >conftest.c
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20461 #include <linux/fs.h>
20467 struct block_device *bdev = NULL;
20468 (void) blkdev_get(bdev, 0, NULL);
20477 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20478 echo "obj-m := conftest.o" >build/Makefile
20480 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20481 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483 (eval $ac_try) 2>&5
20485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20493 { $as_echo "$as_me:$LINENO: result: yes" >&5
20494 $as_echo "yes" >&6; }
20496 cat >>confdefs.h <<\_ACEOF
20497 #define HAVE_3ARG_BLKDEV_GET 1
20502 $as_echo "$as_me: failed program was:" >&5
20503 sed 's
/^
/|
/' conftest.$ac_ext >&5
20505 { $as_echo "$as_me:$LINENO: result: no" >&5
20506 $as_echo "no" >&6; }
20516 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
20517 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
20521 cat confdefs.h - <<_ACEOF >conftest.c
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h. */
20529 #include <linux/fs.h>
20535 blkdev_get_by_path(NULL, 0, NULL);
20544 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20545 echo "obj-m := conftest.o" >build/Makefile
20547 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20548 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
20561 $as_echo "$as_me: failed program was:" >&5
20562 sed 's
/^
/|
/' conftest.$ac_ext >&5
20571 if test $rc -ne 0; then :
20573 { $as_echo "$as_me:$LINENO: result: no" >&5
20574 $as_echo "no" >&6; }
20577 if test "x$enable_linux_builtin" != xyes; then
20579 grep -q -E '[[:space
:]]blkdev_get_by_path
[[:space
:]]' \
20580 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20582 if test $rc -ne 0; then
20584 for file in fs/block_dev.c; do
20585 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
20586 "$LINUX/$file" 2>/dev/null
20588 if test $rc -eq 0; then
20593 if test $export -eq 0; then :
20603 if test $rc -ne 0; then :
20605 { $as_echo "$as_me:$LINENO: result: no" >&5
20606 $as_echo "no" >&6; }
20610 { $as_echo "$as_me:$LINENO: result: yes" >&5
20611 $as_echo "yes" >&6; }
20613 cat >>confdefs.h <<\_ACEOF
20614 #define HAVE_BLKDEV_GET_BY_PATH 1
20622 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
20623 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
20627 cat confdefs.h - <<_ACEOF >conftest.c
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20635 #include <linux/fs.h>
20641 open_bdev_exclusive(NULL, 0, NULL);
20650 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20651 echo "obj-m := conftest.o" >build/Makefile
20653 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20654 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20667 $as_echo "$as_me: failed program was:" >&5
20668 sed 's
/^
/|
/' conftest.$ac_ext >&5
20677 if test $rc -ne 0; then :
20679 { $as_echo "$as_me:$LINENO: result: no" >&5
20680 $as_echo "no" >&6; }
20683 if test "x$enable_linux_builtin" != xyes; then
20685 grep -q -E '[[:space
:]]open_bdev_exclusive
[[:space
:]]' \
20686 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20688 if test $rc -ne 0; then
20690 for file in fs/block_dev.c; do
20691 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
20692 "$LINUX/$file" 2>/dev/null
20694 if test $rc -eq 0; then
20699 if test $export -eq 0; then :
20709 if test $rc -ne 0; then :
20711 { $as_echo "$as_me:$LINENO: result: no" >&5
20712 $as_echo "no" >&6; }
20716 { $as_echo "$as_me:$LINENO: result: yes" >&5
20717 $as_echo "yes" >&6; }
20719 cat >>confdefs.h <<\_ACEOF
20720 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
20729 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
20730 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
20733 cat confdefs.h - <<_ACEOF >conftest.c
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20741 #include <linux/buffer_head.h>
20747 struct block_device *bdev = NULL;
20748 invalidate_bdev(bdev);
20757 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20758 echo "obj-m := conftest.o" >build/Makefile
20760 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20761 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 (eval $ac_try) 2>&5
20770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; }; then
20773 { $as_echo "$as_me:$LINENO: result: yes" >&5
20774 $as_echo "yes" >&6; }
20776 cat >>confdefs.h <<\_ACEOF
20777 #define HAVE_1ARG_INVALIDATE_BDEV 1
20782 $as_echo "$as_me: failed program was:" >&5
20783 sed 's
/^
/|
/' conftest.$ac_ext >&5
20785 { $as_echo "$as_me:$LINENO: result: no" >&5
20786 $as_echo "no" >&6; }
20797 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
20798 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
20799 tmp_flags="$EXTRA_KCFLAGS"
20800 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20803 cat confdefs.h - <<_ACEOF >conftest.c
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h. */
20811 #include <linux/blkdev.h>
20817 struct block_device *bdev = NULL;
20818 bdev_logical_block_size(bdev);
20827 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20828 echo "obj-m := conftest.o" >build/Makefile
20830 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20831 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20843 { $as_echo "$as_me:$LINENO: result: yes" >&5
20844 $as_echo "yes" >&6; }
20846 cat >>confdefs.h <<\_ACEOF
20847 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
20852 $as_echo "$as_me: failed program was:" >&5
20853 sed 's
/^
/|
/' conftest.$ac_ext >&5
20855 { $as_echo "$as_me:$LINENO: result: no" >&5
20856 $as_echo "no" >&6; }
20865 EXTRA_KCFLAGS="$tmp_flags"
20868 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
20869 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
20870 EXTRA_KCFLAGS="-Werror"
20873 cat confdefs.h - <<_ACEOF >conftest.c
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h. */
20881 #include <linux/bio.h>
20888 (void)bio_empty_barrier(&bio);
20897 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20898 echo "obj-m := conftest.o" >build/Makefile
20900 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20901 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
20913 { $as_echo "$as_me:$LINENO: result: yes" >&5
20914 $as_echo "yes" >&6; }
20916 cat >>confdefs.h <<\_ACEOF
20917 #define HAVE_BIO_EMPTY_BARRIER 1
20922 $as_echo "$as_me: failed program was:" >&5
20923 sed 's
/^
/|
/' conftest.$ac_ext >&5
20925 { $as_echo "$as_me:$LINENO: result: no" >&5
20926 $as_echo "no" >&6; }
20937 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
20938 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
20941 cat confdefs.h - <<_ACEOF >conftest.c
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20949 #include <linux/bio.h>
20955 int flags __attribute__ ((unused));
20956 flags = (1 << BIO_RW_FAILFAST);
20965 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20966 echo "obj-m := conftest.o" >build/Makefile
20968 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20969 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20981 { $as_echo "$as_me:$LINENO: result: yes" >&5
20982 $as_echo "yes" >&6; }
20984 cat >>confdefs.h <<\_ACEOF
20985 #define HAVE_BIO_RW_FAILFAST 1
20990 $as_echo "$as_me: failed program was:" >&5
20991 sed 's
/^
/|
/' conftest.$ac_ext >&5
20993 { $as_echo "$as_me:$LINENO: result: no" >&5
20994 $as_echo "no" >&6; }
21005 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
21006 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
21009 cat confdefs.h - <<_ACEOF >conftest.c
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21017 #include <linux/bio.h>
21023 int flags __attribute__ ((unused));
21024 flags = ((1 << BIO_RW_FAILFAST_DEV) |
21025 (1 << BIO_RW_FAILFAST_TRANSPORT) |
21026 (1 << BIO_RW_FAILFAST_DRIVER));
21035 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21036 echo "obj-m := conftest.o" >build/Makefile
21038 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21039 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21046 (eval $ac_try) 2>&5
21048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); }; }; then
21051 { $as_echo "$as_me:$LINENO: result: yes" >&5
21052 $as_echo "yes" >&6; }
21054 cat >>confdefs.h <<\_ACEOF
21055 #define HAVE_BIO_RW_FAILFAST_DTD 1
21060 $as_echo "$as_me: failed program was:" >&5
21061 sed 's
/^
/|
/' conftest.$ac_ext >&5
21063 { $as_echo "$as_me:$LINENO: result: no" >&5
21064 $as_echo "no" >&6; }
21075 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
21076 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
21079 cat confdefs.h - <<_ACEOF >conftest.c
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h. */
21087 #include <linux/bio.h>
21093 int flags __attribute__ ((unused));
21094 flags = REQ_FAILFAST_MASK;
21103 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21104 echo "obj-m := conftest.o" >build/Makefile
21106 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21107 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; }; then
21119 { $as_echo "$as_me:$LINENO: result: yes" >&5
21120 $as_echo "yes" >&6; }
21122 cat >>confdefs.h <<\_ACEOF
21123 #define HAVE_BIO_REQ_FAILFAST_MASK 1
21128 $as_echo "$as_me: failed program was:" >&5
21129 sed 's
/^
/|
/' conftest.$ac_ext >&5
21131 { $as_echo "$as_me:$LINENO: result: no" >&5
21132 $as_echo "no" >&6; }
21143 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
21144 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
21145 tmp_flags="$EXTRA_KCFLAGS"
21146 EXTRA_KCFLAGS="-Werror"
21149 cat confdefs.h - <<_ACEOF >conftest.c
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h. */
21157 #include <linux/bio.h>
21163 void (*wanted_end_io)(struct bio *, int) = NULL;
21164 bio_end_io_t *local_end_io __attribute__ ((unused));
21166 local_end_io = wanted_end_io;
21175 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21176 echo "obj-m := conftest.o" >build/Makefile
21178 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21179 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186 (eval $ac_try) 2>&5
21188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; }; then
21191 { $as_echo "$as_me:$LINENO: result: yes" >&5
21192 $as_echo "yes" >&6; }
21194 cat >>confdefs.h <<\_ACEOF
21195 #define HAVE_2ARGS_BIO_END_IO_T 1
21200 $as_echo "$as_me: failed program was:" >&5
21201 sed 's
/^
/|
/' conftest.$ac_ext >&5
21203 { $as_echo "$as_me:$LINENO: result: no" >&5
21204 $as_echo "no" >&6; }
21213 EXTRA_KCFLAGS="$tmp_flags"
21216 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
21217 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
21220 cat confdefs.h - <<_ACEOF >conftest.c
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21228 #include <linux/bio.h>
21234 int flags __attribute__ ((unused));
21235 flags = BIO_RW_SYNC;
21244 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21245 echo "obj-m := conftest.o" >build/Makefile
21247 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21248 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21250 (eval $ac_try) 2>&5
21252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; }; then
21260 { $as_echo "$as_me:$LINENO: result: yes" >&5
21261 $as_echo "yes" >&6; }
21263 cat >>confdefs.h <<\_ACEOF
21264 #define HAVE_BIO_RW_SYNC 1
21269 $as_echo "$as_me: failed program was:" >&5
21270 sed 's
/^
/|
/' conftest.$ac_ext >&5
21272 { $as_echo "$as_me:$LINENO: result: no" >&5
21273 $as_echo "no" >&6; }
21284 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
21285 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
21288 cat confdefs.h - <<_ACEOF >conftest.c
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h. */
21296 #include <linux/bio.h>
21302 int flags __attribute__ ((unused));
21303 flags = BIO_RW_SYNCIO;
21312 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21313 echo "obj-m := conftest.o" >build/Makefile
21315 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21316 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318 (eval $ac_try) 2>&5
21320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21323 (eval $ac_try) 2>&5
21325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); }; }; then
21328 { $as_echo "$as_me:$LINENO: result: yes" >&5
21329 $as_echo "yes" >&6; }
21331 cat >>confdefs.h <<\_ACEOF
21332 #define HAVE_BIO_RW_SYNCIO 1
21337 $as_echo "$as_me: failed program was:" >&5
21338 sed 's
/^
/|
/' conftest.$ac_ext >&5
21340 { $as_echo "$as_me:$LINENO: result: no" >&5
21341 $as_echo "no" >&6; }
21352 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
21353 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
21356 cat confdefs.h - <<_ACEOF >conftest.c
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21364 #include <linux/bio.h>
21370 int flags __attribute__ ((unused));
21380 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21381 echo "obj-m := conftest.o" >build/Makefile
21383 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21384 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; }; then
21396 { $as_echo "$as_me:$LINENO: result: yes" >&5
21397 $as_echo "yes" >&6; }
21399 cat >>confdefs.h <<\_ACEOF
21400 #define HAVE_REQ_SYNC 1
21405 $as_echo "$as_me: failed program was:" >&5
21406 sed 's
/^
/|
/' conftest.$ac_ext >&5
21408 { $as_echo "$as_me:$LINENO: result: no" >&5
21409 $as_echo "no" >&6; }
21420 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
21421 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
21422 tmp_flags="$EXTRA_KCFLAGS"
21423 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21426 cat confdefs.h - <<_ACEOF >conftest.c
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21434 #include <linux/blkdev.h>
21440 struct request *req = NULL;
21441 (void) blk_end_request(req, 0, 0);
21450 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21451 echo "obj-m := conftest.o" >build/Makefile
21453 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21454 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; }; then
21466 { $as_echo "$as_me:$LINENO: result: yes" >&5
21467 $as_echo "yes" >&6; }
21469 cat >>confdefs.h <<\_ACEOF
21470 #define HAVE_BLK_END_REQUEST 1
21475 $as_echo "$as_me: failed program was:" >&5
21476 sed 's
/^
/|
/' conftest.$ac_ext >&5
21478 { $as_echo "$as_me:$LINENO: result: no" >&5
21479 $as_echo "no" >&6; }
21489 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
21490 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
21493 cat confdefs.h - <<_ACEOF >conftest.c
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21501 #include <linux/module.h>
21502 #include <linux/blkdev.h>
21504 MODULE_LICENSE("CDDL");
21510 struct request *req = NULL;
21511 (void) blk_end_request(req, 0, 0);
21520 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21521 echo "obj-m := conftest.o" >build/Makefile
21523 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21524 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21531 (eval $ac_try) 2>&5
21533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); }; }; then
21536 { $as_echo "$as_me:$LINENO: result: no" >&5
21537 $as_echo "no" >&6; }
21540 $as_echo "$as_me: failed program was:" >&5
21541 sed 's
/^
/|
/' conftest.$ac_ext >&5
21543 { $as_echo "$as_me:$LINENO: result: yes" >&5
21544 $as_echo "yes" >&6; }
21546 cat >>confdefs.h <<\_ACEOF
21547 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
21558 EXTRA_KCFLAGS="$tmp_flags"
21561 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
21562 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
21563 tmp_flags="$EXTRA_KCFLAGS"
21564 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21567 cat confdefs.h - <<_ACEOF >conftest.c
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h. */
21575 #include <linux/blkdev.h>
21581 struct request_queue *q = NULL;
21582 (void) blk_queue_flush(q, REQ_FLUSH);
21591 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21592 echo "obj-m := conftest.o" >build/Makefile
21594 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21595 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597 (eval $ac_try) 2>&5
21599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; }; then
21607 { $as_echo "$as_me:$LINENO: result: yes" >&5
21608 $as_echo "yes" >&6; }
21610 cat >>confdefs.h <<\_ACEOF
21611 #define HAVE_BLK_QUEUE_FLUSH 1
21616 $as_echo "$as_me: failed program was:" >&5
21617 sed 's
/^
/|
/' conftest.$ac_ext >&5
21619 { $as_echo "$as_me:$LINENO: result: no" >&5
21620 $as_echo "no" >&6; }
21630 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
21631 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
21634 cat confdefs.h - <<_ACEOF >conftest.c
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21642 #include <linux/module.h>
21643 #include <linux/blkdev.h>
21645 MODULE_LICENSE("CDDL");
21651 struct request_queue *q = NULL;
21652 (void) blk_queue_flush(q, REQ_FLUSH);
21661 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21662 echo "obj-m := conftest.o" >build/Makefile
21664 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21665 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21677 { $as_echo "$as_me:$LINENO: result: no" >&5
21678 $as_echo "no" >&6; }
21681 $as_echo "$as_me: failed program was:" >&5
21682 sed 's
/^
/|
/' conftest.$ac_ext >&5
21684 { $as_echo "$as_me:$LINENO: result: yes" >&5
21685 $as_echo "yes" >&6; }
21687 cat >>confdefs.h <<\_ACEOF
21688 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
21699 EXTRA_KCFLAGS="$tmp_flags"
21702 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
21703 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
21704 tmp_flags="$EXTRA_KCFLAGS"
21705 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21708 cat confdefs.h - <<_ACEOF >conftest.c
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h. */
21716 #include <linux/blkdev.h>
21722 struct request_queue *q = NULL;
21723 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
21732 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21733 echo "obj-m := conftest.o" >build/Makefile
21735 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21736 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21738 (eval $ac_try) 2>&5
21740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; }; then
21748 { $as_echo "$as_me:$LINENO: result: yes" >&5
21749 $as_echo "yes" >&6; }
21751 cat >>confdefs.h <<\_ACEOF
21752 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
21757 $as_echo "$as_me: failed program was:" >&5
21758 sed 's
/^
/|
/' conftest.$ac_ext >&5
21760 { $as_echo "$as_me:$LINENO: result: no" >&5
21761 $as_echo "no" >&6; }
21770 EXTRA_KCFLAGS="$tmp_flags"
21773 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
21774 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
21775 tmp_flags="$EXTRA_KCFLAGS"
21776 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21779 cat confdefs.h - <<_ACEOF >conftest.c
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21787 #include <linux/blkdev.h>
21793 struct request_queue *q = NULL;
21794 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
21803 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21804 echo "obj-m := conftest.o" >build/Makefile
21806 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21807 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814 (eval $ac_try) 2>&5
21816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; }; then
21819 { $as_echo "$as_me:$LINENO: result: yes" >&5
21820 $as_echo "yes" >&6; }
21822 cat >>confdefs.h <<\_ACEOF
21823 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
21828 $as_echo "$as_me: failed program was:" >&5
21829 sed 's
/^
/|
/' conftest.$ac_ext >&5
21831 { $as_echo "$as_me:$LINENO: result: no" >&5
21832 $as_echo "no" >&6; }
21841 EXTRA_KCFLAGS="$tmp_flags"
21844 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
21845 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
21846 tmp_flags="$EXTRA_KCFLAGS"
21847 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21850 cat confdefs.h - <<_ACEOF >conftest.c
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h. */
21858 #include <linux/blkdev.h>
21864 struct request_queue *q = NULL;
21865 unsigned short block_size = 1;
21866 (void) blk_queue_physical_block_size(q, block_size);
21875 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21876 echo "obj-m := conftest.o" >build/Makefile
21878 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21879 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; }; then
21891 { $as_echo "$as_me:$LINENO: result: yes" >&5
21892 $as_echo "yes" >&6; }
21894 cat >>confdefs.h <<\_ACEOF
21895 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
21900 $as_echo "$as_me: failed program was:" >&5
21901 sed 's
/^
/|
/' conftest.$ac_ext >&5
21903 { $as_echo "$as_me:$LINENO: result: no" >&5
21904 $as_echo "no" >&6; }
21913 EXTRA_KCFLAGS="$tmp_flags"
21916 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
21917 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
21918 tmp_flags="$EXTRA_KCFLAGS"
21919 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21922 cat confdefs.h - <<_ACEOF >conftest.c
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21930 #include <linux/blkdev.h>
21936 struct request_queue *q = NULL;
21937 unsigned int opt = 1;
21938 (void) blk_queue_io_opt(q, opt);
21947 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21948 echo "obj-m := conftest.o" >build/Makefile
21950 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21951 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21953 (eval $ac_try) 2>&5
21955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958 (eval $ac_try) 2>&5
21960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; }; then
21963 { $as_echo "$as_me:$LINENO: result: yes" >&5
21964 $as_echo "yes" >&6; }
21966 cat >>confdefs.h <<\_ACEOF
21967 #define HAVE_BLK_QUEUE_IO_OPT 1
21972 $as_echo "$as_me: failed program was:" >&5
21973 sed 's
/^
/|
/' conftest.$ac_ext >&5
21975 { $as_echo "$as_me:$LINENO: result: no" >&5
21976 $as_echo "no" >&6; }
21985 EXTRA_KCFLAGS="$tmp_flags"
21988 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
21989 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
21990 tmp_flags="$EXTRA_KCFLAGS"
21991 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21994 cat confdefs.h - <<_ACEOF >conftest.c
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h. */
22002 #include <linux/blkdev.h>
22008 struct request_queue *q = NULL;
22009 (void) blk_queue_nonrot(q);
22018 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22019 echo "obj-m := conftest.o" >build/Makefile
22021 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22022 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22024 (eval $ac_try) 2>&5
22026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029 (eval $ac_try) 2>&5
22031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; }; then
22034 { $as_echo "$as_me:$LINENO: result: yes" >&5
22035 $as_echo "yes" >&6; }
22037 cat >>confdefs.h <<\_ACEOF
22038 #define HAVE_BLK_QUEUE_NONROT 1
22043 $as_echo "$as_me: failed program was:" >&5
22044 sed 's
/^
/|
/' conftest.$ac_ext >&5
22046 { $as_echo "$as_me:$LINENO: result: no" >&5
22047 $as_echo "no" >&6; }
22056 EXTRA_KCFLAGS="$tmp_flags"
22059 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
22060 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
22061 tmp_flags="$EXTRA_KCFLAGS"
22062 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22065 cat confdefs.h - <<_ACEOF >conftest.c
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22073 #include <linux/blkdev.h>
22079 struct request_queue *q = NULL;
22080 (void) blk_queue_discard(q);
22089 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22090 echo "obj-m := conftest.o" >build/Makefile
22092 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22093 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095 (eval $ac_try) 2>&5
22097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22105 { $as_echo "$as_me:$LINENO: result: yes" >&5
22106 $as_echo "yes" >&6; }
22108 cat >>confdefs.h <<\_ACEOF
22109 #define HAVE_BLK_QUEUE_DISCARD 1
22114 $as_echo "$as_me: failed program was:" >&5
22115 sed 's
/^
/|
/' conftest.$ac_ext >&5
22117 { $as_echo "$as_me:$LINENO: result: no" >&5
22118 $as_echo "no" >&6; }
22127 EXTRA_KCFLAGS="$tmp_flags"
22130 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
22131 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
22132 tmp_flags="$EXTRA_KCFLAGS"
22133 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22136 cat confdefs.h - <<_ACEOF >conftest.c
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22144 #include <linux/blkdev.h>
22150 struct request_queue *q = NULL;
22151 (void) blk_fetch_request(q);
22160 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22161 echo "obj-m := conftest.o" >build/Makefile
22163 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22164 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22166 (eval $ac_try) 2>&5
22168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22176 { $as_echo "$as_me:$LINENO: result: yes" >&5
22177 $as_echo "yes" >&6; }
22179 cat >>confdefs.h <<\_ACEOF
22180 #define HAVE_BLK_FETCH_REQUEST 1
22185 $as_echo "$as_me: failed program was:" >&5
22186 sed 's
/^
/|
/' conftest.$ac_ext >&5
22188 { $as_echo "$as_me:$LINENO: result: no" >&5
22189 $as_echo "no" >&6; }
22198 EXTRA_KCFLAGS="$tmp_flags"
22201 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
22202 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
22203 tmp_flags="$EXTRA_KCFLAGS"
22204 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22207 cat confdefs.h - <<_ACEOF >conftest.c
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22215 #include <linux/blkdev.h>
22221 struct request_queue *q = NULL;
22222 struct request *req = NULL;
22223 blk_requeue_request(q, req);
22232 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22233 echo "obj-m := conftest.o" >build/Makefile
22235 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22236 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22238 (eval $ac_try) 2>&5
22240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243 (eval $ac_try) 2>&5
22245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; }; then
22248 { $as_echo "$as_me:$LINENO: result: yes" >&5
22249 $as_echo "yes" >&6; }
22251 cat >>confdefs.h <<\_ACEOF
22252 #define HAVE_BLK_REQUEUE_REQUEST 1
22257 $as_echo "$as_me: failed program was:" >&5
22258 sed 's
/^
/|
/' conftest.$ac_ext >&5
22260 { $as_echo "$as_me:$LINENO: result: no" >&5
22261 $as_echo "no" >&6; }
22270 EXTRA_KCFLAGS="$tmp_flags"
22273 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
22274 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
22275 tmp_flags="$EXTRA_KCFLAGS"
22276 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22279 cat confdefs.h - <<_ACEOF >conftest.c
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22287 #include <linux/blkdev.h>
22293 struct request *req = NULL;
22294 (void) blk_rq_bytes(req);
22303 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22304 echo "obj-m := conftest.o" >build/Makefile
22306 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22307 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309 (eval $ac_try) 2>&5
22311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22319 { $as_echo "$as_me:$LINENO: result: yes" >&5
22320 $as_echo "yes" >&6; }
22322 cat >>confdefs.h <<\_ACEOF
22323 #define HAVE_BLK_RQ_BYTES 1
22328 $as_echo "$as_me: failed program was:" >&5
22329 sed 's
/^
/|
/' conftest.$ac_ext >&5
22331 { $as_echo "$as_me:$LINENO: result: no" >&5
22332 $as_echo "no" >&6; }
22342 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
22343 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
22346 cat confdefs.h - <<_ACEOF >conftest.c
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h. */
22354 #include <linux/module.h>
22355 #include <linux/blkdev.h>
22357 MODULE_LICENSE("CDDL");
22363 struct request *req = NULL;
22364 (void) blk_rq_bytes(req);
22373 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22374 echo "obj-m := conftest.o" >build/Makefile
22376 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22377 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384 (eval $ac_try) 2>&5
22386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; }; then
22389 { $as_echo "$as_me:$LINENO: result: no" >&5
22390 $as_echo "no" >&6; }
22393 $as_echo "$as_me: failed program was:" >&5
22394 sed 's
/^
/|
/' conftest.$ac_ext >&5
22396 { $as_echo "$as_me:$LINENO: result: yes" >&5
22397 $as_echo "yes" >&6; }
22399 cat >>confdefs.h <<\_ACEOF
22400 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
22411 EXTRA_KCFLAGS="$tmp_flags"
22414 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
22415 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
22416 tmp_flags="$EXTRA_KCFLAGS"
22417 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22420 cat confdefs.h - <<_ACEOF >conftest.c
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22428 #include <linux/blkdev.h>
22434 struct request *req = NULL;
22435 (void) blk_rq_pos(req);
22444 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22445 echo "obj-m := conftest.o" >build/Makefile
22447 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22448 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22455 (eval $ac_try) 2>&5
22457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); }; }; then
22460 { $as_echo "$as_me:$LINENO: result: yes" >&5
22461 $as_echo "yes" >&6; }
22463 cat >>confdefs.h <<\_ACEOF
22464 #define HAVE_BLK_RQ_POS 1
22469 $as_echo "$as_me: failed program was:" >&5
22470 sed 's
/^
/|
/' conftest.$ac_ext >&5
22472 { $as_echo "$as_me:$LINENO: result: no" >&5
22473 $as_echo "no" >&6; }
22482 EXTRA_KCFLAGS="$tmp_flags"
22485 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
22486 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
22487 tmp_flags="$EXTRA_KCFLAGS"
22488 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22491 cat confdefs.h - <<_ACEOF >conftest.c
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22499 #include <linux/blkdev.h>
22505 struct request *req = NULL;
22506 (void) blk_rq_sectors(req);
22515 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22516 echo "obj-m := conftest.o" >build/Makefile
22518 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22519 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526 (eval $ac_try) 2>&5
22528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; }; then
22531 { $as_echo "$as_me:$LINENO: result: yes" >&5
22532 $as_echo "yes" >&6; }
22534 cat >>confdefs.h <<\_ACEOF
22535 #define HAVE_BLK_RQ_SECTORS 1
22540 $as_echo "$as_me: failed program was:" >&5
22541 sed 's
/^
/|
/' conftest.$ac_ext >&5
22543 { $as_echo "$as_me:$LINENO: result: no" >&5
22544 $as_echo "no" >&6; }
22553 EXTRA_KCFLAGS="$tmp_flags"
22556 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
22557 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
22558 tmp_flags="$EXTRA_KCFLAGS"
22559 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22562 cat confdefs.h - <<_ACEOF >conftest.c
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h. */
22570 #include <linux/blkdev.h>
22576 struct gendisk *disk = NULL;
22577 (void) get_disk_ro(disk);
22586 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22587 echo "obj-m := conftest.o" >build/Makefile
22589 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22590 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592 (eval $ac_try) 2>&5
22594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597 (eval $ac_try) 2>&5
22599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; }; then
22602 { $as_echo "$as_me:$LINENO: result: yes" >&5
22603 $as_echo "yes" >&6; }
22605 cat >>confdefs.h <<\_ACEOF
22606 #define HAVE_GET_DISK_RO 1
22611 $as_echo "$as_me: failed program was:" >&5
22612 sed 's
/^
/|
/' conftest.$ac_ext >&5
22614 { $as_echo "$as_me:$LINENO: result: no" >&5
22615 $as_echo "no" >&6; }
22624 EXTRA_KCFLAGS="$tmp_flags"
22626 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
22627 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
22631 cat confdefs.h - <<_ACEOF >conftest.c
22634 cat confdefs.h >>conftest.$ac_ext
22635 cat >>conftest.$ac_ext <<_ACEOF
22636 /* end confdefs.h. */
22639 #include <linux/genhd.h>
22645 get_gendisk(0, NULL);
22654 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22655 echo "obj-m := conftest.o" >build/Makefile
22657 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22658 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660 (eval $ac_try) 2>&5
22662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; }; then
22671 $as_echo "$as_me: failed program was:" >&5
22672 sed 's
/^
/|
/' conftest.$ac_ext >&5
22681 if test $rc -ne 0; then :
22683 { $as_echo "$as_me:$LINENO: result: no" >&5
22684 $as_echo "no" >&6; }
22687 if test "x$enable_linux_builtin" != xyes; then
22689 grep -q -E '[[:space
:]]get_gendisk
[[:space
:]]' \
22690 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22692 if test $rc -ne 0; then
22694 for file in block/genhd.c; do
22695 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
22696 "$LINUX/$file" 2>/dev/null
22698 if test $rc -eq 0; then
22703 if test $export -eq 0; then :
22713 if test $rc -ne 0; then :
22715 { $as_echo "$as_me:$LINENO: result: no" >&5
22716 $as_echo "no" >&6; }
22720 { $as_echo "$as_me:$LINENO: result: yes" >&5
22721 $as_echo "yes" >&6; }
22723 cat >>confdefs.h <<\_ACEOF
22724 #define HAVE_GET_GENDISK 1
22733 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
22734 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
22735 tmp_flags="$EXTRA_KCFLAGS"
22736 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
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/blkdev.h>
22753 struct request *req = NULL;
22754 (void) rq_is_sync(req);
22763 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22764 echo "obj-m := conftest.o" >build/Makefile
22766 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
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
$modpost_flag'
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_RQ_IS_SYNC 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; }
22801 EXTRA_KCFLAGS="$tmp_flags"
22804 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
22805 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
22806 tmp_flags="$EXTRA_KCFLAGS"
22807 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22810 cat confdefs.h - <<_ACEOF >conftest.c
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h. */
22818 #include <linux/blkdev.h>
22824 struct bio_vec *bv;
22825 struct req_iterator iter;
22826 struct request *req = NULL;
22827 rq_for_each_segment(bv, req, iter) { }
22836 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22837 echo "obj-m := conftest.o" >build/Makefile
22839 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22840 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842 (eval $ac_try) 2>&5
22844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22847 (eval $ac_try) 2>&5
22849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); }; }; then
22852 { $as_echo "$as_me:$LINENO: result: yes" >&5
22853 $as_echo "yes" >&6; }
22855 cat >>confdefs.h <<\_ACEOF
22856 #define HAVE_RQ_FOR_EACH_SEGMENT 1
22861 $as_echo "$as_me: failed program was:" >&5
22862 sed 's
/^
/|
/' conftest.$ac_ext >&5
22864 { $as_echo "$as_me:$LINENO: result: no" >&5
22865 $as_echo "no" >&6; }
22874 EXTRA_KCFLAGS="$tmp_flags"
22876 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
22877 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
22880 cat confdefs.h - <<_ACEOF >conftest.c
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22888 #include <linux/fs.h>
22889 #include <linux/xattr.h>
22891 const struct xattr_handler xattr_test_handler = {
22897 const struct xattr_handler *xattr_handlers[] = {
22898 &xattr_test_handler,
22905 struct super_block sb __attribute__ ((unused));
22907 sb.s_xattr = xattr_handlers;
22916 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22917 echo "obj-m := conftest.o" >build/Makefile
22919 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22920 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22927 (eval $ac_try) 2>&5
22929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }; }; then
22932 { $as_echo "$as_me:$LINENO: result: yes" >&5
22933 $as_echo "yes" >&6; }
22935 cat >>confdefs.h <<\_ACEOF
22936 #define HAVE_CONST_XATTR_HANDLER 1
22941 $as_echo "$as_me: failed program was:" >&5
22942 sed 's
/^
/|
/' conftest.$ac_ext >&5
22944 { $as_echo "$as_me:$LINENO: result: no" >&5
22945 $as_echo "no" >&6; }
22956 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
22957 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
22960 cat confdefs.h - <<_ACEOF >conftest.c
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22968 #include <linux/xattr.h>
22974 int (*get)(struct dentry *dentry, const char *name,
22975 void *buffer, size_t size, int handler_flags) = NULL;
22976 struct xattr_handler xops __attribute__ ((unused));
22987 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22988 echo "obj-m := conftest.o" >build/Makefile
22990 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22991 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993 (eval $ac_try) 2>&5
22995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22998 (eval $ac_try) 2>&5
23000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); }; }; then
23003 { $as_echo "$as_me:$LINENO: result: yes" >&5
23004 $as_echo "yes" >&6; }
23006 cat >>confdefs.h <<\_ACEOF
23007 #define HAVE_DENTRY_XATTR_GET 1
23012 $as_echo "$as_me: failed program was:" >&5
23013 sed 's
/^
/|
/' conftest.$ac_ext >&5
23015 { $as_echo "$as_me:$LINENO: result: no" >&5
23016 $as_echo "no" >&6; }
23027 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
23028 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
23031 cat confdefs.h - <<_ACEOF >conftest.c
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h. */
23039 #include <linux/xattr.h>
23045 int (*set)(struct dentry *dentry, const char *name,
23046 const void *buffer, size_t size, int flags,
23047 int handler_flags) = NULL;
23048 struct xattr_handler xops __attribute__ ((unused));
23059 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23060 echo "obj-m := conftest.o" >build/Makefile
23062 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23063 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23065 (eval $ac_try) 2>&5
23067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070 (eval $ac_try) 2>&5
23072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); }; }; then
23075 { $as_echo "$as_me:$LINENO: result: yes" >&5
23076 $as_echo "yes" >&6; }
23078 cat >>confdefs.h <<\_ACEOF
23079 #define HAVE_DENTRY_XATTR_SET 1
23084 $as_echo "$as_me: failed program was:" >&5
23085 sed 's
/^
/|
/' conftest.$ac_ext >&5
23087 { $as_echo "$as_me:$LINENO: result: no" >&5
23088 $as_echo "no" >&6; }
23099 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
23100 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
23104 cat confdefs.h - <<_ACEOF >conftest.c
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23112 #include <linux/fs.h>
23114 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
23115 static struct super_operations sops __attribute__ ((unused)) = {
23116 .show_options = show_options,
23131 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23132 echo "obj-m := conftest.o" >build/Makefile
23134 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23135 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137 (eval $ac_try) 2>&5
23139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142 (eval $ac_try) 2>&5
23144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; }; then
23147 { $as_echo "$as_me:$LINENO: result: yes" >&5
23148 $as_echo "yes" >&6; }
23150 cat >>confdefs.h <<\_ACEOF
23151 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
23156 $as_echo "$as_me: failed program was:" >&5
23157 sed 's
/^
/|
/' conftest.$ac_ext >&5
23159 { $as_echo "$as_me:$LINENO: result: no" >&5
23160 $as_echo "no" >&6; }
23171 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
23172 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
23176 cat confdefs.h - <<_ACEOF >conftest.c
23179 cat confdefs.h >>conftest.$ac_ext
23180 cat >>conftest.$ac_ext <<_ACEOF
23181 /* end confdefs.h. */
23184 #include <linux/fs.h>
23190 int (*fsync) (struct file *, struct dentry *, int) = NULL;
23191 struct file_operations fops __attribute__ ((unused));
23193 fops.fsync = fsync;
23202 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23203 echo "obj-m := conftest.o" >build/Makefile
23205 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23206 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208 (eval $ac_try) 2>&5
23210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213 (eval $ac_try) 2>&5
23215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); }; }; then
23218 { $as_echo "$as_me:$LINENO: result: dentry" >&5
23219 $as_echo "dentry" >&6; }
23221 cat >>confdefs.h <<\_ACEOF
23222 #define HAVE_FSYNC_WITH_DENTRY 1
23227 $as_echo "$as_me: failed program was:" >&5
23228 sed 's
/^
/|
/' conftest.$ac_ext >&5
23242 cat confdefs.h - <<_ACEOF >conftest.c
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23250 #include <linux/fs.h>
23256 int (*fsync) (struct file *, int) = NULL;
23257 struct file_operations fops __attribute__ ((unused));
23259 fops.fsync = fsync;
23268 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23269 echo "obj-m := conftest.o" >build/Makefile
23271 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23272 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274 (eval $ac_try) 2>&5
23276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23279 (eval $ac_try) 2>&5
23281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); }; }; then
23284 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
23285 $as_echo "no dentry" >&6; }
23287 cat >>confdefs.h <<\_ACEOF
23288 #define HAVE_FSYNC_WITHOUT_DENTRY 1
23293 $as_echo "$as_me: failed program was:" >&5
23294 sed 's
/^
/|
/' conftest.$ac_ext >&5
23308 cat confdefs.h - <<_ACEOF >conftest.c
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23316 #include <linux/fs.h>
23322 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
23323 struct file_operations fops __attribute__ ((unused));
23325 fops.fsync = fsync;
23334 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23335 echo "obj-m := conftest.o" >build/Makefile
23337 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23338 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345 (eval $ac_try) 2>&5
23347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; }; then
23350 { $as_echo "$as_me:$LINENO: result: range" >&5
23351 $as_echo "range" >&6; }
23353 cat >>confdefs.h <<\_ACEOF
23354 #define HAVE_FSYNC_RANGE 1
23359 $as_echo "$as_me: failed program was:" >&5
23360 sed 's
/^
/|
/' conftest.$ac_ext >&5
23374 cat confdefs.h - <<_ACEOF >conftest.c
23377 cat confdefs.h >>conftest.$ac_ext
23378 cat >>conftest.$ac_ext <<_ACEOF
23379 /* end confdefs.h. */
23382 #include <linux/fs.h>
23388 int (*fsync) (struct file *, struct dentry *, int) = NULL;
23389 file_operations_no_const fops __attribute__ ((unused));
23391 fops.fsync = fsync;
23400 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23401 echo "obj-m := conftest.o" >build/Makefile
23403 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23404 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23406 (eval $ac_try) 2>&5
23408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411 (eval $ac_try) 2>&5
23413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); }; }; then
23416 { $as_echo "$as_me:$LINENO: result: dentry" >&5
23417 $as_echo "dentry" >&6; }
23419 cat >>confdefs.h <<\_ACEOF
23420 #define HAVE_FSYNC_WITH_DENTRY 1
23425 $as_echo "$as_me: failed program was:" >&5
23426 sed 's
/^
/|
/' conftest.$ac_ext >&5
23440 cat confdefs.h - <<_ACEOF >conftest.c
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23448 #include <linux/fs.h>
23454 int (*fsync) (struct file *, int) = NULL;
23455 file_operations_no_const fops __attribute__ ((unused));
23457 fops.fsync = fsync;
23466 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23467 echo "obj-m := conftest.o" >build/Makefile
23469 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23470 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472 (eval $ac_try) 2>&5
23474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477 (eval $ac_try) 2>&5
23479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); }; }; then
23482 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
23483 $as_echo "no dentry" >&6; }
23485 cat >>confdefs.h <<\_ACEOF
23486 #define HAVE_FSYNC_WITHOUT_DENTRY 1
23491 $as_echo "$as_me: failed program was:" >&5
23492 sed 's
/^
/|
/' conftest.$ac_ext >&5
23506 cat confdefs.h - <<_ACEOF >conftest.c
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23514 #include <linux/fs.h>
23520 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
23521 file_operations_no_const fops __attribute__ ((unused));
23523 fops.fsync = fsync;
23532 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23533 echo "obj-m := conftest.o" >build/Makefile
23535 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23536 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538 (eval $ac_try) 2>&5
23540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23543 (eval $ac_try) 2>&5
23545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); }; }; then
23548 { $as_echo "$as_me:$LINENO: result: range" >&5
23549 $as_echo "range" >&6; }
23551 cat >>confdefs.h <<\_ACEOF
23552 #define HAVE_FSYNC_RANGE 1
23557 $as_echo "$as_me: failed program was:" >&5
23558 sed 's
/^
/|
/' conftest.$ac_ext >&5
23571 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
23572 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
23575 cat confdefs.h - <<_ACEOF >conftest.c
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23583 #include <linux/fs.h>
23584 void evict_inode (struct inode * t) { return; }
23585 static struct super_operations sops __attribute__ ((unused)) = {
23586 .evict_inode = evict_inode,
23601 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23602 echo "obj-m := conftest.o" >build/Makefile
23604 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23605 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23607 (eval $ac_try) 2>&5
23609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; }; then
23617 { $as_echo "$as_me:$LINENO: result: yes" >&5
23618 $as_echo "yes" >&6; }
23620 cat >>confdefs.h <<\_ACEOF
23621 #define HAVE_EVICT_INODE 1
23626 $as_echo "$as_me: failed program was:" >&5
23627 sed 's
/^
/|
/' conftest.$ac_ext >&5
23629 { $as_echo "$as_me:$LINENO: result: no" >&5
23630 $as_echo "no" >&6; }
23641 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
23642 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
23645 cat confdefs.h - <<_ACEOF >conftest.c
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h. */
23653 #include <linux/fs.h>
23659 int (*nr_cached_objects)(struct super_block *)
23660 __attribute__ ((unused)) = NULL;
23661 struct super_operations sops __attribute__ ((unused)) = {
23662 .nr_cached_objects = nr_cached_objects,
23672 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23673 echo "obj-m := conftest.o" >build/Makefile
23675 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23676 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678 (eval $ac_try) 2>&5
23680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683 (eval $ac_try) 2>&5
23685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; }; then
23688 { $as_echo "$as_me:$LINENO: result: yes" >&5
23689 $as_echo "yes" >&6; }
23691 cat >>confdefs.h <<\_ACEOF
23692 #define HAVE_NR_CACHED_OBJECTS 1
23697 $as_echo "$as_me: failed program was:" >&5
23698 sed 's
/^
/|
/' conftest.$ac_ext >&5
23700 { $as_echo "$as_me:$LINENO: result: no" >&5
23701 $as_echo "no" >&6; }
23712 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
23713 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
23716 cat confdefs.h - <<_ACEOF >conftest.c
23719 cat confdefs.h >>conftest.$ac_ext
23720 cat >>conftest.$ac_ext <<_ACEOF
23721 /* end confdefs.h. */
23724 #include <linux/fs.h>
23730 void (*free_cached_objects)(struct super_block *, int)
23731 __attribute__ ((unused)) = NULL;
23732 struct super_operations sops __attribute__ ((unused)) = {
23733 .free_cached_objects = free_cached_objects,
23743 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23744 echo "obj-m := conftest.o" >build/Makefile
23746 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23747 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23749 (eval $ac_try) 2>&5
23751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754 (eval $ac_try) 2>&5
23756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); }; }; then
23759 { $as_echo "$as_me:$LINENO: result: yes" >&5
23760 $as_echo "yes" >&6; }
23762 cat >>confdefs.h <<\_ACEOF
23763 #define HAVE_FREE_CACHED_OBJECTS 1
23768 $as_echo "$as_me: failed program was:" >&5
23769 sed 's
/^
/|
/' conftest.$ac_ext >&5
23771 { $as_echo "$as_me:$LINENO: result: no" >&5
23772 $as_echo "no" >&6; }
23784 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
23785 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
23788 cat confdefs.h - <<_ACEOF >conftest.c
23791 cat confdefs.h >>conftest.$ac_ext
23792 cat >>conftest.$ac_ext <<_ACEOF
23793 /* end confdefs.h. */
23796 #include <linux/fs.h>
23802 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
23803 struct file_operations fops __attribute__ ((unused)) = {
23804 .fallocate = fallocate,
23814 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23815 echo "obj-m := conftest.o" >build/Makefile
23817 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23818 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23820 (eval $ac_try) 2>&5
23822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825 (eval $ac_try) 2>&5
23827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); }; }; then
23830 { $as_echo "$as_me:$LINENO: result: yes" >&5
23831 $as_echo "yes" >&6; }
23833 cat >>confdefs.h <<\_ACEOF
23834 #define HAVE_FILE_FALLOCATE 1
23839 $as_echo "$as_me: failed program was:" >&5
23840 sed 's
/^
/|
/' conftest.$ac_ext >&5
23842 { $as_echo "$as_me:$LINENO: result: no" >&5
23843 $as_echo "no" >&6; }
23854 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
23855 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
23858 cat confdefs.h - <<_ACEOF >conftest.c
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23866 #include <linux/fs.h>
23872 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
23873 struct inode_operations fops __attribute__ ((unused)) = {
23874 .fallocate = fallocate,
23884 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23885 echo "obj-m := conftest.o" >build/Makefile
23887 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23888 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23890 (eval $ac_try) 2>&5
23892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23895 (eval $ac_try) 2>&5
23897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); }; }; then
23900 { $as_echo "$as_me:$LINENO: result: yes" >&5
23901 $as_echo "yes" >&6; }
23903 cat >>confdefs.h <<\_ACEOF
23904 #define HAVE_INODE_FALLOCATE 1
23909 $as_echo "$as_me: failed program was:" >&5
23910 sed 's
/^
/|
/' conftest.$ac_ext >&5
23912 { $as_echo "$as_me:$LINENO: result: no" >&5
23913 $as_echo "no" >&6; }
23924 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
23925 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
23928 cat confdefs.h - <<_ACEOF >conftest.c
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23936 #include <linux/fs.h>
23942 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
23943 struct file_operations_no_const fops __attribute__ ((unused)) = {
23944 .fallocate = fallocate,
23954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23955 echo "obj-m := conftest.o" >build/Makefile
23957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23958 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960 (eval $ac_try) 2>&5
23962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965 (eval $ac_try) 2>&5
23967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }; }; then
23970 { $as_echo "$as_me:$LINENO: result: yes" >&5
23971 $as_echo "yes" >&6; }
23973 cat >>confdefs.h <<\_ACEOF
23974 #define HAVE_FILE_FALLOCATE 1
23979 $as_echo "$as_me: failed program was:" >&5
23980 sed 's
/^
/|
/' conftest.$ac_ext >&5
23982 { $as_echo "$as_me:$LINENO: result: no" >&5
23983 $as_echo "no" >&6; }
23995 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
23996 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
23999 cat confdefs.h - <<_ACEOF >conftest.c
24002 cat confdefs.h >>conftest.$ac_ext
24003 cat >>conftest.$ac_ext <<_ACEOF
24004 /* end confdefs.h. */
24007 #include <linux/fs.h>
24008 void truncate_range(struct inode *inode, loff_t start,
24009 loff_t end) { return; }
24010 static struct inode_operations iops __attribute__ ((unused)) = {
24011 .truncate_range = truncate_range,
24026 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24027 echo "obj-m := conftest.o" >build/Makefile
24029 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24030 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032 (eval $ac_try) 2>&5
24034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24037 (eval $ac_try) 2>&5
24039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040 (exit $ac_status); }; }; then
24042 { $as_echo "$as_me:$LINENO: result: yes" >&5
24043 $as_echo "yes" >&6; }
24045 cat >>confdefs.h <<\_ACEOF
24046 #define HAVE_INODE_TRUNCATE_RANGE 1
24051 $as_echo "$as_me: failed program was:" >&5
24052 sed 's
/^
/|
/' conftest.$ac_ext >&5
24054 { $as_echo "$as_me:$LINENO: result: no" >&5
24055 $as_echo "no" >&6; }
24066 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
24067 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
24070 cat confdefs.h - <<_ACEOF >conftest.c
24073 cat confdefs.h >>conftest.$ac_ext
24074 cat >>conftest.$ac_ext <<_ACEOF
24075 /* end confdefs.h. */
24078 #include <linux/fs.h>
24084 int (*create) (struct inode *, struct dentry *, umode_t,
24085 struct nameidata *) = NULL;
24086 struct inode_operations iops __attribute__ ((unused)) = {
24097 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24098 echo "obj-m := conftest.o" >build/Makefile
24100 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24101 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24103 (eval $ac_try) 2>&5
24105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108 (eval $ac_try) 2>&5
24110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); }; }; then
24113 { $as_echo "$as_me:$LINENO: result: yes" >&5
24114 $as_echo "yes" >&6; }
24116 cat >>confdefs.h <<\_ACEOF
24117 #define HAVE_CREATE_UMODE_T 1
24122 $as_echo "$as_me: failed program was:" >&5
24123 sed 's
/^
/|
/' conftest.$ac_ext >&5
24125 { $as_echo "$as_me:$LINENO: result: no" >&5
24126 $as_echo "no" >&6; }
24137 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
24138 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
24141 cat confdefs.h - <<_ACEOF >conftest.c
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24149 #include <linux/dcache.h>
24155 struct vfsmount *(*d_automount) (struct path *) = NULL;
24156 struct dentry_operations dops __attribute__ ((unused)) = {
24157 .d_automount = d_automount,
24167 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24168 echo "obj-m := conftest.o" >build/Makefile
24170 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24171 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24173 (eval $ac_try) 2>&5
24175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178 (eval $ac_try) 2>&5
24180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; }; then
24183 { $as_echo "$as_me:$LINENO: result: yes" >&5
24184 $as_echo "yes" >&6; }
24186 cat >>confdefs.h <<\_ACEOF
24187 #define HAVE_AUTOMOUNT 1
24192 $as_echo "$as_me: failed program was:" >&5
24193 sed 's
/^
/|
/' conftest.$ac_ext >&5
24195 { $as_echo "$as_me:$LINENO: result: no" >&5
24196 $as_echo "no" >&6; }
24207 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
24208 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
24211 cat confdefs.h - <<_ACEOF >conftest.c
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h. */
24219 #include <linux/exportfs.h>
24220 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
24221 struct inode *parent) { return 0; }
24222 static struct export_operations eops __attribute__ ((unused))={
24223 .encode_fh = encode_fh,
24238 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24239 echo "obj-m := conftest.o" >build/Makefile
24241 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24242 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24244 (eval $ac_try) 2>&5
24246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; }; then
24254 { $as_echo "$as_me:$LINENO: result: yes" >&5
24255 $as_echo "yes" >&6; }
24257 cat >>confdefs.h <<\_ACEOF
24258 #define HAVE_ENCODE_FH_WITH_INODE 1
24263 $as_echo "$as_me: failed program was:" >&5
24264 sed 's
/^
/|
/' conftest.$ac_ext >&5
24266 { $as_echo "$as_me:$LINENO: result: no" >&5
24267 $as_echo "no" >&6; }
24277 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
24278 $as_echo_n "checking whether clear_inode() is available... " >&6; }
24282 cat confdefs.h - <<_ACEOF >conftest.c
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h. */
24290 #include <linux/fs.h>
24305 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24306 echo "obj-m := conftest.o" >build/Makefile
24308 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24309 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311 (eval $ac_try) 2>&5
24313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24316 (eval $ac_try) 2>&5
24318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); }; }; then
24322 $as_echo "$as_me: failed program was:" >&5
24323 sed 's
/^
/|
/' conftest.$ac_ext >&5
24332 if test $rc -ne 0; then :
24334 { $as_echo "$as_me:$LINENO: result: no" >&5
24335 $as_echo "no" >&6; }
24338 if test "x$enable_linux_builtin" != xyes; then
24340 grep -q -E '[[:space
:]]clear_inode
[[:space
:]]' \
24341 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24343 if test $rc -ne 0; then
24345 for file in fs/inode.c; do
24346 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
24347 "$LINUX/$file" 2>/dev/null
24349 if test $rc -eq 0; then
24354 if test $export -eq 0; then :
24364 if test $rc -ne 0; then :
24366 { $as_echo "$as_me:$LINENO: result: no" >&5
24367 $as_echo "no" >&6; }
24371 { $as_echo "$as_me:$LINENO: result: yes" >&5
24372 $as_echo "yes" >&6; }
24374 cat >>confdefs.h <<\_ACEOF
24375 #define HAVE_CLEAR_INODE 1
24383 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
24384 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
24388 cat confdefs.h - <<_ACEOF >conftest.c
24391 cat confdefs.h >>conftest.$ac_ext
24392 cat >>conftest.$ac_ext <<_ACEOF
24393 /* end confdefs.h. */
24396 #include <linux/fs.h>
24402 insert_inode_locked(NULL);
24411 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24412 echo "obj-m := conftest.o" >build/Makefile
24414 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24415 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24417 (eval $ac_try) 2>&5
24419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24422 (eval $ac_try) 2>&5
24424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425 (exit $ac_status); }; }; then
24428 $as_echo "$as_me: failed program was:" >&5
24429 sed 's
/^
/|
/' conftest.$ac_ext >&5
24438 if test $rc -ne 0; then :
24440 { $as_echo "$as_me:$LINENO: result: no" >&5
24441 $as_echo "no" >&6; }
24444 if test "x$enable_linux_builtin" != xyes; then
24446 grep -q -E '[[:space
:]]insert_inode_locked
[[:space
:]]' \
24447 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24449 if test $rc -ne 0; then
24451 for file in fs/inode.c; do
24452 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
24453 "$LINUX/$file" 2>/dev/null
24455 if test $rc -eq 0; then
24460 if test $export -eq 0; then :
24470 if test $rc -ne 0; then :
24472 { $as_echo "$as_me:$LINENO: result: no" >&5
24473 $as_echo "no" >&6; }
24477 { $as_echo "$as_me:$LINENO: result: yes" >&5
24478 $as_echo "yes" >&6; }
24480 cat >>confdefs.h <<\_ACEOF
24481 #define HAVE_INSERT_INODE_LOCKED 1
24489 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
24490 $as_echo_n "checking whether d_make_root() is available... " >&6; }
24494 cat confdefs.h - <<_ACEOF >conftest.c
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24502 #include <linux/dcache.h>
24517 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24518 echo "obj-m := conftest.o" >build/Makefile
24520 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24521 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24523 (eval $ac_try) 2>&5
24525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24528 (eval $ac_try) 2>&5
24530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; }; then
24534 $as_echo "$as_me: failed program was:" >&5
24535 sed 's
/^
/|
/' conftest.$ac_ext >&5
24544 if test $rc -ne 0; then :
24546 { $as_echo "$as_me:$LINENO: result: no" >&5
24547 $as_echo "no" >&6; }
24550 if test "x$enable_linux_builtin" != xyes; then
24552 grep -q -E '[[:space
:]]d_make_root
[[:space
:]]' \
24553 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24555 if test $rc -ne 0; then
24557 for file in fs/dcache.c; do
24558 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
24559 "$LINUX/$file" 2>/dev/null
24561 if test $rc -eq 0; then
24566 if test $export -eq 0; then :
24576 if test $rc -ne 0; then :
24578 { $as_echo "$as_me:$LINENO: result: no" >&5
24579 $as_echo "no" >&6; }
24583 { $as_echo "$as_me:$LINENO: result: yes" >&5
24584 $as_echo "yes" >&6; }
24586 cat >>confdefs.h <<\_ACEOF
24587 #define HAVE_D_MAKE_ROOT 1
24595 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
24596 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
24600 cat confdefs.h - <<_ACEOF >conftest.c
24603 cat confdefs.h >>conftest.$ac_ext
24604 cat >>conftest.$ac_ext <<_ACEOF
24605 /* end confdefs.h. */
24608 #include <linux/dcache.h>
24614 d_obtain_alias(NULL);
24623 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24624 echo "obj-m := conftest.o" >build/Makefile
24626 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24627 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24629 (eval $ac_try) 2>&5
24631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24634 (eval $ac_try) 2>&5
24636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); }; }; then
24640 $as_echo "$as_me: failed program was:" >&5
24641 sed 's
/^
/|
/' conftest.$ac_ext >&5
24650 if test $rc -ne 0; then :
24652 { $as_echo "$as_me:$LINENO: result: no" >&5
24653 $as_echo "no" >&6; }
24656 if test "x$enable_linux_builtin" != xyes; then
24658 grep -q -E '[[:space
:]]d_obtain_alias
[[:space
:]]' \
24659 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24661 if test $rc -ne 0; then
24663 for file in fs/dcache.c; do
24664 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
24665 "$LINUX/$file" 2>/dev/null
24667 if test $rc -eq 0; then
24672 if test $export -eq 0; then :
24682 if test $rc -ne 0; then :
24684 { $as_echo "$as_me:$LINENO: result: no" >&5
24685 $as_echo "no" >&6; }
24689 { $as_echo "$as_me:$LINENO: result: yes" >&5
24690 $as_echo "yes" >&6; }
24692 cat >>confdefs.h <<\_ACEOF
24693 #define HAVE_D_OBTAIN_ALIAS 1
24701 { $as_echo "$as_me:$LINENO: checking whether check_disk_size_change() is available" >&5
24702 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
24706 cat confdefs.h - <<_ACEOF >conftest.c
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24714 #include <linux/fs.h>
24720 check_disk_size_change(NULL, NULL);
24729 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24730 echo "obj-m := conftest.o" >build/Makefile
24732 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24733 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740 (eval $ac_try) 2>&5
24742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; }; then
24746 $as_echo "$as_me: failed program was:" >&5
24747 sed 's
/^
/|
/' conftest.$ac_ext >&5
24756 if test $rc -ne 0; then :
24758 { $as_echo "$as_me:$LINENO: result: no" >&5
24759 $as_echo "no" >&6; }
24762 if test "x$enable_linux_builtin" != xyes; then
24764 grep -q -E '[[:space
:]]check_disk_size_change
[[:space
:]]' \
24765 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24767 if test $rc -ne 0; then
24769 for file in fs/block_dev.c; do
24770 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
24771 "$LINUX/$file" 2>/dev/null
24773 if test $rc -eq 0; then
24778 if test $export -eq 0; then :
24788 if test $rc -ne 0; then :
24790 { $as_echo "$as_me:$LINENO: result: no" >&5
24791 $as_echo "no" >&6; }
24795 { $as_echo "$as_me:$LINENO: result: yes" >&5
24796 $as_echo "yes" >&6; }
24798 cat >>confdefs.h <<\_ACEOF
24799 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
24807 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
24808 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
24812 cat confdefs.h - <<_ACEOF >conftest.c
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24820 #include <linux/mm.h>
24826 truncate_setsize(NULL, 0);
24835 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24836 echo "obj-m := conftest.o" >build/Makefile
24838 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24839 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841 (eval $ac_try) 2>&5
24843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24846 (eval $ac_try) 2>&5
24848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 (exit $ac_status); }; }; then
24852 $as_echo "$as_me: failed program was:" >&5
24853 sed 's
/^
/|
/' conftest.$ac_ext >&5
24862 if test $rc -ne 0; then :
24864 { $as_echo "$as_me:$LINENO: result: no" >&5
24865 $as_echo "no" >&6; }
24868 if test "x$enable_linux_builtin" != xyes; then
24870 grep -q -E '[[:space
:]]truncate_setsize
[[:space
:]]' \
24871 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24873 if test $rc -ne 0; then
24875 for file in mm/truncate.c; do
24876 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
24877 "$LINUX/$file" 2>/dev/null
24879 if test $rc -eq 0; then
24884 if test $export -eq 0; then :
24894 if test $rc -ne 0; then :
24896 { $as_echo "$as_me:$LINENO: result: no" >&5
24897 $as_echo "no" >&6; }
24901 { $as_echo "$as_me:$LINENO: result: yes" >&5
24902 $as_echo "yes" >&6; }
24904 cat >>confdefs.h <<\_ACEOF
24905 #define HAVE_TRUNCATE_SETSIZE 1
24914 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
24915 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
24916 tmp_flags="$EXTRA_KCFLAGS"
24917 EXTRA_KCFLAGS="-Werror"
24920 cat confdefs.h - <<_ACEOF >conftest.c
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h. */
24928 #include <linux/security.h>
24934 struct inode *ip __attribute__ ((unused)) = NULL;
24935 struct inode *dip __attribute__ ((unused)) = NULL;
24936 const struct qstr *str __attribute__ ((unused)) = NULL;
24937 char *name __attribute__ ((unused)) = NULL;
24938 void *value __attribute__ ((unused)) = NULL;
24939 size_t len __attribute__ ((unused)) = 0;
24941 security_inode_init_security(ip, dip, str, &name, &value, &len);
24950 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24951 echo "obj-m := conftest.o" >build/Makefile
24953 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24954 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24956 (eval $ac_try) 2>&5
24958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961 (eval $ac_try) 2>&5
24963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); }; }; then
24966 { $as_echo "$as_me:$LINENO: result: yes" >&5
24967 $as_echo "yes" >&6; }
24969 cat >>confdefs.h <<\_ACEOF
24970 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
24975 $as_echo "$as_me: failed program was:" >&5
24976 sed 's
/^
/|
/' conftest.$ac_ext >&5
24978 { $as_echo "$as_me:$LINENO: result: no" >&5
24979 $as_echo "no" >&6; }
24988 EXTRA_KCFLAGS="$tmp_flags"
24991 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
24992 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
24993 tmp_flags="$EXTRA_KCFLAGS"
24994 EXTRA_KCFLAGS="-Werror"
24997 cat confdefs.h - <<_ACEOF >conftest.c
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25005 #include <linux/security.h>
25011 struct inode *ip __attribute__ ((unused)) = NULL;
25012 struct inode *dip __attribute__ ((unused)) = NULL;
25013 const struct qstr *str __attribute__ ((unused)) = NULL;
25014 initxattrs func __attribute__ ((unused)) = NULL;
25016 security_inode_init_security(ip, dip, str, func, NULL);
25025 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25026 echo "obj-m := conftest.o" >build/Makefile
25028 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25029 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031 (eval $ac_try) 2>&5
25033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25036 (eval $ac_try) 2>&5
25038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); }; }; then
25041 { $as_echo "$as_me:$LINENO: result: yes" >&5
25042 $as_echo "yes" >&6; }
25044 cat >>confdefs.h <<\_ACEOF
25045 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
25050 $as_echo "$as_me: failed program was:" >&5
25051 sed 's
/^
/|
/' conftest.$ac_ext >&5
25053 { $as_echo "$as_me:$LINENO: result: no" >&5
25054 $as_echo "no" >&6; }
25063 EXTRA_KCFLAGS="$tmp_flags"
25065 { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
25066 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
25070 cat confdefs.h - <<_ACEOF >conftest.c
25073 cat confdefs.h >>conftest.$ac_ext
25074 cat >>conftest.$ac_ext <<_ACEOF
25075 /* end confdefs.h. */
25078 #include <linux/fs.h>
25084 mount_nodev(NULL, 0, NULL, NULL);
25093 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25094 echo "obj-m := conftest.o" >build/Makefile
25096 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25097 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099 (eval $ac_try) 2>&5
25101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25104 (eval $ac_try) 2>&5
25106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); }; }; then
25110 $as_echo "$as_me: failed program was:" >&5
25111 sed 's
/^
/|
/' conftest.$ac_ext >&5
25120 if test $rc -ne 0; then :
25122 { $as_echo "$as_me:$LINENO: result: no" >&5
25123 $as_echo "no" >&6; }
25126 if test "x$enable_linux_builtin" != xyes; then
25128 grep -q -E '[[:space
:]]mount_nodev
[[:space
:]]' \
25129 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25131 if test $rc -ne 0; then
25133 for file in fs/super.c; do
25134 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
25135 "$LINUX/$file" 2>/dev/null
25137 if test $rc -eq 0; then
25142 if test $export -eq 0; then :
25152 if test $rc -ne 0; then :
25154 { $as_echo "$as_me:$LINENO: result: no" >&5
25155 $as_echo "no" >&6; }
25159 { $as_echo "$as_me:$LINENO: result: yes" >&5
25160 $as_echo "yes" >&6; }
25162 cat >>confdefs.h <<\_ACEOF
25163 #define HAVE_MOUNT_NODEV 1
25172 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
25173 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
25176 cat confdefs.h - <<_ACEOF >conftest.c
25179 cat confdefs.h >>conftest.$ac_ext
25180 cat >>conftest.$ac_ext <<_ACEOF
25181 /* end confdefs.h. */
25184 #include <linux/fs.h>
25190 int (*shrink)(struct shrinker *, struct shrink_control *sc)
25191 __attribute__ ((unused)) = NULL;
25192 struct super_block sb __attribute__ ((unused)) = {
25193 .s_shrink.shrink = shrink,
25194 .s_shrink.seeks = DEFAULT_SEEKS,
25195 .s_shrink.batch = 0,
25205 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25206 echo "obj-m := conftest.o" >build/Makefile
25208 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25209 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216 (eval $ac_try) 2>&5
25218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; }; then
25221 { $as_echo "$as_me:$LINENO: result: yes" >&5
25222 $as_echo "yes" >&6; }
25224 cat >>confdefs.h <<\_ACEOF
25225 #define HAVE_SHRINK 1
25231 $as_echo "$as_me: failed program was:" >&5
25232 sed 's
/^
/|
/' conftest.$ac_ext >&5
25234 { $as_echo "$as_me:$LINENO: result: no" >&5
25235 $as_echo "no" >&6; }
25246 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
25247 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
25250 cat confdefs.h - <<_ACEOF >conftest.c
25253 cat confdefs.h >>conftest.$ac_ext
25254 cat >>conftest.$ac_ext <<_ACEOF
25255 /* end confdefs.h. */
25258 #include <linux/fs.h>
25264 struct super_block sb __attribute__ ((unused));
25274 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25275 echo "obj-m := conftest.o" >build/Makefile
25277 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25278 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285 (eval $ac_try) 2>&5
25287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); }; }; then
25290 { $as_echo "$as_me:$LINENO: result: yes" >&5
25291 $as_echo "yes" >&6; }
25293 cat >>confdefs.h <<\_ACEOF
25299 $as_echo "$as_me: failed program was:" >&5
25300 sed 's
/^
/|
/' conftest.$ac_ext >&5
25302 { $as_echo "$as_me:$LINENO: result: no" >&5
25303 $as_echo "no" >&6; }
25313 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() is available" >&5
25314 $as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
25318 cat confdefs.h - <<_ACEOF >conftest.c
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h. */
25326 #include <linux/backing-dev.h>
25332 bdi_setup_and_register(NULL, NULL, 0);
25341 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25342 echo "obj-m := conftest.o" >build/Makefile
25344 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25345 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; }; then
25358 $as_echo "$as_me: failed program was:" >&5
25359 sed 's
/^
/|
/' conftest.$ac_ext >&5
25368 if test $rc -ne 0; then :
25370 { $as_echo "$as_me:$LINENO: result: no" >&5
25371 $as_echo "no" >&6; }
25374 if test "x$enable_linux_builtin" != xyes; then
25376 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
25377 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25379 if test $rc -ne 0; then
25381 for file in mm/backing-dev.c; do
25382 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25383 "$LINUX/$file" 2>/dev/null
25385 if test $rc -eq 0; then
25390 if test $export -eq 0; then :
25400 if test $rc -ne 0; then :
25402 { $as_echo "$as_me:$LINENO: result: no" >&5
25403 $as_echo "no" >&6; }
25407 { $as_echo "$as_me:$LINENO: result: yes" >&5
25408 $as_echo "yes" >&6; }
25410 cat >>confdefs.h <<\_ACEOF
25411 #define HAVE_BDI_SETUP_AND_REGISTER 1
25420 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
25421 $as_echo_n "checking whether set_nlink() is available... " >&6; }
25424 cat confdefs.h - <<_ACEOF >conftest.c
25427 cat confdefs.h >>conftest.$ac_ext
25428 cat >>conftest.$ac_ext <<_ACEOF
25429 /* end confdefs.h. */
25432 #include <linux/fs.h>
25439 unsigned int link = 0;
25440 (void) set_nlink(&node, link);
25449 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25450 echo "obj-m := conftest.o" >build/Makefile
25452 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25453 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455 (eval $ac_try) 2>&5
25457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460 (eval $ac_try) 2>&5
25462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); }; }; then
25465 { $as_echo "$as_me:$LINENO: result: yes" >&5
25466 $as_echo "yes" >&6; }
25468 cat >>confdefs.h <<\_ACEOF
25469 #define HAVE_SET_NLINK 1
25474 $as_echo "$as_me: failed program was:" >&5
25475 sed 's
/^
/|
/' conftest.$ac_ext >&5
25477 { $as_echo "$as_me:$LINENO: result: no" >&5
25478 $as_echo "no" >&6; }
25489 if test "$LINUX_OBJ" != "$LINUX"; then
25491 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
25498 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
25499 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
25500 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
25507 # Check whether --with-udevdir was given.
25508 if test "${with_udevdir+set}" = set; then
25509 withval=$with_udevdir; udevdir=$withval
25511 udevdir='${exec_prefix}/lib
/udev
'
25516 # Check whether --with-udevruledir was given.
25517 if test "${with_udevruledir+set}" = set; then
25518 withval=$with_udevruledir; udevruledir=$withval
25520 udevruledir='${udevdir}/rules.d
'
25528 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
25529 $as_echo_n "checking for target asm dir... " >&6; }
25530 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
25532 case $TARGET_ARCH in
25534 TARGET_ASM_DIR=asm-${TARGET_ARCH}
25537 TARGET_ASM_DIR=asm-generic
25542 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
25543 $as_echo "$TARGET_ASM_DIR" >&6; }
25546 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
25547 $as_echo_n "checking for ioctl()... " >&6; }
25548 cat >conftest.$ac_ext <<_ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h. */
25554 #include <unistd.h>
25557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25558 $EGREP "ioctl" >/dev/null 2>&1; then
25565 cat >conftest.$ac_ext <<_ACEOF
25568 cat confdefs.h >>conftest.$ac_ext
25569 cat >>conftest.$ac_ext <<_ACEOF
25570 /* end confdefs.h. */
25571 #include <sys/ioctl.h>
25574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25575 $EGREP "ioctl" >/dev/null 2>&1; then
25582 cat >conftest.$ac_ext <<_ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h. */
25588 #include <stropts.h>
25591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25592 $EGREP "ioctl" >/dev/null 2>&1; then
25600 if test $is_unistd = yes; then
25603 cat >>confdefs.h <<\_ACEOF
25604 #define HAVE_IOCTL_IN_UNISTD_H 1
25609 if test $is_sys_ioctl = yes; then
25612 cat >>confdefs.h <<\_ACEOF
25613 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
25616 elif test $is_stropts = yes; then
25618 cat >>confdefs.h <<\_ACEOF
25619 #define HAVE_IOCTL_IN_STROPTS_H 1
25627 if test $result = no; then
25628 { $as_echo "$as_me:$LINENO: result: no" >&5
25629 $as_echo "no" >&6; }
25630 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
25631 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
25632 { (exit 1); exit 1; }; }
25634 { $as_echo "$as_me:$LINENO: result: yes" >&5
25635 $as_echo "yes" >&6; }
25641 if test "${ac_cv_header_zlib_h+set}" = set; then
25642 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
25643 $as_echo_n "checking for zlib.h... " >&6; }
25644 if test "${ac_cv_header_zlib_h+set}" = set; then
25645 $as_echo_n "(cached) " >&6
25647 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25648 $as_echo "$ac_cv_header_zlib_h" >&6; }
25650 # Is the header compilable?
25651 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
25652 $as_echo_n "checking zlib.h usability... " >&6; }
25653 cat >conftest.$ac_ext <<_ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h. */
25659 $ac_includes_default
25662 rm -f conftest.$ac_objext
25663 if { (ac_try="$ac_compile"
25664 case "(($ac_try" in
25665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25666 *) ac_try_echo=$ac_try;;
25668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25669 $as_echo "$ac_try_echo") >&5
25670 (eval "$ac_compile") 2>conftest.er1
25672 grep -v '^
*+' conftest.er1 >conftest.err
25674 cat conftest.err >&5
25675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); } && {
25677 test -z "$ac_c_werror_flag" ||
25678 test ! -s conftest.err
25679 } && test -s conftest.$ac_objext; then
25680 ac_header_compiler=yes
25682 $as_echo "$as_me: failed program was:" >&5
25683 sed 's
/^
/|
/' conftest.$ac_ext >&5
25685 ac_header_compiler=no
25688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25689 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25690 $as_echo "$ac_header_compiler" >&6; }
25692 # Is the header present?
25693 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
25694 $as_echo_n "checking zlib.h presence... " >&6; }
25695 cat >conftest.$ac_ext <<_ACEOF
25698 cat confdefs.h >>conftest.$ac_ext
25699 cat >>conftest.$ac_ext <<_ACEOF
25700 /* end confdefs.h. */
25703 if { (ac_try="$ac_cpp conftest.$ac_ext"
25704 case "(($ac_try" in
25705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25706 *) ac_try_echo=$ac_try;;
25708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25709 $as_echo "$ac_try_echo") >&5
25710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25712 grep -v '^
*+' conftest.er1 >conftest.err
25714 cat conftest.err >&5
25715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } >/dev/null && {
25717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25718 test ! -s conftest.err
25720 ac_header_preproc=yes
25722 $as_echo "$as_me: failed program was:" >&5
25723 sed 's
/^
/|
/' conftest.$ac_ext >&5
25725 ac_header_preproc=no
25728 rm -f conftest.err conftest.$ac_ext
25729 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25730 $as_echo "$ac_header_preproc" >&6; }
25732 # So? What about this header?
25733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25735 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25736 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25737 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
25738 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
25739 ac_header_preproc=yes
25742 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25743 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25744 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25745 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25746 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25747 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25748 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25749 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25750 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
25751 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
25752 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25753 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25757 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
25758 $as_echo_n "checking for zlib.h... " >&6; }
25759 if test "${ac_cv_header_zlib_h+set}" = set; then
25760 $as_echo_n "(cached) " >&6
25762 ac_cv_header_zlib_h=$ac_header_preproc
25764 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25765 $as_echo "$ac_cv_header_zlib_h" >&6; }
25768 if test "x$ac_cv_header_zlib_h" = x""yes; then
25771 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25772 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
25773 { { $as_echo "$as_me:$LINENO: error:
25774 *** zlib.h missing, zlib-devel package required
25775 See \`config.log
' for more details." >&5
25776 $as_echo "$as_me: error:
25777 *** zlib.h missing, zlib-devel package required
25778 See \`config.log' for more details.
" >&2;}
25779 { (exit 1); exit 1; }; }; }
25785 { $as_echo "$as_me:$LINENO: checking
for compress2
in -lz" >&5
25786 $as_echo_n "checking
for compress2
in -lz...
" >&6; }
25787 if test "${ac_cv_lib_z_compress2+set}" = set; then
25788 $as_echo_n "(cached
) " >&6
25790 ac_check_lib_save_LIBS=$LIBS
25792 cat >conftest.$ac_ext <<_ACEOF
25795 cat confdefs.h >>conftest.$ac_ext
25796 cat >>conftest.$ac_ext <<_ACEOF
25797 /* end confdefs.h. */
25799 /* Override any GCC internal prototype to avoid an error.
25800 Use char because int might match the return type of a GCC
25801 builtin and then its argument prototype would still apply. */
25809 return compress2 ();
25814 rm -f conftest.$ac_objext conftest$ac_exeext
25815 if { (ac_try="$ac_link"
25816 case "(($ac_try" in
25817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25818 *) ac_try_echo=$ac_try;;
25820 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25821 $as_echo "$ac_try_echo") >&5
25822 (eval "$ac_link") 2>conftest.er1
25824 grep -v '^ *+' conftest.er1 >conftest.err
25826 cat conftest.err >&5
25827 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25828 (exit $ac_status); } && {
25829 test -z "$ac_c_werror_flag" ||
25830 test ! -s conftest.err
25831 } && test -s conftest$ac_exeext && {
25832 test "$cross_compiling" = yes ||
25833 $as_test_x conftest$ac_exeext
25835 ac_cv_lib_z_compress2=yes
25837 $as_echo "$as_me: failed program was
:" >&5
25838 sed 's/^/| /' conftest.$ac_ext >&5
25840 ac_cv_lib_z_compress2=no
25843 rm -rf conftest.dSYM
25844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25845 conftest$ac_exeext conftest.$ac_ext
25846 LIBS=$ac_check_lib_save_LIBS
25848 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_compress2" >&5
25849 $as_echo "$ac_cv_lib_z_compress2" >&6; }
25850 if test "x
$ac_cv_lib_z_compress2" = x""yes; then
25851 cat >>confdefs.h <<_ACEOF
25852 #define HAVE_LIBZ 1
25858 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
25859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25860 { { $as_echo "$as_me:$LINENO: error:
25861 *** compress2() missing, zlib-devel package required
25862 See \`config.log' for more details.
" >&5
25863 $as_echo "$as_me: error
:
25864 *** compress2
() missing
, zlib-devel package required
25865 See \
`config.log' for more details." >&2;}
25866 { (exit 1); exit 1; }; }; }
25871 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
25872 $as_echo_n "checking for uncompress in -lz... " >&6; }
25873 if test "${ac_cv_lib_z_uncompress+set}" = set; then
25874 $as_echo_n "(cached) " >&6
25876 ac_check_lib_save_LIBS=$LIBS
25878 cat >conftest.$ac_ext <<_ACEOF
25881 cat confdefs.h >>conftest.$ac_ext
25882 cat >>conftest.$ac_ext <<_ACEOF
25883 /* end confdefs.h. */
25885 /* Override any GCC internal prototype to avoid an error.
25886 Use char because int might match the return type of a GCC
25887 builtin and then its argument prototype would still apply. */
25891 char uncompress ();
25895 return uncompress ();
25900 rm -f conftest.$ac_objext conftest$ac_exeext
25901 if { (ac_try="$ac_link"
25902 case "(($ac_try" in
25903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25904 *) ac_try_echo
=$ac_try;;
25906 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25907 $as_echo "$ac_try_echo") >&5
25908 (eval "$ac_link") 2>conftest.er1
25910 grep -v '^ *+' conftest.er1
>conftest.err
25912 cat conftest.err
>&5
25913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); } && {
25915 test -z "$ac_c_werror_flag" ||
25916 test ! -s conftest.err
25917 } && test -s conftest
$ac_exeext && {
25918 test "$cross_compiling" = yes ||
25919 $as_test_x conftest
$ac_exeext
25921 ac_cv_lib_z_uncompress
=yes
25923 $as_echo "$as_me: failed program was:" >&5
25924 sed 's/^/| /' conftest.
$ac_ext >&5
25926 ac_cv_lib_z_uncompress
=no
25929 rm -rf conftest.dSYM
25930 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25931 conftest
$ac_exeext conftest.
$ac_ext
25932 LIBS
=$ac_check_lib_save_LIBS
25934 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
25935 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
25936 if test "x$ac_cv_lib_z_uncompress" = x
""yes; then
25937 cat >>confdefs.h
<<_ACEOF
25938 #define HAVE_LIBZ 1
25944 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25946 { { $as_echo "$as_me:$LINENO: error:
25947 *** uncompress() missing, zlib-devel package required
25948 See \`config.log' for more details." >&5
25949 $as_echo "$as_me: error:
25950 *** uncompress() missing, zlib-devel package required
25951 See \`config.log' for more details." >&2;}
25952 { (exit 1); exit 1; }; }; }
25957 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
25958 $as_echo_n "checking for crc32 in -lz... " >&6; }
25959 if test "${ac_cv_lib_z_crc32+set}" = set; then
25960 $as_echo_n "(cached) " >&6
25962 ac_check_lib_save_LIBS
=$LIBS
25964 cat >conftest.
$ac_ext <<_ACEOF
25967 cat confdefs.h
>>conftest.
$ac_ext
25968 cat >>conftest.
$ac_ext <<_ACEOF
25969 /* end confdefs.h. */
25971 /* Override any GCC internal prototype to avoid an error.
25972 Use char because int might match the return type of a GCC
25973 builtin and then its argument prototype would still apply. */
25986 rm -f conftest.
$ac_objext conftest
$ac_exeext
25987 if { (ac_try
="$ac_link"
25988 case "(($ac_try" in
25989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25990 *) ac_try_echo=$ac_try;;
25992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25993 $as_echo "$ac_try_echo") >&5
25994 (eval "$ac_link") 2>conftest.er1
25996 grep -v '^ *+' conftest.er1 >conftest.err
25998 cat conftest.err >&5
25999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); } && {
26001 test -z "$ac_c_werror_flag" ||
26002 test ! -s conftest.err
26003 } && test -s conftest$ac_exeext && {
26004 test "$cross_compiling" = yes ||
26005 $as_test_x conftest$ac_exeext
26007 ac_cv_lib_z_crc32=yes
26009 $as_echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26012 ac_cv_lib_z_crc32=no
26015 rm -rf conftest.dSYM
26016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26017 conftest$ac_exeext conftest.$ac_ext
26018 LIBS=$ac_check_lib_save_LIBS
26020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
26021 $as_echo "$ac_cv_lib_z_crc32" >&6; }
26022 if test "x$ac_cv_lib_z_crc32" = x""yes; then
26023 cat >>confdefs.h <<_ACEOF
26024 #define HAVE_LIBZ 1
26030 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26032 { { $as_echo "$as_me:$LINENO: error
:
26033 *** crc32
() missing
, zlib-devel package required
26034 See \
`config.log' for more details." >&5
26035 $as_echo "$as_me: error:
26036 *** crc32() missing, zlib-devel package required
26037 See \`config.log
' for more details." >&2;}
26038 { (exit 1); exit 1; }; }; }
26045 cat >>confdefs.h <<\_ACEOF
26046 #define HAVE_ZLIB 1
26053 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
26054 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
26055 $as_echo_n "checking for uuid/uuid.h... " >&6; }
26056 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
26057 $as_echo_n "(cached) " >&6
26059 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
26060 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
26062 # Is the header compilable?
26063 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
26064 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
26065 cat >conftest.$ac_ext <<_ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h. */
26071 $ac_includes_default
26072 #include <uuid/uuid.h>
26074 rm -f conftest.$ac_objext
26075 if { (ac_try="$ac_compile"
26076 case "(($ac_try" in
26077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26078 *) ac_try_echo=$ac_try;;
26080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26081 $as_echo "$ac_try_echo") >&5
26082 (eval "$ac_compile") 2>conftest.er1
26084 grep -v '^
*+' conftest.er1 >conftest.err
26086 cat conftest.err >&5
26087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); } && {
26089 test -z "$ac_c_werror_flag" ||
26090 test ! -s conftest.err
26091 } && test -s conftest.$ac_objext; then
26092 ac_header_compiler=yes
26094 $as_echo "$as_me: failed program was:" >&5
26095 sed 's
/^
/|
/' conftest.$ac_ext >&5
26097 ac_header_compiler=no
26100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26102 $as_echo "$ac_header_compiler" >&6; }
26104 # Is the header present?
26105 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
26106 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
26107 cat >conftest.$ac_ext <<_ACEOF
26110 cat confdefs.h >>conftest.$ac_ext
26111 cat >>conftest.$ac_ext <<_ACEOF
26112 /* end confdefs.h. */
26113 #include <uuid/uuid.h>
26115 if { (ac_try="$ac_cpp conftest.$ac_ext"
26116 case "(($ac_try" in
26117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26118 *) ac_try_echo=$ac_try;;
26120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26121 $as_echo "$ac_try_echo") >&5
26122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26124 grep -v '^
*+' conftest.er1 >conftest.err
26126 cat conftest.err >&5
26127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); } >/dev/null && {
26129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26130 test ! -s conftest.err
26132 ac_header_preproc=yes
26134 $as_echo "$as_me: failed program was:" >&5
26135 sed 's
/^
/|
/' conftest.$ac_ext >&5
26137 ac_header_preproc=no
26140 rm -f conftest.err conftest.$ac_ext
26141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26142 $as_echo "$ac_header_preproc" >&6; }
26144 # So? What about this header?
26145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26147 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
26148 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26149 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result
" >&5
26150 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the compiler
's result" >&2;}
26151 ac_header_preproc=yes
26154 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
26155 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
26156 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
26157 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
26158 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
26159 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
26160 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
26161 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
26162 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result
" >&5
26163 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the preprocessor
's result" >&2;}
26164 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
26165 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
26169 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
26170 $as_echo_n "checking for uuid/uuid.h... " >&6; }
26171 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
26172 $as_echo_n "(cached) " >&6
26174 ac_cv_header_uuid_uuid_h=$ac_header_preproc
26176 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
26177 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
26180 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
26183 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26184 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
26185 { { $as_echo "$as_me:$LINENO: error:
26186 *** uuid/uuid.h missing, libuuid-devel package required
26187 See \`config.log
' for more details." >&5
26188 $as_echo "$as_me: error:
26189 *** uuid/uuid.h missing, libuuid-devel package required
26190 See \`config.log' for more details.
" >&2;}
26191 { (exit 1); exit 1; }; }; }
26197 { $as_echo "$as_me:$LINENO: checking
for uuid_generate
in -luuid" >&5
26198 $as_echo_n "checking
for uuid_generate
in -luuid...
" >&6; }
26199 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
26200 $as_echo_n "(cached
) " >&6
26202 ac_check_lib_save_LIBS=$LIBS
26203 LIBS="-luuid $LIBS"
26204 cat >conftest.$ac_ext <<_ACEOF
26207 cat confdefs.h >>conftest.$ac_ext
26208 cat >>conftest.$ac_ext <<_ACEOF
26209 /* end confdefs.h. */
26211 /* Override any GCC internal prototype to avoid an error.
26212 Use char because int might match the return type of a GCC
26213 builtin and then its argument prototype would still apply. */
26217 char uuid_generate ();
26221 return uuid_generate ();
26226 rm -f conftest.$ac_objext conftest$ac_exeext
26227 if { (ac_try="$ac_link"
26228 case "(($ac_try" in
26229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26230 *) ac_try_echo=$ac_try;;
26232 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26233 $as_echo "$ac_try_echo") >&5
26234 (eval "$ac_link") 2>conftest.er1
26236 grep -v '^ *+' conftest.er1 >conftest.err
26238 cat conftest.err >&5
26239 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26240 (exit $ac_status); } && {
26241 test -z "$ac_c_werror_flag" ||
26242 test ! -s conftest.err
26243 } && test -s conftest$ac_exeext && {
26244 test "$cross_compiling" = yes ||
26245 $as_test_x conftest$ac_exeext
26247 ac_cv_lib_uuid_uuid_generate=yes
26249 $as_echo "$as_me: failed program was
:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26252 ac_cv_lib_uuid_uuid_generate=no
26255 rm -rf conftest.dSYM
26256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26257 conftest$ac_exeext conftest.$ac_ext
26258 LIBS=$ac_check_lib_save_LIBS
26260 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_generate" >&5
26261 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
26262 if test "x
$ac_cv_lib_uuid_uuid_generate" = x""yes; then
26263 cat >>confdefs.h <<_ACEOF
26264 #define HAVE_LIBUUID 1
26267 LIBS="-luuid $LIBS"
26270 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
26271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26272 { { $as_echo "$as_me:$LINENO: error:
26273 *** uuid_generate() missing, libuuid-devel package required
26274 See \`config.log' for more details.
" >&5
26275 $as_echo "$as_me: error
:
26276 *** uuid_generate
() missing
, libuuid-devel package required
26277 See \
`config.log' for more details." >&2;}
26278 { (exit 1); exit 1; }; }; }
26283 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
26284 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
26285 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
26286 $as_echo_n "(cached) " >&6
26288 ac_check_lib_save_LIBS=$LIBS
26289 LIBS="-luuid $LIBS"
26290 cat >conftest.$ac_ext <<_ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h. */
26297 /* Override any GCC internal prototype to avoid an error.
26298 Use char because int might match the return type of a GCC
26299 builtin and then its argument prototype would still apply. */
26303 char uuid_is_null ();
26307 return uuid_is_null ();
26312 rm -f conftest.$ac_objext conftest$ac_exeext
26313 if { (ac_try="$ac_link"
26314 case "(($ac_try" in
26315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26316 *) ac_try_echo
=$ac_try;;
26318 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26319 $as_echo "$ac_try_echo") >&5
26320 (eval "$ac_link") 2>conftest.er1
26322 grep -v '^ *+' conftest.er1
>conftest.err
26324 cat conftest.err
>&5
26325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); } && {
26327 test -z "$ac_c_werror_flag" ||
26328 test ! -s conftest.err
26329 } && test -s conftest
$ac_exeext && {
26330 test "$cross_compiling" = yes ||
26331 $as_test_x conftest
$ac_exeext
26333 ac_cv_lib_uuid_uuid_is_null
=yes
26335 $as_echo "$as_me: failed program was:" >&5
26336 sed 's/^/| /' conftest.
$ac_ext >&5
26338 ac_cv_lib_uuid_uuid_is_null
=no
26341 rm -rf conftest.dSYM
26342 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26343 conftest
$ac_exeext conftest.
$ac_ext
26344 LIBS
=$ac_check_lib_save_LIBS
26346 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
26347 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
26348 if test "x$ac_cv_lib_uuid_uuid_is_null" = x
""yes; then
26349 cat >>confdefs.h
<<_ACEOF
26350 #define HAVE_LIBUUID 1
26353 LIBS
="-luuid $LIBS"
26356 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26358 { { $as_echo "$as_me:$LINENO: error:
26359 *** uuid_is_null() missing, libuuid-devel package required
26360 See \`config.log' for more details." >&5
26361 $as_echo "$as_me: error:
26362 *** uuid_is_null() missing, libuuid-devel package required
26363 See \`config.log' for more details." >&2;}
26364 { (exit 1); exit 1; }; }; }
26371 cat >>confdefs.h
<<\_ACEOF
26372 #define HAVE_LIBUUID 1
26378 # Check whether --with-blkid was given.
26379 if test "${with_blkid+set}" = set; then
26380 withval
=$with_blkid;
26387 if test "x$with_blkid" != xno
; then
26389 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
26390 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
26391 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
26392 $as_echo_n "(cached) " >&6
26394 ac_check_lib_save_LIBS
=$LIBS
26395 LIBS
="-lblkid $LIBS"
26396 cat >conftest.
$ac_ext <<_ACEOF
26399 cat confdefs.h
>>conftest.
$ac_ext
26400 cat >>conftest.
$ac_ext <<_ACEOF
26401 /* end confdefs.h. */
26403 /* Override any GCC internal prototype to avoid an error.
26404 Use char because int might match the return type of a GCC
26405 builtin and then its argument prototype would still apply. */
26409 char blkid_get_cache ();
26413 return blkid_get_cache ();
26418 rm -f conftest.
$ac_objext conftest
$ac_exeext
26419 if { (ac_try
="$ac_link"
26420 case "(($ac_try" in
26421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26422 *) ac_try_echo=$ac_try;;
26424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26425 $as_echo "$ac_try_echo") >&5
26426 (eval "$ac_link") 2>conftest.er1
26428 grep -v '^ *+' conftest.er1 >conftest.err
26430 cat conftest.err >&5
26431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } && {
26433 test -z "$ac_c_werror_flag" ||
26434 test ! -s conftest.err
26435 } && test -s conftest$ac_exeext && {
26436 test "$cross_compiling" = yes ||
26437 $as_test_x conftest$ac_exeext
26439 ac_cv_lib_blkid_blkid_get_cache=yes
26441 $as_echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26444 ac_cv_lib_blkid_blkid_get_cache=no
26447 rm -rf conftest.dSYM
26448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26449 conftest$ac_exeext conftest.$ac_ext
26450 LIBS=$ac_check_lib_save_LIBS
26452 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
26453 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
26454 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
26456 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
26457 $as_echo_n "checking for blkid zfs support... " >&6; }
26460 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
26461 >/dev/null 2>/dev/null
26462 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
26463 dd of=$ZFS_DEV bs=1k count=8 \
26464 seek=132 conv=notrunc &>/dev/null \
26465 >/dev/null 2>/dev/null
26467 saved_LDFLAGS="$LDFLAGS"
26470 if test "$cross_compiling" = yes; then
26471 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26473 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
26474 See \
`config.log' for more details." >&5
26475 $as_echo "$as_me: error: cannot run test program while cross compiling
26476 See \`config.log
' for more details." >&2;}
26477 { (exit 1); exit 1; }; }; }
26479 cat >conftest.$ac_ext <<_ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h. */
26487 #include <blkid/blkid.h>
26496 if (blkid_get_cache(&cache, NULL) < 0)
26499 value = blkid_get_tag_value(cache, "TYPE",
26502 blkid_put_cache(cache);
26506 if (strcmp(value, "zfs")) {
26508 blkid_put_cache(cache);
26513 blkid_put_cache(cache);
26519 rm -f conftest$ac_exeext
26520 if { (ac_try="$ac_link"
26521 case "(($ac_try" in
26522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26523 *) ac_try_echo=$ac_try;;
26525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26526 $as_echo "$ac_try_echo") >&5
26527 (eval "$ac_link") 2>&5
26529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
26531 { (case "(($ac_try" in
26532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26533 *) ac_try_echo=$ac_try;;
26535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26536 $as_echo "$ac_try_echo") >&5
26537 (eval "$ac_try") 2>&5
26539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540 (exit $ac_status); }; }; then
26543 { $as_echo "$as_me:$LINENO: result: yes" >&5
26544 $as_echo "yes" >&6; }
26548 cat >>confdefs.h <<\_ACEOF
26549 #define HAVE_LIBBLKID 1
26554 $as_echo "$as_me: program exited with status $ac_status" >&5
26555 $as_echo "$as_me: failed program was:" >&5
26556 sed 's
/^
/|
/' conftest.$ac_ext >&5
26558 ( exit $ac_status )
26561 { $as_echo "$as_me:$LINENO: result: no" >&5
26562 $as_echo "no" >&6; }
26563 if test "x$with_blkid" != xcheck; then
26564 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26565 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
26566 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
26567 See \`config.log
' for more details." >&5
26568 $as_echo "$as_me: error: --with-blkid given but unavailable
26569 See \`config.log' for more details.
" >&2;}
26570 { (exit 1); exit 1; }; }; }
26575 rm -rf conftest.dSYM
26576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26581 LDFLAGS="$saved_LDFLAGS"
26585 if test "x
$with_blkid" != xcheck; then
26586 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
26587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26588 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
26589 See \`config.log' for more details.
" >&5
26590 $as_echo "$as_me: error
: --with-blkid given but unavailable
26591 See \
`config.log' for more details." >&2;}
26592 { (exit 1); exit 1; }; }; }
26605 # Check whether --with-selinux was given.
26606 if test "${with_selinux+set}" = set; then
26607 withval=$with_selinux;
26614 if test "x$with_selinux" != xno; then
26616 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26617 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
26618 $as_echo_n "checking for selinux/selinux.h... " >&6; }
26619 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26620 $as_echo_n "(cached) " >&6
26622 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
26623 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
26625 # Is the header compilable?
26626 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
26627 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
26628 cat >conftest.$ac_ext <<_ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h. */
26634 $ac_includes_default
26635 #include <selinux/selinux.h>
26637 rm -f conftest.$ac_objext
26638 if { (ac_try="$ac_compile"
26639 case "(($ac_try" in
26640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26641 *) ac_try_echo
=$ac_try;;
26643 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26644 $as_echo "$ac_try_echo") >&5
26645 (eval "$ac_compile") 2>conftest.er1
26647 grep -v '^ *+' conftest.er1
>conftest.err
26649 cat conftest.err
>&5
26650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } && {
26652 test -z "$ac_c_werror_flag" ||
26653 test ! -s conftest.err
26654 } && test -s conftest.
$ac_objext; then
26655 ac_header_compiler
=yes
26657 $as_echo "$as_me: failed program was:" >&5
26658 sed 's/^/| /' conftest.
$ac_ext >&5
26660 ac_header_compiler
=no
26663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26664 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26665 $as_echo "$ac_header_compiler" >&6; }
26667 # Is the header present?
26668 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
26669 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
26670 cat >conftest.
$ac_ext <<_ACEOF
26673 cat confdefs.h
>>conftest.
$ac_ext
26674 cat >>conftest.
$ac_ext <<_ACEOF
26675 /* end confdefs.h. */
26676 #include <selinux/selinux.h>
26678 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26679 case "(($ac_try" in
26680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26681 *) ac_try_echo=$ac_try;;
26683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26684 $as_echo "$ac_try_echo") >&5
26685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26687 grep -v '^ *+' conftest.er1 >conftest.err
26689 cat conftest.err >&5
26690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); } >/dev/null && {
26692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26693 test ! -s conftest.err
26695 ac_header_preproc=yes
26697 $as_echo "$as_me: failed program was:" >&5
26698 sed 's/^/| /' conftest.$ac_ext >&5
26700 ac_header_preproc=no
26703 rm -f conftest.err conftest.$ac_ext
26704 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26705 $as_echo "$ac_header_preproc" >&6; }
26707 # So? What about this header?
26708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26710 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
26711 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26712 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
26713 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
26714 ac_header_preproc=yes
26717 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
26718 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
26719 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
26720 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
26721 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
26722 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
26723 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
26724 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
26725 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
26726 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
26727 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
26728 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
26732 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
26733 $as_echo_n "checking for selinux/selinux.h... " >&6; }
26734 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26735 $as_echo_n "(cached) " >&6
26737 ac_cv_header_selinux_selinux_h=$ac_header_preproc
26739 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
26740 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
26743 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
26745 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
26746 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
26747 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
26748 $as_echo_n "(cached) " >&6
26750 ac_check_lib_save_LIBS=$LIBS
26751 LIBS="-lselinux $LIBS"
26752 cat >conftest.$ac_ext <<_ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26759 /* Override any GCC internal prototype to avoid an error.
26760 Use char because int might match the return type of a GCC
26761 builtin and then its argument prototype would still apply. */
26765 char is_selinux_enabled ();
26769 return is_selinux_enabled ();
26774 rm -f conftest.$ac_objext conftest$ac_exeext
26775 if { (ac_try="$ac_link"
26776 case "(($ac_try" in
26777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26778 *) ac_try_echo
=$ac_try;;
26780 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26781 $as_echo "$ac_try_echo") >&5
26782 (eval "$ac_link") 2>conftest.er1
26784 grep -v '^ *+' conftest.er1
>conftest.err
26786 cat conftest.err
>&5
26787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); } && {
26789 test -z "$ac_c_werror_flag" ||
26790 test ! -s conftest.err
26791 } && test -s conftest
$ac_exeext && {
26792 test "$cross_compiling" = yes ||
26793 $as_test_x conftest
$ac_exeext
26795 ac_cv_lib_selinux_is_selinux_enabled
=yes
26797 $as_echo "$as_me: failed program was:" >&5
26798 sed 's/^/| /' conftest.
$ac_ext >&5
26800 ac_cv_lib_selinux_is_selinux_enabled
=no
26803 rm -rf conftest.dSYM
26804 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26805 conftest
$ac_exeext conftest.
$ac_ext
26806 LIBS
=$ac_check_lib_save_LIBS
26808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
26809 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
26810 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then
26812 LIBSELINUX
="-lselinux"
26815 cat >>confdefs.h
<<\_ACEOF
26816 #define HAVE_LIBSELINUX 1
26822 if test "x$with_selinux" != xcheck
; then
26823 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26825 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
26826 See \`config.log' for more details." >&5
26827 $as_echo "$as_me: error: --with-selinux given but unavailable
26828 See \`config.log' for more details." >&2;}
26829 { (exit 1); exit 1; }; }; }
26839 if test "x$with_selinux" != xcheck
; then
26840 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26842 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
26843 See \`config.log' for more details." >&5
26844 $as_echo "$as_me: error: --with-selinux given but unavailable
26845 See \`config.log' for more details." >&2;}
26846 { (exit 1); exit 1; }; }; }
26857 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
26858 $as_echo_n "checking for selinux support... " >&6; }
26859 { $as_echo "$as_me:$LINENO: result: no" >&5
26860 $as_echo "no" >&6; }
26866 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
26867 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
26869 saved_flags
="$CFLAGS"
26870 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
26872 if test "$cross_compiling" = yes; then
26873 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26875 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26876 See \`config.log' for more details." >&5
26877 $as_echo "$as_me: error: cannot run test program while cross compiling
26878 See \`config.log' for more details." >&2;}
26879 { (exit 1); exit 1; }; }; }
26881 cat >conftest.
$ac_ext <<_ACEOF
26884 cat confdefs.h
>>conftest.
$ac_ext
26885 cat >>conftest.
$ac_ext <<_ACEOF
26886 /* end confdefs.h. */
26896 rm -f conftest
$ac_exeext
26897 if { (ac_try
="$ac_link"
26898 case "(($ac_try" in
26899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26900 *) ac_try_echo=$ac_try;;
26902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26903 $as_echo "$ac_try_echo") >&5
26904 (eval "$ac_link") 2>&5
26906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26908 { (case "(($ac_try" in
26909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26910 *) ac_try_echo
=$ac_try;;
26912 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26913 $as_echo "$ac_try_echo") >&5
26914 (eval "$ac_try") 2>&5
26916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; }; then
26919 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
26920 { $as_echo "$as_me:$LINENO: result: yes" >&5
26921 $as_echo "yes" >&6; }
26924 $as_echo "$as_me: program exited with status $ac_status" >&5
26925 $as_echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.
$ac_ext >&5
26928 ( exit $ac_status )
26931 { $as_echo "$as_me:$LINENO: result: no" >&5
26932 $as_echo "no" >&6; }
26935 rm -rf conftest.dSYM
26936 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26941 CFLAGS
="$saved_flags"
26946 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
26947 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
26949 saved_CFLAGS
="$CFLAGS"
26950 CFLAGS
="-fstack-check"
26951 saved_LDFLAGS
="$LDFLAGS"
26952 LDFLAGS
="-lpthread"
26954 if test "$cross_compiling" = yes; then
26955 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26957 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26958 See \`config.log' for more details." >&5
26959 $as_echo "$as_me: error: cannot run test program while cross compiling
26960 See \`config.log' for more details." >&2;}
26961 { (exit 1); exit 1; }; }; }
26963 cat >conftest.
$ac_ext <<_ACEOF
26966 cat confdefs.h
>>conftest.
$ac_ext
26967 cat >>conftest.
$ac_ext <<_ACEOF
26968 /* end confdefs.h. */
26970 #include <pthread.h>
26971 #include <sys/resource.h>
26972 #include <unistd.h>
26973 #include <bits/local_lim.h>
26975 #define PAGESIZE (sysconf(_SC_PAGESIZE))
26976 #define STACK_SIZE 8192
26977 #define BUFSIZE 4096
26979 void * func(void *arg)
26989 pthread_attr_t attr;
26994 setrlimit(RLIMIT_CORE, &l);
26995 pthread_attr_init(&attr);
26996 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
26997 pthread_attr_setguardsize(&attr, PAGESIZE);
26998 pthread_create(&tid, &attr, func, NULL);
26999 pthread_join(tid, NULL);
27005 rm -f conftest
$ac_exeext
27006 if { (ac_try
="$ac_link"
27007 case "(($ac_try" in
27008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27009 *) ac_try_echo=$ac_try;;
27011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27012 $as_echo "$ac_try_echo") >&5
27013 (eval "$ac_link") 2>&5
27015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27017 { (case "(($ac_try" in
27018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27019 *) ac_try_echo
=$ac_try;;
27021 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27022 $as_echo "$ac_try_echo") >&5
27023 (eval "$ac_try") 2>&5
27025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; }; then
27028 { $as_echo "$as_me:$LINENO: result: no" >&5
27029 $as_echo "no" >&6; }
27032 $as_echo "$as_me: program exited with status $ac_status" >&5
27033 $as_echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.
$ac_ext >&5
27036 ( exit $ac_status )
27039 cat >>confdefs.h
<<\_ACEOF
27040 #define NPTL_GUARD_WITHIN_STACK 1
27043 { $as_echo "$as_me:$LINENO: result: yes" >&5
27044 $as_echo "yes" >&6; }
27047 rm -rf conftest.dSYM
27048 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27052 CFLAGS
="$saved_CFLAGS"
27053 LDFLAGS
="$saved_LDFLAGS"
27058 { $as_echo "$as_me:$LINENO: result: Error!" >&5
27059 $as_echo "Error!" >&6; }
27060 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
27061 user kernel|user|all|srpm" >&5
27062 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
27063 user kernel|user|all|srpm" >&2;}
27064 { (exit 1); exit 1; }; } ;;
27067 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
27069 CONFIG_USER_FALSE
='#'
27071 CONFIG_USER_TRUE
='#'
27075 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
27076 test "x$enable_linux_builtin" != xyes
; then
27077 CONFIG_KERNEL_TRUE
=
27078 CONFIG_KERNEL_FALSE
='#'
27080 CONFIG_KERNEL_TRUE
='#'
27081 CONFIG_KERNEL_FALSE
=
27086 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
27087 $as_echo_n "checking whether debugging is enabled... " >&6; }
27088 # Check whether --enable-debug was given.
27089 if test "${enable_debug+set}" = set; then
27090 enableval
=$enable_debug;
27096 if test "x$enable_debug" = xyes
; then
27098 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
27099 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
27100 DEBUG_CFLAGS
="-DDEBUG -Werror"
27101 DEBUG_STACKFLAGS
="-fstack-check"
27102 DEBUG_ZFS
="_with_debug"
27104 cat >>confdefs.h
<<\_ACEOF
27105 #define ZFS_DEBUG 1
27111 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
27112 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
27113 DEBUG_CFLAGS
="-DNDEBUG"
27114 DEBUG_STACKFLAGS
=""
27115 DEBUG_ZFS
="_without_debug"
27123 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
27124 $as_echo "$enable_debug" >&6; }
27127 # Check whether --enable-debug-dmu-tx was given.
27128 if test "${enable_debug_dmu_tx+set}" = set; then
27129 enableval
=$enable_debug_dmu_tx;
27131 enable_debug_dmu_tx
=no
27135 if test "x$enable_debug_dmu_tx" = xyes
; then
27137 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
27138 DEBUG_DMU_TX
="_with_debug_dmu_tx"
27140 cat >>confdefs.h
<<\_ACEOF
27141 #define DEBUG_DMU_TX 1
27147 DEBUG_DMU_TX
="_without_debug_dmu_tx"
27153 { $as_echo "$as_me:$LINENO: checking whether dmu tx validation is enabled" >&5
27154 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
27155 { $as_echo "$as_me:$LINENO: result: $enable_debug_dmu_tx" >&5
27156 $as_echo "$enable_debug_dmu_tx" >&6; }
27159 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"
27162 cat >confcache
<<\_ACEOF
27163 # This file is a shell script that caches the results of configure
27164 # tests run on this system so they can be shared between configure
27165 # scripts and configure runs, see configure's option --config-cache.
27166 # It is not useful on other systems. If it contains results you don't
27167 # want to keep, you may remove or edit it.
27169 # config.status only pays attention to the cache file if you give it
27170 # the --recheck option to rerun configure.
27172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27174 # following values.
27178 # The following way of writing the cache mishandles newlines in values,
27179 # but we know of no workaround that is simple, portable, and efficient.
27180 # So, we kill variables containing newlines.
27181 # Ultrix sh set writes to stderr and can't be redirected directly,
27182 # and sets the high bit in the cache file unless we assign to the vars.
27184 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27185 eval ac_val
=\$
$ac_var
27189 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
27190 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27193 _ | IFS | as_nl
) ;; #(
27194 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27195 *) $as_unset $ac_var ;;
27201 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27202 *${as_nl}ac_space
=\
*)
27203 # `set' does not quote correctly, so add quotes (double-quote
27204 # substitution turns \\\\ into \\, and sed turns \\ into \).
27207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27210 # `set' quotes correctly as required by POSIX, so do not add quotes.
27211 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27222 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27224 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27225 if test -w "$cache_file"; then
27226 test "x$cache_file" != "x/dev/null" &&
27227 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
27228 $as_echo "$as_me: updating cache $cache_file" >&6;}
27229 cat confcache
>$cache_file
27231 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27232 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27237 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27238 # Let make expand exec_prefix.
27239 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27241 DEFS
=-DHAVE_CONFIG_H
27245 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27246 # 1. Remove the extension, and $U if already installed.
27247 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27248 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27249 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27250 # will be set to the directory where LIBOBJS objects are built.
27251 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27252 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27254 LIBOBJS
=$ac_libobjs
27256 LTLIBOBJS
=$ac_ltlibobjs
27259 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27260 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27261 Usually this means the macro was only invoked conditionally." >&5
27262 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27263 Usually this means the macro was only invoked conditionally." >&2;}
27264 { (exit 1); exit 1; }; }
27266 if test -n "$EXEEXT"; then
27268 am__EXEEXT_FALSE
='#'
27270 am__EXEEXT_TRUE
='#'
27274 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27275 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27276 Usually this means the macro was only invoked conditionally." >&5
27277 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
27278 Usually this means the macro was only invoked conditionally." >&2;}
27279 { (exit 1); exit 1; }; }
27281 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27282 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27283 Usually this means the macro was only invoked conditionally." >&5
27284 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27285 Usually this means the macro was only invoked conditionally." >&2;}
27286 { (exit 1); exit 1; }; }
27288 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
27289 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
27290 Usually this means the macro was only invoked conditionally." >&5
27291 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
27292 Usually this means the macro was only invoked conditionally." >&2;}
27293 { (exit 1); exit 1; }; }
27295 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
27296 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
27297 Usually this means the macro was only invoked conditionally." >&5
27298 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
27299 Usually this means the macro was only invoked conditionally." >&2;}
27300 { (exit 1); exit 1; }; }
27302 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
27303 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
27304 Usually this means the macro was only invoked conditionally." >&5
27305 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
27306 Usually this means the macro was only invoked conditionally." >&2;}
27307 { (exit 1); exit 1; }; }
27310 : ${CONFIG_STATUS=./config.status}
27312 ac_clean_files_save
=$ac_clean_files
27313 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27314 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27315 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27316 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27318 # Generated by $as_me.
27319 # Run this file to recreate the current configuration.
27320 # Compiler output produced by configure, useful for debugging
27321 # configure, is in config.log if it exists.
27324 ac_cs_recheck=false
27326 SHELL=\${CONFIG_SHELL-$SHELL}
27329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27330 ## --------------------- ##
27331 ## M4sh Initialization. ##
27332 ## --------------------- ##
27334 # Be more Bourne compatible
27335 DUALCASE
=1; export DUALCASE
# for MKS sh
27336 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27339 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27340 # is contrary to our usage. Disable this feature.
27341 alias -g '${1+"$@"}'='"$@"'
27342 setopt NO_GLOB_SUBST
27344 case `(set -o) 2>/dev/null` in
27345 *posix
*) set -o posix
;;
27354 # Avoid depending upon Character Ranges.
27355 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27356 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27357 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27358 as_cr_digits
='0123456789'
27359 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27364 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27365 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27366 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27367 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27368 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27369 as_echo='printf %s
\n'
27370 as_echo_n='printf %s
'
27372 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27373 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27374 as_echo_n='/usr
/ucb
/echo -n'
27376 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27377 as_echo_n_body='eval
27381 expr "X$arg" : "X\\(.*\\)$as_nl";
27382 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27384 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27386 export as_echo_n_body
27387 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27389 export as_echo_body
27390 as_echo='sh
-c $as_echo_body as_echo
'
27393 # The user is always right.
27394 if test "${PATH_SEPARATOR+set}" != set; then
27396 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27397 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27402 # Support unset when possible.
27403 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27411 # We need space, tab and new line, in precisely that order. Quoting is
27412 # there to prevent editors from complaining about space-tab.
27413 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27414 # splitting by setting IFS to empty value.)
27417 # Find who we are. Look in the path if we contain no directory separator.
27419 *[\\/]* ) as_myself=$0 ;;
27420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27421 for as_dir in $PATH
27424 test -z "$as_dir" && as_dir=.
27425 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27431 # We did not find ourselves, most probably we were run as `sh COMMAND'
27432 # in which case we are not to be found in the path.
27433 if test "x$as_myself" = x
; then
27436 if test ! -f "$as_myself"; then
27437 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27438 { (exit 1); exit 1; }
27441 # Work around bugs in pre-3.0 UWIN ksh.
27442 for as_var
in ENV MAIL MAILPATH
27443 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27455 # Required to use basename.
27456 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27457 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27463 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27464 as_basename
=basename
27470 # Name of the executable.
27471 as_me
=`$as_basename -- "$0" ||
27472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27473 X"$0" : 'X\(//\)$' \| \
27474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27476 sed '/^.*\/\([^/][^/]*\)\/*$/{
27495 as_lineno_1
=$LINENO
27496 as_lineno_2
=$LINENO
27497 test "x$as_lineno_1" != "x$as_lineno_2" &&
27498 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27500 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27501 # uniformly replaced by the line number. The first 'sed' inserts a
27502 # line-number line after each line using $LINENO; the second 'sed'
27503 # does the real work. The second script uses 'N' to pair each
27504 # line-number line with the line containing $LINENO, and appends
27505 # trailing '-' during substitution so that $LINENO is not a special
27506 # case at line end.
27507 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27508 # scripts with optimization help from Paolo Bonzini. Blame Lee
27509 # E. McMahon (1931-1989) for sed's syntax. :-)
27521 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27524 ' >$as_me.lineno
&&
27525 chmod +x
"$as_me.lineno" ||
27526 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27527 { (exit 1); exit 1; }; }
27529 # Don't try to exec as it changes $[0], causing all sort of problems
27530 # (the dirname of $[0] is not the place where we might find the
27531 # original and so on. Autoconf is especially sensitive to this).
27532 .
"./$as_me.lineno"
27533 # Exit status is that of the last command.
27538 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27544 ECHO_C
= ECHO_N
= ECHO_T
=
27545 case `echo -n x` in
27547 case `echo 'x\c'` in
27548 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27554 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27555 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27561 rm -f conf$$ conf$$.exe conf$$.
file
27562 if test -d conf$$.dir
; then
27563 rm -f conf$$.dir
/conf$$.
file
27566 mkdir conf$$.dir
2>/dev
/null
27568 if (echo >conf$$.
file) 2>/dev
/null
; then
27569 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27571 # ... but there are two gotchas:
27572 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27573 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27574 # In both cases, we have to default to `cp -p'.
27575 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27577 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27585 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27586 rmdir conf$$.dir
2>/dev
/null
27588 if mkdir
-p .
2>/dev
/null
; then
27591 test -d .
/-p && rmdir .
/-p
27595 if test -x / >/dev
/null
2>&1; then
27596 as_test_x
='test -x'
27598 if ls -dL / >/dev
/null
2>&1; then
27605 if test -d "$1"; then
27611 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27612 ???[sx]*):;;*)false;;esac;fi
27616 as_executable_p
=$as_test_x
27618 # Sed expression to map a string onto a valid CPP name.
27619 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27621 # Sed expression to map a string onto a valid variable name.
27622 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27627 # Save the log message, to keep $[0] and so on meaningful, and to
27628 # report actual input values of CONFIG_FILES etc. instead of their
27629 # values after options handling.
27631 This file was extended by $as_me, which was
27632 generated by GNU Autoconf 2.63. Invocation command line was
27634 CONFIG_FILES = $CONFIG_FILES
27635 CONFIG_HEADERS = $CONFIG_HEADERS
27636 CONFIG_LINKS = $CONFIG_LINKS
27637 CONFIG_COMMANDS = $CONFIG_COMMANDS
27640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27645 case $ac_config_files in *"
27646 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27649 case $ac_config_headers in *"
27650 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27655 # Files that config.status was made for.
27656 config_files="$ac_config_files"
27657 config_headers="$ac_config_headers"
27658 config_commands="$ac_config_commands"
27662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27664 \`$as_me' instantiates files from templates according to the
27665 current configuration.
27667 Usage: $0 [OPTION]... [FILE]...
27669 -h, --help print this help, then exit
27670 -V, --version print version number and configuration settings, then exit
27671 -q, --quiet, --silent
27672 do not print progress messages
27673 -d, --debug don't remove temporary files
27674 --recheck update $as_me by reconfiguring in the same conditions
27675 --file=FILE[:TEMPLATE]
27676 instantiate the configuration file FILE
27677 --header=FILE[:TEMPLATE]
27678 instantiate the configuration header FILE
27680 Configuration files:
27683 Configuration headers:
27686 Configuration commands:
27689 Report bugs to <bug-autoconf@gnu.org>."
27692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27695 configured by $0, generated by GNU Autoconf 2.63,
27696 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27698 Copyright (C) 2008 Free Software Foundation, Inc.
27699 This config.status script is free software; the Free Software Foundation
27700 gives unlimited permission to copy, distribute and modify it."
27707 test -n "\$AWK" || AWK=awk
27710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27711 # The default lists apply if the user does not specify any file.
27717 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27718 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27729 # Handling of the options.
27730 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27732 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27733 $as_echo "$ac_cs_version"; exit ;;
27734 --debug |
--debu |
--deb |
--de |
--d |
-d )
27736 --file |
--fil |
--fi |
--f )
27739 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27741 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27742 ac_need_defaults
=false
;;
27743 --header |
--heade |
--head |
--hea )
27746 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27748 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27749 ac_need_defaults
=false
;;
27751 # Conflict between --help and --header
27752 { $as_echo "$as_me: error: ambiguous option: $1
27753 Try \`$0 --help' for more information." >&2
27754 { (exit 1); exit 1; }; };;
27755 --help |
--hel |
-h )
27756 $as_echo "$ac_cs_usage"; exit ;;
27757 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27758 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27761 # This is an error.
27762 -*) { $as_echo "$as_me: error: unrecognized option: $1
27763 Try \`$0 --help' for more information." >&2
27764 { (exit 1); exit 1; }; } ;;
27766 *) ac_config_targets
="$ac_config_targets $1"
27767 ac_need_defaults
=false
;;
27773 ac_configure_extra_args
=
27775 if $ac_cs_silent; then
27777 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27782 if \$ac_cs_recheck; then
27783 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27785 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27786 CONFIG_SHELL='$SHELL'
27787 export CONFIG_SHELL
27792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27796 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27797 ## Running $as_me. ##
27803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27807 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27810 # The HP-UX ksh and POSIX shell print the target directory to stdout
27811 # if CDPATH is set.
27812 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27814 sed_quote_subst='$sed_quote_subst'
27815 double_quote_subst='$double_quote_subst'
27816 delay_variable_subst='$delay_variable_subst'
27817 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
27818 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
27819 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
27820 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
27821 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
27822 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
27823 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
27824 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
27825 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
27826 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
27827 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
27828 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
27829 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
27830 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
27831 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
27832 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
27833 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
27834 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
27835 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
27836 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
27837 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
27838 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
27839 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
27840 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
27841 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
27842 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
27843 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
27844 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27845 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
27846 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
27847 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
27848 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
27849 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
27850 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
27851 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
27852 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27853 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27854 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27855 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
27856 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
27857 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
27858 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
27859 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
27860 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
27861 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"`'
27862 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"`'
27863 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
27864 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
27865 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
27866 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
27867 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
27868 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
27869 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
27870 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
27871 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
27872 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
27873 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
27874 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
27875 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
27876 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
27877 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
27878 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
27879 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27880 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27881 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
27882 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
27883 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
27884 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
27885 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
27886 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27887 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27888 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27889 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27890 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27891 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27892 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
27893 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
27894 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
27895 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
27896 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
27897 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
27898 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
27899 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
27900 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
27901 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
27902 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
27903 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
27904 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
27905 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
27906 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
27907 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27908 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
27909 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
27910 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27911 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
27912 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
27913 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
27914 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
27915 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
27916 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
27917 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
27918 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
27919 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
27920 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
27921 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
27922 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27923 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27924 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27925 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
27926 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
27927 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
27928 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
27929 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
27930 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
27931 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
27932 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
27933 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
27934 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
27937 LTCFLAGS='$LTCFLAGS'
27938 compiler='$compiler_DEFAULT'
27940 # Quote evaled strings.
27952 deplibs_check_method \
27961 lt_cv_sys_global_symbol_pipe \
27962 lt_cv_sys_global_symbol_to_cdecl \
27963 lt_cv_sys_global_symbol_to_c_name_address \
27964 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27967 lt_prog_compiler_no_builtin_flag \
27968 lt_prog_compiler_wl \
27969 lt_prog_compiler_pic \
27970 lt_prog_compiler_static \
27971 lt_cv_prog_compiler_c_o \
27979 export_dynamic_flag_spec \
27980 whole_archive_flag_spec \
27981 compiler_needs_object \
27983 allow_undefined_flag \
27984 no_undefined_flag \
27985 hardcode_libdir_flag_spec \
27986 hardcode_libdir_flag_spec_ld \
27987 hardcode_libdir_separator \
27992 variables_saved_for_relink \
27994 library_names_spec \
27999 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28000 *[\\\\\\\`\\"\\\$]*)
28001 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28004 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28009 # Double-quote double-evaled strings.
28010 for var in reload_cmds \
28011 old_postinstall_cmds \
28012 old_postuninstall_cmds \
28014 extract_expsyms_cmds \
28015 old_archive_from_new_cmds \
28016 old_archive_from_expsyms_cmds \
28018 archive_expsym_cmds \
28020 module_expsym_cmds \
28021 export_symbols_cmds \
28024 postuninstall_cmds \
28026 sys_lib_search_path_spec \
28027 sys_lib_dlsearch_path_spec; do
28028 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28029 *[\\\\\\\`\\"\\\$]*)
28030 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28033 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28038 # Fix-up fallback echo if it was mangled by the above quoting rules.
28040 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28044 ac_aux_dir='$ac_aux_dir'
28045 xsi_shell='$xsi_shell'
28046 lt_shell_append='$lt_shell_append'
28048 # See if we are running on zsh, and set the options which allow our
28049 # commands through without removal of \ escapes INIT.
28050 if test -n "\${ZSH_VERSION+set}" ; then
28051 setopt NO_GLOB_SUBST
28057 TIMESTAMP='$TIMESTAMP'
28066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28068 # Handling of arguments.
28069 for ac_config_target
in $ac_config_targets
28071 case $ac_config_target in
28072 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
28073 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
28074 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
28075 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
28076 "dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/Makefile" ;;
28077 "dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/90zfs/Makefile" ;;
28078 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
28079 "udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/rules.d/Makefile" ;;
28080 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
28081 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
28082 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
28083 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
28084 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
28085 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
28086 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
28087 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
28088 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
28089 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
28090 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
28091 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
28092 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
28093 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
28094 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
28095 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
28096 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
28097 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
28098 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
28099 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
28100 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
28101 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
28102 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
28103 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
28104 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
28105 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
28106 "lib/libshare/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libshare/Makefile" ;;
28107 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
28108 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
28109 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
28110 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
28111 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
28112 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
28113 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
28114 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
28115 "cmd/zpool_layout/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
28116 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
28117 "cmd/zpool_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
28118 "cmd/vdev_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
28119 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
28120 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
28121 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
28122 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
28123 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
28124 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
28125 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
28126 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
28127 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
28128 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
28129 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
28130 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
28131 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
28132 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
28133 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
28134 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
28135 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
28136 "scripts/zpool-layout/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
28137 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
28138 "zfs.spec") CONFIG_FILES
="$CONFIG_FILES zfs.spec" ;;
28139 "zfs-modules.spec") CONFIG_FILES
="$CONFIG_FILES zfs-modules.spec" ;;
28140 "PKGBUILD-zfs") CONFIG_FILES
="$CONFIG_FILES PKGBUILD-zfs" ;;
28141 "PKGBUILD-zfs-modules") CONFIG_FILES
="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
28142 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
28143 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
28145 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28146 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28147 { (exit 1); exit 1; }; };;
28152 # If the user did not use the arguments to specify the items to instantiate,
28153 # then the envvar interface is used. Set only those that are not.
28154 # We use the long form for the default assignment because of an extremely
28155 # bizarre bug on SunOS 4.1.3.
28156 if $ac_need_defaults; then
28157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28159 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28162 # Have a temporary directory for convenience. Make it in the build tree
28163 # simply because there is no reason against having it here, and in addition,
28164 # creating and moving files from /tmp can sometimes cause problems.
28165 # Hook for its removal unless debugging.
28166 # Note that there is a small window in which the directory will not be cleaned:
28167 # after its creation but before its name has been assigned to `$tmp'.
28171 trap 'exit_status=$?
28172 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28174 trap '{ (exit 1); exit 1; }' 1 2 13 15
28176 # Create a (secure) tmp directory for tmp files.
28179 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28180 test -n "$tmp" && test -d "$tmp"
28183 tmp
=.
/conf$$
-$RANDOM
28184 (umask 077 && mkdir
"$tmp")
28187 $as_echo "$as_me: cannot create a temporary directory in ." >&2
28188 { (exit 1); exit 1; }
28191 # Set up the scripts for CONFIG_FILES section.
28192 # No need to generate them if there are no CONFIG_FILES.
28193 # This happens for instance with `./config.status config.h'.
28194 if test -n "$CONFIG_FILES"; then
28198 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28199 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28202 ac_cs_awk_cr
=$ac_cr
28205 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28210 echo "cat >conf$$subs.awk <<_ACEOF" &&
28211 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28213 } >conf$$subs.sh ||
28214 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
28215 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
28216 { (exit 1); exit 1; }; }
28217 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28219 for ac_last_try in false false false false false :; do
28220 . ./conf$$subs.sh ||
28221 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
28222 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
28223 { (exit 1); exit 1; }; }
28225 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28226 if test $ac_delim_n = $ac_delim_num; then
28228 elif $ac_last_try; then
28229 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
28230 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
28231 { (exit 1); exit 1; }; }
28233 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28236 rm -f conf$$subs.sh
28238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28239 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28243 s/^/S["/; s
/!.
*/"]=/
28253 s/\(.\{148\}\).*/\1/
28255 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28260 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28267 s/\(.\{148\}\).*/\1/
28269 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28273 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28278 ' <conf$$subs.awk | sed '
28283 ' >>$CONFIG_STATUS || ac_write_fail=1
28284 rm -f conf$$subs.awk
28285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28287 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28288 for (key in S) S_is_set[key] = 1
28294 nfields = split(line, field, "@
")
28296 len = length(field[1])
28297 for (i = 2; i < nfields; i++) {
28299 keylen = length(key)
28300 if (S_is_set[key]) {
28302 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28303 len += length(value) + length(field[++i])
28314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28315 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28316 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28319 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28320 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
28321 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
28322 { (exit 1); exit 1; }; }
28325 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28326 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28327 # trailing colons and then remove the whole line if VPATH becomes empty
28328 # (actually we leave an empty line to preserve line numbers).
28329 if test "x
$srcdir" = x.; then
28330 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28331 s/:*\$(srcdir):*/:/
28332 s/:*\${srcdir}:*/:/
28334 s/^\([^=]*=[ ]*\):*/\1/
28340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28341 fi # test -n "$CONFIG_FILES"
28343 # Set up the scripts for CONFIG_HEADERS section.
28344 # No need to generate them if there are no CONFIG_HEADERS.
28345 # This happens for instance with `./config.status Makefile'.
28346 if test -n "$CONFIG_HEADERS"; then
28347 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28351 # Transform confdefs.h into an awk script `defines.awk', embedded as
28352 # here-document in config.status, that substitutes the proper values into
28353 # config.h.in to produce config.h.
28355 # Create a delimiter string that does not exist in confdefs.h, to ease
28356 # handling of long lines.
28358 for ac_last_try in false false :; do
28359 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28360 if test -z "$ac_t"; then
28362 elif $ac_last_try; then
28363 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
28364 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
28365 { (exit 1); exit 1; }; }
28367 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28371 # For the awk script, D is an array of macro values keyed by name,
28372 # likewise P contains macro parameters if any. Preserve backslash
28373 # newline sequences.
28375 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28377 s/.\{148\}/&'"$ac_delim"'/g
28380 s/^[ ]*#[ ]*define[ ][ ]*/ /
28387 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28389 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28393 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28394 D["\
1"]=" \
3\\\\\\n
"\\/p
28396 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28401 s/.\{148\}/&'"$ac_delim"'/g
28406 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28409 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28411 ' <confdefs.h | sed '
28412 s/'"$ac_delim"'/"\\\
28413 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28416 for (key in D) D_is_set[key] = 1
28419 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28421 split(line, arg, " ")
28422 if (arg[1] == "#") {
28426 defundef
= substr
(arg
[1], 2)
28429 split(mac1
, mac2
, "(") #)
28431 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28432 if (D_is_set
[macro
]) {
28433 # Preserve the white space surrounding the "#".
28434 print prefix
"define", macro P
[macro
] D
[macro
]
28437 # Replace #undef with comments. This is necessary, for example,
28438 # in the case of _POSIX_SOURCE, which is predefined and required
28439 # on some systems where configure will not decide to define it.
28440 if (defundef
== "undef") {
28441 print
"/*", prefix defundef
, macro
, "*/"
28449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28450 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
28451 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
28452 { (exit 1); exit 1; }; }
28453 fi # test -n "$CONFIG_HEADERS"
28456 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28461 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28463 case $ac_mode$ac_tag in
28465 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
28466 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
28467 { (exit 1); exit 1; }; };;
28468 :[FH
]-) ac_tag
=-:-;;
28469 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28486 -) ac_f
="$tmp/stdin";;
28487 *) # Look for the file first in the build tree, then in the source tree
28488 # (if the path is not absolute). The absolute path cannot be DOS-style,
28489 # because $ac_f cannot contain `:'.
28493 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28495 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28496 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28497 { (exit 1); exit 1; }; };;
28499 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28500 ac_file_inputs
="$ac_file_inputs '$ac_f'"
28503 # Let's still pretend it is `configure' which instantiates (i.e., don't
28504 # use $as_me), people would be surprised to read:
28505 # /* config.h. Generated by config.status. */
28506 configure_input
='Generated from '`
28507 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28509 if test x
"$ac_file" != x-
; then
28510 configure_input
="$ac_file. $configure_input"
28511 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
28512 $as_echo "$as_me: creating $ac_file" >&6;}
28514 # Neutralize special characters interpreted by sed in replacement strings.
28515 case $configure_input in #(
28516 *\
&* |
*\|
* |
*\\* )
28517 ac_sed_conf_input
=`$as_echo "$configure_input" |
28518 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28519 *) ac_sed_conf_input
=$configure_input;;
28523 *:-:* |
*:-) cat >"$tmp/stdin" \
28524 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28525 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28526 { (exit 1); exit 1; }; } ;;
28531 ac_dir
=`$as_dirname -- "$ac_file" ||
28532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28533 X"$ac_file" : 'X\(//\)[^/]' \| \
28534 X"$ac_file" : 'X\(//\)$' \| \
28535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28536 $as_echo X"$ac_file" |
28537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28541 /^X\(\/\/\)[^/].*/{
28556 -*) as_dir
=.
/$as_dir;;
28558 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
28562 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28563 *) as_qdir
=$as_dir;;
28565 as_dirs
="'$as_qdir' $as_dirs"
28566 as_dir
=`$as_dirname -- "$as_dir" ||
28567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28568 X"$as_dir" : 'X\(//\)[^/]' \| \
28569 X"$as_dir" : 'X\(//\)$' \| \
28570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28571 $as_echo X"$as_dir" |
28572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28576 /^X\(\/\/\)[^/].*/{
28589 test -d "$as_dir" && break
28591 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28592 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28593 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
28594 { (exit 1); exit 1; }; }; }
28598 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28600 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28601 # A ".." for each directory in $ac_dir_suffix.
28602 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28603 case $ac_top_builddir_sub in
28604 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28605 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28608 ac_abs_top_builddir
=$ac_pwd
28609 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28610 # for backward compatibility:
28611 ac_top_builddir
=$ac_top_build_prefix
28614 .
) # We are building in place.
28616 ac_top_srcdir
=$ac_top_builddir_sub
28617 ac_abs_top_srcdir
=$ac_pwd ;;
28618 [\\/]* | ?
:[\\/]* ) # Absolute name.
28619 ac_srcdir
=$srcdir$ac_dir_suffix;
28620 ac_top_srcdir
=$srcdir
28621 ac_abs_top_srcdir
=$srcdir ;;
28622 *) # Relative name.
28623 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28624 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28625 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28627 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28637 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28638 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28640 ac_MKDIR_P
=$MKDIR_P
28642 [\\/$
]* | ?
:[\\/]* ) ;;
28643 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
28647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28648 # If the template does not know about datarootdir, expand it.
28649 # FIXME: This hack should be removed a few years after 2.60.
28650 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28663 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28664 *datarootdir
*) ac_datarootdir_seen
=yes;;
28665 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28666 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28667 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28670 ac_datarootdir_hack='
28671 s&@datadir@&$datadir&g
28672 s&@docdir@&$docdir&g
28673 s&@infodir@&$infodir&g
28674 s&@localedir@&$localedir&g
28675 s&@mandir@&$mandir&g
28676 s&\\\${datarootdir}&$datarootdir&g' ;;
28680 # Neutralize VPATH when `$srcdir' = `.'.
28681 # Shell code in configure.ac might set extrasub.
28682 # FIXME: do we really want to maintain this feature?
28683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28684 ac_sed_extra="$ac_vpsub
28687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28689 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28690 s|@configure_input@|
$ac_sed_conf_input|
;t t
28691 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28692 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28693 s
&@srcdir@
&$ac_srcdir&;t t
28694 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28695 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28696 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28697 s
&@builddir@
&$ac_builddir&;t t
28698 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28699 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28700 s
&@INSTALL@
&$ac_INSTALL&;t t
28701 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
28702 $ac_datarootdir_hack
28704 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
28705 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
28706 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
28707 { (exit 1); exit 1; }; }
28709 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28710 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28711 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28712 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28713 which seems to be undefined. Please make sure it is defined." >&5
28714 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28715 which seems to be undefined. Please make sure it is defined." >&2;}
28719 -) cat "$tmp/out" && rm -f "$tmp/out";;
28720 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28722 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28723 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28724 { (exit 1); exit 1; }; }
28730 if test x"$ac_file" != x-; then
28732 $as_echo "/* $configure_input */" \
28733 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28734 } >"$tmp/config.h" \
28735 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28736 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28737 { (exit 1); exit 1; }; }
28738 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28739 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28740 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28743 mv "$tmp/config.h" "$ac_file" \
28744 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28745 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28746 { (exit 1); exit 1; }; }
28749 $as_echo "/* $configure_input */" \
28750 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28751 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28752 $as_echo "$as_me: error: could not create -" >&2;}
28753 { (exit 1); exit 1; }; }
28755 # Compute "$ac_file"'s index
in $config_headers.
28758 for _am_header
in $config_headers :; do
28759 case $_am_header in
28760 $_am_arg |
$_am_arg:* )
28763 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
28766 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28767 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28768 X"$_am_arg" : 'X\(//\)[^/]' \| \
28769 X"$_am_arg" : 'X\(//\)$' \| \
28770 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28771 $as_echo X"$_am_arg" |
28772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28776 /^X\(\/\/\)[^/].*/{
28788 s/.*/./; q'`/stamp-h
$_am_stamp_count
28791 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28792 $as_echo "$as_me: executing $ac_file commands" >&6;}
28797 case $ac_file$ac_mode in
28799 (mv zfs_config.h zfs_config.h.tmp
&&
28800 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
28801 rm zfs_config.h.tmp
) ||
exit 1 ;;
28802 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
28803 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28804 # are listed without --file. Let's play safe and only enable the eval
28805 # if we detect the quoting.
28806 case $CONFIG_FILES in
28807 *\'*) eval set x
"$CONFIG_FILES" ;;
28808 *) set x
$CONFIG_FILES ;;
28813 # Strip MF so we end up with the name of the file.
28814 mf
=`echo "$mf" | sed -e 's/:.*$//'`
28815 # Check whether this is an Automake generated Makefile or not.
28816 # We used to match only the files named `Makefile.in', but
28817 # some people rename them; so instead we look at the file content.
28818 # Grep'ing the first line is not enough: some people post-process
28819 # each Makefile.in and add a new line on top of each file to say so.
28820 # Grep'ing the whole file is not good either: AIX grep has a line
28821 # limit of 2048, but all sed's we know have understand at least 4000.
28822 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
28823 dirpart
=`$as_dirname -- "$mf" ||
28824 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28825 X"$mf" : 'X\(//\)[^/]' \| \
28826 X"$mf" : 'X\(//\)$' \| \
28827 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28833 /^X\(\/\/\)[^/].*/{
28849 # Extract the definition of DEPDIR, am__include, and am__quote
28850 # from the Makefile without running `make'.
28851 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
28852 test -z "$DEPDIR" && continue
28853 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
28854 test -z "am__include" && continue
28855 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
28856 # When using ansi2knr, U may be empty or an underscore; expand it
28857 U
=`sed -n 's/^U = //p' < "$mf"`
28858 # Find all dependency output files, they are included files with
28859 # $(DEPDIR) in their names. We invoke sed twice because it is the
28860 # simplest approach to changing $(DEPDIR) to its actual value in the
28862 for file in `sed -n "
28863 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28864 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28865 # Make sure the directory exists.
28866 test -f "$dirpart/$file" && continue
28867 fdir
=`$as_dirname -- "$file" ||
28868 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28869 X"$file" : 'X\(//\)[^/]' \| \
28870 X"$file" : 'X\(//\)$' \| \
28871 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28872 $as_echo X"$file" |
28873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28877 /^X\(\/\/\)[^/].*/{
28890 { as_dir
=$dirpart/$fdir
28892 -*) as_dir
=.
/$as_dir;;
28894 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
28898 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28899 *) as_qdir
=$as_dir;;
28901 as_dirs
="'$as_qdir' $as_dirs"
28902 as_dir
=`$as_dirname -- "$as_dir" ||
28903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28904 X"$as_dir" : 'X\(//\)[^/]' \| \
28905 X"$as_dir" : 'X\(//\)$' \| \
28906 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28907 $as_echo X"$as_dir" |
28908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28912 /^X\(\/\/\)[^/].*/{
28925 test -d "$as_dir" && break
28927 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28928 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28929 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
28930 { (exit 1); exit 1; }; }; }
28931 # echo "creating $dirpart/$file"
28932 echo '# dummy' > "$dirpart/$file"
28939 # See if we are running on zsh, and set the options which allow our
28940 # commands through without removal of \ escapes.
28941 if test -n "${ZSH_VERSION+set}" ; then
28942 setopt NO_GLOB_SUBST
28945 cfgfile
="${ofile}T"
28946 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28949 cat <<_LT_EOF >> "$cfgfile"
28952 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28953 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28954 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28955 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28957 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28958 # 2006, 2007, 2008 Free Software Foundation, Inc.
28959 # Written by Gordon Matzigkeit, 1996
28961 # This file is part of GNU Libtool.
28963 # GNU Libtool is free software; you can redistribute it and/or
28964 # modify it under the terms of the GNU General Public License as
28965 # published by the Free Software Foundation; either version 2 of
28966 # the License, or (at your option) any later version.
28968 # As a special exception to the GNU General Public License,
28969 # if you distribute this file as part of a program or library that
28970 # is built using GNU Libtool, you may include this file under the
28971 # same distribution terms that you use for the rest of that program.
28973 # GNU Libtool is distributed in the hope that it will be useful,
28974 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28975 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28976 # GNU General Public License for more details.
28978 # You should have received a copy of the GNU General Public License
28979 # along with GNU Libtool; see the file COPYING. If not, a copy
28980 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28981 # obtained by writing to the Free Software Foundation, Inc.,
28982 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28985 # The names of the tagged configurations supported by this script.
28988 # ### BEGIN LIBTOOL CONFIG
28990 # Which release of libtool.m4 was used?
28991 macro_version=$macro_version
28992 macro_revision=$macro_revision
28994 # Whether or not to build shared libraries.
28995 build_libtool_libs=$enable_shared
28997 # Whether or not to build static libraries.
28998 build_old_libs=$enable_static
29000 # What type of objects to build.
29003 # Whether or not to optimize for fast installation.
29004 fast_install=$enable_fast_install
29007 host_alias=$host_alias
29011 # The build system.
29012 build_alias=$build_alias
29016 # A sed program that does not truncate output.
29019 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29020 Xsed="\$SED -e 1s/^X//"
29022 # A grep program that handles long lines.
29028 # A literal string matcher.
29031 # A BSD- or MS-compatible name lister.
29034 # Whether we need soft or hard links.
29037 # What is the maximum length of a command?
29038 max_cmd_len=$max_cmd_len
29040 # Object file suffix (normally "o").
29043 # Executable file suffix (normally "").
29046 # whether the shell understands "unset".
29049 # turn spaces into newlines.
29052 # turn newlines into spaces.
29055 # How to create reloadable object files.
29056 reload_flag=$lt_reload_flag
29057 reload_cmds=$lt_reload_cmds
29059 # An object symbol dumper.
29060 OBJDUMP=$lt_OBJDUMP
29062 # Method to check whether dependent libraries are shared objects.
29063 deplibs_check_method=$lt_deplibs_check_method
29065 # Command to use when deplibs_check_method == "file_magic".
29066 file_magic_cmd=$lt_file_magic_cmd
29070 AR_FLAGS=$lt_AR_FLAGS
29072 # A symbol stripping program.
29075 # Commands used to install an old-style archive.
29077 old_postinstall_cmds=$lt_old_postinstall_cmds
29078 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29083 # LTCC compiler flags.
29084 LTCFLAGS=$lt_CFLAGS
29086 # Take the output of nm and produce a listing of raw symbols and C names.
29087 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29089 # Transform the output of nm in a proper C declaration.
29090 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29092 # Transform the output of nm in a C name address pair.
29093 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29095 # Transform the output of nm in a C name address pair when lib prefix is needed.
29096 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29098 # The name of the directory that contains temporary libtool files.
29101 # Shell to use when invoking shell scripts.
29104 # An echo program that does not interpret backslashes.
29107 # Used to examine libraries when file_magic_cmd begins with "file".
29108 MAGIC_CMD=$MAGIC_CMD
29110 # Must we lock files when doing compilation?
29111 need_locks=$lt_need_locks
29113 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29114 DSYMUTIL=$lt_DSYMUTIL
29116 # Tool to change global to local symbols on Mac OS X.
29119 # Tool to manipulate fat objects and archives on Mac OS X.
29122 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29125 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29126 OTOOL64=$lt_OTOOL64
29128 # Old archive suffix (normally "a").
29131 # Shared library suffix (normally ".so").
29132 shrext_cmds=$lt_shrext_cmds
29134 # The commands to extract the exported symbol list from a shared archive.
29135 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29137 # Variables whose values should be saved in libtool wrapper scripts and
29138 # restored at link time.
29139 variables_saved_for_relink=$lt_variables_saved_for_relink
29141 # Do we need the "lib" prefix for modules?
29142 need_lib_prefix=$need_lib_prefix
29144 # Do we need a version for libraries?
29145 need_version=$need_version
29147 # Library versioning type.
29148 version_type=$version_type
29150 # Shared library runtime path variable.
29151 runpath_var=$runpath_var
29153 # Shared library path variable.
29154 shlibpath_var=$shlibpath_var
29156 # Is shlibpath searched before the hard-coded library search path?
29157 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29159 # Format of library name prefix.
29160 libname_spec=$lt_libname_spec
29162 # List of archive names. First name is the real one, the rest are links.
29163 # The last name is the one that the linker finds with -lNAME
29164 library_names_spec=$lt_library_names_spec
29166 # The coded name of the library, if different from the real name.
29167 soname_spec=$lt_soname_spec
29169 # Command to use after installation of a shared archive.
29170 postinstall_cmds=$lt_postinstall_cmds
29172 # Command to use after uninstallation of a shared archive.
29173 postuninstall_cmds=$lt_postuninstall_cmds
29175 # Commands used to finish a libtool library installation in a directory.
29176 finish_cmds=$lt_finish_cmds
29178 # As "finish_cmds", except a single script fragment to be evaled but
29180 finish_eval=$lt_finish_eval
29182 # Whether we should hardcode library paths into libraries.
29183 hardcode_into_libs=$hardcode_into_libs
29185 # Compile-time system search path for libraries.
29186 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29188 # Run-time system search path for libraries.
29189 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29191 # Whether dlopen is supported.
29192 dlopen_support=$enable_dlopen
29194 # Whether dlopen of programs is supported.
29195 dlopen_self=$enable_dlopen_self
29197 # Whether dlopen of statically linked programs is supported.
29198 dlopen_self_static=$enable_dlopen_self_static
29200 # Commands to strip libraries.
29201 old_striplib=$lt_old_striplib
29202 striplib=$lt_striplib
29205 # The linker used to build libraries.
29208 # Commands used to build an old-style archive.
29209 old_archive_cmds=$lt_old_archive_cmds
29211 # A language specific compiler.
29214 # Is the compiler the GNU compiler?
29217 # Compiler flag to turn off builtin functions.
29218 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29220 # How to pass a linker flag through the compiler.
29221 wl=$lt_lt_prog_compiler_wl
29223 # Additional compiler flags for building library objects.
29224 pic_flag=$lt_lt_prog_compiler_pic
29226 # Compiler flag to prevent dynamic linking.
29227 link_static_flag=$lt_lt_prog_compiler_static
29229 # Does compiler simultaneously support -c and -o options?
29230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29232 # Whether or not to add -lc for building shared libraries.
29233 build_libtool_need_lc=$archive_cmds_need_lc
29235 # Whether or not to disallow shared libs when runtime libs are static.
29236 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29238 # Compiler flag to allow reflexive dlopens.
29239 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29241 # Compiler flag to generate shared objects directly from archives.
29242 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29244 # Whether the compiler copes with passing no objects directly.
29245 compiler_needs_object=$lt_compiler_needs_object
29247 # Create an old-style archive from a shared archive.
29248 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29250 # Create a temporary old-style archive to link instead of a shared archive.
29251 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29253 # Commands used to build a shared archive.
29254 archive_cmds=$lt_archive_cmds
29255 archive_expsym_cmds=$lt_archive_expsym_cmds
29257 # Commands used to build a loadable module if different from building
29258 # a shared archive.
29259 module_cmds=$lt_module_cmds
29260 module_expsym_cmds=$lt_module_expsym_cmds
29262 # Whether we are building with GNU ld or not.
29263 with_gnu_ld=$lt_with_gnu_ld
29265 # Flag that allows shared libraries with undefined symbols to be built.
29266 allow_undefined_flag=$lt_allow_undefined_flag
29268 # Flag that enforces no undefined symbols.
29269 no_undefined_flag=$lt_no_undefined_flag
29271 # Flag to hardcode \$libdir into a binary during linking.
29272 # This must work even if \$libdir does not exist
29273 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29275 # If ld is used when linking, flag to hardcode \$libdir into a binary
29276 # during linking. This must work even if \$libdir does not exist.
29277 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29279 # Whether we need a single "-rpath" flag with a separated argument.
29280 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29282 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29283 # DIR into the resulting binary.
29284 hardcode_direct=$hardcode_direct
29286 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29287 # DIR into the resulting binary and the resulting library dependency is
29288 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29289 # library is relocated.
29290 hardcode_direct_absolute=$hardcode_direct_absolute
29292 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29293 # into the resulting binary.
29294 hardcode_minus_L=$hardcode_minus_L
29296 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29297 # into the resulting binary.
29298 hardcode_shlibpath_var=$hardcode_shlibpath_var
29300 # Set to "yes" if building a shared library automatically hardcodes DIR
29301 # into the library and all subsequent libraries and executables linked
29303 hardcode_automatic=$hardcode_automatic
29305 # Set to yes if linker adds runtime paths of dependent libraries
29306 # to runtime path list.
29307 inherit_rpath=$inherit_rpath
29309 # Whether libtool must link a program against all its dependency libraries.
29310 link_all_deplibs=$link_all_deplibs
29312 # Fix the shell variable \$srcfile for the compiler.
29313 fix_srcfile_path=$lt_fix_srcfile_path
29315 # Set to "yes" if exported symbols are required.
29316 always_export_symbols=$always_export_symbols
29318 # The commands to list exported symbols.
29319 export_symbols_cmds=$lt_export_symbols_cmds
29321 # Symbols that should not be listed in the preloaded symbols.
29322 exclude_expsyms=$lt_exclude_expsyms
29324 # Symbols that must always be exported.
29325 include_expsyms=$lt_include_expsyms
29327 # Commands necessary for linking programs (against libraries) with templates.
29328 prelink_cmds=$lt_prelink_cmds
29330 # Specify filename containing input files.
29331 file_list_spec=$lt_file_list_spec
29333 # How to hardcode a shared library path into an executable.
29334 hardcode_action=$hardcode_action
29336 # ### END LIBTOOL CONFIG
29342 cat <<\_LT_EOF
>> "$cfgfile"
29343 # AIX sometimes has problems with the GCC collect2 program. For some
29344 # reason, if we set the COLLECT_NAMES environment variable, the problems
29345 # vanish in a puff of smoke.
29346 if test "X${COLLECT_NAMES+set}" != Xset
; then
29348 export COLLECT_NAMES
29355 ltmain
="$ac_aux_dir/ltmain.sh"
29358 # We use sed instead of cat because bash on DJGPP gets confused if
29359 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29360 # text mode, it properly converts lines to CR/LF. This bash problem
29361 # is reportedly fixed, but why not run on old versions too?
29362 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29363 ||
(rm -f "$cfgfile"; exit 1)
29367 cat << \_LT_EOF
>> "$cfgfile"
29369 # func_dirname file append nondir_replacement
29370 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29371 # otherwise set result to NONDIR_REPLACEMENT.
29375 */*) func_dirname_result
="${1%/*}${2}" ;;
29376 * ) func_dirname_result
="${3}" ;;
29380 # func_basename file
29383 func_basename_result
="${1##*/}"
29386 # func_dirname_and_basename file append nondir_replacement
29387 # perform func_basename and func_dirname in a single function
29389 # dirname: Compute the dirname of FILE. If nonempty,
29390 # add APPEND to the result, otherwise set result
29391 # to NONDIR_REPLACEMENT.
29392 # value returned in "$func_dirname_result"
29393 # basename: Compute filename of FILE.
29394 # value retuned in "$func_basename_result"
29395 # Implementation must be kept synchronized with func_dirname
29396 # and func_basename. For efficiency, we do not delegate to
29397 # those functions but instead duplicate the functionality here.
29398 func_dirname_and_basename
()
29401 */*) func_dirname_result
="${1%/*}${2}" ;;
29402 * ) func_dirname_result
="${3}" ;;
29404 func_basename_result
="${1##*/}"
29407 # func_stripname prefix suffix name
29408 # strip PREFIX and SUFFIX off of NAME.
29409 # PREFIX and SUFFIX must not contain globbing or regex special
29410 # characters, hashes, percent signs, but SUFFIX may contain a leading
29411 # dot (in which case that matches only a dot).
29414 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29415 # positional parameters, so assign one to ordinary parameter first.
29416 func_stripname_result
=${3}
29417 func_stripname_result
=${func_stripname_result#"${1}"}
29418 func_stripname_result
=${func_stripname_result%"${2}"}
29424 func_opt_split_opt
=${1%%=*}
29425 func_opt_split_arg
=${1#*=}
29432 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
29433 *) func_lo2o_result
=${1} ;;
29437 # func_xform libobj-or-source
29440 func_xform_result
=${1%.*}.lo
29443 # func_arith arithmetic-term...
29446 func_arith_result
=$
(( $
* ))
29450 # STRING may not start with a hyphen.
29453 func_len_result
=${#1}
29458 *) # Bourne compatible functions.
29459 cat << \_LT_EOF
>> "$cfgfile"
29461 # func_dirname file append nondir_replacement
29462 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29463 # otherwise set result to NONDIR_REPLACEMENT.
29466 # Extract subdirectory from the argument.
29467 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
29468 if test "X$func_dirname_result" = "X${1}"; then
29469 func_dirname_result
="${3}"
29471 func_dirname_result
="$func_dirname_result${2}"
29475 # func_basename file
29478 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
29482 # func_stripname prefix suffix name
29483 # strip PREFIX and SUFFIX off of NAME.
29484 # PREFIX and SUFFIX must not contain globbing or regex special
29485 # characters, hashes, percent signs, but SUFFIX may contain a leading
29486 # dot (in which case that matches only a dot).
29487 # func_strip_suffix prefix name
29491 .
*) func_stripname_result
=`$ECHO "X${3}" \
29492 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
29493 *) func_stripname_result
=`$ECHO "X${3}" \
29494 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
29499 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
29500 my_sed_long_arg
='1s/^-[^=]*=//'
29505 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
29506 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
29512 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
29515 # func_xform libobj-or-source
29518 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
29521 # func_arith arithmetic-term...
29524 func_arith_result
=`expr "$@"`
29528 # STRING may not start with a hyphen.
29531 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29537 case $lt_shell_append in
29539 cat << \_LT_EOF
>> "$cfgfile"
29541 # func_append var value
29542 # Append VALUE to the end of shell variable VAR.
29550 cat << \_LT_EOF
>> "$cfgfile"
29552 # func_append var value
29553 # Append VALUE to the end of shell variable VAR.
29564 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29565 ||
(rm -f "$cfgfile"; exit 1)
29567 mv -f "$cfgfile" "$ofile" ||
29568 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29577 { (exit 0); exit 0; }
29579 chmod +x
$CONFIG_STATUS
29580 ac_clean_files
=$ac_clean_files_save
29582 test $ac_write_fail = 0 ||
29583 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
29584 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
29585 { (exit 1); exit 1; }; }
29588 # configure is writing to config.log, and then calls config.status.
29589 # config.status does its own redirection, appending to config.log.
29590 # Unfortunately, on DOS this fails, as config.log is still kept open
29591 # by configure, so config.status won't be able to write to it; its
29592 # output is simply discarded. So we exec the FD to /dev/null,
29593 # effectively closing config.log, so it can be properly (re)opened and
29594 # appended to by config.status. When coming back to configure, we
29595 # need to make the FD available again.
29596 if test "$no_create" != yes; then
29598 ac_config_status_args
=
29599 test "$silent" = yes &&
29600 ac_config_status_args
="$ac_config_status_args --quiet"
29602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29605 # would make configure fail if this is the last instruction.
29606 $ac_cs_success ||
{ (exit 1); exit 1; }
29608 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29609 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29610 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}