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
796 NO_UNUSED_BUT_SET_VARIABLE
832 am__fastdepCCAS_FALSE
881 INSTALL_STRIP_PROGRAM
899 MAINTAINER_MODE_FALSE
950 program_transform_name
962 enable_option_checking
963 enable_maintainer_mode
965 enable_dependency_tracking
981 ac_precious_vars
='build_alias
994 # Initialize some variables set by options.
996 ac_init_version
=false
997 ac_unrecognized_opts
=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file
=/dev
/null
1008 program_transform_name
=s
,x
,x
,
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir
='${exec_prefix}/bin'
1023 sbindir
='${exec_prefix}/sbin'
1024 libexecdir
='${exec_prefix}/libexec'
1025 datarootdir
='${prefix}/share'
1026 datadir
='${datarootdir}'
1027 sysconfdir
='${prefix}/etc'
1028 sharedstatedir
='${prefix}/com'
1029 localstatedir
='${prefix}/var'
1030 includedir
='${prefix}/include'
1031 oldincludedir
='/usr/include'
1032 docdir
='${datarootdir}/doc/${PACKAGE}'
1033 infodir
='${datarootdir}/info'
1038 libdir
='${exec_prefix}/lib'
1039 localedir
='${datarootdir}/locale'
1040 mandir
='${datarootdir}/man'
1046 # If the previous option needs an argument, assign it.
1047 if test -n "$ac_prev"; then
1048 eval $ac_prev=\
$ac_option
1054 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058 # Accept the important Cygnus configure options, so we can diagnose typos.
1060 case $ac_dashdash$ac_option in
1064 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1066 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1067 bindir
=$ac_optarg ;;
1069 -build |
--build |
--buil |
--bui |
--bu)
1070 ac_prev
=build_alias
;;
1071 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1072 build_alias
=$ac_optarg ;;
1074 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1075 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1076 ac_prev
=cache_file
;;
1077 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1078 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1079 cache_file
=$ac_optarg ;;
1081 --config-cache |
-C)
1082 cache_file
=config.cache
;;
1084 -datadir |
--datadir |
--datadi |
--datad)
1086 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1087 datadir
=$ac_optarg ;;
1089 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1090 |
--dataroo |
--dataro |
--datar)
1091 ac_prev
=datarootdir
;;
1092 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1093 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1094 datarootdir
=$ac_optarg ;;
1096 -disable-* |
--disable-*)
1097 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1100 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_useropt_orig
=$ac_useropt
1103 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1106 "enable_
$ac_useropt"
1108 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1109 ac_unrecognized_sep
=', ';;
1111 eval enable_
$ac_useropt=no
;;
1113 -docdir |
--docdir |
--docdi |
--doc |
--do)
1115 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1116 docdir
=$ac_optarg ;;
1118 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1120 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1121 dvidir
=$ac_optarg ;;
1123 -enable-* |
--enable-*)
1124 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1127 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1128 { (exit 1); exit 1; }; }
1129 ac_useropt_orig
=$ac_useropt
1130 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "enable_
$ac_useropt"
1135 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1136 ac_unrecognized_sep
=', ';;
1138 eval enable_
$ac_useropt=\
$ac_optarg ;;
1140 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1141 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1142 |
--exec |
--exe |
--ex)
1143 ac_prev
=exec_prefix
;;
1144 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1145 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1146 |
--exec=* |
--exe=* |
--ex=*)
1147 exec_prefix
=$ac_optarg ;;
1149 -gas |
--gas |
--ga |
--g)
1150 # Obsolete; use --with-gas.
1153 -help |
--help |
--hel |
--he |
-h)
1154 ac_init_help
=long
;;
1155 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1156 ac_init_help
=recursive
;;
1157 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1158 ac_init_help
=short
;;
1160 -host |
--host |
--hos |
--ho)
1161 ac_prev
=host_alias
;;
1162 -host=* |
--host=* |
--hos=* |
--ho=*)
1163 host_alias
=$ac_optarg ;;
1165 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1167 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1169 htmldir
=$ac_optarg ;;
1171 -includedir |
--includedir |
--includedi |
--included |
--include \
1172 |
--includ |
--inclu |
--incl |
--inc)
1173 ac_prev
=includedir
;;
1174 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1175 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1176 includedir
=$ac_optarg ;;
1178 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1180 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1181 infodir
=$ac_optarg ;;
1183 -libdir |
--libdir |
--libdi |
--libd)
1185 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1186 libdir
=$ac_optarg ;;
1188 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1189 |
--libexe |
--libex |
--libe)
1190 ac_prev
=libexecdir
;;
1191 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1192 |
--libexe=* |
--libex=* |
--libe=*)
1193 libexecdir
=$ac_optarg ;;
1195 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1196 ac_prev
=localedir
;;
1197 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1198 localedir
=$ac_optarg ;;
1200 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1201 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1202 ac_prev
=localstatedir
;;
1203 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1204 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1205 localstatedir
=$ac_optarg ;;
1207 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1209 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1210 mandir
=$ac_optarg ;;
1212 -nfp |
--nfp |
--nf)
1213 # Obsolete; use --without-fp.
1216 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1217 |
--no-cr |
--no-c |
-n)
1220 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1221 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1224 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1225 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1226 |
--oldin |
--oldi |
--old |
--ol |
--o)
1227 ac_prev
=oldincludedir
;;
1228 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1229 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1230 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1231 oldincludedir
=$ac_optarg ;;
1233 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1235 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1236 prefix
=$ac_optarg ;;
1238 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1239 |
--program-pre |
--program-pr |
--program-p)
1240 ac_prev
=program_prefix
;;
1241 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1242 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1243 program_prefix
=$ac_optarg ;;
1245 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1246 |
--program-suf |
--program-su |
--program-s)
1247 ac_prev
=program_suffix
;;
1248 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1249 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1250 program_suffix
=$ac_optarg ;;
1252 -program-transform-name |
--program-transform-name \
1253 |
--program-transform-nam |
--program-transform-na \
1254 |
--program-transform-n |
--program-transform- \
1255 |
--program-transform |
--program-transfor \
1256 |
--program-transfo |
--program-transf \
1257 |
--program-trans |
--program-tran \
1258 |
--progr-tra |
--program-tr |
--program-t)
1259 ac_prev
=program_transform_name
;;
1260 -program-transform-name=* |
--program-transform-name=* \
1261 |
--program-transform-nam=* |
--program-transform-na=* \
1262 |
--program-transform-n=* |
--program-transform-=* \
1263 |
--program-transform=* |
--program-transfor=* \
1264 |
--program-transfo=* |
--program-transf=* \
1265 |
--program-trans=* |
--program-tran=* \
1266 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1267 program_transform_name
=$ac_optarg ;;
1269 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1271 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1272 pdfdir
=$ac_optarg ;;
1274 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1276 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1279 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1280 |
-silent |
--silent |
--silen |
--sile |
--sil)
1283 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1285 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1287 sbindir
=$ac_optarg ;;
1289 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1290 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1291 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1293 ac_prev
=sharedstatedir
;;
1294 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1295 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1296 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1298 sharedstatedir
=$ac_optarg ;;
1300 -site |
--site |
--sit)
1302 -site=* |
--site=* |
--sit=*)
1305 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1307 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1308 srcdir
=$ac_optarg ;;
1310 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1311 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1312 ac_prev
=sysconfdir
;;
1313 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1314 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1315 sysconfdir
=$ac_optarg ;;
1317 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1318 ac_prev
=target_alias
;;
1319 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1320 target_alias
=$ac_optarg ;;
1322 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1325 -version |
--version |
--versio |
--versi |
--vers |
-V)
1326 ac_init_version
=: ;;
1329 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1332 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1333 { (exit 1); exit 1; }; }
1334 ac_useropt_orig
=$ac_useropt
1335 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1340 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1341 ac_unrecognized_sep
=', ';;
1343 eval with_
$ac_useropt=\
$ac_optarg ;;
1345 -without-* |
--without-*)
1346 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1349 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1350 { (exit 1); exit 1; }; }
1351 ac_useropt_orig
=$ac_useropt
1352 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1357 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1358 ac_unrecognized_sep
=', ';;
1360 eval with_
$ac_useropt=no
;;
1363 # Obsolete; use --with-x.
1366 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1367 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1368 ac_prev
=x_includes
;;
1369 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1370 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1371 x_includes
=$ac_optarg ;;
1373 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1374 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1375 ac_prev
=x_libraries
;;
1376 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1377 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1378 x_libraries
=$ac_optarg ;;
1380 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1381 Try \`$0 --help' for more information." >&2
1382 { (exit 1); exit 1; }; }
1386 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1387 # Reject names that are not valid shell variable names.
1388 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1389 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1390 { (exit 1); exit 1; }; }
1391 eval $ac_envvar=\
$ac_optarg
1392 export $ac_envvar ;;
1395 # FIXME: should be removed in autoconf 3.0.
1396 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1397 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1398 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1399 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1405 if test -n "$ac_prev"; then
1406 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1407 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1408 { (exit 1); exit 1; }; }
1411 if test -n "$ac_unrecognized_opts"; then
1412 case $enable_option_checking in
1414 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1415 { (exit 1); exit 1; }; } ;;
1416 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420 # Check all directory arguments for consistency.
1421 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1422 datadir sysconfdir sharedstatedir localstatedir includedir \
1423 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1424 libdir localedir mandir
1426 eval ac_val
=\$
$ac_var
1427 # Remove trailing slashes.
1430 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1431 eval $ac_var=\
$ac_val;;
1433 # Be sure to have absolute directory names.
1435 [\\/$
]* | ?
:[\\/]* ) continue;;
1436 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1438 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1439 { (exit 1); exit 1; }; }
1442 # There might be people who depend on the old broken behavior: `$host'
1443 # used to hold the argument of --host etc.
1444 # FIXME: To remove some day.
1447 target
=$target_alias
1449 # FIXME: To remove some day.
1450 if test "x$host_alias" != x
; then
1451 if test "x$build_alias" = x
; then
1452 cross_compiling
=maybe
1453 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1454 If a cross compiler is detected then cross compile mode will be used." >&2
1455 elif test "x$build_alias" != "x$host_alias"; then
1461 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1463 test "$silent" = yes && exec 6>/dev
/null
1466 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di
=`ls -di .` &&
1468 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1469 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1470 { (exit 1); exit 1; }; }
1471 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1472 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1473 { (exit 1); exit 1; }; }
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478 ac_srcdir_defaulted
=yes
1479 # Try the directory containing this script, then the parent directory.
1480 ac_confdir
=`$as_dirname -- "$as_myself" ||
1481 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482 X"$as_myself" : 'X\(//\)[^/]' \| \
1483 X"$as_myself" : 'X\(//\)$' \| \
1484 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1485 $as_echo X"$as_myself" |
1486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1508 ac_srcdir_defaulted
=no
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1512 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1513 { (exit 1); exit 1; }; }
1515 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1518 { (exit 1); exit 1; }; }
1520 # When building in place, set srcdir=.
1521 if test "$ac_abs_confdir" = "$ac_pwd"; then
1524 # Remove unnecessary trailing slashes from srcdir.
1525 # Double slashes in file names in object file debugging info
1526 # mess up M-x gdb in Emacs.
1528 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1530 for ac_var
in $ac_precious_vars; do
1531 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1532 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1533 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1534 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1538 # Report the --help message.
1540 if test "$ac_init_help" = "long"; then
1541 # Omit some internal or obsolete options to make the list less imposing.
1542 # This message is too long to be a string in the A/UX 3.1 sh.
1544 \`configure' configures this package to adapt to many kinds of systems.
1546 Usage: $0 [OPTION]... [VAR=VALUE]...
1548 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1549 VAR=VALUE. See below for descriptions of some of the useful variables.
1551 Defaults for the options are specified in brackets.
1554 -h, --help display this help and exit
1555 --help=short display options specific to this package
1556 --help=recursive display the short help of all the included packages
1557 -V, --version display version information and exit
1558 -q, --quiet, --silent do not print \`checking...' messages
1559 --cache-file=FILE cache test results in FILE [disabled]
1560 -C, --config-cache alias for \`--cache-file=config.cache'
1561 -n, --no-create do not create output files
1562 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1564 Installation directories:
1565 --prefix=PREFIX install architecture-independent files in PREFIX
1566 [$ac_default_prefix]
1567 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1570 By default, \`make install' will install all the files in
1571 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1572 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1573 for instance \`--prefix=\$HOME'.
1575 For better control, use the options below.
1577 Fine tuning of the installation directories:
1578 --bindir=DIR user executables [EPREFIX/bin]
1579 --sbindir=DIR system admin executables [EPREFIX/sbin]
1580 --libexecdir=DIR program executables [EPREFIX/libexec]
1581 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1582 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1583 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1584 --libdir=DIR object code libraries [EPREFIX/lib]
1585 --includedir=DIR C header files [PREFIX/include]
1586 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1587 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1588 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1589 --infodir=DIR info documentation [DATAROOTDIR/info]
1590 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1591 --mandir=DIR man documentation [DATAROOTDIR/man]
1592 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1593 --htmldir=DIR html documentation [DOCDIR]
1594 --dvidir=DIR dvi documentation [DOCDIR]
1595 --pdfdir=DIR pdf documentation [DOCDIR]
1596 --psdir=DIR ps documentation [DOCDIR]
1602 --program-prefix=PREFIX prepend PREFIX to installed program names
1603 --program-suffix=SUFFIX append SUFFIX to installed program names
1604 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1607 --build=BUILD configure
for building on BUILD
[guessed
]
1608 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1609 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1613 if test -n "$ac_init_help"; then
1618 --disable-option-checking ignore unrecognized
--enable/--with options
1619 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1620 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1621 --enable-maintainer-mode enable make rules and dependencies not useful
1622 (and sometimes confusing
) to the casual installer
1623 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1624 --disable-silent-rules verbose build output (undo: `make V
=0')
1625 --disable-dependency-tracking speeds up one-time build
1626 --enable-dependency-tracking do not reject slow dependency extractors
1627 --enable-shared[=PKGS] build shared libraries [default=yes]
1628 --enable-static[=PKGS] build static libraries [default=yes]
1629 --enable-fast-install[=PKGS]
1630 optimize for fast installation [default=yes]
1631 --disable-libtool-lock avoid locking (might break parallel builds)
1632 --enable-debug Enable generic debug support [default=no]
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-pic try to use only PIC/non-PIC objects [default=use
1639 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1640 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1641 --with-linux=PATH Path to kernel source
1642 --with-linux-obj=PATH Path to kernel build objects
1643 --with-spl=PATH Path to spl source
1644 --with-spl-obj=PATH Path to spl build objects
1645 --with-blkid support blkid caching [default=check]
1646 --with-selinux support selinux [default=check]
1648 Some influential environment variables:
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1652 nonstandard directory <lib dir>
1653 LIBS libraries to pass to the linker, e.g. -l<library>
1654 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1655 you have headers in a nonstandard directory <include dir>
1657 CCAS assembler compiler command (defaults to CC)
1658 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1660 Use these variables to override the choices made by `configure' or to
help
1661 it to
find libraries and programs with nonstandard names
/locations.
1667 if test "$ac_init_help" = "recursive"; then
1668 # If there are subdirs, report their specific --help.
1669 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1670 test -d "$ac_dir" ||
1671 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1676 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1678 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1679 # A ".." for each directory in $ac_dir_suffix.
1680 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1681 case $ac_top_builddir_sub in
1682 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1683 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1686 ac_abs_top_builddir
=$ac_pwd
1687 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1688 # for backward compatibility:
1689 ac_top_builddir
=$ac_top_build_prefix
1692 .
) # We are building in place.
1694 ac_top_srcdir
=$ac_top_builddir_sub
1695 ac_abs_top_srcdir
=$ac_pwd ;;
1696 [\\/]* | ?
:[\\/]* ) # Absolute name.
1697 ac_srcdir
=$srcdir$ac_dir_suffix;
1698 ac_top_srcdir
=$srcdir
1699 ac_abs_top_srcdir
=$srcdir ;;
1701 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1702 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1703 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1705 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1707 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1708 # Check for guested configure.
1709 if test -f "$ac_srcdir/configure.gnu"; then
1711 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1712 elif test -f "$ac_srcdir/configure"; then
1714 $SHELL "$ac_srcdir/configure" --help=recursive
1716 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1718 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1722 test -n "$ac_init_help" && exit $ac_status
1723 if $ac_init_version; then
1726 generated by GNU Autoconf
2.63
1728 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1729 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1730 This configure
script is free software
; the Free Software Foundation
1731 gives unlimited permission to copy
, distribute and modify it.
1735 cat >config.log
<<_ACEOF
1736 This file contains any messages produced by compilers while
1737 running configure, to aid debugging if configure makes a mistake.
1739 It was created by $as_me, which was
1740 generated by GNU Autoconf 2.63. Invocation command line was
1752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1753 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1754 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1755 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1756 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1759 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1761 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1762 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1764 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1765 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1766 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1767 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1775 test -z "$as_dir" && as_dir
=.
1776 $as_echo "PATH: $as_dir"
1792 # Keep a trace of the command line.
1793 # Strip out --no-create and --no-recursion so they do not pile up.
1794 # Strip out --silent because we don't want to record it for future runs.
1795 # Also quote any args containing shell meta-characters.
1796 # Make two passes to allow for proper duplicate-argument suppression.
1800 ac_must_keep_next
=false
1806 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1807 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1808 |
-silent |
--silent |
--silen |
--sile |
--sil)
1811 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1814 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1816 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1817 if test $ac_must_keep_next = true
; then
1818 ac_must_keep_next
=false
# Got value, back to normal.
1821 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1822 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1823 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1824 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1825 case "$ac_configure_args0 " in
1826 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1829 -* ) ac_must_keep_next
=true
;;
1832 ac_configure_args
="$ac_configure_args '$ac_arg'"
1837 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1838 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1840 # When interrupted or exit'd, cleanup temporary files, and complete
1841 # config.log. We remove comments because anyway the quotes in there
1842 # would cause problems or look ugly.
1843 # WARNING: Use '\'' to represent an apostrophe within the trap.
1844 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1845 trap 'exit_status=$?
1846 # Save into config.log some information that might help in debugging.
1851 ## ---------------- ##
1852 ## Cache variables. ##
1853 ## ---------------- ##
1856 # The following way of writing the cache mishandles newlines in values,
1858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1859 eval ac_val=\$$ac_var
1863 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1867 _ | IFS | as_nl) ;; #(
1868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1869 *) $as_unset $ac_var ;;
1874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1875 *${as_nl}ac_space=\ *)
1877 "s/'\''/'\''\\\\'\'''\''/g;
1878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1889 ## ----------------- ##
1890 ## Output variables. ##
1891 ## ----------------- ##
1894 for ac_var in $ac_subst_vars
1896 eval ac_val=\$$ac_var
1898 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1900 $as_echo "$ac_var='\''$ac_val'\''"
1904 if test -n "$ac_subst_files"; then
1906 ## ------------------- ##
1907 ## File substitutions. ##
1908 ## ------------------- ##
1911 for ac_var
in $ac_subst_files
1913 eval ac_val
=\$
$ac_var
1915 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1917 $as_echo "$ac_var='\''$ac_val'\''"
1922 if test -s confdefs.h; then
1932 test "$ac_signal" != 0 &&
1933 $as_echo "$as_me: caught signal $ac_signal"
1934 $as_echo "$as_me: exit $exit_status"
1936 rm -f core *.core core.conftest.* &&
1937 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1940 for ac_signal
in 1 2 13 15; do
1941 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1945 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1946 rm -f -r conftest
* confdefs.h
1948 # Predefined preprocessor variables.
1950 cat >>confdefs.h
<<_ACEOF
1951 #define PACKAGE_NAME "$PACKAGE_NAME"
1955 cat >>confdefs.h
<<_ACEOF
1956 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1960 cat >>confdefs.h
<<_ACEOF
1961 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1965 cat >>confdefs.h
<<_ACEOF
1966 #define PACKAGE_STRING "$PACKAGE_STRING"
1970 cat >>confdefs.h
<<_ACEOF
1971 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1975 # Let the site file select an alternate cache file if it wants to.
1976 # Prefer an explicitly selected file to automatically selected ones.
1979 if test -n "$CONFIG_SITE"; then
1980 ac_site_file1
=$CONFIG_SITE
1981 elif test "x$prefix" != xNONE
; then
1982 ac_site_file1
=$prefix/share
/config.site
1983 ac_site_file2
=$prefix/etc
/config.site
1985 ac_site_file1
=$ac_default_prefix/share
/config.site
1986 ac_site_file2
=$ac_default_prefix/etc
/config.site
1988 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1990 test "x$ac_site_file" = xNONE
&& continue
1991 if test -r "$ac_site_file"; then
1992 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1993 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1994 sed 's/^/| /' "$ac_site_file" >&5
1999 if test -r "$cache_file"; then
2000 # Some versions of bash will fail to source /dev/null (special
2001 # files actually), so we avoid doing that.
2002 if test -f "$cache_file"; then
2003 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2004 $as_echo "$as_me: loading cache $cache_file" >&6;}
2006 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2007 *) .
"./$cache_file";;
2011 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2012 $as_echo "$as_me: creating cache $cache_file" >&6;}
2016 # Check that the precious variables saved in the cache have kept the same
2018 ac_cache_corrupted
=false
2019 for ac_var
in $ac_precious_vars; do
2020 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2021 eval ac_new_set
=\
$ac_env_${ac_var}_set
2022 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2023 eval ac_new_val
=\
$ac_env_${ac_var}_value
2024 case $ac_old_set,$ac_new_set in
2026 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2027 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2028 ac_cache_corrupted
=: ;;
2030 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2031 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2032 ac_cache_corrupted
=: ;;
2035 if test "x$ac_old_val" != "x$ac_new_val"; then
2036 # differences in whitespace do not lead to failure.
2037 ac_old_val_w
=`echo x $ac_old_val`
2038 ac_new_val_w
=`echo x $ac_new_val`
2039 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2040 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2041 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2042 ac_cache_corrupted
=:
2044 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2045 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2046 eval $ac_var=\
$ac_old_val
2048 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2049 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2050 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2051 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2054 # Pass precious variables to config.status.
2055 if test "$ac_new_set" = set; then
2057 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2058 *) ac_arg
=$ac_var=$ac_new_val ;;
2060 case " $ac_configure_args " in
2061 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2062 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2066 if $ac_cache_corrupted; then
2067 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2069 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2070 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2071 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2072 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2073 { (exit 1); exit 1; }; }
2093 ac_cpp
='$CPP $CPPFLAGS'
2094 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2100 ac_cpp
='$CPP $CPPFLAGS'
2101 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2102 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2103 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2110 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2111 $as_echo_n "checking metadata... " >&6; }
2114 _zfs_ac_meta_got_file
=no
2115 if test -f "$META"; then
2116 _zfs_ac_meta_got_file
=yes
2118 ZFS_META_NAME
=`perl -n\
2119 -e "BEGIN { \\$key=shift @ARGV; }"\
2120 -e "next unless s/^\s*\\$key[:=]//i;"\
2121 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2124 -e "s/^(['\"])(.*)\1/\\$2/;"\
2126 -e "END { print \\$val if defined \\$val; }"\
2127 '(?:NAME|PROJECT|PACKAGE)' $META`;
2128 if test -n "$ZFS_META_NAME"; then
2130 cat >>confdefs.h
<<_ACEOF
2131 #define ZFS_META_NAME "$ZFS_META_NAME"
2137 ZFS_META_VERSION
=`perl -n\
2138 -e "BEGIN { \\$key=shift @ARGV; }"\
2139 -e "next unless s/^\s*\\$key[:=]//i;"\
2140 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2143 -e "s/^(['\"])(.*)\1/\\$2/;"\
2145 -e "END { print \\$val if defined \\$val; }"\
2147 if test -n "$ZFS_META_VERSION"; then
2149 cat >>confdefs.h
<<_ACEOF
2150 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2156 ZFS_META_RELEASE
=`perl -n\
2157 -e "BEGIN { \\$key=shift @ARGV; }"\
2158 -e "next unless s/^\s*\\$key[:=]//i;"\
2159 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2162 -e "s/^(['\"])(.*)\1/\\$2/;"\
2164 -e "END { print \\$val if defined \\$val; }"\
2166 if test -n "$ZFS_META_RELEASE"; then
2168 cat >>confdefs.h
<<_ACEOF
2169 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2175 ZFS_META_LICENSE
=`perl -n\
2176 -e "BEGIN { \\$key=shift @ARGV; }"\
2177 -e "next unless s/^\s*\\$key[:=]//i;"\
2178 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2181 -e "s/^(['\"])(.*)\1/\\$2/;"\
2183 -e "END { print \\$val if defined \\$val; }"\
2185 if test -n "$ZFS_META_LICENSE"; then
2187 cat >>confdefs.h
<<_ACEOF
2188 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2194 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2195 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2196 test -n "$ZFS_META_RELEASE" &&
2197 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2199 cat >>confdefs.h
<<_ACEOF
2200 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2206 ZFS_META_DATA
=`perl -n\
2207 -e "BEGIN { \\$key=shift @ARGV; }"\
2208 -e "next unless s/^\s*\\$key[:=]//i;"\
2209 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2212 -e "s/^(['\"])(.*)\1/\\$2/;"\
2214 -e "END { print \\$val if defined \\$val; }"\
2216 if test -n "$ZFS_META_DATA"; then
2218 cat >>confdefs.h
<<_ACEOF
2219 #define ZFS_META_DATA "$ZFS_META_DATA"
2225 ZFS_META_AUTHOR
=`perl -n\
2226 -e "BEGIN { \\$key=shift @ARGV; }"\
2227 -e "next unless s/^\s*\\$key[:=]//i;"\
2228 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2231 -e "s/^(['\"])(.*)\1/\\$2/;"\
2233 -e "END { print \\$val if defined \\$val; }"\
2235 if test -n "$ZFS_META_AUTHOR"; then
2237 cat >>confdefs.h
<<_ACEOF
2238 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2245 ZFS_META_LT_CURRENT
=`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; }"\
2254 'LT_CURRENT' $META`;
2255 ZFS_META_LT_REVISION
=`perl -n\
2256 -e "BEGIN { \\$key=shift @ARGV; }"\
2257 -e "next unless s/^\s*\\$key[:=]//i;"\
2258 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2261 -e "s/^(['\"])(.*)\1/\\$2/;"\
2263 -e "END { print \\$val if defined \\$val; }"\
2264 'LT_REVISION' $META`;
2265 ZFS_META_LT_AGE
=`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; }"\
2275 if test -n "$ZFS_META_LT_CURRENT" \
2276 -o -n "$ZFS_META_LT_REVISION" \
2277 -o -n "$ZFS_META_LT_AGE"; then
2278 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2279 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2280 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2282 cat >>confdefs.h
<<_ACEOF
2283 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2287 cat >>confdefs.h
<<_ACEOF
2288 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2292 cat >>confdefs.h
<<_ACEOF
2293 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2302 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2303 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2307 for ac_dir
in config
"$srcdir"/config
; do
2308 if test -f "$ac_dir/install-sh"; then
2310 ac_install_sh
="$ac_aux_dir/install-sh -c"
2312 elif test -f "$ac_dir/install.sh"; then
2314 ac_install_sh
="$ac_aux_dir/install.sh -c"
2316 elif test -f "$ac_dir/shtool"; then
2318 ac_install_sh
="$ac_aux_dir/shtool install -c"
2322 if test -z "$ac_aux_dir"; then
2323 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2324 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2325 { (exit 1); exit 1; }; }
2328 # These three variables are undocumented and unsupported,
2329 # and are intended to be withdrawn in a future Autoconf release.
2330 # They can cause serious problems if a builder's source tree is in a directory
2331 # whose full name contains unusual characters.
2332 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2333 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2334 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2337 # Make sure we can run config.sub.
2338 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2339 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2340 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2341 { (exit 1); exit 1; }; }
2343 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2344 $as_echo_n "checking build system type... " >&6; }
2345 if test "${ac_cv_build+set}" = set; then
2346 $as_echo_n "(cached) " >&6
2348 ac_build_alias
=$build_alias
2349 test "x$ac_build_alias" = x
&&
2350 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2351 test "x$ac_build_alias" = x
&&
2352 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2353 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2354 { (exit 1); exit 1; }; }
2355 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2356 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2357 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2358 { (exit 1); exit 1; }; }
2361 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2362 $as_echo "$ac_cv_build" >&6; }
2363 case $ac_cv_build in
2365 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2366 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2367 { (exit 1); exit 1; }; };;
2370 ac_save_IFS
=$IFS; IFS
='-'
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2380 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2383 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2384 $as_echo_n "checking host system type... " >&6; }
2385 if test "${ac_cv_host+set}" = set; then
2386 $as_echo_n "(cached) " >&6
2388 if test "x$host_alias" = x
; then
2389 ac_cv_host
=$ac_cv_build
2391 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2392 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2393 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2394 { (exit 1); exit 1; }; }
2398 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2399 $as_echo "$ac_cv_host" >&6; }
2402 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2403 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2404 { (exit 1); exit 1; }; };;
2407 ac_save_IFS
=$IFS; IFS
='-'
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2417 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2420 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2421 $as_echo_n "checking target system type... " >&6; }
2422 if test "${ac_cv_target+set}" = set; then
2423 $as_echo_n "(cached) " >&6
2425 if test "x$target_alias" = x
; then
2426 ac_cv_target
=$ac_cv_host
2428 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2429 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2430 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2431 { (exit 1); exit 1; }; }
2435 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2436 $as_echo "$ac_cv_target" >&6; }
2437 case $ac_cv_target in
2439 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2440 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2441 { (exit 1); exit 1; }; };;
2443 target
=$ac_cv_target
2444 ac_save_IFS
=$IFS; IFS
='-'
2450 # Remember, the first character of IFS is used to create $*,
2451 # except with old shells:
2454 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2457 # The aliases save the names the user supplied, while $host etc.
2458 # will get canonicalized.
2459 test -n "$target_alias" &&
2460 test "$program_prefix$program_suffix$program_transform_name" = \
2462 program_prefix
=${target_alias}-
2464 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2465 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2466 # Check whether --enable-maintainer-mode was given.
2467 if test "${enable_maintainer_mode+set}" = set; then
2468 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2470 USE_MAINTAINER_MODE
=no
2473 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2474 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2475 if test $USE_MAINTAINER_MODE = yes; then
2476 MAINTAINER_MODE_TRUE
=
2477 MAINTAINER_MODE_FALSE
='#'
2479 MAINTAINER_MODE_TRUE
='#'
2480 MAINTAINER_MODE_FALSE
=
2483 MAINT
=$MAINTAINER_MODE_TRUE
2486 # Check whether --enable-silent-rules was given.
2487 if test "${enable_silent_rules+set}" = set; then
2488 enableval
=$enable_silent_rules;
2491 case $enable_silent_rules in
2492 yes) AM_DEFAULT_VERBOSITY
=0;;
2493 no
) AM_DEFAULT_VERBOSITY
=1;;
2494 *) AM_DEFAULT_VERBOSITY
=1;;
2498 am__api_version='1.11'
2500 # Find a good install program. We prefer a C program (faster),
2501 # so one script is as good as another. But avoid the broken or
2502 # incompatible versions:
2503 # SysV /etc/install, /usr/sbin/install
2504 # SunOS /usr/etc/install
2505 # IRIX /sbin/install
2507 # AmigaOS /C/install, which installs bootblocks on floppy discs
2508 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2511 # OS/2's system install, which has a completely different semantic
2512 # ./install, which can be erroneously created by make from ./install.sh.
2513 # Reject install programs that cannot install multiple files.
2514 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2515 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2516 if test -z "$INSTALL"; then
2517 if test "${ac_cv_path_install+set}" = set; then
2518 $as_echo_n "(cached) " >&6
2520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir
=.
2525 # Account for people who put trailing slashes in PATH elements.
2527 .
/ | .
// |
/cC
/* | \
2528 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2529 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2532 # OSF1 and SCO ODT 3.0 have their own names for install.
2533 # Don't use installbsd from OSF since it installs stuff as root
2535 for ac_prog
in ginstall scoinst
install; do
2536 for ac_exec_ext
in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2538 if test $ac_prog = install &&
2539 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2540 # AIX install. It has an incompatible calling convention.
2542 elif test $ac_prog = install &&
2543 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2544 # program-specific install script used by HP pwplus--don't use.
2547 rm -rf conftest.one conftest.two conftest.dir
2548 echo one
> conftest.one
2549 echo two
> conftest.two
2551 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2552 test -s conftest.one
&& test -s conftest.two
&&
2553 test -s conftest.dir
/conftest.one
&&
2554 test -s conftest.dir
/conftest.two
2556 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2569 rm -rf conftest.one conftest.two conftest.dir
2572 if test "${ac_cv_path_install+set}" = set; then
2573 INSTALL
=$ac_cv_path_install
2575 # As a last resort, use the slow shell script. Don't cache a
2576 # value for INSTALL within a source directory, because that will
2577 # break other packages using the cache if that directory is
2578 # removed, or if the value is a relative name.
2579 INSTALL
=$ac_install_sh
2582 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2583 $as_echo "$INSTALL" >&6; }
2585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2586 # It thinks the first close brace ends the variable substitution.
2587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2589 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2591 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2593 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2594 $as_echo_n "checking whether build environment is sane... " >&6; }
2597 echo timestamp
> conftest.
file
2598 # Reject unsafe characters in $srcdir or the absolute working directory
2599 # name. Accept space and tab only in the latter.
2603 *[\\\"\
#\$\&\'\`$am_lf]*)
2604 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2605 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2606 { (exit 1); exit 1; }; };;
2609 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2610 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2611 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2612 { (exit 1); exit 1; }; };;
2615 # Do `set' in a subshell so we don't clobber the current shell's
2616 # arguments. Must try -L first in case configure is actually a
2617 # symlink; some systems play weird games with the mod time of symlinks
2618 # (eg FreeBSD returns the mod time of the symlink's containing
2621 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2622 if test "$*" = "X"; then
2624 set X
`ls -t "$srcdir/configure" conftest.file`
2627 if test "$*" != "X $srcdir/configure conftest.file" \
2628 && test "$*" != "X conftest.file $srcdir/configure"; then
2630 # If neither matched, then we have a broken ls. This can happen
2631 # if, for instance, CONFIG_SHELL is bash and it inherits a
2632 # broken ls alias from the environment. This has actually
2633 # happened. Such a system could not be considered "sane".
2634 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2635 alias in your environment" >&5
2636 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2637 alias in your environment" >&2;}
2638 { (exit 1); exit 1; }; }
2641 test "$2" = conftest.
file
2647 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2648 Check your system clock" >&5
2649 $as_echo "$as_me: error: newly created file is older than distributed files!
2650 Check your system clock" >&2;}
2651 { (exit 1); exit 1; }; }
2653 { $as_echo "$as_me:$LINENO: result: yes" >&5
2654 $as_echo "yes" >&6; }
2655 test "$program_prefix" != NONE
&&
2656 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2657 # Use a double $ so make ignores it.
2658 test "$program_suffix" != NONE
&&
2659 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2660 # Double any \ or $.
2661 # By default was `s,x,x', remove it if useless.
2662 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2663 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2665 # expand $ac_aux_dir to an absolute path
2666 am_aux_dir
=`cd $ac_aux_dir && pwd`
2668 if test x
"${MISSING+set}" != xset
; then
2671 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2673 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2676 # Use eval to expand $SHELL
2677 if eval "$MISSING --run true"; then
2678 am_missing_run
="$MISSING --run "
2681 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2682 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2685 if test x
"${install_sh}" != xset
; then
2688 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2690 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2694 # Installed binaries are usually stripped using `strip' when the user
2695 # run `make install-strip'. However `strip' might not be the right
2696 # tool to use in cross-compilation environments, therefore Automake
2697 # will honor the `STRIP' environment variable to overrule this program.
2698 if test "$cross_compiling" != no
; then
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2701 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2702 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if test "${ac_cv_prog_STRIP+set}" = set; then
2705 $as_echo_n "(cached) " >&6
2707 if test -n "$STRIP"; then
2708 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir
=.
2715 for ac_exec_ext
in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 STRIP
=$ac_cv_prog_STRIP
2728 if test -n "$STRIP"; then
2729 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2730 $as_echo "$STRIP" >&6; }
2732 { $as_echo "$as_me:$LINENO: result: no" >&5
2733 $as_echo "no" >&6; }
2738 if test -z "$ac_cv_prog_STRIP"; then
2740 # Extract the first word of "strip", so it can be a program name with args.
2741 set dummy strip
; ac_word
=$2
2742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2745 $as_echo_n "(cached) " >&6
2747 if test -n "$ac_ct_STRIP"; then
2748 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir
=.
2755 for ac_exec_ext
in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_ac_ct_STRIP
="strip"
2758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2768 if test -n "$ac_ct_STRIP"; then
2769 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2770 $as_echo "$ac_ct_STRIP" >&6; }
2772 { $as_echo "$as_me:$LINENO: result: no" >&5
2773 $as_echo "no" >&6; }
2776 if test "x$ac_ct_STRIP" = x
; then
2779 case $cross_compiling:$ac_tool_warned in
2781 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2783 ac_tool_warned
=yes ;;
2788 STRIP
="$ac_cv_prog_STRIP"
2792 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2794 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2795 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2796 if test -z "$MKDIR_P"; then
2797 if test "${ac_cv_path_mkdir+set}" = set; then
2798 $as_echo_n "(cached) " >&6
2800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2801 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2804 test -z "$as_dir" && as_dir
=.
2805 for ac_prog
in mkdir gmkdir
; do
2806 for ac_exec_ext
in '' $ac_executable_extensions; do
2807 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2808 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2809 'mkdir (GNU coreutils) '* | \
2810 'mkdir (coreutils) '* | \
2811 'mkdir (fileutils) '4.1*)
2812 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2822 if test "${ac_cv_path_mkdir+set}" = set; then
2823 MKDIR_P
="$ac_cv_path_mkdir -p"
2825 # As a last resort, use the slow shell script. Don't cache a
2826 # value for MKDIR_P within a source directory, because that will
2827 # break other packages using the cache if that directory is
2828 # removed, or if the value is a relative name.
2829 test -d .
/--version && rmdir .
/--version
2830 MKDIR_P
="$ac_install_sh -d"
2833 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2834 $as_echo "$MKDIR_P" >&6; }
2838 [\\/$
]* | ?
:[\\/]*) ;;
2839 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2842 for ac_prog
in gawk mawk nawk
awk
2844 # Extract the first word of "$ac_prog", so it can be a program name with args.
2845 set dummy
$ac_prog; ac_word
=$2
2846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if test "${ac_cv_prog_AWK+set}" = set; then
2849 $as_echo_n "(cached) " >&6
2851 if test -n "$AWK"; then
2852 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2858 test -z "$as_dir" && as_dir
=.
2859 for ac_exec_ext
in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 ac_cv_prog_AWK
="$ac_prog"
2862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 if test -n "$AWK"; then
2873 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2874 $as_echo "$AWK" >&6; }
2876 { $as_echo "$as_me:$LINENO: result: no" >&5
2877 $as_echo "no" >&6; }
2881 test -n "$AWK" && break
2884 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2885 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2887 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2888 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2889 $as_echo_n "(cached) " >&6
2891 cat >conftest.
make <<\_ACEOF
2894 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2897 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2899 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2901 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2905 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2906 { $as_echo "$as_me:$LINENO: result: yes" >&5
2907 $as_echo "yes" >&6; }
2910 { $as_echo "$as_me:$LINENO: result: no" >&5
2911 $as_echo "no" >&6; }
2912 SET_MAKE
="MAKE=${MAKE-make}"
2915 rm -rf .tst
2>/dev
/null
2916 mkdir .tst
2>/dev
/null
2917 if test -d .tst
; then
2922 rmdir .tst
2>/dev
/null
2924 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2925 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2926 # is not polluted with repeated "-I."
2927 am__isrc
=' -I$(srcdir)'
2928 # test to see if srcdir already configured
2929 if test -f $srcdir/config.status
; then
2930 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2931 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2932 { (exit 1); exit 1; }; }
2936 # test whether we have cygpath
2937 if test -z "$CYGPATH_W"; then
2938 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2939 CYGPATH_W
='cygpath -w'
2946 # Define the identity of the package.
2947 PACKAGE
=$ZFS_META_NAME
2948 VERSION
=$ZFS_META_VERSION
2951 cat >>confdefs.h
<<_ACEOF
2952 #define PACKAGE "$PACKAGE"
2956 cat >>confdefs.h
<<_ACEOF
2957 #define VERSION "$VERSION"
2960 # Some tools Automake needs.
2962 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2965 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2968 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2971 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2974 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2976 # We need awk for the "check" target. The system "awk" is bad on
2978 # Always define AMTAR for backward compatibility.
2980 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2982 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2988 ac_config_headers
="$ac_config_headers zfs_config.h"
2991 # Find a good install program. We prefer a C program (faster),
2992 # so one script is as good as another. But avoid the broken or
2993 # incompatible versions:
2994 # SysV /etc/install, /usr/sbin/install
2995 # SunOS /usr/etc/install
2996 # IRIX /sbin/install
2998 # AmigaOS /C/install, which installs bootblocks on floppy discs
2999 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3000 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3001 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3002 # OS/2's system install, which has a completely different semantic
3003 # ./install, which can be erroneously created by make from ./install.sh.
3004 # Reject install programs that cannot install multiple files.
3005 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3006 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3007 if test -z "$INSTALL"; then
3008 if test "${ac_cv_path_install+set}" = set; then
3009 $as_echo_n "(cached) " >&6
3011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir
=.
3016 # Account for people who put trailing slashes in PATH elements.
3018 .
/ | .
// |
/cC
/* | \
3019 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3020 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3023 # OSF1 and SCO ODT 3.0 have their own names for install.
3024 # Don't use installbsd from OSF since it installs stuff as root
3026 for ac_prog
in ginstall scoinst
install; do
3027 for ac_exec_ext
in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3029 if test $ac_prog = install &&
3030 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3031 # AIX install. It has an incompatible calling convention.
3033 elif test $ac_prog = install &&
3034 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3035 # program-specific install script used by HP pwplus--don't use.
3038 rm -rf conftest.one conftest.two conftest.dir
3039 echo one
> conftest.one
3040 echo two
> conftest.two
3042 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3043 test -s conftest.one
&& test -s conftest.two
&&
3044 test -s conftest.dir
/conftest.one
&&
3045 test -s conftest.dir
/conftest.two
3047 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3060 rm -rf conftest.one conftest.two conftest.dir
3063 if test "${ac_cv_path_install+set}" = set; then
3064 INSTALL
=$ac_cv_path_install
3066 # As a last resort, use the slow shell script. Don't cache a
3067 # value for INSTALL within a source directory, because that will
3068 # break other packages using the cache if that directory is
3069 # removed, or if the value is a relative name.
3070 INSTALL
=$ac_install_sh
3073 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3074 $as_echo "$INSTALL" >&6; }
3076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3077 # It thinks the first close brace ends the variable substitution.
3078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3082 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3085 ac_cpp
='$CPP $CPPFLAGS'
3086 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3089 if test -n "$ac_tool_prefix"; then
3090 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3091 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3092 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if test "${ac_cv_prog_CC+set}" = set; then
3095 $as_echo_n "(cached) " >&6
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC
="$CC" # Let the user override the test.
3100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3104 test -z "$as_dir" && as_dir
=.
3105 for ac_exec_ext
in '' $ac_executable_extensions; do
3106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 if test -n "$CC"; then
3119 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3120 $as_echo "$CC" >&6; }
3122 { $as_echo "$as_me:$LINENO: result: no" >&5
3123 $as_echo "no" >&6; }
3128 if test -z "$ac_cv_prog_CC"; then
3130 # Extract the first word of "gcc", so it can be a program name with args.
3131 set dummy gcc
; ac_word
=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir
=.
3145 for ac_exec_ext
in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_ac_ct_CC
="gcc"
3148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3162 { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3166 if test "x$ac_ct_CC" = x
; then
3169 case $cross_compiling:$ac_tool_warned in
3171 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned
=yes ;;
3181 if test -z "$CC"; then
3182 if test -n "$ac_tool_prefix"; then
3183 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3184 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if test "${ac_cv_prog_CC+set}" = set; then
3188 $as_echo_n "(cached) " >&6
3190 if test -n "$CC"; then
3191 ac_cv_prog_CC
="$CC" # Let the user override the test.
3193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir
=.
3198 for ac_exec_ext
in '' $ac_executable_extensions; do
3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 if test -n "$CC"; then
3212 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3215 { $as_echo "$as_me:$LINENO: result: no" >&5
3216 $as_echo "no" >&6; }
3222 if test -z "$CC"; then
3223 # Extract the first word of "cc", so it can be a program name with args.
3224 set dummy cc
; ac_word
=$2
3225 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if test "${ac_cv_prog_CC+set}" = set; then
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$CC"; then
3231 ac_cv_prog_CC
="$CC" # Let the user override the test.
3234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir
=.
3239 for ac_exec_ext
in '' $ac_executable_extensions; do
3240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3242 ac_prog_rejected
=yes
3246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 if test $ac_prog_rejected = yes; then
3254 # We found a bogon in the path, so make sure we never use it.
3255 set dummy
$ac_cv_prog_CC
3257 if test $# != 0; then
3258 # We chose a different compiler from the bogus one.
3259 # However, it has the same basename, so the bogon will be chosen
3260 # first if we set CC to just the basename; use the full file name.
3262 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3268 if test -n "$CC"; then
3269 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3272 { $as_echo "$as_me:$LINENO: result: no" >&5
3273 $as_echo "no" >&6; }
3278 if test -z "$CC"; then
3279 if test -n "$ac_tool_prefix"; then
3280 for ac_prog
in cl.exe
3282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3283 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3284 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if test "${ac_cv_prog_CC+set}" = set; then
3287 $as_echo_n "(cached) " >&6
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC
="$CC" # Let the user override the test.
3292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir
=.
3297 for ac_exec_ext
in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3300 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 if test -n "$CC"; then
3311 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3312 $as_echo "$CC" >&6; }
3314 { $as_echo "$as_me:$LINENO: result: no" >&5
3315 $as_echo "no" >&6; }
3319 test -n "$CC" && break
3322 if test -z "$CC"; then
3324 for ac_prog
in cl.exe
3326 # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy
$ac_prog; ac_word
=$2
3328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3331 $as_echo_n "(cached) " >&6
3333 if test -n "$ac_ct_CC"; then
3334 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir
=.
3341 for ac_exec_ext
in '' $ac_executable_extensions; do
3342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343 ac_cv_prog_ac_ct_CC
="$ac_prog"
3344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3354 if test -n "$ac_ct_CC"; then
3355 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3356 $as_echo "$ac_ct_CC" >&6; }
3358 { $as_echo "$as_me:$LINENO: result: no" >&5
3359 $as_echo "no" >&6; }
3363 test -n "$ac_ct_CC" && break
3366 if test "x$ac_ct_CC" = x
; then
3369 case $cross_compiling:$ac_tool_warned in
3371 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3373 ac_tool_warned
=yes ;;
3382 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3385 See \`config.log' for more details." >&5
3386 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3387 See \`config.log' for more details." >&2;}
3388 { (exit 1); exit 1; }; }; }
3390 # Provide some information about the compiler.
3391 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3394 { (ac_try
="$ac_compiler --version >&5"
3396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3400 $as_echo "$ac_try_echo") >&5
3401 (eval "$ac_compiler --version >&5") 2>&5
3403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }
3405 { (ac_try="$ac_compiler -v >&5"
3407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3408 *) ac_try_echo
=$ac_try;;
3410 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3411 $as_echo "$ac_try_echo") >&5
3412 (eval "$ac_compiler -v >&5") 2>&5
3414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }
3416 { (ac_try
="$ac_compiler -V >&5"
3418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_compiler -V >&5") 2>&5
3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3443 ac_clean_files_save=$ac_clean_files
3444 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3445 # Try to create an executable without -o first, disregard a.out.
3446 # It will help us diagnose broken compilers, and finding out an intuition
3448 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3449 $as_echo_n "checking for C compiler default output file name... " >&6; }
3450 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3452 # The possible output files:
3453 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3456 for ac_file in $ac_files
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3460 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3465 if { (ac_try="$ac_link_default"
3467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3468 *) ac_try_echo
=$ac_try;;
3470 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3471 $as_echo "$ac_try_echo") >&5
3472 (eval "$ac_link_default") 2>&5
3474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; then
3476 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3477 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3478 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3479 # so that the user can short-circuit this test for compilers unknown to
3481 for ac_file
in $ac_files ''
3483 test -f "$ac_file" ||
continue
3485 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3488 # We found the default executable, but exeext='' is most
3492 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3494 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3496 # We set ac_cv_exeext here because the later test for it is not
3497 # safe: cross compilers may not add the suffix if given an `-o'
3498 # argument, so we may need to know it at that point already.
3499 # Even if this section looks crufty: it has the advantage of
3506 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3512 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3513 $as_echo "$ac_file" >&6; }
3514 if test -z "$ac_file"; then
3515 $as_echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.
$ac_ext >&5
3518 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3521 See \`config.log' for more details." >&5
3522 $as_echo "$as_me: error: C compiler cannot create executables
3523 See \`config.log' for more details." >&2;}
3524 { (exit 77); exit 77; }; }; }
3527 ac_exeext
=$ac_cv_exeext
3529 # Check that the compiler produces executables we can run. If not, either
3530 # the compiler is broken, or we cross compile.
3531 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3532 $as_echo_n "checking whether the C compiler works... " >&6; }
3533 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3534 # If not cross compiling, check that we can run a simple program.
3535 if test "$cross_compiling" != yes; then
3536 if { ac_try
='./$ac_file'
3537 { (case "(($ac_try" in
3538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3542 $as_echo "$ac_try_echo") >&5
3543 (eval "$ac_try") 2>&5
3545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3549 if test "$cross_compiling" = maybe; then
3552 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3555 If you meant to cross compile
, use \
`--host'.
3556 See \`config.log
' for more details." >&5
3557 $as_echo "$as_me: error: cannot run C compiled programs.
3558 If you meant to cross compile, use \`--host'.
3559 See \
`config.log' for more details." >&2;}
3560 { (exit 1); exit 1; }; }; }
3564 { $as_echo "$as_me:$LINENO: result: yes" >&5
3565 $as_echo "yes" >&6; }
3567 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3568 ac_clean_files=$ac_clean_files_save
3569 # Check that the compiler produces executables we can run. If not, either
3570 # the compiler is broken, or we cross compile.
3571 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3572 $as_echo_n "checking whether we are cross compiling... " >&6; }
3573 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3574 $as_echo "$cross_compiling" >&6; }
3576 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3577 $as_echo_n "checking for suffix of executables... " >&6; }
3578 if { (ac_try="$ac_link"
3580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3581 *) ac_try_echo
=$ac_try;;
3583 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3584 $as_echo "$ac_try_echo") >&5
3585 (eval "$ac_link") 2>&5
3587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; then
3589 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3590 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3591 # work properly (i.e., refer to `conftest.exe'), while it won't with
3593 for ac_file
in conftest.exe conftest conftest.
*; do
3594 test -f "$ac_file" ||
continue
3596 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3597 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3603 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3606 See \`config.log' for more details." >&5
3607 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3608 See \`config.log' for more details." >&2;}
3609 { (exit 1); exit 1; }; }; }
3612 rm -f conftest
$ac_cv_exeext
3613 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3614 $as_echo "$ac_cv_exeext" >&6; }
3616 rm -f conftest.
$ac_ext
3617 EXEEXT
=$ac_cv_exeext
3619 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3620 $as_echo_n "checking for suffix of object files... " >&6; }
3621 if test "${ac_cv_objext+set}" = set; then
3622 $as_echo_n "(cached) " >&6
3624 cat >conftest.
$ac_ext <<_ACEOF
3627 cat confdefs.h
>>conftest.
$ac_ext
3628 cat >>conftest.
$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3639 rm -f conftest.o conftest.obj
3640 if { (ac_try
="$ac_compile"
3642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647 (eval "$ac_compile") 2>&5
3649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; then
3651 for ac_file in conftest.o conftest.obj conftest.*; do
3652 test -f "$ac_file" || continue;
3654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3655 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3660 $as_echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3663 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3666 See \
`config.log' for more details." >&5
3667 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3668 See \`config.log
' for more details." >&2;}
3669 { (exit 1); exit 1; }; }; }
3672 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3674 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3675 $as_echo "$ac_cv_objext" >&6; }
3676 OBJEXT=$ac_cv_objext
3678 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3679 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3680 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3681 $as_echo_n "(cached) " >&6
3683 cat >conftest.$ac_ext <<_ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708 $as_echo "$ac_try_echo") >&5
3709 (eval "$ac_compile") 2>conftest.er1
3711 grep -v '^
*+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } && {
3716 test -z "$ac_c_werror_flag" ||
3717 test ! -s conftest.err
3718 } && test -s conftest.$ac_objext; then
3721 $as_echo "$as_me: failed program was:" >&5
3722 sed 's
/^
/|
/' conftest.$ac_ext >&5
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3731 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3732 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3733 if test $ac_compiler_gnu = yes; then
3738 ac_test_CFLAGS=${CFLAGS+set}
3739 ac_save_CFLAGS=$CFLAGS
3740 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3741 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3742 if test "${ac_cv_prog_cc_g+set}" = set; then
3743 $as_echo_n "(cached) " >&6
3745 ac_save_c_werror_flag=$ac_c_werror_flag
3746 ac_c_werror_flag=yes
3749 cat >conftest.$ac_ext <<_ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3764 rm -f conftest.$ac_objext
3765 if { (ac_try="$ac_compile"
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3771 $as_echo "$ac_try_echo") >&5
3772 (eval "$ac_compile") 2>conftest.er1
3774 grep -v '^
*+' conftest.er1 >conftest.err
3776 cat conftest.err >&5
3777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest.$ac_objext; then
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's
/^
/|
/' conftest.$ac_ext >&5
3788 cat >conftest.$ac_ext <<_ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3803 rm -f conftest.$ac_objext
3804 if { (ac_try="$ac_compile"
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3810 $as_echo "$ac_try_echo") >&5
3811 (eval "$ac_compile") 2>conftest.er1
3813 grep -v '^
*+' conftest.er1 >conftest.err
3815 cat conftest.err >&5
3816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } && {
3818 test -z "$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3820 } && test -s conftest.$ac_objext; then
3823 $as_echo "$as_me: failed program was:" >&5
3824 sed 's
/^
/|
/' conftest.$ac_ext >&5
3826 ac_c_werror_flag=$ac_save_c_werror_flag
3828 cat >conftest.$ac_ext <<_ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3843 rm -f conftest.$ac_objext
3844 if { (ac_try="$ac_compile"
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3850 $as_echo "$ac_try_echo") >&5
3851 (eval "$ac_compile") 2>conftest.er1
3853 grep -v '^
*+' conftest.er1 >conftest.err
3855 cat conftest.err >&5
3856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } && {
3858 test -z "$ac_c_werror_flag" ||
3859 test ! -s conftest.err
3860 } && test -s conftest.$ac_objext; then
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's
/^
/|
/' conftest.$ac_ext >&5
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 ac_c_werror_flag=$ac_save_c_werror_flag
3878 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3879 $as_echo "$ac_cv_prog_cc_g" >&6; }
3880 if test "$ac_test_CFLAGS" = set; then
3881 CFLAGS=$ac_save_CFLAGS
3882 elif test $ac_cv_prog_cc_g = yes; then
3883 if test "$GCC" = yes; then
3889 if test "$GCC" = yes; then
3895 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3896 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3897 if test "${ac_cv_prog_cc_c89+set}" = set; then
3898 $as_echo_n "(cached) " >&6
3900 ac_cv_prog_cc_c89=no
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3910 #include <sys/types.h>
3911 #include <sys/stat.h>
3912 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3913 struct buf
{ int x
; };
3914 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3915 static char
*e
(p
, i
)
3921 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3926 s
= g
(p
, va_arg
(v
,int
));
3931 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3932 function prototypes and stuff
, but not
'\xHH' hex character constants.
3933 These don
't provoke an error unfortunately, instead are silently treated
3934 as 'x
'. The following induces an error, until -std is added to get
3935 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3936 array size at least. It's necessary to
write '\x00'==0 to get something
3937 that
's true only with -std. */
3938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3940 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3941 inside strings and character constants. */
3943 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3945 int test (int i, double x);
3946 struct s1 {int (*f) (int a);};
3947 struct s2 {int (*f) (double a);};
3948 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3954 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3959 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3962 CC="$ac_save_CC $ac_arg"
3963 rm -f conftest.$ac_objext
3964 if { (ac_try="$ac_compile"
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3970 $as_echo "$ac_try_echo") >&5
3971 (eval "$ac_compile") 2>conftest.er1
3973 grep -v '^
*+' conftest.er1 >conftest.err
3975 cat conftest.err >&5
3976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } && {
3978 test -z "$ac_c_werror_flag" ||
3979 test ! -s conftest.err
3980 } && test -s conftest.$ac_objext; then
3981 ac_cv_prog_cc_c89=$ac_arg
3983 $as_echo "$as_me: failed program was:" >&5
3984 sed 's
/^
/|
/' conftest.$ac_ext >&5
3989 rm -f core conftest.err conftest.$ac_objext
3990 test "x$ac_cv_prog_cc_c89" != "xno" && break
3992 rm -f conftest.$ac_ext
3997 case "x$ac_cv_prog_cc_c89" in
3999 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4002 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4005 CC="$CC $ac_cv_prog_cc_c89"
4006 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4014 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016 DEPDIR="${am__leading_dot}deps"
4018 ac_config_commands="$ac_config_commands depfiles"
4021 am_make=${MAKE-make}
4022 cat > confinc << 'END
'
4024 @echo this is the am__doit target
4027 # If we don't
find an include directive
, just comment out the code.
4028 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4029 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4033 # First try GNU make style include.
4034 echo "include confinc" > confmf
4035 # Ignore all kinds of additional output from `make'.
4036 case `$am_make -s -f confmf 2> /dev/null` in #(
4037 *the\ am__doit\ target
*)
4043 # Now try BSD make style include.
4044 if test "$am__include" = "#"; then
4045 echo '.include "confinc"' > confmf
4046 case `$am_make -s -f confmf 2> /dev/null` in #(
4047 *the\ am__doit\ target
*)
4048 am__include
=.include
4056 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4057 $as_echo "$_am_result" >&6; }
4058 rm -f confinc confmf
4060 # Check whether --enable-dependency-tracking was given.
4061 if test "${enable_dependency_tracking+set}" = set; then
4062 enableval
=$enable_dependency_tracking;
4065 if test "x$enable_dependency_tracking" != xno
; then
4066 am_depcomp
="$ac_aux_dir/depcomp"
4069 if test "x$enable_dependency_tracking" != xno; then
4079 depcc
="$CC" am_compiler_list
=
4081 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4082 $as_echo_n "checking dependency style of $depcc... " >&6; }
4083 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4084 $as_echo_n "(cached) " >&6
4086 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4087 # We make a subdir and do the tests there. Otherwise we can end up
4088 # making bogus files that we don't know about and never remove. For
4089 # instance it was reported that on HP-UX the gcc test will end up
4090 # making a dummy file named `D' -- because `-MD' means `put the output
4093 # Copy depcomp to subdir because otherwise we won't find it if we're
4094 # using a relative directory.
4095 cp "$am_depcomp" conftest.dir
4097 # We will build objects and dependencies in a subdirectory because
4098 # it helps to detect inapplicable dependency modes. For instance
4099 # both Tru64's cc and ICC support -MD to output dependencies as a
4100 # side effect of compilation, but ICC will put the dependencies in
4101 # the current directory while Tru64 will put them in the object
4105 am_cv_CC_dependencies_compiler_type
=none
4106 if test "$am_compiler_list" = ""; then
4107 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4110 case " $depcc " in #(
4111 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4114 for depmode
in $am_compiler_list; do
4115 # Setup a source with many dependencies, because some compilers
4116 # like to wrap large dependency lists on column 80 (with \), and
4117 # we should not choose a depcomp mode which is confused by this.
4119 # We need to recreate these files for each test, as the compiler may
4120 # overwrite some of them when testing with obscure command lines.
4121 # This happens at least with the AIX C compiler.
4123 for i
in 1 2 3 4 5 6; do
4124 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4125 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4126 # Solaris 8's {/usr,}/bin/sh.
4127 touch sub
/conftst
$i.h
4129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4131 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4132 # mode. It turns out that the SunPro C++ compiler does not properly
4133 # handle `-M -o', and we need to detect this. Also, some Intel
4134 # versions had trouble with output in subdirs
4135 am__obj
=sub
/conftest.
${OBJEXT-o}
4136 am__minus_obj
="-o $am__obj"
4139 # This depmode causes a compiler race in universal mode.
4140 test "$am__universal" = false ||
continue
4143 # after this tag, mechanisms are not by side-effect, so they'll
4144 # only be used when explicitly requested
4145 if test "x$enable_dependency_tracking" = xyes
; then
4151 msvisualcpp | msvcmsys
)
4152 # This compiler won't grok `-c -o', but also, the minuso test has
4153 # not run yet. These depmodes are late enough in the game, and
4154 # so weak that their functioning should not be impacted.
4155 am__obj
=conftest.
${OBJEXT-o}
4160 if depmode
=$depmode \
4161 source=sub
/conftest.c object
=$am__obj \
4162 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4163 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4164 >/dev
/null
2>conftest.err
&&
4165 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4166 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4167 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4168 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4169 # icc doesn't choke on unknown options, it will just issue warnings
4170 # or remarks (even with -Werror). So we grep stderr for any message
4171 # that says an option was ignored or not supported.
4172 # When given -MP, icc 7.0 and 7.1 complain thusly:
4173 # icc: Command line warning: ignoring option '-M'; no argument required
4174 # The diagnosis changed in icc 8.0:
4175 # icc: Command line remark: option '-MP' not supported
4176 if (grep 'ignoring option' conftest.err ||
4177 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4178 am_cv_CC_dependencies_compiler_type
=$depmode
4187 am_cv_CC_dependencies_compiler_type
=none
4191 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4192 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4193 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4196 test "x$enable_dependency_tracking" != xno \
4197 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4199 am__fastdepCC_FALSE
='#'
4201 am__fastdepCC_TRUE
='#'
4202 am__fastdepCC_FALSE
=
4208 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4209 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4214 macro_version
='2.2.6b'
4215 macro_revision
='1.3017'
4229 ltmain
="$ac_aux_dir/ltmain.sh"
4231 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4232 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4233 if test "${ac_cv_path_SED+set}" = set; then
4234 $as_echo_n "(cached) " >&6
4236 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4237 for ac_i
in 1 2 3 4 5 6 7; do
4238 ac_script
="$ac_script$as_nl$ac_script"
4240 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4241 $as_unset ac_script || ac_script
=
4242 if test -z "$SED"; then
4243 ac_path_SED_found
=false
4244 # Loop through the user's path and test for each of PROGNAME-LIST
4245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4249 test -z "$as_dir" && as_dir
=.
4250 for ac_prog
in sed gsed
; do
4251 for ac_exec_ext
in '' $ac_executable_extensions; do
4252 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4253 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4254 # Check for GNU ac_path_SED and select it if it is found.
4255 # Check for GNU $ac_path_SED
4256 case `"$ac_path_SED" --version 2>&1` in
4258 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4261 $as_echo_n 0123456789 >"conftest.in"
4264 cat "conftest.in" "conftest.in" >"conftest.tmp"
4265 mv "conftest.tmp" "conftest.in"
4266 cp "conftest.in" "conftest.nl"
4267 $as_echo '' >> "conftest.nl"
4268 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4269 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4270 ac_count
=`expr $ac_count + 1`
4271 if test $ac_count -gt ${ac_path_SED_max-0}; then
4272 # Best one so far, save it but keep looking for a better one
4273 ac_cv_path_SED
="$ac_path_SED"
4274 ac_path_SED_max
=$ac_count
4276 # 10*(2^10) chars as input seems more than enough
4277 test $ac_count -gt 10 && break
4279 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4282 $ac_path_SED_found && break 3
4287 if test -z "$ac_cv_path_SED"; then
4288 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4289 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4290 { (exit 1); exit 1; }; }
4297 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4298 $as_echo "$ac_cv_path_SED" >&6; }
4299 SED
="$ac_cv_path_SED"
4302 test -z "$SED" && SED
=sed
4303 Xsed
="$SED -e 1s/^X//"
4315 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4316 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4317 if test "${ac_cv_path_GREP+set}" = set; then
4318 $as_echo_n "(cached) " >&6
4320 if test -z "$GREP"; then
4321 ac_path_GREP_found
=false
4322 # Loop through the user's path and test for each of PROGNAME-LIST
4323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4324 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4327 test -z "$as_dir" && as_dir
=.
4328 for ac_prog
in grep ggrep
; do
4329 for ac_exec_ext
in '' $ac_executable_extensions; do
4330 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4331 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4332 # Check for GNU ac_path_GREP and select it if it is found.
4333 # Check for GNU $ac_path_GREP
4334 case `"$ac_path_GREP" --version 2>&1` in
4336 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4339 $as_echo_n 0123456789 >"conftest.in"
4342 cat "conftest.in" "conftest.in" >"conftest.tmp"
4343 mv "conftest.tmp" "conftest.in"
4344 cp "conftest.in" "conftest.nl"
4345 $as_echo 'GREP' >> "conftest.nl"
4346 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4347 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4348 ac_count
=`expr $ac_count + 1`
4349 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4350 # Best one so far, save it but keep looking for a better one
4351 ac_cv_path_GREP
="$ac_path_GREP"
4352 ac_path_GREP_max
=$ac_count
4354 # 10*(2^10) chars as input seems more than enough
4355 test $ac_count -gt 10 && break
4357 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4360 $ac_path_GREP_found && break 3
4365 if test -z "$ac_cv_path_GREP"; then
4366 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4367 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4368 { (exit 1); exit 1; }; }
4371 ac_cv_path_GREP
=$GREP
4375 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4376 $as_echo "$ac_cv_path_GREP" >&6; }
4377 GREP
="$ac_cv_path_GREP"
4380 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4381 $as_echo_n "checking for egrep... " >&6; }
4382 if test "${ac_cv_path_EGREP+set}" = set; then
4383 $as_echo_n "(cached) " >&6
4385 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4386 then ac_cv_path_EGREP
="$GREP -E"
4388 if test -z "$EGREP"; then
4389 ac_path_EGREP_found
=false
4390 # Loop through the user's path and test for each of PROGNAME-LIST
4391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4392 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4395 test -z "$as_dir" && as_dir
=.
4396 for ac_prog
in egrep; do
4397 for ac_exec_ext
in '' $ac_executable_extensions; do
4398 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4399 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4400 # Check for GNU ac_path_EGREP and select it if it is found.
4401 # Check for GNU $ac_path_EGREP
4402 case `"$ac_path_EGREP" --version 2>&1` in
4404 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4407 $as_echo_n 0123456789 >"conftest.in"
4410 cat "conftest.in" "conftest.in" >"conftest.tmp"
4411 mv "conftest.tmp" "conftest.in"
4412 cp "conftest.in" "conftest.nl"
4413 $as_echo 'EGREP' >> "conftest.nl"
4414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4415 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4416 ac_count
=`expr $ac_count + 1`
4417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4418 # Best one so far, save it but keep looking for a better one
4419 ac_cv_path_EGREP
="$ac_path_EGREP"
4420 ac_path_EGREP_max
=$ac_count
4422 # 10*(2^10) chars as input seems more than enough
4423 test $ac_count -gt 10 && break
4425 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4428 $ac_path_EGREP_found && break 3
4433 if test -z "$ac_cv_path_EGREP"; then
4434 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4435 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4436 { (exit 1); exit 1; }; }
4439 ac_cv_path_EGREP
=$EGREP
4444 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4445 $as_echo "$ac_cv_path_EGREP" >&6; }
4446 EGREP
="$ac_cv_path_EGREP"
4449 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4450 $as_echo_n "checking for fgrep... " >&6; }
4451 if test "${ac_cv_path_FGREP+set}" = set; then
4452 $as_echo_n "(cached) " >&6
4454 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4455 then ac_cv_path_FGREP
="$GREP -F"
4457 if test -z "$FGREP"; then
4458 ac_path_FGREP_found
=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4461 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4464 test -z "$as_dir" && as_dir
=.
4465 for ac_prog
in fgrep
; do
4466 for ac_exec_ext
in '' $ac_executable_extensions; do
4467 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4468 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4469 # Check for GNU ac_path_FGREP and select it if it is found.
4470 # Check for GNU $ac_path_FGREP
4471 case `"$ac_path_FGREP" --version 2>&1` in
4473 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4476 $as_echo_n 0123456789 >"conftest.in"
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'FGREP' >> "conftest.nl"
4483 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4484 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4485 ac_count
=`expr $ac_count + 1`
4486 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_FGREP
="$ac_path_FGREP"
4489 ac_path_FGREP_max
=$ac_count
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4494 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4497 $ac_path_FGREP_found && break 3
4502 if test -z "$ac_cv_path_FGREP"; then
4503 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4504 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4505 { (exit 1); exit 1; }; }
4508 ac_cv_path_FGREP
=$FGREP
4513 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4514 $as_echo "$ac_cv_path_FGREP" >&6; }
4515 FGREP
="$ac_cv_path_FGREP"
4518 test -z "$GREP" && GREP
=grep
4538 # Check whether --with-gnu-ld was given.
4539 if test "${with_gnu_ld+set}" = set; then
4540 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4546 if test "$GCC" = yes; then
4547 # Check if gcc -print-prog-name=ld gives a path.
4548 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4549 $as_echo_n "checking for ld used by $CC... " >&6; }
4552 # gcc leaves a trailing carriage return which upsets mingw
4553 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4555 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4558 # Accept absolute paths.
4560 re_direlt
='/[^/][^/]*/\.\./'
4561 # Canonicalize the pathname of ld
4562 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4563 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4564 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4566 test -z "$LD" && LD
="$ac_prog"
4569 # If it fails, then pretend we aren't using GCC.
4573 # If it is relative, then search for the first ld in PATH.
4577 elif test "$with_gnu_ld" = yes; then
4578 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4579 $as_echo_n "checking for GNU ld... " >&6; }
4581 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4582 $as_echo_n "checking for non-GNU ld... " >&6; }
4584 if test "${lt_cv_path_LD+set}" = set; then
4585 $as_echo_n "(cached) " >&6
4587 if test -z "$LD"; then
4588 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4589 for ac_dir
in $PATH; do
4591 test -z "$ac_dir" && ac_dir
=.
4592 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4593 lt_cv_path_LD
="$ac_dir/$ac_prog"
4594 # Check to see if the program is GNU ld. I'd rather use --version,
4595 # but apparently some variants of GNU ld only accept -v.
4596 # Break only if it was the GNU/non-GNU ld that we prefer.
4597 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4598 *GNU
* |
*'with BFD'*)
4599 test "$with_gnu_ld" != no
&& break
4602 test "$with_gnu_ld" != yes && break
4609 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4614 if test -n "$LD"; then
4615 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4616 $as_echo "$LD" >&6; }
4618 { $as_echo "$as_me:$LINENO: result: no" >&5
4619 $as_echo "no" >&6; }
4621 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4622 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4623 { (exit 1); exit 1; }; }
4624 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4625 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4626 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4627 $as_echo_n "(cached) " >&6
4629 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4630 case `$LD -v 2>&1 </dev/null` in
4631 *GNU
* |
*'with BFD'*)
4632 lt_cv_prog_gnu_ld
=yes
4635 lt_cv_prog_gnu_ld
=no
4639 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4640 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4641 with_gnu_ld
=$lt_cv_prog_gnu_ld
4651 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4652 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4653 if test "${lt_cv_path_NM+set}" = set; then
4654 $as_echo_n "(cached) " >&6
4656 if test -n "$NM"; then
4657 # Let the user override the test.
4660 lt_nm_to_check
="${ac_tool_prefix}nm"
4661 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4662 lt_nm_to_check
="$lt_nm_to_check nm"
4664 for lt_tmp_nm
in $lt_nm_to_check; do
4665 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4666 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4668 test -z "$ac_dir" && ac_dir
=.
4669 tmp_nm
="$ac_dir/$lt_tmp_nm"
4670 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4671 # Check to see if the nm accepts a BSD-compat flag.
4672 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4673 # nm: unknown option "B" ignored
4674 # Tru64's nm complains that /dev/null is an invalid object file
4675 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4676 */dev
/null
* |
*'Invalid file or object type'*)
4677 lt_cv_path_NM
="$tmp_nm -B"
4681 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4683 lt_cv_path_NM
="$tmp_nm -p"
4687 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4688 continue # so that we can try to find one that supports BSD flags
4697 : ${lt_cv_path_NM=no}
4700 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4701 $as_echo "$lt_cv_path_NM" >&6; }
4702 if test "$lt_cv_path_NM" != "no"; then
4705 # Didn't find any BSD compatible name lister, look for dumpbin.
4706 if test -n "$ac_tool_prefix"; then
4707 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4710 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4711 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4714 $as_echo_n "(cached) " >&6
4716 if test -n "$DUMPBIN"; then
4717 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4723 test -z "$as_dir" && as_dir
=.
4724 for ac_exec_ext
in '' $ac_executable_extensions; do
4725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4726 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 DUMPBIN
=$ac_cv_prog_DUMPBIN
4737 if test -n "$DUMPBIN"; then
4738 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4739 $as_echo "$DUMPBIN" >&6; }
4741 { $as_echo "$as_me:$LINENO: result: no" >&5
4742 $as_echo "no" >&6; }
4746 test -n "$DUMPBIN" && break
4749 if test -z "$DUMPBIN"; then
4750 ac_ct_DUMPBIN
=$DUMPBIN
4751 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4753 # Extract the first word of "$ac_prog", so it can be a program name with args.
4754 set dummy
$ac_prog; ac_word
=$2
4755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4758 $as_echo_n "(cached) " >&6
4760 if test -n "$ac_ct_DUMPBIN"; then
4761 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir
=.
4768 for ac_exec_ext
in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4781 if test -n "$ac_ct_DUMPBIN"; then
4782 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4783 $as_echo "$ac_ct_DUMPBIN" >&6; }
4785 { $as_echo "$as_me:$LINENO: result: no" >&5
4786 $as_echo "no" >&6; }
4790 test -n "$ac_ct_DUMPBIN" && break
4793 if test "x$ac_ct_DUMPBIN" = x
; then
4796 case $cross_compiling:$ac_tool_warned in
4798 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned
=yes ;;
4802 DUMPBIN
=$ac_ct_DUMPBIN
4807 if test "$DUMPBIN" != ":"; then
4811 test -z "$NM" && NM
=nm
4818 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4819 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4820 if test "${lt_cv_nm_interface+set}" = set; then
4821 $as_echo_n "(cached) " >&6
4823 lt_cv_nm_interface
="BSD nm"
4824 echo "int some_variable = 0;" > conftest.
$ac_ext
4825 (eval echo "\"\$as_me:4825: $ac_compile\"" >&5)
4826 (eval "$ac_compile" 2>conftest.err
)
4827 cat conftest.err
>&5
4828 (eval echo "\"\$as_me:4828: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4829 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4830 cat conftest.err
>&5
4831 (eval echo "\"\$as_me:4831: output\"" >&5)
4832 cat conftest.out
>&5
4833 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4834 lt_cv_nm_interface
="MS dumpbin"
4838 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4839 $as_echo "$lt_cv_nm_interface" >&6; }
4841 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4842 $as_echo_n "checking whether ln -s works... " >&6; }
4844 if test "$LN_S" = "ln -s"; then
4845 { $as_echo "$as_me:$LINENO: result: yes" >&5
4846 $as_echo "yes" >&6; }
4848 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4849 $as_echo "no, using $LN_S" >&6; }
4852 # find the maximum length of command line arguments
4853 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4854 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4855 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4856 $as_echo_n "(cached) " >&6
4863 # On DJGPP, this test can blow up pretty badly due to problems in libc
4864 # (any single argument exceeding 2000 bytes causes a buffer overrun
4865 # during glob expansion). Even if it were fixed, the result of this
4866 # check would be larger than it should be.
4867 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4871 # Under GNU Hurd, this test is not required because there is
4872 # no limit to the length of command line arguments.
4873 # Libtool will interpret -1 as no limit whatsoever
4874 lt_cv_sys_max_cmd_len
=-1;
4877 cygwin
* | mingw
* | cegcc
*)
4878 # On Win9x/ME, this test blows up -- it succeeds, but takes
4879 # about 5 minutes as the teststring grows exponentially.
4880 # Worse, since 9x/ME are not pre-emptively multitasking,
4881 # you end up with a "frozen" computer, even though with patience
4882 # the test eventually succeeds (with a max line length of 256k).
4883 # Instead, let's just punt: use the minimum linelength reported by
4884 # all of the supported platforms: 8192 (on NT/2K/XP).
4885 lt_cv_sys_max_cmd_len
=8192;
4889 # On AmigaOS with pdksh, this test takes hours, literally.
4890 # So we just punt and use a minimum line length of 8192.
4891 lt_cv_sys_max_cmd_len
=8192;
4894 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4895 # This has been around since 386BSD, at least. Likely further.
4896 if test -x /sbin
/sysctl
; then
4897 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4898 elif test -x /usr
/sbin
/sysctl
; then
4899 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4901 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4903 # And add a safety zone
4904 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4905 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4909 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4910 lt_cv_sys_max_cmd_len
=196608
4914 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4915 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4916 # nice to cause kernel panics so lets avoid the loop below.
4917 # First set a reasonable default.
4918 lt_cv_sys_max_cmd_len
=16384
4920 if test -x /sbin
/sysconfig
; then
4921 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4922 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4927 lt_cv_sys_max_cmd_len
=102400
4929 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4930 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4931 if test -n "$kargmax"; then
4932 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4934 lt_cv_sys_max_cmd_len
=32768
4938 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4939 if test -n "$lt_cv_sys_max_cmd_len"; then
4940 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4941 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4943 # Make teststring a little bigger before we do anything with it.
4944 # a 1K string should be a reasonable start.
4945 for i
in 1 2 3 4 5 6 7 8 ; do
4946 teststring
=$teststring$teststring
4948 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4949 # If test is not a shell built-in, we'll probably end up computing a
4950 # maximum length that is only half of the actual maximum length, but
4952 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4953 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4954 test $i != 17 # 1/2 MB should be enough
4957 teststring
=$teststring$teststring
4959 # Only check the string length outside the loop.
4960 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4962 # Add a significant safety factor because C++ compilers can tack on
4963 # massive amounts of additional arguments before passing them to the
4964 # linker. It appears as though 1/2 is a usable value.
4965 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4972 if test -n $lt_cv_sys_max_cmd_len ; then
4973 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4974 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4976 { $as_echo "$as_me:$LINENO: result: none" >&5
4977 $as_echo "none" >&6; }
4979 max_cmd_len
=$lt_cv_sys_max_cmd_len
4990 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4991 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4992 # Try some XSI features
4995 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4997 && eval 'test $(( 1 + 1 )) -eq 2 \
4998 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5000 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
5001 $as_echo "$xsi_shell" >&6; }
5004 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
5005 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5007 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5009 && lt_shell_append=yes
5010 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
5011 $as_echo "$lt_shell_append" >&6; }
5014 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5024 # test EBCDIC or ASCII
5025 case `echo X|tr X '\101'` in
5026 A) # ASCII based system
5027 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5028 lt_SP2NL='tr \040 \012'
5029 lt_NL2SP='tr \015\012 \040\040'
5031 *) # EBCDIC based system
5032 lt_SP2NL='tr \100 \n'
5033 lt_NL2SP='tr \r\n \100\100'
5045 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
5046 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5047 if test "${lt_cv_ld_reload_flag+set}" = set; then
5048 $as_echo_n "(cached
) " >&6
5050 lt_cv_ld_reload_flag='-r'
5052 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
5053 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5054 reload_flag=$lt_cv_ld_reload_flag
5055 case $reload_flag in
5057 *) reload_flag=" $reload_flag" ;;
5059 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5062 if test "$GCC" = yes; then
5063 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5065 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5078 if test -n "$ac_tool_prefix"; then
5079 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5080 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5081 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5082 $as_echo_n "checking
for $ac_word...
" >&6; }
5083 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5084 $as_echo_n "(cached
) " >&6
5086 if test -n "$OBJDUMP"; then
5087 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5097 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5106 OBJDUMP=$ac_cv_prog_OBJDUMP
5107 if test -n "$OBJDUMP"; then
5108 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5109 $as_echo "$OBJDUMP" >&6; }
5111 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5112 $as_echo "no
" >&6; }
5117 if test -z "$ac_cv_prog_OBJDUMP"; then
5118 ac_ct_OBJDUMP=$OBJDUMP
5119 # Extract the first word of "objdump
", so it can be a program name with args.
5120 set dummy objdump; ac_word=$2
5121 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5122 $as_echo_n "checking
for $ac_word...
" >&6; }
5123 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5124 $as_echo_n "(cached
) " >&6
5126 if test -n "$ac_ct_OBJDUMP"; then
5127 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5137 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5146 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5147 if test -n "$ac_ct_OBJDUMP"; then
5148 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5149 $as_echo "$ac_ct_OBJDUMP" >&6; }
5151 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5152 $as_echo "no
" >&6; }
5155 if test "x
$ac_ct_OBJDUMP" = x; then
5158 case $cross_compiling:$ac_tool_warned in
5160 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5161 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5162 ac_tool_warned=yes ;;
5164 OBJDUMP=$ac_ct_OBJDUMP
5167 OBJDUMP="$ac_cv_prog_OBJDUMP"
5170 test -z "$OBJDUMP" && OBJDUMP=objdump
5180 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5181 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5182 if test "${lt_cv_deplibs_check_method+set}" = set; then
5183 $as_echo_n "(cached
) " >&6
5185 lt_cv_file_magic_cmd='$MAGIC_CMD'
5186 lt_cv_file_magic_test_file=
5187 lt_cv_deplibs_check_method='unknown'
5188 # Need to set the preceding variable on all platforms that support
5189 # interlibrary dependencies.
5190 # 'none' -- dependencies not supported.
5191 # `unknown' -- same as none, but documents that we really don't know.
5192 # 'pass_all' -- all dependencies passed with no checks.
5193 # 'test_compile' -- check by making test program.
5194 # 'file_magic [[regex]]' -- check by looking for files in library path
5195 # which responds to the $file_magic_cmd with a given extended regex.
5196 # If you have `file' or equivalent on your system and you're not sure
5197 # whether `pass_all' will *always* work, you probably want this one.
5201 lt_cv_deplibs_check_method=pass_all
5205 lt_cv_deplibs_check_method=pass_all
5209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5210 lt_cv_file_magic_cmd='/usr/bin/file -L'
5211 lt_cv_file_magic_test_file=/shlib/libc.so
5215 # func_win32_libid is a shell function defined in ltmain.sh
5216 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5217 lt_cv_file_magic_cmd='func_win32_libid'
5221 # Base MSYS/MinGW do not provide the 'file' command needed by
5222 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5223 # unless we find 'file', for example because we are cross-compiling.
5224 if ( file / ) >/dev/null 2>&1; then
5225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5226 lt_cv_file_magic_cmd='func_win32_libid'
5228 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5229 lt_cv_file_magic_cmd='$OBJDUMP -f'
5234 # use the weaker test based on 'objdump'. See mingw*.
5235 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5236 lt_cv_file_magic_cmd='$OBJDUMP -f'
5239 darwin* | rhapsody*)
5240 lt_cv_deplibs_check_method=pass_all
5243 freebsd* | dragonfly*)
5244 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5247 # Not sure whether the presence of OpenBSD here was a mistake.
5248 # Let's accept both of them until this is cleared up.
5249 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5250 lt_cv_file_magic_cmd=/usr/bin/file
5251 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5255 lt_cv_deplibs_check_method=pass_all
5260 lt_cv_deplibs_check_method=pass_all
5263 hpux10.20* | hpux11*)
5264 lt_cv_file_magic_cmd=/usr/bin/file
5267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5268 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5271 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]'
5272 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5275 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5276 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5282 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5286 irix5* | irix6* | nonstopux*)
5288 *-32|*"-32 ") libmagic=32-bit;;
5289 *-n32|*"-n32 ") libmagic=N32;;
5290 *-64|*"-64 ") libmagic=64-bit;;
5291 *) libmagic=never-match;;
5293 lt_cv_deplibs_check_method=pass_all
5296 # This must be Linux ELF.
5297 linux* | k*bsd*-gnu)
5298 lt_cv_deplibs_check_method=pass_all
5302 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5311 lt_cv_file_magic_cmd=/usr/bin/file
5312 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5316 lt_cv_deplibs_check_method=pass_all
5320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5327 osf3* | osf4* | osf5*)
5328 lt_cv_deplibs_check_method=pass_all
5332 lt_cv_deplibs_check_method=pass_all
5336 lt_cv_deplibs_check_method=pass_all
5339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5340 lt_cv_deplibs_check_method=pass_all
5344 case $host_vendor in
5346 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]'
5347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5350 lt_cv_deplibs_check_method=pass_all
5353 lt_cv_file_magic_cmd='/bin/file'
5354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5357 lt_cv_file_magic_cmd='/bin/file'
5358 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5359 lt_cv_file_magic_test_file=/lib/libc.so
5362 lt_cv_deplibs_check_method=pass_all
5365 lt_cv_deplibs_check_method=pass_all
5371 lt_cv_deplibs_check_method=pass_all
5376 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5377 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5378 file_magic_cmd=$lt_cv_file_magic_cmd
5379 deplibs_check_method=$lt_cv_deplibs_check_method
5380 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5393 if test -n "$ac_tool_prefix"; then
5394 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5395 set dummy ${ac_tool_prefix}ar; ac_word=$2
5396 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5397 $as_echo_n "checking
for $ac_word...
" >&6; }
5398 if test "${ac_cv_prog_AR+set}" = set; then
5399 $as_echo_n "(cached
) " >&6
5401 if test -n "$AR"; then
5402 ac_cv_prog_AR="$AR" # Let the user override the test.
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_prog_AR="${ac_tool_prefix}ar"
5412 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5422 if test -n "$AR"; then
5423 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5424 $as_echo "$AR" >&6; }
5426 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5427 $as_echo "no
" >&6; }
5432 if test -z "$ac_cv_prog_AR"; then
5434 # Extract the first word of "ar", so it can be a program name with args.
5435 set dummy ar; ac_word=$2
5436 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5437 $as_echo_n "checking
for $ac_word...
" >&6; }
5438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5439 $as_echo_n "(cached
) " >&6
5441 if test -n "$ac_ct_AR"; then
5442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_prog_ac_ct_AR="ar"
5452 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5462 if test -n "$ac_ct_AR"; then
5463 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5464 $as_echo "$ac_ct_AR" >&6; }
5466 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5467 $as_echo "no
" >&6; }
5470 if test "x
$ac_ct_AR" = x; then
5473 case $cross_compiling:$ac_tool_warned in
5475 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5476 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5477 ac_tool_warned=yes ;;
5485 test -z "$AR" && AR=ar
5486 test -z "$AR_FLAGS" && AR_FLAGS=cru
5498 if test -n "$ac_tool_prefix"; then
5499 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5500 set dummy ${ac_tool_prefix}strip; ac_word=$2
5501 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5502 $as_echo_n "checking
for $ac_word...
" >&6; }
5503 if test "${ac_cv_prog_STRIP+set}" = set; then
5504 $as_echo_n "(cached
) " >&6
5506 if test -n "$STRIP"; then
5507 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5517 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5526 STRIP=$ac_cv_prog_STRIP
5527 if test -n "$STRIP"; then
5528 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5529 $as_echo "$STRIP" >&6; }
5531 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5532 $as_echo "no
" >&6; }
5537 if test -z "$ac_cv_prog_STRIP"; then
5539 # Extract the first word of "strip
", so it can be a program name with args.
5540 set dummy strip; ac_word=$2
5541 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5542 $as_echo_n "checking
for $ac_word...
" >&6; }
5543 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5544 $as_echo_n "(cached
) " >&6
5546 if test -n "$ac_ct_STRIP"; then
5547 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_ac_ct_STRIP="strip
"
5557 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5567 if test -n "$ac_ct_STRIP"; then
5568 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5569 $as_echo "$ac_ct_STRIP" >&6; }
5571 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5572 $as_echo "no
" >&6; }
5575 if test "x
$ac_ct_STRIP" = x; then
5578 case $cross_compiling:$ac_tool_warned in
5580 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5581 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5582 ac_tool_warned=yes ;;
5587 STRIP="$ac_cv_prog_STRIP"
5590 test -z "$STRIP" && STRIP=:
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5600 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5601 $as_echo_n "checking
for $ac_word...
" >&6; }
5602 if test "${ac_cv_prog_RANLIB+set}" = set; then
5603 $as_echo_n "(cached
) " >&6
5605 if test -n "$RANLIB"; then
5606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5616 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5625 RANLIB=$ac_cv_prog_RANLIB
5626 if test -n "$RANLIB"; then
5627 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5628 $as_echo "$RANLIB" >&6; }
5630 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5631 $as_echo "no
" >&6; }
5636 if test -z "$ac_cv_prog_RANLIB"; then
5637 ac_ct_RANLIB=$RANLIB
5638 # Extract the first word of "ranlib
", so it can be a program name with args.
5639 set dummy ranlib; ac_word=$2
5640 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5641 $as_echo_n "checking
for $ac_word...
" >&6; }
5642 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5643 $as_echo_n "(cached
) " >&6
5645 if test -n "$ac_ct_RANLIB"; then
5646 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5656 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5666 if test -n "$ac_ct_RANLIB"; then
5667 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5668 $as_echo "$ac_ct_RANLIB" >&6; }
5670 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5671 $as_echo "no
" >&6; }
5674 if test "x
$ac_ct_RANLIB" = x; then
5677 case $cross_compiling:$ac_tool_warned in
5679 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5680 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5681 ac_tool_warned=yes ;;
5683 RANLIB=$ac_ct_RANLIB
5686 RANLIB="$ac_cv_prog_RANLIB"
5689 test -z "$RANLIB" && RANLIB=:
5696 # Determine commands to create old-style static archives.
5697 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5698 old_postinstall_cmds='chmod 644 $oldlib'
5699 old_postuninstall_cmds=
5701 if test -n "$RANLIB"; then
5704 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5707 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5710 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5746 # If no C compiler was specified, use CC.
5749 # If no C compiler flags were specified, use CFLAGS.
5750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5752 # Allow CC to be a program name with arguments.
5756 # Check for command to grab the raw symbol name followed by C symbol from nm.
5757 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5758 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5759 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5760 $as_echo_n "(cached
) " >&6
5763 # These are sane defaults that work on at least a few old systems.
5764 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5766 # Character class describing NM global symbol codes.
5767 symcode='[BCDEGRST]'
5769 # Regexp to match symbols that can be accessed directly from C.
5770 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5772 # Define system-specific variables.
5777 cygwin* | mingw* | pw32* | cegcc*)
5778 symcode='[ABCDGISTW]'
5781 if test "$host_cpu" = ia64; then
5782 symcode='[ABCDEGRST]'
5786 symcode='[BCDEGRST]'
5789 symcode='[BCDEGQRST]'
5800 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5808 # If we're using GNU nm, then use its standard symbol codes.
5809 case `$NM -V 2>&1` in
5810 *GNU* | *'with BFD'*)
5811 symcode='[ABCDGIRSTW]' ;;
5814 # Transform an extracted symbol line into a proper C declaration.
5815 # Some systems (esp. on ia64) link data and code symbols differently,
5816 # so use this general approach.
5817 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5819 # Transform an extracted symbol line into symbol name and symbol address
5820 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5821 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'"
5823 # Handle CRLF in mingw tool chain
5827 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5831 # Try without a prefix underscore, then with it.
5832 for ac_symprfx in "" "_
"; do
5834 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5835 symxfrm="\\1 $ac_symprfx\\2 \\2"
5837 # Write the raw and C identifiers.
5838 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5839 # Fake it for dumpbin and say T for any non-static function
5840 # and D for any global variable.
5841 # Also find C++ and __fastcall symbols from MSVC++,
5842 # which start with @ or ?.
5843 lt_cv_sys_global_symbol_pipe="$AWK '"\
5844 " {last_section=section; section=\$ 3};"\
5845 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5846 " \$ 0!~/External *\|/{next};"\
5847 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5848 " {if(hide[section]) next};"\
5849 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5850 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5851 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5852 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5853 " ' prfx
=^
$ac_symprfx"
5855 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5858 # Check to see that the pipe works correctly.
5862 cat > conftest.$ac_ext <<_LT_EOF
5867 void nm_test_func(void);
5868 void nm_test_func(void){}
5872 int main(){nm_test_var='a';nm_test_func();return(0);}
5875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876 (eval $ac_compile) 2>&5
5878 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5879 (exit $ac_status); }; then
5880 # Now try to grab the symbols.
5882 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5883 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5885 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5886 (exit $ac_status); } && test -s "$nlist"; then
5887 # Try sorting and uniquifying the output.
5888 if sort "$nlist" | uniq > "$nlist"T; then
5889 mv -f "$nlist"T "$nlist"
5894 # Make sure that we snagged all the symbols we need.
5895 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5896 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5897 cat <<_LT_EOF > conftest.$ac_ext
5903 # Now generate the symbol file.
5904 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5906 cat <<_LT_EOF >> conftest.$ac_ext
5908 /* The mapping between symbol names and symbols. */
5913 lt__PROGRAM__LTX_preloaded_symbols[] =
5915 { "@PROGRAM@
", (void *) 0 },
5917 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5918 cat <<\_LT_EOF >> conftest.$ac_ext
5922 /* This works around a problem in FreeBSD linker */
5923 #ifdef FREEBSD_WORKAROUND
5924 static const void *lt_preloaded_setup() {
5925 return lt__PROGRAM__LTX_preloaded_symbols;
5933 # Now try linking the two files.
5934 mv conftest.$ac_objext conftstm.$ac_objext
5935 lt_save_LIBS="$LIBS"
5936 lt_save_CFLAGS="$CFLAGS"
5937 LIBS="conftstm.
$ac_objext"
5938 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5940 (eval $ac_link) 2>&5
5942 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5943 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5946 LIBS="$lt_save_LIBS"
5947 CFLAGS="$lt_save_CFLAGS"
5949 echo "cannot
find nm_test_func
in $nlist" >&5
5952 echo "cannot
find nm_test_var
in $nlist" >&5
5955 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5958 echo "$progname: failed program was
:" >&5
5959 cat conftest.$ac_ext >&5
5961 rm -rf conftest* conftst*
5963 # Do not use the global_symbol_pipe unless it works.
5964 if test "$pipe_works" = yes; then
5967 lt_cv_sys_global_symbol_pipe=
5973 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5974 lt_cv_sys_global_symbol_to_cdecl=
5976 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5977 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
5978 $as_echo "failed
" >&6; }
5980 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
5981 $as_echo "ok
" >&6; }
6006 # Check whether --enable-libtool-lock was given.
6007 if test "${enable_libtool_lock+set}" = set; then
6008 enableval=$enable_libtool_lock;
6011 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6013 # Some flags need to be propagated to the compiler or linker for good
6017 # Find out which ABI we are using.
6018 echo 'int i;' > conftest.$ac_ext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020 (eval $ac_compile) 2>&5
6022 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6023 (exit $ac_status); }; then
6024 case `/usr/bin/file conftest.$ac_objext` in
6036 # Find out which ABI we are using.
6037 echo '#line 6037 "configure
"' > conftest.$ac_ext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039 (eval $ac_compile) 2>&5
6041 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6042 (exit $ac_status); }; then
6043 if test "$lt_cv_prog_gnu_ld" = yes; then
6044 case `/usr/bin/file conftest.$ac_objext` in
6046 LD="${LD-ld} -melf32bsmip"
6049 LD="${LD-ld} -melf32bmipn32"
6052 LD="${LD-ld} -melf64bmip"
6056 case `/usr/bin/file conftest.$ac_objext` in
6072 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6073 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6074 # Find out which ABI we are using.
6075 echo 'int i;' > conftest.$ac_ext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>&5
6079 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6080 (exit $ac_status); }; then
6081 case `/usr/bin/file conftest.o` in
6084 x86_64-*kfreebsd*-gnu)
6085 LD="${LD-ld} -m elf_i386_fbsd
"
6088 LD="${LD-ld} -m elf_i386
"
6090 ppc64-*linux*|powerpc64-*linux*)
6091 LD="${LD-ld} -m elf32ppclinux
"
6094 LD="${LD-ld} -m elf_s390
"
6097 LD="${LD-ld} -m elf32_sparc
"
6103 x86_64-*kfreebsd*-gnu)
6104 LD="${LD-ld} -m elf_x86_64_fbsd
"
6107 LD="${LD-ld} -m elf_x86_64
"
6109 ppc*-*linux*|powerpc*-*linux*)
6110 LD="${LD-ld} -m elf64ppc
"
6112 s390*-*linux*|s390*-*tpf*)
6113 LD="${LD-ld} -m elf64_s390
"
6116 LD="${LD-ld} -m elf64_sparc
"
6126 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6127 SAVE_CFLAGS="$CFLAGS"
6128 CFLAGS="$CFLAGS -belf"
6129 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6130 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6131 if test "${lt_cv_cc_needs_belf+set}" = set; then
6132 $as_echo_n "(cached
) " >&6
6135 ac_cpp='$CPP $CPPFLAGS'
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140 cat >conftest.$ac_ext <<_ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6155 rm -f conftest.$ac_objext conftest$ac_exeext
6156 if { (ac_try="$ac_link"
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6161 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6162 $as_echo "$ac_try_echo") >&5
6163 (eval "$ac_link") 2>conftest.er1
6165 grep -v '^ *+' conftest.er1 >conftest.err
6167 cat conftest.err >&5
6168 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6169 (exit $ac_status); } && {
6170 test -z "$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest$ac_exeext && {
6173 test "$cross_compiling" = yes ||
6174 $as_test_x conftest$ac_exeext
6176 lt_cv_cc_needs_belf=yes
6178 $as_echo "$as_me: failed program was
:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6181 lt_cv_cc_needs_belf=no
6184 rm -rf conftest.dSYM
6185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6186 conftest$ac_exeext conftest.$ac_ext
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6195 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6196 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6197 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6198 CFLAGS="$SAVE_CFLAGS"
6202 # Find out which ABI we are using.
6203 echo 'int i;' > conftest.$ac_ext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>&5
6207 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6208 (exit $ac_status); }; then
6209 case `/usr/bin/file conftest.o` in
6211 case $lt_cv_prog_gnu_ld in
6212 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6214 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6226 need_locks="$enable_libtool_lock"
6230 rhapsody* | darwin*)
6231 if test -n "$ac_tool_prefix"; then
6232 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6233 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6234 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6235 $as_echo_n "checking
for $ac_word...
" >&6; }
6236 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6237 $as_echo_n "(cached
) " >&6
6239 if test -n "$DSYMUTIL"; then
6240 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6250 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6259 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6260 if test -n "$DSYMUTIL"; then
6261 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6262 $as_echo "$DSYMUTIL" >&6; }
6264 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6265 $as_echo "no
" >&6; }
6270 if test -z "$ac_cv_prog_DSYMUTIL"; then
6271 ac_ct_DSYMUTIL=$DSYMUTIL
6272 # Extract the first word of "dsymutil
", so it can be a program name with args.
6273 set dummy dsymutil; ac_word=$2
6274 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6275 $as_echo_n "checking
for $ac_word...
" >&6; }
6276 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6277 $as_echo_n "(cached
) " >&6
6279 if test -n "$ac_ct_DSYMUTIL"; then
6280 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6290 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6299 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6300 if test -n "$ac_ct_DSYMUTIL"; then
6301 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6302 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6304 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6305 $as_echo "no
" >&6; }
6308 if test "x
$ac_ct_DSYMUTIL" = x; then
6311 case $cross_compiling:$ac_tool_warned in
6313 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6314 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6315 ac_tool_warned=yes ;;
6317 DSYMUTIL=$ac_ct_DSYMUTIL
6320 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6323 if test -n "$ac_tool_prefix"; then
6324 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6325 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6326 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6327 $as_echo_n "checking
for $ac_word...
" >&6; }
6328 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6329 $as_echo_n "(cached
) " >&6
6331 if test -n "$NMEDIT"; then
6332 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6342 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6351 NMEDIT=$ac_cv_prog_NMEDIT
6352 if test -n "$NMEDIT"; then
6353 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6354 $as_echo "$NMEDIT" >&6; }
6356 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6357 $as_echo "no
" >&6; }
6362 if test -z "$ac_cv_prog_NMEDIT"; then
6363 ac_ct_NMEDIT=$NMEDIT
6364 # Extract the first word of "nmedit
", so it can be a program name with args.
6365 set dummy nmedit; ac_word=$2
6366 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6367 $as_echo_n "checking
for $ac_word...
" >&6; }
6368 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6369 $as_echo_n "(cached
) " >&6
6371 if test -n "$ac_ct_NMEDIT"; then
6372 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6382 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6391 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6392 if test -n "$ac_ct_NMEDIT"; then
6393 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6394 $as_echo "$ac_ct_NMEDIT" >&6; }
6396 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6397 $as_echo "no
" >&6; }
6400 if test "x
$ac_ct_NMEDIT" = x; then
6403 case $cross_compiling:$ac_tool_warned in
6405 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6406 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6407 ac_tool_warned=yes ;;
6409 NMEDIT=$ac_ct_NMEDIT
6412 NMEDIT="$ac_cv_prog_NMEDIT"
6415 if test -n "$ac_tool_prefix"; then
6416 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6417 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6418 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6419 $as_echo_n "checking
for $ac_word...
" >&6; }
6420 if test "${ac_cv_prog_LIPO+set}" = set; then
6421 $as_echo_n "(cached
) " >&6
6423 if test -n "$LIPO"; then
6424 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6434 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6443 LIPO=$ac_cv_prog_LIPO
6444 if test -n "$LIPO"; then
6445 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6446 $as_echo "$LIPO" >&6; }
6448 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6449 $as_echo "no
" >&6; }
6454 if test -z "$ac_cv_prog_LIPO"; then
6456 # Extract the first word of "lipo
", so it can be a program name with args.
6457 set dummy lipo; ac_word=$2
6458 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6459 $as_echo_n "checking
for $ac_word...
" >&6; }
6460 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6461 $as_echo_n "(cached
) " >&6
6463 if test -n "$ac_ct_LIPO"; then
6464 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_prog_ac_ct_LIPO="lipo
"
6474 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6483 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6484 if test -n "$ac_ct_LIPO"; then
6485 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6486 $as_echo "$ac_ct_LIPO" >&6; }
6488 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6489 $as_echo "no
" >&6; }
6492 if test "x
$ac_ct_LIPO" = x; then
6495 case $cross_compiling:$ac_tool_warned in
6497 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6498 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6499 ac_tool_warned=yes ;;
6504 LIPO="$ac_cv_prog_LIPO"
6507 if test -n "$ac_tool_prefix"; then
6508 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6509 set dummy ${ac_tool_prefix}otool; ac_word=$2
6510 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6511 $as_echo_n "checking
for $ac_word...
" >&6; }
6512 if test "${ac_cv_prog_OTOOL+set}" = set; then
6513 $as_echo_n "(cached
) " >&6
6515 if test -n "$OTOOL"; then
6516 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6526 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6535 OTOOL=$ac_cv_prog_OTOOL
6536 if test -n "$OTOOL"; then
6537 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6538 $as_echo "$OTOOL" >&6; }
6540 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6541 $as_echo "no
" >&6; }
6546 if test -z "$ac_cv_prog_OTOOL"; then
6548 # Extract the first word of "otool
", so it can be a program name with args.
6549 set dummy otool; ac_word=$2
6550 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6551 $as_echo_n "checking
for $ac_word...
" >&6; }
6552 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6553 $as_echo_n "(cached
) " >&6
6555 if test -n "$ac_ct_OTOOL"; then
6556 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_ac_ct_OTOOL="otool
"
6566 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6575 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6576 if test -n "$ac_ct_OTOOL"; then
6577 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6578 $as_echo "$ac_ct_OTOOL" >&6; }
6580 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6581 $as_echo "no
" >&6; }
6584 if test "x
$ac_ct_OTOOL" = x; then
6587 case $cross_compiling:$ac_tool_warned in
6589 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6590 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6591 ac_tool_warned=yes ;;
6596 OTOOL="$ac_cv_prog_OTOOL"
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6602 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6603 $as_echo_n "checking
for $ac_word...
" >&6; }
6604 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6605 $as_echo_n "(cached
) " >&6
6607 if test -n "$OTOOL64"; then
6608 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6618 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6627 OTOOL64=$ac_cv_prog_OTOOL64
6628 if test -n "$OTOOL64"; then
6629 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6630 $as_echo "$OTOOL64" >&6; }
6632 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6633 $as_echo "no
" >&6; }
6638 if test -z "$ac_cv_prog_OTOOL64"; then
6639 ac_ct_OTOOL64=$OTOOL64
6640 # Extract the first word of "otool64
", so it can be a program name with args.
6641 set dummy otool64; ac_word=$2
6642 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6643 $as_echo_n "checking
for $ac_word...
" >&6; }
6644 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6645 $as_echo_n "(cached
) " >&6
6647 if test -n "$ac_ct_OTOOL64"; then
6648 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6658 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6667 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6668 if test -n "$ac_ct_OTOOL64"; then
6669 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6670 $as_echo "$ac_ct_OTOOL64" >&6; }
6672 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6673 $as_echo "no
" >&6; }
6676 if test "x
$ac_ct_OTOOL64" = x; then
6679 case $cross_compiling:$ac_tool_warned in
6681 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6682 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6683 ac_tool_warned=yes ;;
6685 OTOOL64=$ac_ct_OTOOL64
6688 OTOOL64="$ac_cv_prog_OTOOL64"
6717 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6718 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6719 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6720 $as_echo_n "(cached
) " >&6
6722 lt_cv_apple_cc_single_mod=no
6723 if test -z "${LT_MULTI_MODULE}"; then
6724 # By default we will add the -single_module flag. You can override
6725 # by either setting the environment variable LT_MULTI_MODULE
6726 # non-empty at configure time, or by adding -multi_module to the
6728 rm -rf libconftest.dylib*
6729 echo "int foo
(void
){return 1;}" > conftest.c
6730 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6731 -dynamiclib -Wl,-single_module conftest.c
" >&5
6732 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6733 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6735 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6736 lt_cv_apple_cc_single_mod=yes
6738 cat conftest.err >&5
6740 rm -rf libconftest.dylib*
6744 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6745 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6746 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6747 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6748 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6749 $as_echo_n "(cached
) " >&6
6751 lt_cv_ld_exported_symbols_list=no
6752 save_LDFLAGS=$LDFLAGS
6753 echo "_main
" > conftest.sym
6754 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6755 cat >conftest.$ac_ext <<_ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6770 rm -f conftest.$ac_objext conftest$ac_exeext
6771 if { (ac_try="$ac_link"
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6776 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6777 $as_echo "$ac_try_echo") >&5
6778 (eval "$ac_link") 2>conftest.er1
6780 grep -v '^ *+' conftest.er1 >conftest.err
6782 cat conftest.err >&5
6783 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6784 (exit $ac_status); } && {
6785 test -z "$ac_c_werror_flag" ||
6786 test ! -s conftest.err
6787 } && test -s conftest$ac_exeext && {
6788 test "$cross_compiling" = yes ||
6789 $as_test_x conftest$ac_exeext
6791 lt_cv_ld_exported_symbols_list=yes
6793 $as_echo "$as_me: failed program was
:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6796 lt_cv_ld_exported_symbols_list=no
6799 rm -rf conftest.dSYM
6800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6801 conftest$ac_exeext conftest.$ac_ext
6802 LDFLAGS="$save_LDFLAGS"
6805 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6806 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6808 rhapsody* | darwin1.[012])
6809 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6811 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6812 darwin*) # darwin 5.x on
6813 # if running on 10.5 or later, the deployment target defaults
6814 # to the OS version, if on x86, and 10.4, the deployment
6815 # target defaults to 10.4. Don't you love it?
6816 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6817 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6818 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6820 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6822 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6826 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6827 _lt_dar_single_mod='$single_module'
6829 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6830 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6832 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6834 if test "$DSYMUTIL" != ":"; then
6835 _lt_dsymutil='~$DSYMUTIL $lib || :'
6843 ac_cpp='$CPP $CPPFLAGS'
6844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6847 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6848 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6849 # On Suns, sometimes $CPP names a directory.
6850 if test -n "$CPP" && test -d "$CPP"; then
6853 if test -z "$CPP"; then
6854 if test "${ac_cv_prog_CPP+set}" = set; then
6855 $as_echo_n "(cached
) " >&6
6857 # Double quotes because CPP needs to be expanded
6858 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6861 for ac_c_preproc_warn_flag in '' yes
6863 # Use a header file that comes with gcc, so configuring glibc
6864 # with a fresh cross-compiler works.
6865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6866 # <limits.h> exists even on freestanding compilers.
6867 # On the NeXT, cc -E runs the code through the compiler's parser,
6868 # not just through cpp. "Syntax error
" is here to catch this case.
6869 cat >conftest.$ac_ext <<_ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6876 # include <limits.h>
6878 # include <assert.h>
6882 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6887 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6891 grep -v '^ *+' conftest.er1 >conftest.err
6893 cat conftest.err >&5
6894 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6895 (exit $ac_status); } >/dev/null && {
6896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6897 test ! -s conftest.err
6901 $as_echo "$as_me: failed program was
:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 # Broken: fails on valid input.
6908 rm -f conftest.err conftest.$ac_ext
6910 # OK, works on sane cases. Now check whether nonexistent headers
6911 # can be detected and how.
6912 cat >conftest.$ac_ext <<_ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 #include <ac_nonexistent.h>
6920 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923 *) ac_try_echo=$ac_try;;
6925 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6926 $as_echo "$ac_try_echo") >&5
6927 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6929 grep -v '^ *+' conftest.er1 >conftest.err
6931 cat conftest.err >&5
6932 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6933 (exit $ac_status); } >/dev/null && {
6934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6935 test ! -s conftest.err
6937 # Broken: success on invalid input.
6940 $as_echo "$as_me: failed program was
:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6943 # Passes both tests.
6948 rm -f conftest.err conftest.$ac_ext
6951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6952 rm -f conftest.err conftest.$ac_ext
6953 if $ac_preproc_ok; then
6965 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
6966 $as_echo "$CPP" >&6; }
6968 for ac_c_preproc_warn_flag in '' yes
6970 # Use a header file that comes with gcc, so configuring glibc
6971 # with a fresh cross-compiler works.
6972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6973 # <limits.h> exists even on freestanding compilers.
6974 # On the NeXT, cc -E runs the code through the compiler's parser,
6975 # not just through cpp. "Syntax error
" is here to catch this case.
6976 cat >conftest.$ac_ext <<_ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6983 # include <limits.h>
6985 # include <assert.h>
6989 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992 *) ac_try_echo=$ac_try;;
6994 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6995 $as_echo "$ac_try_echo") >&5
6996 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6998 grep -v '^ *+' conftest.er1 >conftest.err
7000 cat conftest.err >&5
7001 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7002 (exit $ac_status); } >/dev/null && {
7003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7004 test ! -s conftest.err
7008 $as_echo "$as_me: failed program was
:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7011 # Broken: fails on valid input.
7015 rm -f conftest.err conftest.$ac_ext
7017 # OK, works on sane cases. Now check whether nonexistent headers
7018 # can be detected and how.
7019 cat >conftest.$ac_ext <<_ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 #include <ac_nonexistent.h>
7027 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7030 *) ac_try_echo=$ac_try;;
7032 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7033 $as_echo "$ac_try_echo") >&5
7034 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7036 grep -v '^ *+' conftest.er1 >conftest.err
7038 cat conftest.err >&5
7039 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7040 (exit $ac_status); } >/dev/null && {
7041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7042 test ! -s conftest.err
7044 # Broken: success on invalid input.
7047 $as_echo "$as_me: failed program was
:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7050 # Passes both tests.
7055 rm -f conftest.err conftest.$ac_ext
7058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7059 rm -f conftest.err conftest.$ac_ext
7060 if $ac_preproc_ok; then
7063 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7065 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7066 See \`config.log' for more details.
" >&5
7067 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7068 See \
`config.log' for more details." >&2;}
7069 { (exit 1); exit 1; }; }; }
7073 ac_cpp='$CPP $CPPFLAGS'
7074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7080 $as_echo_n "checking for ANSI C header files... " >&6; }
7081 if test "${ac_cv_header_stdc+set}" = set; then
7082 $as_echo_n "(cached) " >&6
7084 cat >conftest.$ac_ext <<_ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7103 rm -f conftest.$ac_objext
7104 if { (ac_try="$ac_compile"
7106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7107 *) ac_try_echo
=$ac_try;;
7109 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7110 $as_echo "$ac_try_echo") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7113 grep -v '^ *+' conftest.er1
>conftest.err
7115 cat conftest.err
>&5
7116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.
$ac_objext; then
7121 ac_cv_header_stdc
=yes
7123 $as_echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.
$ac_ext >&5
7126 ac_cv_header_stdc
=no
7129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7131 if test $ac_cv_header_stdc = yes; then
7132 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7133 cat >conftest.
$ac_ext <<_ACEOF
7136 cat confdefs.h
>>conftest.
$ac_ext
7137 cat >>conftest.
$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7143 $EGREP "memchr" >/dev
/null
2>&1; then
7146 ac_cv_header_stdc
=no
7152 if test $ac_cv_header_stdc = yes; then
7153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7154 cat >conftest.
$ac_ext <<_ACEOF
7157 cat confdefs.h
>>conftest.
$ac_ext
7158 cat >>conftest.
$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7164 $EGREP "free" >/dev
/null
2>&1; then
7167 ac_cv_header_stdc
=no
7173 if test $ac_cv_header_stdc = yes; then
7174 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7175 if test "$cross_compiling" = yes; then
7178 cat >conftest.
$ac_ext <<_ACEOF
7181 cat confdefs.h
>>conftest.
$ac_ext
7182 cat >>conftest.
$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7186 #if ((' ' & 0x0FF) == 0x020)
7187 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7188 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7190 # define ISLOWER(c) \
7191 (('a' <= (c) && (c) <= 'i') \
7192 || ('j' <= (c) && (c) <= 'r') \
7193 || ('s' <= (c) && (c) <= 'z'))
7194 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7197 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7202 for (i = 0; i < 256; i++)
7203 if (XOR (islower (i), ISLOWER (i))
7204 || toupper (i) != TOUPPER (i))
7209 rm -f conftest
$ac_exeext
7210 if { (ac_try
="$ac_link"
7212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7213 *) ac_try_echo=$ac_try;;
7215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7216 $as_echo "$ac_try_echo") >&5
7217 (eval "$ac_link") 2>&5
7219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7221 { (case "(($ac_try" in
7222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7223 *) ac_try_echo
=$ac_try;;
7225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7226 $as_echo "$ac_try_echo") >&5
7227 (eval "$ac_try") 2>&5
7229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; }; then
7233 $as_echo "$as_me: program exited with status $ac_status" >&5
7234 $as_echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.
$ac_ext >&5
7238 ac_cv_header_stdc
=no
7240 rm -rf conftest.dSYM
7241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7247 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7248 $as_echo "$ac_cv_header_stdc" >&6; }
7249 if test $ac_cv_header_stdc = yes; then
7251 cat >>confdefs.h
<<\_ACEOF
7252 #define STDC_HEADERS 1
7257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7267 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7268 inttypes.h stdint.h unistd.h
7270 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7272 $as_echo_n "checking for $ac_header... " >&6; }
7273 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7274 $as_echo_n "(cached) " >&6
7276 cat >conftest.
$ac_ext <<_ACEOF
7279 cat confdefs.h
>>conftest.
$ac_ext
7280 cat >>conftest.
$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7282 $ac_includes_default
7284 #include <$ac_header>
7286 rm -f conftest.
$ac_objext
7287 if { (ac_try
="$ac_compile"
7289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293 $as_echo "$ac_try_echo") >&5
7294 (eval "$ac_compile") 2>conftest.er1
7296 grep -v '^ *+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.$ac_objext; then
7304 eval "$as_ac_Header=yes"
7306 $as_echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7309 eval "$as_ac_Header=no"
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 ac_res=`eval 'as_val=${'$as_ac_Header'}
7315 $as_echo "$as_val"'`
7316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7317 $as_echo "$ac_res" >&6; }
7318 as_val=`eval 'as_val=${'$as_ac_Header'}
7319 $as_echo "$as_val"'`
7320 if test "x$as_val" = x""yes; then
7321 cat >>confdefs.h <<_ACEOF
7322 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7331 for ac_header in dlfcn.h
7333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7335 $as_echo_n "checking for $ac_header... " >&6; }
7336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7337 $as_echo_n "(cached) " >&6
7339 cat >conftest.$ac_ext <<_ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 $ac_includes_default
7347 #include <$ac_header>
7349 rm -f conftest.$ac_objext
7350 if { (ac_try="$ac_compile"
7352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7353 *) ac_try_echo
=$ac_try;;
7355 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7356 $as_echo "$ac_try_echo") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1
>conftest.err
7361 cat conftest.err
>&5
7362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.
$ac_objext; then
7367 eval "$as_ac_Header=yes"
7369 $as_echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.
$ac_ext >&5
7372 eval "$as_ac_Header=no"
7375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7377 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7378 $as_echo "$as_val"'`
7379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7380 $as_echo "$ac_res" >&6; }
7381 as_val
=`eval 'as_val=${'$as_ac_Header'}
7382 $as_echo "$as_val"'`
7383 if test "x$as_val" = x
""yes; then
7384 cat >>confdefs.h
<<_ACEOF
7385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7404 # Check whether --enable-shared was given.
7405 if test "${enable_shared+set}" = set; then
7406 enableval
=$enable_shared; p
=${PACKAGE-default}
7408 yes) enable_shared
=yes ;;
7409 no
) enable_shared
=no
;;
7412 # Look at the argument we got. We use all the common list separators.
7413 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7414 for pkg
in $enableval; do
7416 if test "X$pkg" = "X$p"; then
7435 # Check whether --enable-static was given.
7436 if test "${enable_static+set}" = set; then
7437 enableval
=$enable_static; p
=${PACKAGE-default}
7439 yes) enable_static
=yes ;;
7440 no
) enable_static
=no
;;
7443 # Look at the argument we got. We use all the common list separators.
7444 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7445 for pkg
in $enableval; do
7447 if test "X$pkg" = "X$p"; then
7467 # Check whether --with-pic was given.
7468 if test "${with_pic+set}" = set; then
7469 withval
=$with_pic; pic_mode
="$withval"
7475 test -z "$pic_mode" && pic_mode
=default
7483 # Check whether --enable-fast-install was given.
7484 if test "${enable_fast_install+set}" = set; then
7485 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7487 yes) enable_fast_install
=yes ;;
7488 no
) enable_fast_install
=no
;;
7490 enable_fast_install
=no
7491 # Look at the argument we got. We use all the common list separators.
7492 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7493 for pkg
in $enableval; do
7495 if test "X$pkg" = "X$p"; then
7496 enable_fast_install
=yes
7503 enable_fast_install
=yes
7516 # This can be used to rebuild libtool when needed
7517 LIBTOOL_DEPS
="$ltmain"
7519 # Always use our own libtool.
7520 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7546 test -z "$LN_S" && LN_S
="ln -s"
7561 if test -n "${ZSH_VERSION+set}" ; then
7562 setopt NO_GLOB_SUBST
7565 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7566 $as_echo_n "checking for objdir... " >&6; }
7567 if test "${lt_cv_objdir+set}" = set; then
7568 $as_echo_n "(cached) " >&6
7570 rm -f .libs
2>/dev
/null
7571 mkdir .libs
2>/dev
/null
7572 if test -d .libs
; then
7575 # MS-DOS does not allow filenames that begin with a dot.
7578 rmdir .libs
2>/dev
/null
7580 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7581 $as_echo "$lt_cv_objdir" >&6; }
7582 objdir
=$lt_cv_objdir
7588 cat >>confdefs.h
<<_ACEOF
7589 #define LT_OBJDIR "$lt_cv_objdir/"
7610 # AIX sometimes has problems with the GCC collect2 program. For some
7611 # reason, if we set the COLLECT_NAMES environment variable, the problems
7612 # vanish in a puff of smoke.
7613 if test "X${COLLECT_NAMES+set}" != Xset
; then
7615 export COLLECT_NAMES
7620 # Sed substitution that helps us do robust quoting. It backslashifies
7621 # metacharacters that are still active within double-quoted strings.
7622 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7624 # Same as above, but do not quote variable references.
7625 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7627 # Sed substitution to delay expansion of an escaped shell variable in a
7628 # double_quote_subst'ed string.
7629 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7631 # Sed substitution to delay expansion of an escaped single quote.
7632 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7634 # Sed substitution to avoid accidental globbing in evaled expressions
7635 no_glob_subst
='s/\*/\\\*/g'
7639 can_build_shared
=yes
7641 # All known linkers require a `.a' archive for static linking (except MSVC,
7642 # which needs '.lib').
7645 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7648 old_CFLAGS
="$CFLAGS"
7650 # Set sane defaults for various variables
7651 test -z "$CC" && CC
=cc
7652 test -z "$LTCC" && LTCC
=$CC
7653 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7654 test -z "$LD" && LD
=ld
7655 test -z "$ac_objext" && ac_objext
=o
7657 for cc_temp
in $compiler""; do
7659 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7660 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7665 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7668 # Only perform the check for file, if the check method requires it
7669 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7670 case $deplibs_check_method in
7672 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7673 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7674 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7675 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7676 $as_echo_n "(cached) " >&6
7680 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7683 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7684 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7685 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7686 for ac_dir
in $ac_dummy; do
7688 test -z "$ac_dir" && ac_dir
=.
7689 if test -f $ac_dir/${ac_tool_prefix}file; then
7690 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7691 if test -n "$file_magic_test_file"; then
7692 case $deplibs_check_method in
7694 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7695 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7696 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7697 $EGREP "$file_magic_regex" > /dev
/null
; then
7702 *** Warning: the command libtool uses to detect shared libraries,
7703 *** $file_magic_cmd, produces output that libtool cannot recognize.
7704 *** The result is that libtool may fail to recognize shared libraries
7705 *** as such. This will affect the creation of libtool libraries that
7706 *** depend on shared libraries, but programs linked with such libtool
7707 *** libraries will work regardless of this problem. Nevertheless, you
7708 *** may want to report the problem to your system manager and/or to
7709 *** bug-libtool@gnu.org
7719 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7724 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7725 if test -n "$MAGIC_CMD"; then
7726 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7727 $as_echo "$MAGIC_CMD" >&6; }
7729 { $as_echo "$as_me:$LINENO: result: no" >&5
7730 $as_echo "no" >&6; }
7737 if test -z "$lt_cv_path_MAGIC_CMD"; then
7738 if test -n "$ac_tool_prefix"; then
7739 { $as_echo "$as_me:$LINENO: checking for file" >&5
7740 $as_echo_n "checking for file... " >&6; }
7741 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7742 $as_echo_n "(cached) " >&6
7746 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7749 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7750 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7751 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7752 for ac_dir
in $ac_dummy; do
7754 test -z "$ac_dir" && ac_dir
=.
7755 if test -f $ac_dir/file; then
7756 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7757 if test -n "$file_magic_test_file"; then
7758 case $deplibs_check_method in
7760 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7761 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7762 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7763 $EGREP "$file_magic_regex" > /dev
/null
; then
7768 *** Warning: the command libtool uses to detect shared libraries,
7769 *** $file_magic_cmd, produces output that libtool cannot recognize.
7770 *** The result is that libtool may fail to recognize shared libraries
7771 *** as such. This will affect the creation of libtool libraries that
7772 *** depend on shared libraries, but programs linked with such libtool
7773 *** libraries will work regardless of this problem. Nevertheless, you
7774 *** may want to report the problem to your system manager and/or to
7775 *** bug-libtool@gnu.org
7785 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7790 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7791 if test -n "$MAGIC_CMD"; then
7792 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7793 $as_echo "$MAGIC_CMD" >&6; }
7795 { $as_echo "$as_me:$LINENO: result: no" >&5
7796 $as_echo "no" >&6; }
7809 # Use C for the default configuration in the libtool script
7813 ac_cpp
='$CPP $CPPFLAGS'
7814 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7819 # Source file extension for C test sources.
7822 # Object file extension for compiled C test sources.
7826 # Code to be used in simple compile tests
7827 lt_simple_compile_test_code
="int some_variable = 0;"
7829 # Code to be used in simple link tests
7830 lt_simple_link_test_code
='int main(){return(0);}'
7838 # If no C compiler was specified, use CC.
7841 # If no C compiler flags were specified, use CFLAGS.
7842 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7844 # Allow CC to be a program name with arguments.
7847 # Save the default compiler, since it gets overwritten when the other
7848 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7849 compiler_DEFAULT
=$CC
7851 # save warnings/boilerplate of simple test code
7852 ac_outfile
=conftest.
$ac_objext
7853 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7854 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7855 _lt_compiler_boilerplate
=`cat conftest.err`
7858 ac_outfile
=conftest.
$ac_objext
7859 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7860 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7861 _lt_linker_boilerplate
=`cat conftest.err`
7865 if test -n "$compiler"; then
7867 lt_prog_compiler_no_builtin_flag
=
7869 if test "$GCC" = yes; then
7870 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7872 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7873 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7874 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7875 $as_echo_n "(cached) " >&6
7877 lt_cv_prog_compiler_rtti_exceptions
=no
7878 ac_outfile
=conftest.
$ac_objext
7879 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7880 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7881 # Insert the option either (1) after the last *FLAGS variable, or
7882 # (2) before a word containing "conftest.", or (3) at the end.
7883 # Note that $ac_compile itself does not contain backslashes and begins
7884 # with a dollar sign (not a hyphen), so the echo should work correctly.
7885 # The option is referenced via a variable to avoid confusing sed.
7886 lt_compile
=`echo "$ac_compile" | $SED \
7887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7889 -e 's:$: $lt_compiler_flag:'`
7890 (eval echo "\"\$as_me:7890: $lt_compile\"" >&5)
7891 (eval "$lt_compile" 2>conftest.err
)
7893 cat conftest.err
>&5
7894 echo "$as_me:7894: \$? = $ac_status" >&5
7895 if (exit $ac_status) && test -s "$ac_outfile"; then
7896 # The compiler can only warn and ignore the option if not recognized
7897 # So say no if there are warnings other than the usual output.
7898 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7899 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7900 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7901 lt_cv_prog_compiler_rtti_exceptions
=yes
7907 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7908 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7910 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7911 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7923 lt_prog_compiler_wl
=
7924 lt_prog_compiler_pic
=
7925 lt_prog_compiler_static
=
7927 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7928 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7930 if test "$GCC" = yes; then
7931 lt_prog_compiler_wl
='-Wl,'
7932 lt_prog_compiler_static
='-static'
7936 # All AIX code is PIC.
7937 if test "$host_cpu" = ia64
; then
7938 # AIX 5 now supports IA64 processor
7939 lt_prog_compiler_static
='-Bstatic'
7946 # see comment about AmigaOS4 .so support
7947 lt_prog_compiler_pic
='-fPIC'
7950 # FIXME: we need at least 68020 code to build shared libraries, but
7951 # adding the `-m68020' flag to GCC prevents building anything better,
7953 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7958 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7959 # PIC is the default for these OSes.
7962 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7963 # This hack is so that the source file can tell whether it is being
7964 # built for inclusion in a dll (and should export symbols for example).
7965 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7966 # (--disable-auto-import) libraries
7967 lt_prog_compiler_pic
='-DDLL_EXPORT'
7970 darwin
* | rhapsody
*)
7971 # PIC is the default on this platform
7972 # Common symbols not allowed in MH_DYLIB files
7973 lt_prog_compiler_pic
='-fno-common'
7977 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7978 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7979 # sets the default TLS model and affects inlining.
7985 lt_prog_compiler_pic
='-fPIC'
7991 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7992 # Instead, we relocate shared libraries at runtime.
7996 # Just because we use GCC doesn't mean we suddenly get shared libraries
7997 # on systems that don't support them.
7998 lt_prog_compiler_can_build_shared
=no
8003 # QNX uses GNU C++, but need to define -shared option too, otherwise
8005 lt_prog_compiler_pic
='-fPIC -shared'
8009 if test -d /usr
/nec
; then
8010 lt_prog_compiler_pic
=-Kconform_pic
8015 lt_prog_compiler_pic
='-fPIC'
8019 # PORTME Check for flag to pass linker flags through the system compiler.
8022 lt_prog_compiler_wl
='-Wl,'
8023 if test "$host_cpu" = ia64
; then
8024 # AIX 5 now supports IA64 processor
8025 lt_prog_compiler_static
='-Bstatic'
8027 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8031 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8032 # This hack is so that the source file can tell whether it is being
8033 # built for inclusion in a dll (and should export symbols for example).
8034 lt_prog_compiler_pic
='-DDLL_EXPORT'
8037 hpux9
* | hpux10
* | hpux11
*)
8038 lt_prog_compiler_wl
='-Wl,'
8039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8046 lt_prog_compiler_pic
='+Z'
8049 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8050 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8053 irix5
* | irix6
* | nonstopux
*)
8054 lt_prog_compiler_wl
='-Wl,'
8055 # PIC (with -KPIC) is the default.
8056 lt_prog_compiler_static
='-non_shared'
8059 linux
* | k
*bsd
*-gnu)
8060 case $cc_basename in
8061 # old Intel for x86_64 which still supported -KPIC.
8063 lt_prog_compiler_wl
='-Wl,'
8064 lt_prog_compiler_pic
='-KPIC'
8065 lt_prog_compiler_static
='-static'
8067 # icc used to be incompatible with GCC.
8068 # ICC 10 doesn't accept -KPIC any more.
8070 lt_prog_compiler_wl
='-Wl,'
8071 lt_prog_compiler_pic
='-fPIC'
8072 lt_prog_compiler_static
='-static'
8074 # Lahey Fortran 8.1.
8076 lt_prog_compiler_wl
='-Wl,'
8077 lt_prog_compiler_pic
='--shared'
8078 lt_prog_compiler_static
='--static'
8080 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8081 # Portland Group compilers (*not* the Pentium gcc compiler,
8082 # which looks to be a dead project)
8083 lt_prog_compiler_wl
='-Wl,'
8084 lt_prog_compiler_pic
='-fpic'
8085 lt_prog_compiler_static
='-Bstatic'
8088 lt_prog_compiler_wl
='-Wl,'
8089 # All Alpha code is PIC.
8090 lt_prog_compiler_static
='-non_shared'
8093 # IBM XL C 8.0/Fortran 10.1 on PPC
8094 lt_prog_compiler_wl
='-Wl,'
8095 lt_prog_compiler_pic
='-qpic'
8096 lt_prog_compiler_static
='-qstaticlink'
8099 case `$CC -V 2>&1 | sed 5q` in
8102 lt_prog_compiler_pic
='-KPIC'
8103 lt_prog_compiler_static
='-Bstatic'
8104 lt_prog_compiler_wl
='-Wl,'
8107 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8108 lt_prog_compiler_pic
='-KPIC'
8109 lt_prog_compiler_static
='-Bstatic'
8110 lt_prog_compiler_wl
=''
8118 lt_prog_compiler_pic
='-KPIC'
8119 lt_prog_compiler_static
='-Bstatic'
8123 # QNX uses GNU C++, but need to define -shared option too, otherwise
8125 lt_prog_compiler_pic
='-fPIC -shared'
8128 osf3
* | osf4
* | osf5
*)
8129 lt_prog_compiler_wl
='-Wl,'
8130 # All OSF/1 code is PIC.
8131 lt_prog_compiler_static
='-non_shared'
8135 lt_prog_compiler_static
='-non_shared'
8139 lt_prog_compiler_pic
='-KPIC'
8140 lt_prog_compiler_static
='-Bstatic'
8141 case $cc_basename in
8143 lt_prog_compiler_wl
='-Qoption ld ';;
8145 lt_prog_compiler_wl
='-Wl,';;
8150 lt_prog_compiler_wl
='-Qoption ld '
8151 lt_prog_compiler_pic
='-PIC'
8152 lt_prog_compiler_static
='-Bstatic'
8155 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8156 lt_prog_compiler_wl
='-Wl,'
8157 lt_prog_compiler_pic
='-KPIC'
8158 lt_prog_compiler_static
='-Bstatic'
8162 if test -d /usr
/nec
;then
8163 lt_prog_compiler_pic
='-Kconform_pic'
8164 lt_prog_compiler_static
='-Bstatic'
8168 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8169 lt_prog_compiler_wl
='-Wl,'
8170 lt_prog_compiler_pic
='-KPIC'
8171 lt_prog_compiler_static
='-Bstatic'
8175 lt_prog_compiler_wl
='-Wl,'
8176 lt_prog_compiler_can_build_shared
=no
8180 lt_prog_compiler_pic
='-pic'
8181 lt_prog_compiler_static
='-Bstatic'
8185 lt_prog_compiler_can_build_shared
=no
8191 # For platforms which do not support PIC, -DPIC is meaningless:
8193 lt_prog_compiler_pic
=
8196 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8199 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8200 $as_echo "$lt_prog_compiler_pic" >&6; }
8208 # Check to make sure the PIC flag actually works.
8210 if test -n "$lt_prog_compiler_pic"; then
8211 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8212 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8213 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8214 $as_echo_n "(cached) " >&6
8216 lt_cv_prog_compiler_pic_works
=no
8217 ac_outfile
=conftest.
$ac_objext
8218 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8219 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8220 # Insert the option either (1) after the last *FLAGS variable, or
8221 # (2) before a word containing "conftest.", or (3) at the end.
8222 # Note that $ac_compile itself does not contain backslashes and begins
8223 # with a dollar sign (not a hyphen), so the echo should work correctly.
8224 # The option is referenced via a variable to avoid confusing sed.
8225 lt_compile
=`echo "$ac_compile" | $SED \
8226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8228 -e 's:$: $lt_compiler_flag:'`
8229 (eval echo "\"\$as_me:8229: $lt_compile\"" >&5)
8230 (eval "$lt_compile" 2>conftest.err
)
8232 cat conftest.err
>&5
8233 echo "$as_me:8233: \$? = $ac_status" >&5
8234 if (exit $ac_status) && test -s "$ac_outfile"; then
8235 # The compiler can only warn and ignore the option if not recognized
8236 # So say no if there are warnings other than the usual output.
8237 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8238 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8239 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8240 lt_cv_prog_compiler_pic_works
=yes
8246 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8247 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8249 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8250 case $lt_prog_compiler_pic in
8252 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8255 lt_prog_compiler_pic
=
8256 lt_prog_compiler_can_build_shared
=no
8267 # Check to make sure the static flag actually works.
8269 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8270 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8271 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8272 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8273 $as_echo_n "(cached) " >&6
8275 lt_cv_prog_compiler_static_works
=no
8276 save_LDFLAGS
="$LDFLAGS"
8277 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8278 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8279 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8280 # The linker can only warn and ignore the option if not recognized
8281 # So say no if there are warnings
8282 if test -s conftest.err
; then
8283 # Append any errors to the config.log.
8284 cat conftest.err
1>&5
8285 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8286 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8287 if diff conftest.exp conftest.er2
>/dev
/null
; then
8288 lt_cv_prog_compiler_static_works
=yes
8291 lt_cv_prog_compiler_static_works
=yes
8295 LDFLAGS
="$save_LDFLAGS"
8298 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8299 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8301 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8304 lt_prog_compiler_static
=
8313 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8314 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8315 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8316 $as_echo_n "(cached) " >&6
8318 lt_cv_prog_compiler_c_o
=no
8319 $RM -r conftest
2>/dev
/null
8323 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8325 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8326 # Insert the option either (1) after the last *FLAGS variable, or
8327 # (2) before a word containing "conftest.", or (3) at the end.
8328 # Note that $ac_compile itself does not contain backslashes and begins
8329 # with a dollar sign (not a hyphen), so the echo should work correctly.
8330 lt_compile
=`echo "$ac_compile" | $SED \
8331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8333 -e 's:$: $lt_compiler_flag:'`
8334 (eval echo "\"\$as_me:8334: $lt_compile\"" >&5)
8335 (eval "$lt_compile" 2>out
/conftest.err
)
8337 cat out
/conftest.err
>&5
8338 echo "$as_me:8338: \$? = $ac_status" >&5
8339 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8341 # The compiler can only warn and ignore the option if not recognized
8342 # So say no if there are warnings
8343 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8344 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8345 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8346 lt_cv_prog_compiler_c_o
=yes
8351 # SGI C++ compiler will create directory out/ii_files/ for
8352 # template instantiation
8353 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8354 $RM out
/* && rmdir out
8360 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8361 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8368 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8369 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8370 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8371 $as_echo_n "(cached) " >&6
8373 lt_cv_prog_compiler_c_o
=no
8374 $RM -r conftest
2>/dev
/null
8378 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8380 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8381 # Insert the option either (1) after the last *FLAGS variable, or
8382 # (2) before a word containing "conftest.", or (3) at the end.
8383 # Note that $ac_compile itself does not contain backslashes and begins
8384 # with a dollar sign (not a hyphen), so the echo should work correctly.
8385 lt_compile
=`echo "$ac_compile" | $SED \
8386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8388 -e 's:$: $lt_compiler_flag:'`
8389 (eval echo "\"\$as_me:8389: $lt_compile\"" >&5)
8390 (eval "$lt_compile" 2>out
/conftest.err
)
8392 cat out
/conftest.err
>&5
8393 echo "$as_me:8393: \$? = $ac_status" >&5
8394 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8396 # The compiler can only warn and ignore the option if not recognized
8397 # So say no if there are warnings
8398 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8399 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8400 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8401 lt_cv_prog_compiler_c_o
=yes
8406 # SGI C++ compiler will create directory out/ii_files/ for
8407 # template instantiation
8408 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8409 $RM out
/* && rmdir out
8415 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8416 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8421 hard_links
="nottested"
8422 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8423 # do not overwrite the value of need_locks provided by the user
8424 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8425 $as_echo_n "checking if we can lock with hard links... " >&6; }
8428 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8430 ln conftest.a conftest.b
2>&5 || hard_links
=no
8431 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8432 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8433 $as_echo "$hard_links" >&6; }
8434 if test "$hard_links" = no
; then
8435 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8436 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8448 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8449 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8452 allow_undefined_flag
=
8453 always_export_symbols
=no
8455 archive_expsym_cmds
=
8456 compiler_needs_object
=no
8457 enable_shared_with_static_runtimes
=no
8458 export_dynamic_flag_spec
=
8459 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8460 hardcode_automatic
=no
8462 hardcode_direct_absolute
=no
8463 hardcode_libdir_flag_spec
=
8464 hardcode_libdir_flag_spec_ld
=
8465 hardcode_libdir_separator
=
8467 hardcode_shlibpath_var
=unsupported
8469 link_all_deplibs
=unknown
8472 old_archive_from_new_cmds
=
8473 old_archive_from_expsyms_cmds
=
8474 thread_safe_flag_spec
=
8475 whole_archive_flag_spec
=
8476 # include_expsyms should be a list of space-separated symbols to be *always*
8477 # included in the symbol list
8479 # exclude_expsyms can be an extended regexp of symbols to exclude
8480 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8481 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8482 # as well as any symbol that contains `d'.
8483 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8484 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8485 # platforms (ab)use it in PIC code, but their linkers get confused if
8486 # the symbol is explicitly referenced. Since portable code cannot
8487 # rely on this symbol name, it's probably fine to never include it in
8488 # preloaded symbol tables.
8489 # Exclude shared library initialization/finalization symbols.
8490 extract_expsyms_cmds
=
8493 cygwin
* | mingw
* | pw32
* | cegcc
*)
8494 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8495 # When not using gcc, we currently assume that we are using
8496 # Microsoft Visual C++.
8497 if test "$GCC" != yes; then
8502 # we just hope/assume this is gcc and not c89 (= MSVC++)
8511 if test "$with_gnu_ld" = yes; then
8512 # If archive_cmds runs LD, not CC, wlarc should be empty
8515 # Set some defaults for GNU ld with shared library support. These
8516 # are reset later if shared libraries are not supported. Putting them
8517 # here allows them to be overridden if necessary.
8518 runpath_var
=LD_RUN_PATH
8519 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8520 export_dynamic_flag_spec
='${wl}--export-dynamic'
8521 # ancient GNU ld didn't support --whole-archive et. al.
8522 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8523 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8525 whole_archive_flag_spec
=
8527 supports_anon_versioning
=no
8528 case `$LD -v 2>&1` in
8529 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8530 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8531 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8532 *\
2.11.
*) ;; # other 2.11 versions
8533 *) supports_anon_versioning
=yes ;;
8536 # See if GNU ld supports shared libraries.
8539 # On AIX/PPC, the GNU linker is very broken
8540 if test "$host_cpu" != ia64
; then
8544 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8545 *** to be unable to reliably create shared libraries on AIX.
8546 *** Therefore, libtool is disabling shared libraries support. If you
8547 *** really care for shared libraries, you may want to modify your PATH
8548 *** so that a non-GNU linker is found, and then restart.
8557 # see comment about AmigaOS4 .so support
8558 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8559 archive_expsym_cmds
=''
8562 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)'
8563 hardcode_libdir_flag_spec
='-L$libdir'
8564 hardcode_minus_L
=yes
8570 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8571 allow_undefined_flag
=unsupported
8572 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8573 # support --undefined. This deserves some investigation. FIXME
8574 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8580 cygwin
* | mingw
* | pw32
* | cegcc
*)
8581 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8582 # as there is no search path for DLLs.
8583 hardcode_libdir_flag_spec
='-L$libdir'
8584 allow_undefined_flag
=unsupported
8585 always_export_symbols
=no
8586 enable_shared_with_static_runtimes
=yes
8587 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8589 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8590 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8591 # If the export-symbols file already is a .def file (1st line
8592 # is EXPORTS), use it as is; otherwise, prepend...
8593 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8594 cp $export_symbols $output_objdir/$soname.def;
8596 echo EXPORTS > $output_objdir/$soname.def;
8597 cat $export_symbols >> $output_objdir/$soname.def;
8599 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8607 hardcode_shlibpath_var
=no
8608 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8609 export_dynamic_flag_spec
='${wl}-E'
8610 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8611 # Instead, shared libraries are loaded at an image base (0x10000000 by
8612 # default) and relocated if they conflict, which is a slow very memory
8613 # consuming and fragmenting process. To avoid this, we pick a random,
8614 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8615 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8616 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8617 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'
8620 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8622 if test "$host_os" = linux-dietlibc
; then
8623 case $cc_basename in
8624 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8627 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8628 && test "$tmp_diet" = no
8631 tmp_sharedflag
='-shared'
8632 case $cc_basename,$host_cpu in
8633 pgcc
*) # Portland Group C compiler
8634 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'
8635 tmp_addflag
=' $pic_flag'
8637 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8638 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'
8639 tmp_addflag
=' $pic_flag -Mnomain' ;;
8640 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8641 tmp_addflag
=' -i_dynamic' ;;
8642 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8643 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8644 ifc
* | ifort
*) # Intel Fortran compiler
8645 tmp_addflag
=' -nofor_main' ;;
8646 lf95
*) # Lahey Fortran 8.1
8647 whole_archive_flag_spec
=
8648 tmp_sharedflag
='--shared' ;;
8649 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8650 tmp_sharedflag
='-qmkshrobj'
8653 case `$CC -V 2>&1 | sed 5q` in
8654 *Sun\ C
*) # Sun C 5.9
8655 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'
8656 compiler_needs_object
=yes
8657 tmp_sharedflag
='-G' ;;
8658 *Sun\ F
*) # Sun Fortran 8.3
8659 tmp_sharedflag
='-G' ;;
8661 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663 if test "x$supports_anon_versioning" = xyes
; then
8664 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8665 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8666 echo "local: *; };" >> $output_objdir/$libname.ver~
8667 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8670 case $cc_basename in
8672 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8673 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8674 hardcode_libdir_flag_spec
=
8675 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8676 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8677 if test "x$supports_anon_versioning" = xyes
; then
8678 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8679 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8680 echo "local: *; };" >> $output_objdir/$libname.ver~
8681 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8691 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8692 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8695 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8696 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8701 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8705 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8706 *** create shared libraries on Solaris systems. Therefore, libtool
8707 *** is disabling shared libraries support. We urge you to upgrade GNU
8708 *** binutils to release 2.9.1 or newer. Another option is to modify
8709 *** your PATH or compiler configuration so that the native linker is
8710 *** used, and then restart.
8713 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8714 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8715 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8721 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8722 case `$LD -v 2>&1` in
8723 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8727 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8728 *** reliably create shared libraries on SCO systems. Therefore, libtool
8729 *** is disabling shared libraries support. We urge you to upgrade GNU
8730 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8731 *** your PATH or compiler configuration so that the native linker is
8732 *** used, and then restart.
8737 # For security reasons, it is highly recommended that you always
8738 # use absolute paths for naming shared libraries, and exclude the
8739 # DT_RUNPATH tag from executables and libraries. But doing so
8740 # requires that you compile everything twice, which is a pain.
8741 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8742 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8743 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8753 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8756 hardcode_shlibpath_var
=no
8760 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8761 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8769 if test "$ld_shlibs" = no
; then
8771 hardcode_libdir_flag_spec
=
8772 export_dynamic_flag_spec
=
8773 whole_archive_flag_spec
=
8776 # PORTME fill in a description of your system's linker (not GNU ld)
8779 allow_undefined_flag
=unsupported
8780 always_export_symbols
=yes
8781 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'
8782 # Note: this linker hardcodes the directories in LIBPATH if there
8783 # are no directories specified by -L.
8784 hardcode_minus_L
=yes
8785 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8786 # Neither direct hardcoding nor static linking is supported with a
8788 hardcode_direct
=unsupported
8793 if test "$host_cpu" = ia64
; then
8794 # On IA64, the linker does run time linking by default, so we don't
8795 # have to do anything special.
8796 aix_use_runtimelinking
=no
8797 exp_sym_flag
='-Bexport'
8800 # If we're using GNU nm, then we don't want the "-C" option.
8801 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8802 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8803 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'
8805 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'
8807 aix_use_runtimelinking
=no
8809 # Test if we are trying to use run time linking or normal
8810 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8811 # need to do runtime linking.
8812 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8813 for ld_flag
in $LDFLAGS; do
8814 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8815 aix_use_runtimelinking
=yes
8822 exp_sym_flag
='-bexport'
8823 no_entry_flag
='-bnoentry'
8826 # When large executables or shared objects are built, AIX ld can
8827 # have problems creating the table of contents. If linking a library
8828 # or program results in "error TOC overflow" add -mminimal-toc to
8829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8834 hardcode_direct_absolute
=yes
8835 hardcode_libdir_separator
=':'
8836 link_all_deplibs
=yes
8837 file_list_spec
='${wl}-f,'
8839 if test "$GCC" = yes; then
8840 case $host_os in aix4.
[012]|aix4.
[012].
*)
8841 # We only want to do this on AIX 4.2 and lower, the check
8842 # below for broken collect2 doesn't work under 4.3+
8843 collect2name
=`${CC} -print-prog-name=collect2`
8844 if test -f "$collect2name" &&
8845 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8847 # We have reworked collect2
8850 # We have old collect2
8851 hardcode_direct
=unsupported
8852 # It fails to find uninstalled libraries when the uninstalled
8853 # path is not listed in the libpath. Setting hardcode_minus_L
8854 # to unsupported forces relinking
8855 hardcode_minus_L
=yes
8856 hardcode_libdir_flag_spec
='-L$libdir'
8857 hardcode_libdir_separator
=
8861 shared_flag
='-shared'
8862 if test "$aix_use_runtimelinking" = yes; then
8863 shared_flag
="$shared_flag "'${wl}-G'
8867 if test "$host_cpu" = ia64
; then
8868 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8869 # chokes on -Wl,-G. The following line is correct:
8872 if test "$aix_use_runtimelinking" = yes; then
8873 shared_flag
='${wl}-G'
8875 shared_flag
='${wl}-bM:SRE'
8880 export_dynamic_flag_spec
='${wl}-bexpall'
8881 # It seems that -bexpall does not export symbols beginning with
8882 # underscore (_), so it is better to generate a list of symbols to export.
8883 always_export_symbols
=yes
8884 if test "$aix_use_runtimelinking" = yes; then
8885 # Warning - without using the other runtime loading flags (-brtl),
8886 # -berok will link without error, but may produce a broken library.
8887 allow_undefined_flag
='-berok'
8888 # Determine the default libpath from the value encoded in an
8890 cat >conftest.
$ac_ext <<_ACEOF
8893 cat confdefs.h
>>conftest.
$ac_ext
8894 cat >>conftest.
$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8905 rm -f conftest.
$ac_objext conftest
$ac_exeext
8906 if { (ac_try
="$ac_link"
8908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8912 $as_echo "$ac_try_echo") >&5
8913 (eval "$ac_link") 2>conftest.er1
8915 grep -v '^ *+' conftest.er1 >conftest.err
8917 cat conftest.err >&5
8918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } && {
8920 test -z "$ac_c_werror_flag" ||
8921 test ! -s conftest.err
8922 } && test -s conftest$ac_exeext && {
8923 test "$cross_compiling" = yes ||
8924 $as_test_x conftest$ac_exeext
8927 lt_aix_libpath_sed='
8928 /Import File Strings/,/^$/ {
8934 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8935 # Check for a 64-bit object if we didn't find anything.
8936 if test -z "$aix_libpath"; then
8937 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8940 $as_echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8946 rm -rf conftest.dSYM
8947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8948 conftest$ac_exeext conftest.$ac_ext
8949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8951 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8952 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"
8954 if test "$host_cpu" = ia64; then
8955 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8956 allow_undefined_flag="-z nodefs"
8957 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"
8959 # Determine the default libpath from the value encoded in an
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (ac_try="$ac_link"
8979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8980 *) ac_try_echo
=$ac_try;;
8982 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8983 $as_echo "$ac_try_echo") >&5
8984 (eval "$ac_link") 2>conftest.er1
8986 grep -v '^ *+' conftest.er1
>conftest.err
8988 cat conftest.err
>&5
8989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } && {
8991 test -z "$ac_c_werror_flag" ||
8992 test ! -s conftest.err
8993 } && test -s conftest
$ac_exeext && {
8994 test "$cross_compiling" = yes ||
8995 $as_test_x conftest
$ac_exeext
8998 lt_aix_libpath_sed
='
8999 /Import File Strings/,/^$/ {
9005 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9006 # Check for a 64-bit object if we didn't find anything.
9007 if test -z "$aix_libpath"; then
9008 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9011 $as_echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.
$ac_ext >&5
9017 rm -rf conftest.dSYM
9018 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9019 conftest
$ac_exeext conftest.
$ac_ext
9020 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9022 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9023 # Warning - without using the other run time loading flags,
9024 # -berok will link without error, but may produce a broken library.
9025 no_undefined_flag
=' ${wl}-bernotok'
9026 allow_undefined_flag
=' ${wl}-berok'
9027 # Exported symbols can be pulled into shared objects from archives
9028 whole_archive_flag_spec
='$convenience'
9029 archive_cmds_need_lc
=yes
9030 # This is similar to how AIX traditionally builds its shared libraries.
9031 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'
9039 # see comment about AmigaOS4 .so support
9040 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 archive_expsym_cmds
=''
9044 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)'
9045 hardcode_libdir_flag_spec
='-L$libdir'
9046 hardcode_minus_L
=yes
9052 export_dynamic_flag_spec
=-rdynamic
9055 cygwin
* | mingw
* | pw32
* | cegcc
*)
9056 # When not using gcc, we currently assume that we are using
9057 # Microsoft Visual C++.
9058 # hardcode_libdir_flag_spec is actually meaningless, as there is
9059 # no search path for DLLs.
9060 hardcode_libdir_flag_spec
=' '
9061 allow_undefined_flag
=unsupported
9062 # Tell ltmain to make .lib files, not .a files.
9064 # Tell ltmain to make .dll files, not .so files.
9066 # FIXME: Setting linknames here is a bad hack.
9067 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9068 # The linker will automatically build a .lib file if we build a DLL.
9069 old_archive_from_new_cmds
='true'
9070 # FIXME: Should let the user specify the lib program.
9071 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9072 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9073 enable_shared_with_static_runtimes
=yes
9076 darwin
* | rhapsody
*)
9079 archive_cmds_need_lc
=no
9081 hardcode_automatic
=yes
9082 hardcode_shlibpath_var
=unsupported
9083 whole_archive_flag_spec
=''
9084 link_all_deplibs
=yes
9085 allow_undefined_flag
="$_lt_dar_allow_undefined"
9086 case $cc_basename in
9087 ifort
*) _lt_dar_can_shared
=yes ;;
9088 *) _lt_dar_can_shared
=$GCC ;;
9090 if test "$_lt_dar_can_shared" = "yes"; then
9091 output_verbose_link_cmd
=echo
9092 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9093 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9094 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}"
9095 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}"
9104 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9105 hardcode_libdir_flag_spec
='-L$libdir'
9106 hardcode_shlibpath_var
=no
9113 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9114 # support. Future versions do this automatically, but an explicit c++rt0.o
9115 # does not break anything, and helps significantly (at the cost of a little
9118 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9119 hardcode_libdir_flag_spec
='-R$libdir'
9121 hardcode_shlibpath_var
=no
9124 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9126 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9128 hardcode_minus_L
=yes
9129 hardcode_shlibpath_var
=no
9132 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9133 freebsd
* | dragonfly
*)
9134 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9135 hardcode_libdir_flag_spec
='-R$libdir'
9137 hardcode_shlibpath_var
=no
9141 if test "$GCC" = yes; then
9142 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'
9144 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'
9146 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9147 hardcode_libdir_separator
=:
9150 # hardcode_minus_L: Not really in the search PATH,
9151 # but as the default location of the library.
9152 hardcode_minus_L
=yes
9153 export_dynamic_flag_spec
='${wl}-E'
9157 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9158 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9162 if test "$with_gnu_ld" = no
; then
9163 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9164 hardcode_libdir_flag_spec_ld
='+b $libdir'
9165 hardcode_libdir_separator
=:
9167 hardcode_direct_absolute
=yes
9168 export_dynamic_flag_spec
='${wl}-E'
9169 # hardcode_minus_L: Not really in the search PATH,
9170 # but as the default location of the library.
9171 hardcode_minus_L
=yes
9176 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9179 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9182 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9185 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9191 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9194 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9197 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9201 if test "$with_gnu_ld" = no
; then
9202 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9203 hardcode_libdir_separator
=:
9208 hardcode_shlibpath_var
=no
9212 hardcode_direct_absolute
=yes
9213 export_dynamic_flag_spec
='${wl}-E'
9215 # hardcode_minus_L: Not really in the search PATH,
9216 # but as the default location of the library.
9217 hardcode_minus_L
=yes
9223 irix5
* | irix6
* | nonstopux
*)
9224 if test "$GCC" = yes; then
9225 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'
9226 # Try to use the -exported_symbol ld option, if it does not
9227 # work, assume that -exports_file does not work either and
9228 # implicitly export all symbols.
9229 save_LDFLAGS
="$LDFLAGS"
9230 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9231 cat >conftest.
$ac_ext <<_ACEOF
9234 rm -f conftest.
$ac_objext conftest
$ac_exeext
9235 if { (ac_try
="$ac_link"
9237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9238 *) ac_try_echo=$ac_try;;
9240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9241 $as_echo "$ac_try_echo") >&5
9242 (eval "$ac_link") 2>conftest.er1
9244 grep -v '^ *+' conftest.er1 >conftest.err
9246 cat conftest.err >&5
9247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } && {
9249 test -z "$ac_c_werror_flag" ||
9250 test ! -s conftest.err
9251 } && test -s conftest$ac_exeext && {
9252 test "$cross_compiling" = yes ||
9253 $as_test_x conftest$ac_exeext
9255 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'
9258 $as_echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9264 rm -rf conftest.dSYM
9265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9266 conftest$ac_exeext conftest.$ac_ext
9267 LDFLAGS="$save_LDFLAGS"
9269 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'
9270 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'
9272 archive_cmds_need_lc='no'
9273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9274 hardcode_libdir_separator=:
9276 link_all_deplibs=yes
9280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9283 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9285 hardcode_libdir_flag_spec='-R$libdir'
9287 hardcode_shlibpath_var=no
9291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294 hardcode_libdir_separator=:
9295 hardcode_shlibpath_var=no
9302 if test -f /usr/libexec/ld.so; then
9304 hardcode_shlibpath_var=no
9305 hardcode_direct_absolute=yes
9306 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9308 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9309 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9310 export_dynamic_flag_spec='${wl}-E'
9313 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9315 hardcode_libdir_flag_spec='-R$libdir'
9318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9319 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9329 hardcode_libdir_flag_spec='-L$libdir'
9330 hardcode_minus_L=yes
9331 allow_undefined_flag=unsupported
9332 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'
9333 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9337 if test "$GCC" = yes; then
9338 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9339 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'
9341 allow_undefined_flag=' -expect_unresolved \*'
9342 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'
9344 archive_cmds_need_lc='no'
9345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9346 hardcode_libdir_separator=:
9349 osf4* | osf5*) # as osf3* with the addition of -msym flag
9350 if test "$GCC" = yes; then
9351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9352 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
9353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9355 allow_undefined_flag=' -expect_unresolved \*'
9356 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'
9357 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~
9358 $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'
9360 # Both c and cxx compiler support -rpath directly
9361 hardcode_libdir_flag_spec='-rpath $libdir'
9363 archive_cmds_need_lc='no'
9364 hardcode_libdir_separator=:
9368 no_undefined_flag=' -z defs'
9369 if test "$GCC" = yes; then
9371 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9372 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9373 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9375 case `$CC -V 2>&1` in
9378 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9380 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9384 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9386 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9390 hardcode_libdir_flag_spec='-R$libdir'
9391 hardcode_shlibpath_var=no
9393 solaris2.[0-5] | solaris2.[0-5].*) ;;
9395 # The compiler driver will combine and reorder linker options,
9396 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9397 # but is careful enough not to reorder.
9398 # Supported since Solaris 2.6 (maybe 2.5.1?)
9399 if test "$GCC" = yes; then
9400 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9402 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9406 link_all_deplibs
=yes
9410 if test "x$host_vendor" = xsequent
; then
9411 # Use $CC to link under sequent, because it throws in some extra .o
9412 # files that make .init and .fini sections work.
9413 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_libdir_flag_spec
='-L$libdir'
9419 hardcode_minus_L
=yes
9420 hardcode_shlibpath_var
=no
9424 case $host_vendor in
9426 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427 hardcode_direct
=yes # is this really true???
9430 ## LD is ld it makes a PLAMLIB
9431 ## CC just makes a GrossModule.
9432 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9433 reload_cmds
='$CC -r -o $output$reload_objs'
9437 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9438 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9441 runpath_var
='LD_RUN_PATH'
9442 hardcode_shlibpath_var
=no
9446 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447 hardcode_shlibpath_var
=no
9448 export_dynamic_flag_spec
='-Bexport'
9452 if test -d /usr
/nec
; then
9453 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_shlibpath_var
=no
9455 runpath_var
=LD_RUN_PATH
9456 hardcode_runpath_var
=yes
9461 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9462 no_undefined_flag
='${wl}-z,text'
9463 archive_cmds_need_lc
=no
9464 hardcode_shlibpath_var
=no
9465 runpath_var
='LD_RUN_PATH'
9467 if test "$GCC" = yes; then
9468 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9469 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 sysv5
* | sco3.2v5
* | sco5v6
*)
9477 # Note: We can NOT use -z defs as we might desire, because we do not
9478 # link with -lc, and that would cause any symbols used from libc to
9479 # always be unresolved, which means just about no library would
9480 # ever link correctly. If we're not using GNU ld we use -z text
9481 # though, which does catch some bad symbols but isn't as heavy-handed
9483 no_undefined_flag
='${wl}-z,text'
9484 allow_undefined_flag
='${wl}-z,nodefs'
9485 archive_cmds_need_lc
=no
9486 hardcode_shlibpath_var
=no
9487 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9488 hardcode_libdir_separator
=':'
9489 link_all_deplibs
=yes
9490 export_dynamic_flag_spec
='${wl}-Bexport'
9491 runpath_var
='LD_RUN_PATH'
9493 if test "$GCC" = yes; then
9494 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9503 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504 hardcode_libdir_flag_spec
='-L$libdir'
9505 hardcode_shlibpath_var
=no
9513 if test x
$host_vendor = xsni
; then
9515 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9516 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9522 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9523 $as_echo "$ld_shlibs" >&6; }
9524 test "$ld_shlibs" = no
&& can_build_shared
=no
9526 with_gnu_ld
=$with_gnu_ld
9543 # Do we need to explicitly link libc?
9545 case "x$archive_cmds_need_lc" in
9547 # Assume -lc should be added
9548 archive_cmds_need_lc
=yes
9550 if test "$enable_shared" = yes && test "$GCC" = yes; then
9551 case $archive_cmds in
9553 # FIXME: we may have to deal with multi-command sequences.
9556 # Test whether the compiler implicitly links with -lc since on some
9557 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9558 # to ld, don't add -lc before -lgcc.
9559 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9560 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9562 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9565 (eval $ac_compile) 2>&5
9567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } 2>conftest.err
; then
9571 libobjs
=conftest.
$ac_objext
9573 wl
=$lt_prog_compiler_wl
9574 pic_flag
=$lt_prog_compiler_pic
9580 lt_save_allow_undefined_flag
=$allow_undefined_flag
9581 allow_undefined_flag
=
9582 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9583 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }
9588 archive_cmds_need_lc
=no
9590 archive_cmds_need_lc
=yes
9592 allow_undefined_flag
=$lt_save_allow_undefined_flag
9594 cat conftest.err
1>&5
9597 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9598 $as_echo "$archive_cmds_need_lc" >&6; }
9761 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9762 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9764 if test "$GCC" = yes; then
9766 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9767 *) lt_awk_arg
="/^libraries:/" ;;
9769 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9770 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9771 # if the path contains ";" then we assume it to be the separator
9772 # otherwise default to the standard path separator (i.e. ":") - it is
9773 # assumed that no part of a normal pathname contains ";" but that should
9774 # okay in the real world where ";" in dirpaths is itself problematic.
9775 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9777 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9779 # Ok, now we have the path, separated by spaces, we can step through it
9780 # and add multilib dir if necessary.
9781 lt_tmp_lt_search_path_spec
=
9782 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9783 for lt_sys_path
in $lt_search_path_spec; do
9784 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9785 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9787 test -d "$lt_sys_path" && \
9788 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9791 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9792 BEGIN {RS=" "; FS="/|\n";} {
9795 for (lt_i = NF; lt_i > 0; lt_i--) {
9796 if ($lt_i != "" && $lt_i != ".") {
9797 if ($lt_i == "..") {
9800 if (lt_count == 0) {
9801 lt_foo="/" $lt_i lt_foo;
9808 if (lt_foo != "") { lt_freq[lt_foo]++; }
9809 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9811 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9813 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9816 libname_spec
='lib$name'
9824 shlibpath_overrides_runpath
=unknown
9826 dynamic_linker
="$host_os ld.so"
9827 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9828 need_lib_prefix
=unknown
9829 hardcode_into_libs
=no
9831 # when you set need_version to no, make sure it does not cause -set_version
9832 # flags to be left without arguments
9833 need_version
=unknown
9838 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9839 shlibpath_var
=LIBPATH
9841 # AIX 3 has no versioning support, so we append a major version to the name.
9842 soname_spec
='${libname}${release}${shared_ext}$major'
9849 hardcode_into_libs
=yes
9850 if test "$host_cpu" = ia64
; then
9851 # AIX 5 supports IA64
9852 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9853 shlibpath_var
=LD_LIBRARY_PATH
9855 # With GCC up to 2.95.x, collect2 would create an import file
9856 # for dependence libraries. The import file would start with
9857 # the line `#! .'. This would cause the generated library to
9858 # depend on `.', always an invalid library. This was fixed in
9859 # development snapshots of GCC prior to 3.0.
9861 aix4 | aix4.
[01] | aix4.
[01].
*)
9862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9864 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9872 # soname into executable. Probably we can add versioning support to
9873 # collect2, so additional links can be useful in future.
9874 if test "$aix_use_runtimelinking" = yes; then
9875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9876 # instead of lib<name>.a to let people know that these are not
9877 # typical AIX shared libraries.
9878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 # We preserve .a as extension for shared libraries through AIX4.2
9881 # and later when we are not doing run time linking.
9882 library_names_spec
='${libname}${release}.a $libname.a'
9883 soname_spec
='${libname}${release}${shared_ext}$major'
9885 shlibpath_var
=LIBPATH
9892 # Since July 2007 AmigaOS4 officially supports .so libraries.
9893 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897 library_names_spec
='$libname.ixlibrary $libname.a'
9898 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9899 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'
9905 library_names_spec
='${libname}${shared_ext}'
9906 dynamic_linker
="$host_os ld.so"
9907 shlibpath_var
=LIBRARY_PATH
9913 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 soname_spec
='${libname}${release}${shared_ext}$major'
9915 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9916 shlibpath_var
=LD_LIBRARY_PATH
9917 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9918 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9919 # the default ld.so.conf also contains /usr/contrib/lib and
9920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9921 # libtool to hard-code these into programs
9924 cygwin
* | mingw
* | pw32
* | cegcc
*)
9925 version_type
=windows
9930 case $GCC,$host_os in
9931 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9932 library_names_spec
='$libname.dll.a'
9933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9934 postinstall_cmds
='base_file=`basename \${file}`~
9935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9936 dldir=$destdir/`dirname \$dlpath`~
9937 test -d \$dldir || mkdir -p \$dldir~
9938 $install_prog $dir/$dlname \$dldir/$dlname~
9939 chmod a+x \$dldir/$dlname~
9940 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9941 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9943 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9944 dlpath=$dir/\$dldll~
9946 shlibpath_overrides_runpath
=yes
9950 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9951 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9952 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9955 # MinGW DLLs use traditional 'lib' prefix
9956 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9957 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9958 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9959 # It is most probably a Windows format PATH printed by
9960 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9961 # path with ; separators, and with drive letters. We can handle the
9962 # drive letters (cygwin fileutils understands them), so leave them,
9963 # especially as we might pass files found there to a mingw objdump,
9964 # which wouldn't understand a cygwinified path. Ahh.
9965 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9967 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9971 # pw32 DLLs use 'pw' prefix rather than 'lib'
9972 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9978 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9981 dynamic_linker
='Win32 ld.exe'
9982 # FIXME: first we should search . and the directory the executable is in
9986 darwin
* | rhapsody
*)
9987 dynamic_linker
="$host_os dyld"
9991 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9992 soname_spec
='${libname}${release}${major}$shared_ext'
9993 shlibpath_overrides_runpath
=yes
9994 shlibpath_var
=DYLD_LIBRARY_PATH
9995 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9997 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9998 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10006 soname_spec
='${libname}${release}${shared_ext}$major'
10007 shlibpath_var
=LD_LIBRARY_PATH
10014 freebsd
* | dragonfly
*)
10015 # DragonFly does not have aout. When/if they implement a new
10016 # versioning mechanism, adjust this.
10017 if test -x /usr
/bin
/objformat
; then
10018 objformat
=`/usr/bin/objformat`
10021 freebsd
[123]*) objformat
=aout
;;
10022 *) objformat
=elf
;;
10025 version_type
=freebsd-
$objformat
10026 case $version_type in
10028 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10033 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10037 shlibpath_var
=LD_LIBRARY_PATH
10040 shlibpath_overrides_runpath
=yes
10042 freebsd3.
[01]* | freebsdelf3.
[01]*)
10043 shlibpath_overrides_runpath
=yes
10044 hardcode_into_libs
=yes
10046 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10047 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10048 shlibpath_overrides_runpath
=no
10049 hardcode_into_libs
=yes
10051 *) # from 4.6 on, and DragonFly
10052 shlibpath_overrides_runpath
=yes
10053 hardcode_into_libs
=yes
10062 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10063 soname_spec
='${libname}${release}${shared_ext}$major'
10064 shlibpath_var
=LD_LIBRARY_PATH
10065 hardcode_into_libs
=yes
10068 hpux9
* | hpux10
* | hpux11
*)
10069 # Give a soname corresponding to the major version so that dld.sl refuses to
10070 # link against other versions.
10077 hardcode_into_libs
=yes
10078 dynamic_linker
="$host_os dld.so"
10079 shlibpath_var
=LD_LIBRARY_PATH
10080 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082 soname_spec
='${libname}${release}${shared_ext}$major'
10083 if test "X$HPUX_IA64_MODE" = X32
; then
10084 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10086 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10088 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10092 hardcode_into_libs
=yes
10093 dynamic_linker
="$host_os dld.sl"
10094 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10095 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10096 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 soname_spec
='${libname}${release}${shared_ext}$major'
10098 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10099 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10103 dynamic_linker
="$host_os dld.sl"
10104 shlibpath_var
=SHLIB_PATH
10105 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 soname_spec
='${libname}${release}${shared_ext}$major'
10110 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10111 postinstall_cmds
='chmod 555 $lib'
10118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10119 soname_spec
='${libname}${release}${shared_ext}$major'
10120 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10121 shlibpath_var
=LD_LIBRARY_PATH
10122 shlibpath_overrides_runpath
=no
10123 hardcode_into_libs
=yes
10126 irix5
* | irix6
* | nonstopux
*)
10128 nonstopux
*) version_type
=nonstopux
;;
10130 if test "$lt_cv_prog_gnu_ld" = yes; then
10138 soname_spec
='${libname}${release}${shared_ext}$major'
10139 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10141 irix5
* | nonstopux
*)
10142 libsuff
= shlibsuff
=
10145 case $LD in # libtool.m4 will add one of these switches to LD
10146 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10147 libsuff
= shlibsuff
= libmagic
=32-bit;;
10148 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10149 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10150 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10151 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10152 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10156 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10157 shlibpath_overrides_runpath
=no
10158 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10159 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10160 hardcode_into_libs
=yes
10163 # No shared lib support for Linux oldld, aout, or coff.
10164 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10168 # This must be Linux ELF.
10169 linux
* | k
*bsd
*-gnu)
10173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174 soname_spec
='${libname}${release}${shared_ext}$major'
10175 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10176 shlibpath_var
=LD_LIBRARY_PATH
10177 shlibpath_overrides_runpath
=no
10178 # Some binutils ld are patched to set DT_RUNPATH
10179 save_LDFLAGS
=$LDFLAGS
10180 save_libdir
=$libdir
10181 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10182 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10183 cat >conftest.
$ac_ext <<_ACEOF
10186 cat confdefs.h
>>conftest.
$ac_ext
10187 cat >>conftest.
$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10198 rm -f conftest.
$ac_objext conftest
$ac_exeext
10199 if { (ac_try
="$ac_link"
10200 case "(($ac_try" in
10201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10205 $as_echo "$ac_try_echo") >&5
10206 (eval "$ac_link") 2>conftest.er1
10208 grep -v '^ *+' conftest.er1 >conftest.err
10210 cat conftest.err >&5
10211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } && {
10213 test -z "$ac_c_werror_flag" ||
10214 test ! -s conftest.err
10215 } && test -s conftest$ac_exeext && {
10216 test "$cross_compiling" = yes ||
10217 $as_test_x conftest$ac_exeext
10219 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10220 shlibpath_overrides_runpath=yes
10224 $as_echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10230 rm -rf conftest.dSYM
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LDFLAGS=$save_LDFLAGS
10234 libdir=$save_libdir
10236 # This implies no fast_install, which is unacceptable.
10237 # Some rework will be needed to allow for fast_install
10238 # before this can be enabled.
10239 hardcode_into_libs=yes
10241 # Add ABI-specific directories to the system library path.
10242 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10244 # Append ld.so.conf contents to the search path
10245 if test -f /etc/ld.so.conf; then
10246 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' ' '`
10247 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10250 # We used to test for /lib/ld.so.1 and disable shared libraries on
10251 # powerpc, because MkLinux only supported shared libraries with the
10252 # GNU dynamic linker. Since this was broken with cross compilers,
10253 # most powerpc-linux boxes support dynamic linking these days and
10254 # people can always --disable-shared, the test was removed, and we
10255 # assume the GNU/Linux dynamic linker is in use.
10256 dynamic_linker='GNU/Linux ld.so'
10263 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10266 dynamic_linker='NetBSD (a.out) ld.so'
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10269 soname_spec='${libname}${release}${shared_ext}$major'
10270 dynamic_linker='NetBSD ld.elf_so'
10272 shlibpath_var=LD_LIBRARY_PATH
10273 shlibpath_overrides_runpath=yes
10274 hardcode_into_libs=yes
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 shlibpath_var=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath=yes
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 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=no
10292 hardcode_into_libs=yes
10293 dynamic_linker='ldqnx.so'
10298 sys_lib_dlsearch_path_spec="/usr/lib"
10300 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10302 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10303 *) need_version=no ;;
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10310 openbsd2.[89] | openbsd2.[89].*)
10311 shlibpath_overrides_runpath=no
10314 shlibpath_overrides_runpath=yes
10318 shlibpath_overrides_runpath=yes
10323 libname_spec='$name'
10326 library_names_spec='$libname${shared_ext} $libname.a'
10327 dynamic_linker='OS/2 ld.exe'
10328 shlibpath_var=LIBPATH
10331 osf3* | osf4* | osf5*)
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10339 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 shlibpath_var=LD_LIBRARY_PATH
10353 shlibpath_overrides_runpath=yes
10354 hardcode_into_libs=yes
10355 # ldd complains unless libraries are executable
10356 postinstall_cmds='chmod +x $lib'
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10362 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 shlibpath_overrides_runpath=yes
10365 if test "$with_gnu_ld" = yes; then
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 case $host_vendor in
10378 shlibpath_overrides_runpath=no
10380 runpath_var=LD_RUN_PATH
10388 shlibpath_overrides_runpath=no
10389 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10395 if test -d /usr/nec ;then
10397 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10398 soname_spec='$libname${shared_ext}.$major'
10399 shlibpath_var=LD_LIBRARY_PATH
10403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10404 version_type=freebsd-elf
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=yes
10411 hardcode_into_libs=yes
10412 if test "$with_gnu_ld" = yes; then
10413 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10415 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10418 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10422 sys_lib_dlsearch_path_spec='/usr/lib'
10426 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 shlibpath_overrides_runpath=no
10433 hardcode_into_libs=yes
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 shlibpath_var=LD_LIBRARY_PATH
10447 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10448 $as_echo "$dynamic_linker" >&6; }
10449 test "$dynamic_linker" = no && can_build_shared=no
10451 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10452 if test "$GCC" = yes; then
10453 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10456 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10457 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10459 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10460 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10549 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10550 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10552 if test -n "$hardcode_libdir_flag_spec" ||
10553 test -n "$runpath_var" ||
10554 test "X$hardcode_automatic" = "Xyes" ; then
10556 # We can hardcode non-existent directories.
10557 if test "$hardcode_direct" != no &&
10558 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10559 # have to relink, otherwise we might link with an installed library
10560 # when we should be linking with a yet-to-be-installed one
10561 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10562 test "$hardcode_minus_L" != no; then
10563 # Linking always hardcodes the temporary library directory.
10564 hardcode_action=relink
10566 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10567 hardcode_action=immediate
10570 # We cannot hardcode anything, or else we can only hardcode existing
10572 hardcode_action=unsupported
10574 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10575 $as_echo "$hardcode_action" >&6; }
10577 if test "$hardcode_action" = relink ||
10578 test "$inherit_rpath" = yes; then
10579 # Fast installation is not supported
10580 enable_fast_install=no
10581 elif test "$shlibpath_overrides_runpath" = yes ||
10582 test "$enable_shared" = no; then
10583 # Fast installation is not necessary
10584 enable_fast_install=needless
10592 if test "x$enable_dlopen" != xyes; then
10593 enable_dlopen=unknown
10594 enable_dlopen_self=unknown
10595 enable_dlopen_self_static=unknown
10602 lt_cv_dlopen="load_add_on"
10604 lt_cv_dlopen_self=yes
10607 mingw* | pw32* | cegcc*)
10608 lt_cv_dlopen="LoadLibrary"
10613 lt_cv_dlopen="dlopen"
10618 # if libdl is installed we need to link against it
10619 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10620 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10622 $as_echo_n "(cached) " >&6
10624 ac_check_lib_save_LIBS=$LIBS
10626 cat >conftest.$ac_ext <<_ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10633 /* Override any GCC internal prototype to avoid an error.
10634 Use char because int might match the return type of a GCC
10635 builtin and then its argument prototype would still apply. */
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (ac_try="$ac_link"
10650 case "(($ac_try" in
10651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10652 *) ac_try_echo
=$ac_try;;
10654 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10655 $as_echo "$ac_try_echo") >&5
10656 (eval "$ac_link") 2>conftest.er1
10658 grep -v '^ *+' conftest.er1
>conftest.err
10660 cat conftest.err
>&5
10661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } && {
10663 test -z "$ac_c_werror_flag" ||
10664 test ! -s conftest.err
10665 } && test -s conftest
$ac_exeext && {
10666 test "$cross_compiling" = yes ||
10667 $as_test_x conftest
$ac_exeext
10669 ac_cv_lib_dl_dlopen
=yes
10671 $as_echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.
$ac_ext >&5
10674 ac_cv_lib_dl_dlopen
=no
10677 rm -rf conftest.dSYM
10678 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10679 conftest
$ac_exeext conftest.
$ac_ext
10680 LIBS
=$ac_check_lib_save_LIBS
10682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10683 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10684 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10685 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10688 lt_cv_dlopen
="dyld"
10690 lt_cv_dlopen_self
=yes
10697 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10698 $as_echo_n "checking for shl_load... " >&6; }
10699 if test "${ac_cv_func_shl_load+set}" = set; then
10700 $as_echo_n "(cached) " >&6
10702 cat >conftest.
$ac_ext <<_ACEOF
10705 cat confdefs.h
>>conftest.
$ac_ext
10706 cat >>conftest.
$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10710 #define shl_load innocuous_shl_load
10712 /* System header to define __stub macros and hopefully few prototypes,
10713 which can conflict with char shl_load (); below.
10714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10715 <limits.h> exists even on freestanding compilers. */
10718 # include <limits.h>
10720 # include <assert.h>
10725 /* Override any GCC internal prototype to avoid an error.
10726 Use char because int might match the return type of a GCC
10727 builtin and then its argument prototype would still apply. */
10732 /* The GNU C library defines this for functions which it implements
10733 to always fail with ENOSYS. Some functions are actually named
10734 something starting with __ and the normal name is an alias. */
10735 #if defined __stub_shl_load || defined __stub___shl_load
10742 return shl_load ();
10747 rm -f conftest.
$ac_objext conftest
$ac_exeext
10748 if { (ac_try
="$ac_link"
10749 case "(($ac_try" in
10750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10754 $as_echo "$ac_try_echo") >&5
10755 (eval "$ac_link") 2>conftest.er1
10757 grep -v '^ *+' conftest.er1 >conftest.err
10759 cat conftest.err >&5
10760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } && {
10762 test -z "$ac_c_werror_flag" ||
10763 test ! -s conftest.err
10764 } && test -s conftest$ac_exeext && {
10765 test "$cross_compiling" = yes ||
10766 $as_test_x conftest$ac_exeext
10768 ac_cv_func_shl_load=yes
10770 $as_echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 ac_cv_func_shl_load=no
10776 rm -rf conftest.dSYM
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778 conftest$ac_exeext conftest.$ac_ext
10780 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10781 $as_echo "$ac_cv_func_shl_load" >&6; }
10782 if test "x$ac_cv_func_shl_load" = x""yes; then
10783 lt_cv_dlopen="shl_load"
10785 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10786 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10787 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10788 $as_echo_n "(cached) " >&6
10790 ac_check_lib_save_LIBS=$LIBS
10792 cat >conftest.$ac_ext <<_ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10799 /* Override any GCC internal prototype to avoid an error.
10800 Use char because int might match the return type of a GCC
10801 builtin and then its argument prototype would still apply. */
10809 return shl_load ();
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (ac_try="$ac_link"
10816 case "(($ac_try" in
10817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10818 *) ac_try_echo
=$ac_try;;
10820 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10821 $as_echo "$ac_try_echo") >&5
10822 (eval "$ac_link") 2>conftest.er1
10824 grep -v '^ *+' conftest.er1
>conftest.err
10826 cat conftest.err
>&5
10827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } && {
10829 test -z "$ac_c_werror_flag" ||
10830 test ! -s conftest.err
10831 } && test -s conftest
$ac_exeext && {
10832 test "$cross_compiling" = yes ||
10833 $as_test_x conftest
$ac_exeext
10835 ac_cv_lib_dld_shl_load
=yes
10837 $as_echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.
$ac_ext >&5
10840 ac_cv_lib_dld_shl_load
=no
10843 rm -rf conftest.dSYM
10844 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10845 conftest
$ac_exeext conftest.
$ac_ext
10846 LIBS
=$ac_check_lib_save_LIBS
10848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10849 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10850 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10851 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10853 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10854 $as_echo_n "checking for dlopen... " >&6; }
10855 if test "${ac_cv_func_dlopen+set}" = set; then
10856 $as_echo_n "(cached) " >&6
10858 cat >conftest.
$ac_ext <<_ACEOF
10861 cat confdefs.h
>>conftest.
$ac_ext
10862 cat >>conftest.
$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10866 #define dlopen innocuous_dlopen
10868 /* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char dlopen (); below.
10870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 <limits.h> exists even on freestanding compilers. */
10874 # include <limits.h>
10876 # include <assert.h>
10881 /* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
10888 /* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891 #if defined __stub_dlopen || defined __stub___dlopen
10903 rm -f conftest.
$ac_objext conftest
$ac_exeext
10904 if { (ac_try
="$ac_link"
10905 case "(($ac_try" in
10906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10910 $as_echo "$ac_try_echo") >&5
10911 (eval "$ac_link") 2>conftest.er1
10913 grep -v '^ *+' conftest.er1 >conftest.err
10915 cat conftest.err >&5
10916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && {
10918 test -z "$ac_c_werror_flag" ||
10919 test ! -s conftest.err
10920 } && test -s conftest$ac_exeext && {
10921 test "$cross_compiling" = yes ||
10922 $as_test_x conftest$ac_exeext
10924 ac_cv_func_dlopen=yes
10926 $as_echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ac_cv_func_dlopen=no
10932 rm -rf conftest.dSYM
10933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10934 conftest$ac_exeext conftest.$ac_ext
10936 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10937 $as_echo "$ac_cv_func_dlopen" >&6; }
10938 if test "x$ac_cv_func_dlopen" = x""yes; then
10939 lt_cv_dlopen="dlopen"
10941 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10942 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10944 $as_echo_n "(cached) " >&6
10946 ac_check_lib_save_LIBS=$LIBS
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (ac_try="$ac_link"
10972 case "(($ac_try" in
10973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10974 *) ac_try_echo
=$ac_try;;
10976 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10977 $as_echo "$ac_try_echo") >&5
10978 (eval "$ac_link") 2>conftest.er1
10980 grep -v '^ *+' conftest.er1
>conftest.err
10982 cat conftest.err
>&5
10983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } && {
10985 test -z "$ac_c_werror_flag" ||
10986 test ! -s conftest.err
10987 } && test -s conftest
$ac_exeext && {
10988 test "$cross_compiling" = yes ||
10989 $as_test_x conftest
$ac_exeext
10991 ac_cv_lib_dl_dlopen
=yes
10993 $as_echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.
$ac_ext >&5
10996 ac_cv_lib_dl_dlopen
=no
10999 rm -rf conftest.dSYM
11000 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11001 conftest
$ac_exeext conftest.
$ac_ext
11002 LIBS
=$ac_check_lib_save_LIBS
11004 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11005 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11006 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
11007 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11009 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11010 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11011 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11012 $as_echo_n "(cached) " >&6
11014 ac_check_lib_save_LIBS
=$LIBS
11015 LIBS
="-lsvld $LIBS"
11016 cat >conftest.
$ac_ext <<_ACEOF
11019 cat confdefs.h
>>conftest.
$ac_ext
11020 cat >>conftest.
$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11023 /* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11038 rm -f conftest.
$ac_objext conftest
$ac_exeext
11039 if { (ac_try
="$ac_link"
11040 case "(($ac_try" in
11041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11045 $as_echo "$ac_try_echo") >&5
11046 (eval "$ac_link") 2>conftest.er1
11048 grep -v '^ *+' conftest.er1 >conftest.err
11050 cat conftest.err >&5
11051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } && {
11053 test -z "$ac_c_werror_flag" ||
11054 test ! -s conftest.err
11055 } && test -s conftest$ac_exeext && {
11056 test "$cross_compiling" = yes ||
11057 $as_test_x conftest$ac_exeext
11059 ac_cv_lib_svld_dlopen=yes
11061 $as_echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11064 ac_cv_lib_svld_dlopen=no
11067 rm -rf conftest.dSYM
11068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11069 conftest$ac_exeext conftest.$ac_ext
11070 LIBS=$ac_check_lib_save_LIBS
11072 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11073 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11074 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11077 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11078 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11079 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11080 $as_echo_n "(cached) " >&6
11082 ac_check_lib_save_LIBS=$LIBS
11084 cat >conftest.$ac_ext <<_ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11091 /* Override any GCC internal prototype to avoid an error.
11092 Use char because int might match the return type of a GCC
11093 builtin and then its argument prototype would still apply. */
11101 return dld_link ();
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (ac_try="$ac_link"
11108 case "(($ac_try" in
11109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11110 *) ac_try_echo
=$ac_try;;
11112 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11113 $as_echo "$ac_try_echo") >&5
11114 (eval "$ac_link") 2>conftest.er1
11116 grep -v '^ *+' conftest.er1
>conftest.err
11118 cat conftest.err
>&5
11119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } && {
11121 test -z "$ac_c_werror_flag" ||
11122 test ! -s conftest.err
11123 } && test -s conftest
$ac_exeext && {
11124 test "$cross_compiling" = yes ||
11125 $as_test_x conftest
$ac_exeext
11127 ac_cv_lib_dld_dld_link
=yes
11129 $as_echo "$as_me: failed program was:" >&5
11130 sed 's/^/| /' conftest.
$ac_ext >&5
11132 ac_cv_lib_dld_dld_link
=no
11135 rm -rf conftest.dSYM
11136 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11137 conftest
$ac_exeext conftest.
$ac_ext
11138 LIBS
=$ac_check_lib_save_LIBS
11140 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11141 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11142 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11143 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11164 if test "x$lt_cv_dlopen" != xno
; then
11170 case $lt_cv_dlopen in
11172 save_CPPFLAGS
="$CPPFLAGS"
11173 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11175 save_LDFLAGS
="$LDFLAGS"
11176 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11179 LIBS
="$lt_cv_dlopen_libs $LIBS"
11181 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11182 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11183 if test "${lt_cv_dlopen_self+set}" = set; then
11184 $as_echo_n "(cached) " >&6
11186 if test "$cross_compiling" = yes; then :
11187 lt_cv_dlopen_self
=cross
11189 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11190 lt_status
=$lt_dlunknown
11191 cat > conftest.
$ac_ext <<_LT_EOF
11192 #line 11192 "configure"
11193 #include "confdefs.h"
11202 # define LT_DLGLOBAL RTLD_GLOBAL
11205 # define LT_DLGLOBAL DL_GLOBAL
11207 # define LT_DLGLOBAL 0
11211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11212 find out it does not work in some platform. */
11213 #ifndef LT_DLLAZY_OR_NOW
11215 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11218 # define LT_DLLAZY_OR_NOW DL_LAZY
11221 # define LT_DLLAZY_OR_NOW RTLD_NOW
11224 # define LT_DLLAZY_OR_NOW DL_NOW
11226 # define LT_DLLAZY_OR_NOW 0
11233 void fnord() { int i=42;}
11236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11237 int status = $lt_dlunknown;
11241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11242 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11243 /* dlclose (self); */
11251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11252 (eval $ac_link) 2>&5
11254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11256 (.
/conftest
; exit; ) >&5 2>/dev
/null
11258 case x
$lt_status in
11259 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11260 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11261 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11264 # compilation failed
11265 lt_cv_dlopen_self
=no
11272 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11273 $as_echo "$lt_cv_dlopen_self" >&6; }
11275 if test "x$lt_cv_dlopen_self" = xyes
; then
11276 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11277 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11278 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11279 if test "${lt_cv_dlopen_self_static+set}" = set; then
11280 $as_echo_n "(cached) " >&6
11282 if test "$cross_compiling" = yes; then :
11283 lt_cv_dlopen_self_static
=cross
11285 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11286 lt_status
=$lt_dlunknown
11287 cat > conftest.
$ac_ext <<_LT_EOF
11288 #line 11288 "configure"
11289 #include "confdefs.h"
11298 # define LT_DLGLOBAL RTLD_GLOBAL
11301 # define LT_DLGLOBAL DL_GLOBAL
11303 # define LT_DLGLOBAL 0
11307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11308 find out it does not work in some platform. */
11309 #ifndef LT_DLLAZY_OR_NOW
11311 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11314 # define LT_DLLAZY_OR_NOW DL_LAZY
11317 # define LT_DLLAZY_OR_NOW RTLD_NOW
11320 # define LT_DLLAZY_OR_NOW DL_NOW
11322 # define LT_DLLAZY_OR_NOW 0
11329 void fnord() { int i=42;}
11332 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11333 int status = $lt_dlunknown;
11337 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11338 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11339 /* dlclose (self); */
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348 (eval $ac_link) 2>&5
11350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11352 (.
/conftest
; exit; ) >&5 2>/dev
/null
11354 case x
$lt_status in
11355 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11356 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11357 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11360 # compilation failed
11361 lt_cv_dlopen_self_static
=no
11368 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11369 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11372 CPPFLAGS
="$save_CPPFLAGS"
11373 LDFLAGS
="$save_LDFLAGS"
11378 case $lt_cv_dlopen_self in
11379 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11380 *) enable_dlopen_self
=unknown
;;
11383 case $lt_cv_dlopen_self_static in
11384 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11385 *) enable_dlopen_self_static
=unknown
;;
11407 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11408 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11409 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11410 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11411 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11412 { $as_echo "$as_me:$LINENO: result: yes" >&5
11413 $as_echo "yes" >&6; }
11415 # FIXME - insert some real tests, host_os isn't really good enough
11418 if test -n "$STRIP" ; then
11419 striplib
="$STRIP -x"
11420 old_striplib
="$STRIP -S"
11421 { $as_echo "$as_me:$LINENO: result: yes" >&5
11422 $as_echo "yes" >&6; }
11424 { $as_echo "$as_me:$LINENO: result: no" >&5
11425 $as_echo "no" >&6; }
11429 { $as_echo "$as_me:$LINENO: result: no" >&5
11430 $as_echo "no" >&6; }
11446 # Report which library types will actually be built
11447 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11448 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11449 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11450 $as_echo "$can_build_shared" >&6; }
11452 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11453 $as_echo_n "checking whether to build shared libraries... " >&6; }
11454 test "$can_build_shared" = "no" && enable_shared
=no
11456 # On AIX, shared libraries and static libraries use the same namespace, and
11457 # are all built from PIC.
11460 test "$enable_shared" = yes && enable_static
=no
11461 if test -n "$RANLIB"; then
11462 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11463 postinstall_cmds
='$RANLIB $lib'
11468 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11469 test "$enable_shared" = yes && enable_static
=no
11473 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11474 $as_echo "$enable_shared" >&6; }
11476 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11477 $as_echo_n "checking whether to build static libraries... " >&6; }
11478 # Make sure either enable_shared or enable_static is yes.
11479 test "$enable_shared" = yes || enable_static
=yes
11480 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11481 $as_echo "$enable_static" >&6; }
11488 ac_cpp
='$CPP $CPPFLAGS'
11489 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11490 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11507 ac_config_commands
="$ac_config_commands libtool"
11512 # Only expand once:
11515 # By default we simply use the C compiler to build assembly code.
11517 test "${CCAS+set}" = set || CCAS
=$CC
11518 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11522 depcc
="$CCAS" am_compiler_list
=
11524 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11525 $as_echo_n "checking dependency style of $depcc... " >&6; }
11526 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11527 $as_echo_n "(cached) " >&6
11529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11530 # We make a subdir and do the tests there. Otherwise we can end up
11531 # making bogus files that we don't know about and never remove. For
11532 # instance it was reported that on HP-UX the gcc test will end up
11533 # making a dummy file named `D' -- because `-MD' means `put the output
11536 # Copy depcomp to subdir because otherwise we won't find it if we're
11537 # using a relative directory.
11538 cp "$am_depcomp" conftest.dir
11540 # We will build objects and dependencies in a subdirectory because
11541 # it helps to detect inapplicable dependency modes. For instance
11542 # both Tru64's cc and ICC support -MD to output dependencies as a
11543 # side effect of compilation, but ICC will put the dependencies in
11544 # the current directory while Tru64 will put them in the object
11548 am_cv_CCAS_dependencies_compiler_type
=none
11549 if test "$am_compiler_list" = ""; then
11550 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11552 am__universal
=false
11555 for depmode
in $am_compiler_list; do
11556 # Setup a source with many dependencies, because some compilers
11557 # like to wrap large dependency lists on column 80 (with \), and
11558 # we should not choose a depcomp mode which is confused by this.
11560 # We need to recreate these files for each test, as the compiler may
11561 # overwrite some of them when testing with obscure command lines.
11562 # This happens at least with the AIX C compiler.
11564 for i
in 1 2 3 4 5 6; do
11565 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11566 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11567 # Solaris 8's {/usr,}/bin/sh.
11568 touch sub
/conftst
$i.h
11570 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11572 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11573 # mode. It turns out that the SunPro C++ compiler does not properly
11574 # handle `-M -o', and we need to detect this. Also, some Intel
11575 # versions had trouble with output in subdirs
11576 am__obj
=sub
/conftest.
${OBJEXT-o}
11577 am__minus_obj
="-o $am__obj"
11580 # This depmode causes a compiler race in universal mode.
11581 test "$am__universal" = false ||
continue
11584 # after this tag, mechanisms are not by side-effect, so they'll
11585 # only be used when explicitly requested
11586 if test "x$enable_dependency_tracking" = xyes
; then
11592 msvisualcpp | msvcmsys
)
11593 # This compiler won't grok `-c -o', but also, the minuso test has
11594 # not run yet. These depmodes are late enough in the game, and
11595 # so weak that their functioning should not be impacted.
11596 am__obj
=conftest.
${OBJEXT-o}
11601 if depmode
=$depmode \
11602 source=sub
/conftest.c object
=$am__obj \
11603 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11604 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11605 >/dev
/null
2>conftest.err
&&
11606 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11607 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11608 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11609 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11610 # icc doesn't choke on unknown options, it will just issue warnings
11611 # or remarks (even with -Werror). So we grep stderr for any message
11612 # that says an option was ignored or not supported.
11613 # When given -MP, icc 7.0 and 7.1 complain thusly:
11614 # icc: Command line warning: ignoring option '-M'; no argument required
11615 # The diagnosis changed in icc 8.0:
11616 # icc: Command line remark: option '-MP' not supported
11617 if (grep 'ignoring option' conftest.err ||
11618 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11619 am_cv_CCAS_dependencies_compiler_type
=$depmode
11626 rm -rf conftest.dir
11628 am_cv_CCAS_dependencies_compiler_type
=none
11632 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11633 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11634 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11637 test "x$enable_dependency_tracking" != xno \
11638 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11639 am__fastdepCCAS_TRUE
=
11640 am__fastdepCCAS_FALSE
='#'
11642 am__fastdepCCAS_TRUE
='#'
11643 am__fastdepCCAS_FALSE
=
11649 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11650 $as_echo_n "checking zfs author... " >&6; }
11651 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11652 $as_echo "$ZFS_META_AUTHOR" >&6; }
11654 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11655 $as_echo_n "checking zfs license... " >&6; }
11656 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11657 $as_echo "$ZFS_META_LICENSE" >&6; }
11664 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11665 $as_echo_n "checking whether $RPM is available... " >&6; }
11666 if tmp
=$
($RPM --version 2>/dev
/null
); then
11668 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11670 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11671 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11676 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11677 $as_echo "$HAVE_RPM" >&6; }
11682 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11683 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11684 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then
11686 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11688 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11689 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11694 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11695 $as_echo "$HAVE_RPMBUILD" >&6; }
11710 DPKGBUILD
=dpkg-buildpackage
11712 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11713 $as_echo_n "checking whether $DPKG is available... " >&6; }
11714 if tmp
=$
($DPKG --version 2>/dev
/null
); then
11716 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11718 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11719 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11724 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11725 $as_echo "$HAVE_DPKG" >&6; }
11730 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11731 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11732 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then
11734 DPKGBUILD_VERSION
=$
(echo $tmp | \
11735 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11737 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11738 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11743 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11744 $as_echo "$HAVE_DPKGBUILD" >&6; }
11760 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11761 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11762 if tmp
=$
($ALIEN --version 2>/dev
/null
); then
11764 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11766 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11767 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11772 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11773 $as_echo "$HAVE_ALIEN" >&6; }
11783 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11784 $as_echo_n "checking linux distribution... " >&6; }
11785 if test -f /etc
/redhat-release
; then
11787 elif test -f /etc
/fedora-release
; then
11789 elif test -f /etc
/gentoo-release
; then
11791 elif test -f /etc
/debian_version
; then
11793 elif test -f /etc
/SuSE-release
; then
11795 elif test -f /etc
/slackware-version
; then
11797 elif test -f /etc
/lsb-release
; then
11799 elif test -f /etc
/lunar.release
; then
11804 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11805 $as_echo "$VENDOR" >&6; }
11808 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11809 $as_echo_n "checking default package type... " >&6; }
11811 redhat
) DEFAULT_PACKAGE
=rpm
;;
11812 fedora
) DEFAULT_PACKAGE
=rpm
;;
11813 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11814 debian
) DEFAULT_PACKAGE
=deb
;;
11815 sles
) DEFAULT_PACKAGE
=rpm
;;
11816 slackware
) DEFAULT_PACKAGE
=tgz
;;
11817 gentoo
) DEFAULT_PACKAGE
=tgz
;;
11818 lunar
) DEFAULT_PACKAGE
=tgz
;;
11819 *) DEFAULT_PACKAGE
=rpm
;;
11822 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11823 $as_echo "$DEFAULT_PACKAGE" >&6; }
11826 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11827 $as_echo_n "checking default init script type... " >&6; }
11829 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
11830 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
11831 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
11832 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
11833 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
11834 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
11835 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
11836 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
11837 *) DEFAULT_INIT_SCRIPT
=lsb
;;
11840 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11841 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11846 TARGET_ASM_DIR
=asm-generic
11851 # Check whether --with-config was given.
11852 if test "${with_config+set}" = set; then
11853 withval
=$with_config; ZFS_CONFIG
="$withval"
11857 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11858 $as_echo_n "checking zfs config... " >&6; }
11859 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11860 $as_echo "$ZFS_CONFIG" >&6; };
11863 case "$ZFS_CONFIG" in
11867 # Check whether --with-linux was given.
11868 if test "${with_linux+set}" = set; then
11869 withval
=$with_linux; kernelsrc
="$withval"
11874 # Check whether --with-linux-obj was given.
11875 if test "${with_linux_obj+set}" = set; then
11876 withval
=$with_linux_obj; kernelbuild
="$withval"
11880 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11881 $as_echo_n "checking kernel source directory... " >&6; }
11882 if test -z "$kernelsrc"; then
11883 if test -e "/lib/modules/$(uname -r)/source"; then
11884 headersdir
="/lib/modules/$(uname -r)/source"
11885 sourcelink
=$
(readlink
-f "$headersdir")
11886 elif test -e "/lib/modules/$(uname -r)/build"; then
11887 headersdir
="/lib/modules/$(uname -r)/build"
11888 sourcelink
=$
(readlink
-f "$headersdir")
11890 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
11892 2>/dev
/null |
grep -v obj |
tail -1)
11895 if test -n "$sourcelink" && test -e ${sourcelink}; then
11896 kernelsrc
=`readlink -f ${sourcelink}`
11898 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11899 $as_echo "Not found" >&6; }
11900 { { $as_echo "$as_me:$LINENO: error:
11901 *** Please make sure the kernel devel package for your distribution
11902 *** is installed then try again. If that fails you can specify the
11903 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11904 $as_echo "$as_me: error:
11905 *** Please make sure the kernel devel package for your distribution
11906 *** is installed then try again. If that fails you can specify the
11907 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11908 { (exit 1); exit 1; }; }
11911 if test "$kernelsrc" = "NONE"; then
11916 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11917 $as_echo "$kernelsrc" >&6; }
11918 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11919 $as_echo_n "checking kernel build directory... " >&6; }
11920 if test -z "$kernelbuild"; then
11921 if test -e "/lib/modules/$(uname -r)/build"; then
11922 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
11923 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11924 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11925 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
11926 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
11927 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
11928 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
11930 kernelbuild
=${kernelsrc}
11933 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11934 $as_echo "$kernelbuild" >&6; }
11936 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11937 $as_echo_n "checking kernel source version... " >&6; }
11938 utsrelease1
=$kernelbuild/include
/linux
/version.h
11939 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
11940 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
11941 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
11942 utsrelease
=linux
/version.h
11943 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
11944 utsrelease
=linux
/utsrelease.h
11945 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
11946 utsrelease
=generated
/utsrelease.h
11949 if test "$utsrelease"; then
11950 kernsrcver
=`(echo "#include <$utsrelease>";
11951 echo "kernsrcver=UTS_RELEASE") |
11952 cpp -I $kernelbuild/include |
11953 grep "^kernsrcver=" | cut -d \" -f 2`
11955 if test -z "$kernsrcver"; then
11956 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11957 $as_echo "Not found" >&6; }
11958 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11959 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11960 { (exit 1); exit 1; }; }
11963 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11964 $as_echo "Not found" >&6; }
11965 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11966 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11967 { (exit 1); exit 1; }; }
11970 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11971 $as_echo "$kernsrcver" >&6; }
11974 LINUX_OBJ
=${kernelbuild}
11975 LINUX_VERSION
=${kernsrcver}
11982 modpost
=$LINUX/scripts
/Makefile.modpost
11983 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11984 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11985 if test -f "$modpost"; then
11986 if grep -q Modules.symvers
$modpost; then
11987 LINUX_SYMBOLS
=Modules.symvers
11989 LINUX_SYMBOLS
=Module.symvers
11992 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11993 { { $as_echo "$as_me:$LINENO: error:
11994 *** Please make sure the kernel devel package for your distribution
11995 *** is installed. If your building with a custom kernel make sure the
11996 *** kernel is configured, built, and the '--with-linux=PATH' configure
11997 *** option refers to the location of the kernel source." >&5
11998 $as_echo "$as_me: error:
11999 *** Please make sure the kernel devel package for your distribution
12000 *** is installed. If your building with a custom kernel make sure the
12001 *** kernel is configured, built, and the '--with-linux=PATH' configure
12002 *** option refers to the location of the kernel source." >&2;}
12003 { (exit 1); exit 1; }; }
12008 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12009 $as_echo "$LINUX_SYMBOLS" >&6; }
12015 # Check whether --with-spl was given.
12016 if test "${with_spl+set}" = set; then
12017 withval
=$with_spl; splsrc
="$withval"
12022 # Check whether --with-spl-obj was given.
12023 if test "${with_spl_obj+set}" = set; then
12024 withval
=$with_spl_obj; splbuild
="$withval"
12029 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12030 $as_echo_n "checking spl source directory... " >&6; }
12031 if test -z "$splsrc"; then
12032 sourcelink
=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12033 2>/dev/null | tail -1`
12035 if test -z "$sourcelink" ||
test ! -e $sourcelink; then
12039 if test -e $sourcelink; then
12040 splsrc
=`readlink -f ${sourcelink}`
12042 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12043 $as_echo "Not found" >&6; }
12044 { { $as_echo "$as_me:$LINENO: error:
12045 *** Please make sure the spl devel package for your distribution
12046 *** is installed then try again. If that fails you can specify the
12047 *** location of the spl source with the '--with-spl=PATH' option." >&5
12048 $as_echo "$as_me: error:
12049 *** Please make sure the spl devel package for your distribution
12050 *** is installed then try again. If that fails you can specify the
12051 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12052 { (exit 1); exit 1; }; }
12055 if test "$splsrc" = "NONE"; then
12061 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12062 $as_echo "$splsrc" >&6; }
12063 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12064 $as_echo_n "checking spl build directory... " >&6; }
12065 if test -z "$splbuild"; then
12068 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12069 $as_echo "$splbuild" >&6; }
12071 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12072 $as_echo_n "checking spl source version... " >&6; }
12073 if test -r $splbuild/spl_config.h
&&
12074 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then
12076 splsrcver
=`(echo "#include <spl_config.h>";
12077 echo "splsrcver=SPL_META_VERSION") |
12079 grep "^splsrcver=" | cut -d \" -f 2`
12082 if test -z "$splsrcver"; then
12083 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12084 $as_echo "Not found" >&6; }
12085 { { $as_echo "$as_me:$LINENO: error:
12086 *** Cannot determine the version of the spl source.
12087 *** Please prepare the spl source before running this script" >&5
12088 $as_echo "$as_me: error:
12089 *** Cannot determine the version of the spl source.
12090 *** Please prepare the spl source before running this script" >&2;}
12091 { (exit 1); exit 1; }; }
12094 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12095 $as_echo "$splsrcver" >&6; }
12098 SPL_OBJ
=${splbuild}
12099 SPL_VERSION
=${splsrcver}
12106 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12107 $as_echo_n "checking spl file name for module symbols... " >&6; }
12108 if test -r $SPL_OBJ/Module.symvers
; then
12109 SPL_SYMBOLS
=Module.symvers
12110 elif test -r $SPL_OBJ/Modules.symvers
; then
12111 SPL_SYMBOLS
=Modules.symvers
12112 elif test -r $SPL_OBJ/module
/Module.symvers
; then
12113 SPL_SYMBOLS
=Module.symvers
12114 elif test -r $SPL_OBJ/module
/Modules.symvers
; then
12115 SPL_SYMBOLS
=Modules.symvers
12117 SPL_SYMBOLS
=$LINUX_SYMBOLS
12120 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12121 $as_echo "$SPL_SYMBOLS" >&6; }
12127 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12128 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12131 cat confdefs.h
- <<_ACEOF >conftest.c
12134 cat confdefs.h
>>conftest.
$ac_ext
12135 cat >>conftest.
$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12139 #ifndef AUTOCONF_INCLUDED
12140 #include <linux/config.h>
12147 #ifndef CONFIG_PREEMPT
12148 #error CONFIG_PREEMPT not #defined
12158 rm -Rf build
&& mkdir
-p build
12159 echo "obj-m := conftest.o" >build
/Makefile
12160 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12172 { $as_echo "$as_me:$LINENO: result: yes" >&5
12173 $as_echo "yes" >&6; }
12174 { { $as_echo "$as_me:$LINENO: error:
12175 *** Kernel built with CONFIG_PREEMPT which is not supported.
12176 ** You must rebuild your kernel without this option." >&5
12177 $as_echo "$as_me: error:
12178 *** Kernel built with CONFIG_PREEMPT which is not supported.
12179 ** You must rebuild your kernel without this option." >&2;}
12180 { (exit 1); exit 1; }; }
12183 $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.
$ac_ext >&5
12186 { $as_echo "$as_me:$LINENO: result: no" >&5
12187 $as_echo "no" >&6; }
12199 if test "$ZFS_META_LICENSE" = CDDL
; then
12200 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12201 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12204 cat confdefs.h
- <<_ACEOF >conftest.c
12207 cat confdefs.h
>>conftest.
$ac_ext
12208 cat >>conftest.
$ac_ext <<_ACEOF
12209 /* end confdefs.h. */
12212 #ifndef AUTOCONF_INCLUDED
12213 #include <linux/config.h>
12220 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12221 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12231 rm -Rf build
&& mkdir
-p build
12232 echo "obj-m := conftest.o" >build
/Makefile
12233 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12245 { $as_echo "$as_me:$LINENO: result: yes" >&5
12246 $as_echo "yes" >&6; }
12247 { { $as_echo "$as_me:$LINENO: error:
12248 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12249 *** incompatible with the CDDL license. You must rebuild
12250 *** your kernel without this option." >&5
12251 $as_echo "$as_me: error:
12252 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12253 *** incompatible with the CDDL license. You must rebuild
12254 *** your kernel without this option." >&2;}
12255 { (exit 1); exit 1; }; }
12258 $as_echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.
$ac_ext >&5
12261 { $as_echo "$as_me:$LINENO: result: no" >&5
12262 $as_echo "no" >&6; }
12275 if test "$ZFS_META_LICENSE" = GPL
; then
12277 cat >>confdefs.h
<<\_ACEOF
12278 #define HAVE_GPL_ONLY_SYMBOLS 1
12284 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12285 $as_echo_n "checking block device operation prototypes... " >&6; }
12288 cat confdefs.h
- <<_ACEOF >conftest.c
12291 cat confdefs.h
>>conftest.
$ac_ext
12292 cat >>conftest.
$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12296 #include <linux/blkdev.h>
12302 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12303 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12304 int (*blk_ioctl) (struct block_device *, fmode_t,
12305 unsigned, unsigned long) = NULL;
12306 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12307 unsigned, unsigned long) = NULL;
12308 struct block_device_operations blk_ops = {
12310 .release = blk_release,
12311 .ioctl = blk_ioctl,
12312 .compat_ioctl = blk_compat_ioctl,
12315 blk_ops.open(NULL, 0);
12316 blk_ops.release(NULL, 0);
12317 blk_ops.ioctl(NULL, 0, 0, 0);
12318 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12327 rm -Rf build
&& mkdir
-p build
12328 echo "obj-m := conftest.o" >build
/Makefile
12329 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12341 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12342 $as_echo "struct block_device" >&6; }
12344 cat >>confdefs.h
<<\_ACEOF
12345 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12350 $as_echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.
$ac_ext >&5
12353 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12354 $as_echo "struct inode" >&6; }
12364 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12365 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12368 cat confdefs.h
- <<_ACEOF >conftest.c
12371 cat confdefs.h
>>conftest.
$ac_ext
12372 cat >>conftest.
$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12376 #include <linux/types.h>
12382 fmode_t *ptr __attribute__ ((unused));
12391 rm -Rf build
&& mkdir
-p build
12392 echo "obj-m := conftest.o" >build
/Makefile
12393 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
12405 { $as_echo "$as_me:$LINENO: result: yes" >&5
12406 $as_echo "yes" >&6; }
12408 cat >>confdefs.h
<<\_ACEOF
12409 #define HAVE_FMODE_T 1
12414 $as_echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.
$ac_ext >&5
12417 { $as_echo "$as_me:$LINENO: result: no" >&5
12418 $as_echo "no" >&6; }
12429 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12430 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12433 cat confdefs.h
- <<_ACEOF >conftest.c
12436 cat confdefs.h
>>conftest.
$ac_ext
12437 cat >>conftest.
$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12441 #include <linux/kobject.h>
12447 int val __attribute__ ((unused));
12448 val = KOBJ_NAME_LEN;
12457 rm -Rf build
&& mkdir
-p build
12458 echo "obj-m := conftest.o" >build
/Makefile
12459 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }; then
12471 { $as_echo "$as_me:$LINENO: result: yes" >&5
12472 $as_echo "yes" >&6; }
12474 cat >>confdefs.h
<<\_ACEOF
12475 #define HAVE_KOBJ_NAME_LEN 1
12480 $as_echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.
$ac_ext >&5
12483 { $as_echo "$as_me:$LINENO: result: no" >&5
12484 $as_echo "no" >&6; }
12495 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12496 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12497 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12498 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12500 if test $rc -ne 0; then
12502 for file in fs
/block_dev.c
; do
12503 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev
/null
12505 if test $rc -eq 0; then
12510 if test $export -eq 0; then
12511 { $as_echo "$as_me:$LINENO: result: no" >&5
12512 $as_echo "no" >&6; }
12515 { $as_echo "$as_me:$LINENO: result: yes" >&5
12516 $as_echo "yes" >&6; }
12518 cat >>confdefs.h
<<\_ACEOF
12519 #define HAVE_BLKDEV_GET_BY_PATH 1
12524 { $as_echo "$as_me:$LINENO: result: yes" >&5
12525 $as_echo "yes" >&6; }
12527 cat >>confdefs.h
<<\_ACEOF
12528 #define HAVE_BLKDEV_GET_BY_PATH 1
12535 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12536 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12537 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12538 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12540 if test $rc -ne 0; then
12542 for file in fs
/block_dev.c
; do
12543 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev
/null
12545 if test $rc -eq 0; then
12550 if test $export -eq 0; then
12551 { $as_echo "$as_me:$LINENO: result: no" >&5
12552 $as_echo "no" >&6; }
12555 { $as_echo "$as_me:$LINENO: result: yes" >&5
12556 $as_echo "yes" >&6; }
12558 cat >>confdefs.h
<<\_ACEOF
12559 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12564 { $as_echo "$as_me:$LINENO: result: yes" >&5
12565 $as_echo "yes" >&6; }
12567 cat >>confdefs.h
<<\_ACEOF
12568 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12575 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12576 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12579 cat confdefs.h
- <<_ACEOF >conftest.c
12582 cat confdefs.h
>>conftest.
$ac_ext
12583 cat >>conftest.
$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12587 #include <linux/buffer_head.h>
12593 struct block_device *bdev = NULL;
12594 invalidate_bdev(bdev);
12603 rm -Rf build
&& mkdir
-p build
12604 echo "obj-m := conftest.o" >build
/Makefile
12605 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12617 { $as_echo "$as_me:$LINENO: result: yes" >&5
12618 $as_echo "yes" >&6; }
12620 cat >>confdefs.h
<<\_ACEOF
12621 #define HAVE_1ARG_INVALIDATE_BDEV 1
12626 $as_echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.
$ac_ext >&5
12629 { $as_echo "$as_me:$LINENO: result: no" >&5
12630 $as_echo "no" >&6; }
12641 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12642 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12645 cat confdefs.h
- <<_ACEOF >conftest.c
12648 cat confdefs.h
>>conftest.
$ac_ext
12649 cat >>conftest.
$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12653 #include <linux/blkdev.h>
12659 struct block_device *bdev = NULL;
12660 bdev_logical_block_size(bdev);
12669 rm -Rf build
&& mkdir
-p build
12670 echo "obj-m := conftest.o" >build
/Makefile
12671 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12683 { $as_echo "$as_me:$LINENO: result: yes" >&5
12684 $as_echo "yes" >&6; }
12686 cat >>confdefs.h
<<\_ACEOF
12687 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12692 $as_echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.
$ac_ext >&5
12695 { $as_echo "$as_me:$LINENO: result: no" >&5
12696 $as_echo "no" >&6; }
12707 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12708 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12709 EXTRA_KCFLAGS
="-Werror"
12712 cat confdefs.h
- <<_ACEOF >conftest.c
12715 cat confdefs.h
>>conftest.
$ac_ext
12716 cat >>conftest.
$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12720 #include <linux/bio.h>
12727 (void)bio_empty_barrier(&bio);
12736 rm -Rf build
&& mkdir
-p build
12737 echo "obj-m := conftest.o" >build
/Makefile
12738 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12750 { $as_echo "$as_me:$LINENO: result: yes" >&5
12751 $as_echo "yes" >&6; }
12753 cat >>confdefs.h
<<\_ACEOF
12754 #define HAVE_BIO_EMPTY_BARRIER 1
12759 $as_echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.
$ac_ext >&5
12762 { $as_echo "$as_me:$LINENO: result: no" >&5
12763 $as_echo "no" >&6; }
12774 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
12775 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
12778 cat confdefs.h
- <<_ACEOF >conftest.c
12781 cat confdefs.h
>>conftest.
$ac_ext
12782 cat >>conftest.
$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12786 #include <linux/bio.h>
12792 int flags __attribute__ ((unused));
12793 flags = (1 << BIO_RW_FAILFAST);
12802 rm -Rf build
&& mkdir
-p build
12803 echo "obj-m := conftest.o" >build
/Makefile
12804 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12816 { $as_echo "$as_me:$LINENO: result: yes" >&5
12817 $as_echo "yes" >&6; }
12819 cat >>confdefs.h
<<\_ACEOF
12820 #define HAVE_BIO_RW_FAILFAST 1
12825 $as_echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.
$ac_ext >&5
12828 { $as_echo "$as_me:$LINENO: result: no" >&5
12829 $as_echo "no" >&6; }
12840 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
12841 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
12844 cat confdefs.h
- <<_ACEOF >conftest.c
12847 cat confdefs.h
>>conftest.
$ac_ext
12848 cat >>conftest.
$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12852 #include <linux/bio.h>
12858 int flags __attribute__ ((unused));
12859 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12860 (1 << BIO_RW_FAILFAST_TRANSPORT) |
12861 (1 << BIO_RW_FAILFAST_DRIVER));
12870 rm -Rf build
&& mkdir
-p build
12871 echo "obj-m := conftest.o" >build
/Makefile
12872 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12884 { $as_echo "$as_me:$LINENO: result: yes" >&5
12885 $as_echo "yes" >&6; }
12887 cat >>confdefs.h
<<\_ACEOF
12888 #define HAVE_BIO_RW_FAILFAST_DTD 1
12893 $as_echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.
$ac_ext >&5
12896 { $as_echo "$as_me:$LINENO: result: no" >&5
12897 $as_echo "no" >&6; }
12908 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
12909 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
12912 cat confdefs.h
- <<_ACEOF >conftest.c
12915 cat confdefs.h
>>conftest.
$ac_ext
12916 cat >>conftest.
$ac_ext <<_ACEOF
12917 /* end confdefs.h. */
12920 #include <linux/bio.h>
12926 int flags __attribute__ ((unused));
12927 flags = REQ_FAILFAST_MASK;
12936 rm -Rf build
&& mkdir
-p build
12937 echo "obj-m := conftest.o" >build
/Makefile
12938 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12950 { $as_echo "$as_me:$LINENO: result: yes" >&5
12951 $as_echo "yes" >&6; }
12953 cat >>confdefs.h
<<\_ACEOF
12954 #define HAVE_BIO_REQ_FAILFAST_MASK 1
12959 $as_echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.
$ac_ext >&5
12962 { $as_echo "$as_me:$LINENO: result: no" >&5
12963 $as_echo "no" >&6; }
12974 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
12975 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12976 tmp_flags
="$EXTRA_KCFLAGS"
12977 EXTRA_KCFLAGS
="-Werror"
12980 cat confdefs.h
- <<_ACEOF >conftest.c
12983 cat confdefs.h
>>conftest.
$ac_ext
12984 cat >>conftest.
$ac_ext <<_ACEOF
12985 /* end confdefs.h. */
12988 #include <linux/bio.h>
12994 void (*wanted_end_io)(struct bio *, int) = NULL;
12995 bio_end_io_t *local_end_io __attribute__ ((unused));
12997 local_end_io = wanted_end_io;
13006 rm -Rf build
&& mkdir
-p build
13007 echo "obj-m := conftest.o" >build
/Makefile
13008 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13020 { $as_echo "$as_me:$LINENO: result: yes" >&5
13021 $as_echo "yes" >&6; }
13023 cat >>confdefs.h
<<\_ACEOF
13024 #define HAVE_2ARGS_BIO_END_IO_T 1
13029 $as_echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.
$ac_ext >&5
13032 { $as_echo "$as_me:$LINENO: result: no" >&5
13033 $as_echo "no" >&6; }
13042 EXTRA_KCFLAGS
="$tmp_flags"
13045 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13046 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13049 cat confdefs.h
- <<_ACEOF >conftest.c
13052 cat confdefs.h
>>conftest.
$ac_ext
13053 cat >>conftest.
$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13057 #include <linux/bio.h>
13063 int flags __attribute__ ((unused));
13064 flags = BIO_RW_SYNC;
13073 rm -Rf build
&& mkdir
-p build
13074 echo "obj-m := conftest.o" >build
/Makefile
13075 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
13087 { $as_echo "$as_me:$LINENO: result: yes" >&5
13088 $as_echo "yes" >&6; }
13090 cat >>confdefs.h
<<\_ACEOF
13091 #define HAVE_BIO_RW_SYNC 1
13096 $as_echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.
$ac_ext >&5
13099 { $as_echo "$as_me:$LINENO: result: no" >&5
13100 $as_echo "no" >&6; }
13111 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13112 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13115 cat confdefs.h
- <<_ACEOF >conftest.c
13118 cat confdefs.h
>>conftest.
$ac_ext
13119 cat >>conftest.
$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13123 #include <linux/bio.h>
13129 int flags __attribute__ ((unused));
13130 flags = BIO_RW_SYNCIO;
13139 rm -Rf build
&& mkdir
-p build
13140 echo "obj-m := conftest.o" >build
/Makefile
13141 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13153 { $as_echo "$as_me:$LINENO: result: yes" >&5
13154 $as_echo "yes" >&6; }
13156 cat >>confdefs.h
<<\_ACEOF
13157 #define HAVE_BIO_RW_SYNCIO 1
13162 $as_echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.
$ac_ext >&5
13165 { $as_echo "$as_me:$LINENO: result: no" >&5
13166 $as_echo "no" >&6; }
13177 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13178 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13181 cat confdefs.h
- <<_ACEOF >conftest.c
13184 cat confdefs.h
>>conftest.
$ac_ext
13185 cat >>conftest.
$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13189 #include <linux/bio.h>
13195 int flags __attribute__ ((unused));
13205 rm -Rf build
&& mkdir
-p build
13206 echo "obj-m := conftest.o" >build
/Makefile
13207 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13219 { $as_echo "$as_me:$LINENO: result: yes" >&5
13220 $as_echo "yes" >&6; }
13222 cat >>confdefs.h
<<\_ACEOF
13223 #define HAVE_REQ_SYNC 1
13228 $as_echo "$as_me: failed program was:" >&5
13229 sed 's/^/| /' conftest.
$ac_ext >&5
13231 { $as_echo "$as_me:$LINENO: result: no" >&5
13232 $as_echo "no" >&6; }
13243 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13244 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13247 cat confdefs.h
- <<_ACEOF >conftest.c
13250 cat confdefs.h
>>conftest.
$ac_ext
13251 cat >>conftest.
$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13255 #include <linux/blkdev.h>
13261 struct request *req = NULL;
13262 (void) blk_end_request(req, 0, 0);
13271 rm -Rf build
&& mkdir
-p build
13272 echo "obj-m := conftest.o" >build
/Makefile
13273 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280 (eval $ac_try) 2>&5
13282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
13285 { $as_echo "$as_me:$LINENO: result: yes" >&5
13286 $as_echo "yes" >&6; }
13288 cat >>confdefs.h
<<\_ACEOF
13289 #define HAVE_BLK_END_REQUEST 1
13294 $as_echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.
$ac_ext >&5
13297 { $as_echo "$as_me:$LINENO: result: no" >&5
13298 $as_echo "no" >&6; }
13308 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13309 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13312 cat confdefs.h
- <<_ACEOF >conftest.c
13315 cat confdefs.h
>>conftest.
$ac_ext
13316 cat >>conftest.
$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13320 #include <linux/module.h>
13321 #include <linux/blkdev.h>
13323 MODULE_LICENSE("CDDL");
13329 struct request *req = NULL;
13330 (void) blk_end_request(req, 0, 0);
13339 rm -Rf build
&& mkdir
-p build
13340 echo "obj-m := conftest.o" >build
/Makefile
13341 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13343 (eval $ac_try) 2>&5
13345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13353 { $as_echo "$as_me:$LINENO: result: no" >&5
13354 $as_echo "no" >&6; }
13357 $as_echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.
$ac_ext >&5
13360 { $as_echo "$as_me:$LINENO: result: yes" >&5
13361 $as_echo "yes" >&6; }
13363 cat >>confdefs.h
<<\_ACEOF
13364 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13377 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
13378 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13381 cat confdefs.h
- <<_ACEOF >conftest.c
13384 cat confdefs.h
>>conftest.
$ac_ext
13385 cat >>conftest.
$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13389 #include <linux/blkdev.h>
13395 struct request_queue *q = NULL;
13396 (void) blk_fetch_request(q);
13405 rm -Rf build
&& mkdir
-p build
13406 echo "obj-m := conftest.o" >build
/Makefile
13407 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13419 { $as_echo "$as_me:$LINENO: result: yes" >&5
13420 $as_echo "yes" >&6; }
13422 cat >>confdefs.h
<<\_ACEOF
13423 #define HAVE_BLK_FETCH_REQUEST 1
13428 $as_echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.
$ac_ext >&5
13431 { $as_echo "$as_me:$LINENO: result: no" >&5
13432 $as_echo "no" >&6; }
13443 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13444 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13447 cat confdefs.h
- <<_ACEOF >conftest.c
13450 cat confdefs.h
>>conftest.
$ac_ext
13451 cat >>conftest.
$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13455 #include <linux/blkdev.h>
13461 struct request_queue *q = NULL;
13462 struct request *req = NULL;
13463 blk_requeue_request(q, req);
13472 rm -Rf build
&& mkdir
-p build
13473 echo "obj-m := conftest.o" >build
/Makefile
13474 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13486 { $as_echo "$as_me:$LINENO: result: yes" >&5
13487 $as_echo "yes" >&6; }
13489 cat >>confdefs.h
<<\_ACEOF
13490 #define HAVE_BLK_REQUEUE_REQUEST 1
13495 $as_echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.
$ac_ext >&5
13498 { $as_echo "$as_me:$LINENO: result: no" >&5
13499 $as_echo "no" >&6; }
13510 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13511 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13514 cat confdefs.h
- <<_ACEOF >conftest.c
13517 cat confdefs.h
>>conftest.
$ac_ext
13518 cat >>conftest.
$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13522 #include <linux/blkdev.h>
13528 struct request *req = NULL;
13529 (void) blk_rq_bytes(req);
13538 rm -Rf build
&& mkdir
-p build
13539 echo "obj-m := conftest.o" >build
/Makefile
13540 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; }; then
13552 { $as_echo "$as_me:$LINENO: result: yes" >&5
13553 $as_echo "yes" >&6; }
13555 cat >>confdefs.h
<<\_ACEOF
13556 #define HAVE_BLK_RQ_BYTES 1
13561 $as_echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.
$ac_ext >&5
13564 { $as_echo "$as_me:$LINENO: result: no" >&5
13565 $as_echo "no" >&6; }
13575 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13576 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13579 cat confdefs.h
- <<_ACEOF >conftest.c
13582 cat confdefs.h
>>conftest.
$ac_ext
13583 cat >>conftest.
$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13587 #include <linux/module.h>
13588 #include <linux/blkdev.h>
13590 MODULE_LICENSE("CDDL");
13596 struct request *req = NULL;
13597 (void) blk_rq_bytes(req);
13606 rm -Rf build
&& mkdir
-p build
13607 echo "obj-m := conftest.o" >build
/Makefile
13608 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13620 { $as_echo "$as_me:$LINENO: result: no" >&5
13621 $as_echo "no" >&6; }
13624 $as_echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.
$ac_ext >&5
13627 { $as_echo "$as_me:$LINENO: result: yes" >&5
13628 $as_echo "yes" >&6; }
13630 cat >>confdefs.h
<<\_ACEOF
13631 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13644 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13645 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13648 cat confdefs.h
- <<_ACEOF >conftest.c
13651 cat confdefs.h
>>conftest.
$ac_ext
13652 cat >>conftest.
$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13656 #include <linux/blkdev.h>
13662 struct request *req = NULL;
13663 (void) blk_rq_pos(req);
13672 rm -Rf build
&& mkdir
-p build
13673 echo "obj-m := conftest.o" >build
/Makefile
13674 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13686 { $as_echo "$as_me:$LINENO: result: yes" >&5
13687 $as_echo "yes" >&6; }
13689 cat >>confdefs.h
<<\_ACEOF
13690 #define HAVE_BLK_RQ_POS 1
13695 $as_echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.
$ac_ext >&5
13698 { $as_echo "$as_me:$LINENO: result: no" >&5
13699 $as_echo "no" >&6; }
13710 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13711 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13714 cat confdefs.h
- <<_ACEOF >conftest.c
13717 cat confdefs.h
>>conftest.
$ac_ext
13718 cat >>conftest.
$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13722 #include <linux/blkdev.h>
13728 struct request *req = NULL;
13729 (void) blk_rq_sectors(req);
13738 rm -Rf build
&& mkdir
-p build
13739 echo "obj-m := conftest.o" >build
/Makefile
13740 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13752 { $as_echo "$as_me:$LINENO: result: yes" >&5
13753 $as_echo "yes" >&6; }
13755 cat >>confdefs.h
<<\_ACEOF
13756 #define HAVE_BLK_RQ_SECTORS 1
13761 $as_echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.
$ac_ext >&5
13764 { $as_echo "$as_me:$LINENO: result: no" >&5
13765 $as_echo "no" >&6; }
13776 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
13777 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
13780 cat confdefs.h
- <<_ACEOF >conftest.c
13783 cat confdefs.h
>>conftest.
$ac_ext
13784 cat >>conftest.
$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13788 #include <linux/blkdev.h>
13794 struct gendisk *disk = NULL;
13795 (void) get_disk_ro(disk);
13804 rm -Rf build
&& mkdir
-p build
13805 echo "obj-m := conftest.o" >build
/Makefile
13806 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13818 { $as_echo "$as_me:$LINENO: result: yes" >&5
13819 $as_echo "yes" >&6; }
13821 cat >>confdefs.h
<<\_ACEOF
13822 #define HAVE_GET_DISK_RO 1
13827 $as_echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.
$ac_ext >&5
13830 { $as_echo "$as_me:$LINENO: result: no" >&5
13831 $as_echo "no" >&6; }
13842 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
13843 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
13846 cat confdefs.h
- <<_ACEOF >conftest.c
13849 cat confdefs.h
>>conftest.
$ac_ext
13850 cat >>conftest.
$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13854 #include <linux/blkdev.h>
13860 struct request *req = NULL;
13861 (void) rq_is_sync(req);
13870 rm -Rf build
&& mkdir
-p build
13871 echo "obj-m := conftest.o" >build
/Makefile
13872 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13884 { $as_echo "$as_me:$LINENO: result: yes" >&5
13885 $as_echo "yes" >&6; }
13887 cat >>confdefs.h
<<\_ACEOF
13888 #define HAVE_RQ_IS_SYNC 1
13893 $as_echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.
$ac_ext >&5
13896 { $as_echo "$as_me:$LINENO: result: no" >&5
13897 $as_echo "no" >&6; }
13908 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
13909 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
13912 cat confdefs.h
- <<_ACEOF >conftest.c
13915 cat confdefs.h
>>conftest.
$ac_ext
13916 cat >>conftest.
$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13920 #include <linux/blkdev.h>
13926 struct bio_vec *bv;
13927 struct req_iterator iter;
13928 struct request *req = NULL;
13929 rq_for_each_segment(bv, req, iter) { }
13938 rm -Rf build
&& mkdir
-p build
13939 echo "obj-m := conftest.o" >build
/Makefile
13940 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13952 { $as_echo "$as_me:$LINENO: result: yes" >&5
13953 $as_echo "yes" >&6; }
13955 cat >>confdefs.h
<<\_ACEOF
13956 #define HAVE_RQ_FOR_EACH_SEGMENT 1
13961 $as_echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.
$ac_ext >&5
13964 { $as_echo "$as_me:$LINENO: result: no" >&5
13965 $as_echo "no" >&6; }
13975 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
13976 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
13979 cat confdefs.h
- <<_ACEOF >conftest.c
13982 cat confdefs.h
>>conftest.
$ac_ext
13983 cat >>conftest.
$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13987 #include <linux/fs.h>
13988 #include <linux/xattr.h>
13990 const struct xattr_handler xattr_test_handler = {
13996 const struct xattr_handler *xattr_handlers[] = {
13997 &xattr_test_handler,
14004 struct super_block sb __attribute__ ((unused));
14006 sb.s_xattr = xattr_handlers;
14015 rm -Rf build
&& mkdir
-p build
14016 echo "obj-m := conftest.o" >build
/Makefile
14017 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14029 { $as_echo "$as_me:$LINENO: result: yes" >&5
14030 $as_echo "yes" >&6; }
14032 cat >>confdefs.h
<<\_ACEOF
14033 #define HAVE_CONST_XATTR_HANDLER 1
14038 $as_echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.
$ac_ext >&5
14041 { $as_echo "$as_me:$LINENO: result: no" >&5
14042 $as_echo "no" >&6; }
14053 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14054 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14057 cat confdefs.h
- <<_ACEOF >conftest.c
14060 cat confdefs.h
>>conftest.
$ac_ext
14061 cat >>conftest.
$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14065 #include <linux/xattr.h>
14071 int (*get)(struct dentry *dentry, const char *name,
14072 void *buffer, size_t size, int handler_flags) = NULL;
14073 struct xattr_handler xops __attribute__ ((unused));
14084 rm -Rf build
&& mkdir
-p build
14085 echo "obj-m := conftest.o" >build
/Makefile
14086 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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); }; }; then
14098 { $as_echo "$as_me:$LINENO: result: yes" >&5
14099 $as_echo "yes" >&6; }
14101 cat >>confdefs.h
<<\_ACEOF
14102 #define HAVE_DENTRY_XATTR_GET 1
14107 $as_echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.
$ac_ext >&5
14110 { $as_echo "$as_me:$LINENO: result: no" >&5
14111 $as_echo "no" >&6; }
14122 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
14123 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14126 cat confdefs.h
- <<_ACEOF >conftest.c
14129 cat confdefs.h
>>conftest.
$ac_ext
14130 cat >>conftest.
$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14134 #include <linux/xattr.h>
14140 int (*set)(struct dentry *dentry, const char *name,
14141 const void *buffer, size_t size, int flags,
14142 int handler_flags) = NULL;
14143 struct xattr_handler xops __attribute__ ((unused));
14154 rm -Rf build
&& mkdir
-p build
14155 echo "obj-m := conftest.o" >build
/Makefile
14156 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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); }; }; then
14168 { $as_echo "$as_me:$LINENO: result: yes" >&5
14169 $as_echo "yes" >&6; }
14171 cat >>confdefs.h
<<\_ACEOF
14172 #define HAVE_DENTRY_XATTR_SET 1
14177 $as_echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.
$ac_ext >&5
14180 { $as_echo "$as_me:$LINENO: result: no" >&5
14181 $as_echo "no" >&6; }
14192 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
14193 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
14196 cat confdefs.h
- <<_ACEOF >conftest.c
14199 cat confdefs.h
>>conftest.
$ac_ext
14200 cat >>conftest.
$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14204 #include <linux/fs.h>
14210 int (*fsync) (struct file *, int datasync) = NULL;
14211 struct file_operations fops __attribute__ ((unused));
14213 fops.fsync = fsync;
14222 rm -Rf build
&& mkdir
-p build
14223 echo "obj-m := conftest.o" >build
/Makefile
14224 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14236 { $as_echo "$as_me:$LINENO: result: yes" >&5
14237 $as_echo "yes" >&6; }
14239 cat >>confdefs.h
<<\_ACEOF
14240 #define HAVE_2ARGS_FSYNC 1
14245 $as_echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.
$ac_ext >&5
14248 { $as_echo "$as_me:$LINENO: result: no" >&5
14249 $as_echo "no" >&6; }
14260 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
14261 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14264 cat confdefs.h
- <<_ACEOF >conftest.c
14267 cat confdefs.h
>>conftest.
$ac_ext
14268 cat >>conftest.
$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14272 #include <linux/fs.h>
14278 void (*evict_inode) (struct inode *) = NULL;
14279 struct super_operations sops __attribute__ ((unused));
14281 sops.evict_inode = evict_inode;
14290 rm -Rf build
&& mkdir
-p build
14291 echo "obj-m := conftest.o" >build
/Makefile
14292 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; }; then
14304 { $as_echo "$as_me:$LINENO: result: yes" >&5
14305 $as_echo "yes" >&6; }
14307 cat >>confdefs.h
<<\_ACEOF
14308 #define HAVE_EVICT_INODE 1
14313 $as_echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.
$ac_ext >&5
14316 { $as_echo "$as_me:$LINENO: result: no" >&5
14317 $as_echo "no" >&6; }
14328 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
14329 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
14330 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
14331 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14333 if test $rc -ne 0; then
14335 for file in fs
/inode.c
; do
14336 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev
/null
14338 if test $rc -eq 0; then
14343 if test $export -eq 0; then
14344 { $as_echo "$as_me:$LINENO: result: no" >&5
14345 $as_echo "no" >&6; }
14348 { $as_echo "$as_me:$LINENO: result: yes" >&5
14349 $as_echo "yes" >&6; }
14351 cat >>confdefs.h
<<\_ACEOF
14352 #define HAVE_INSERT_INODE_LOCKED 1
14357 { $as_echo "$as_me:$LINENO: result: yes" >&5
14358 $as_echo "yes" >&6; }
14360 cat >>confdefs.h
<<\_ACEOF
14361 #define HAVE_INSERT_INODE_LOCKED 1
14368 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
14369 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
14370 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
14371 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14373 if test $rc -ne 0; then
14375 for file in fs
/dcache.c
; do
14376 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev
/null
14378 if test $rc -eq 0; then
14383 if test $export -eq 0; then
14384 { $as_echo "$as_me:$LINENO: result: no" >&5
14385 $as_echo "no" >&6; }
14388 { $as_echo "$as_me:$LINENO: result: yes" >&5
14389 $as_echo "yes" >&6; }
14391 cat >>confdefs.h
<<\_ACEOF
14392 #define HAVE_D_OBTAIN_ALIAS 1
14397 { $as_echo "$as_me:$LINENO: result: yes" >&5
14398 $as_echo "yes" >&6; }
14400 cat >>confdefs.h
<<\_ACEOF
14401 #define HAVE_D_OBTAIN_ALIAS 1
14408 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
14409 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
14410 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
14411 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14413 if test $rc -ne 0; then
14415 for file in fs
/block_dev.c
; do
14416 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev
/null
14418 if test $rc -eq 0; then
14423 if test $export -eq 0; then
14424 { $as_echo "$as_me:$LINENO: result: no" >&5
14425 $as_echo "no" >&6; }
14428 { $as_echo "$as_me:$LINENO: result: yes" >&5
14429 $as_echo "yes" >&6; }
14431 cat >>confdefs.h
<<\_ACEOF
14432 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
14437 { $as_echo "$as_me:$LINENO: result: yes" >&5
14438 $as_echo "yes" >&6; }
14440 cat >>confdefs.h
<<\_ACEOF
14441 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
14448 if test "$LINUX_OBJ" != "$LINUX"; then
14449 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
14454 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
14455 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
14456 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
14462 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
14463 $as_echo_n "checking for target asm dir... " >&6; }
14464 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
14466 case $TARGET_ARCH in
14468 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
14471 TARGET_ASM_DIR
=asm-generic
14476 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
14477 $as_echo "$TARGET_ASM_DIR" >&6; }
14480 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
14481 $as_echo_n "checking for ioctl()... " >&6; }
14482 cat >conftest.
$ac_ext <<_ACEOF
14485 cat confdefs.h
>>conftest.
$ac_ext
14486 cat >>conftest.
$ac_ext <<_ACEOF
14487 /* end confdefs.h. */
14488 #include <unistd.h>
14491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14492 $EGREP "ioctl" >/dev
/null
2>&1; then
14499 cat >conftest.
$ac_ext <<_ACEOF
14502 cat confdefs.h
>>conftest.
$ac_ext
14503 cat >>conftest.
$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 #include <sys/ioctl.h>
14508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14509 $EGREP "ioctl" >/dev
/null
2>&1; then
14516 cat >conftest.
$ac_ext <<_ACEOF
14519 cat confdefs.h
>>conftest.
$ac_ext
14520 cat >>conftest.
$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 #include <stropts.h>
14525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14526 $EGREP "ioctl" >/dev
/null
2>&1; then
14534 if test $is_unistd = yes; then
14537 cat >>confdefs.h
<<\_ACEOF
14538 #define HAVE_IOCTL_IN_UNISTD_H 1
14543 if test $is_sys_ioctl = yes; then
14546 cat >>confdefs.h
<<\_ACEOF
14547 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
14550 elif test $is_stropts = yes; then
14552 cat >>confdefs.h
<<\_ACEOF
14553 #define HAVE_IOCTL_IN_STROPTS_H 1
14561 if test $result = no
; then
14562 { $as_echo "$as_me:$LINENO: result: no" >&5
14563 $as_echo "no" >&6; }
14564 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
14565 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
14566 { (exit 1); exit 1; }; }
14568 { $as_echo "$as_me:$LINENO: result: yes" >&5
14569 $as_echo "yes" >&6; }
14575 if test "${ac_cv_header_zlib_h+set}" = set; then
14576 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14577 $as_echo_n "checking for zlib.h... " >&6; }
14578 if test "${ac_cv_header_zlib_h+set}" = set; then
14579 $as_echo_n "(cached) " >&6
14581 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14582 $as_echo "$ac_cv_header_zlib_h" >&6; }
14584 # Is the header compilable?
14585 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
14586 $as_echo_n "checking zlib.h usability... " >&6; }
14587 cat >conftest.
$ac_ext <<_ACEOF
14590 cat confdefs.h
>>conftest.
$ac_ext
14591 cat >>conftest.
$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 $ac_includes_default
14596 rm -f conftest.
$ac_objext
14597 if { (ac_try
="$ac_compile"
14598 case "(($ac_try" in
14599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14603 $as_echo "$ac_try_echo") >&5
14604 (eval "$ac_compile") 2>conftest.er1
14606 grep -v '^ *+' conftest.er1 >conftest.err
14608 cat conftest.err >&5
14609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } && {
14611 test -z "$ac_c_werror_flag" ||
14612 test ! -s conftest.err
14613 } && test -s conftest.$ac_objext; then
14614 ac_header_compiler=yes
14616 $as_echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.$ac_ext >&5
14619 ac_header_compiler=no
14622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14623 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14624 $as_echo "$ac_header_compiler" >&6; }
14626 # Is the header present?
14627 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
14628 $as_echo_n "checking zlib.h presence... " >&6; }
14629 cat >conftest.$ac_ext <<_ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14637 if { (ac_try="$ac_cpp conftest.$ac_ext"
14638 case "(($ac_try" in
14639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14640 *) ac_try_echo
=$ac_try;;
14642 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14643 $as_echo "$ac_try_echo") >&5
14644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14646 grep -v '^ *+' conftest.er1
>conftest.err
14648 cat conftest.err
>&5
14649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } >/dev
/null
&& {
14651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14652 test ! -s conftest.err
14654 ac_header_preproc
=yes
14656 $as_echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.
$ac_ext >&5
14659 ac_header_preproc
=no
14662 rm -f conftest.err conftest.
$ac_ext
14663 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14664 $as_echo "$ac_header_preproc" >&6; }
14666 # So? What about this header?
14667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14669 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14670 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14671 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
14672 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
14673 ac_header_preproc
=yes
14676 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
14677 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
14678 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
14679 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
14680 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
14681 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
14682 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
14683 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14684 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
14685 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
14686 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
14687 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
14691 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14692 $as_echo_n "checking for zlib.h... " >&6; }
14693 if test "${ac_cv_header_zlib_h+set}" = set; then
14694 $as_echo_n "(cached) " >&6
14696 ac_cv_header_zlib_h
=$ac_header_preproc
14698 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14699 $as_echo "$ac_cv_header_zlib_h" >&6; }
14702 if test "x$ac_cv_header_zlib_h" = x
""yes; then
14705 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14707 { { $as_echo "$as_me:$LINENO: error:
14708 *** zlib.h missing, zlib-devel package required
14709 See \`config.log' for more details." >&5
14710 $as_echo "$as_me: error:
14711 *** zlib.h missing, zlib-devel package required
14712 See \`config.log' for more details." >&2;}
14713 { (exit 1); exit 1; }; }; }
14719 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
14720 $as_echo_n "checking for compress2 in -lz... " >&6; }
14721 if test "${ac_cv_lib_z_compress2+set}" = set; then
14722 $as_echo_n "(cached) " >&6
14724 ac_check_lib_save_LIBS
=$LIBS
14726 cat >conftest.
$ac_ext <<_ACEOF
14729 cat confdefs.h
>>conftest.
$ac_ext
14730 cat >>conftest.
$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14733 /* Override any GCC internal prototype to avoid an error.
14734 Use char because int might match the return type of a GCC
14735 builtin and then its argument prototype would still apply. */
14743 return compress2 ();
14748 rm -f conftest.
$ac_objext conftest
$ac_exeext
14749 if { (ac_try
="$ac_link"
14750 case "(($ac_try" in
14751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14755 $as_echo "$ac_try_echo") >&5
14756 (eval "$ac_link") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
14760 cat conftest.err >&5
14761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest$ac_exeext && {
14766 test "$cross_compiling" = yes ||
14767 $as_test_x conftest$ac_exeext
14769 ac_cv_lib_z_compress2=yes
14771 $as_echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14774 ac_cv_lib_z_compress2=no
14777 rm -rf conftest.dSYM
14778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14779 conftest$ac_exeext conftest.$ac_ext
14780 LIBS=$ac_check_lib_save_LIBS
14782 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
14783 $as_echo "$ac_cv_lib_z_compress2" >&6; }
14784 if test "x$ac_cv_lib_z_compress2" = x""yes; then
14785 cat >>confdefs.h <<_ACEOF
14786 #define HAVE_LIBZ 1
14792 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14794 { { $as_echo "$as_me:$LINENO: error
:
14795 *** compress2
() missing
, zlib-devel package required
14796 See \
`config.log' for more details." >&5
14797 $as_echo "$as_me: error:
14798 *** compress2() missing, zlib-devel package required
14799 See \`config.log
' for more details." >&2;}
14800 { (exit 1); exit 1; }; }; }
14805 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
14806 $as_echo_n "checking for uncompress in -lz... " >&6; }
14807 if test "${ac_cv_lib_z_uncompress+set}" = set; then
14808 $as_echo_n "(cached) " >&6
14810 ac_check_lib_save_LIBS=$LIBS
14812 cat >conftest.$ac_ext <<_ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14819 /* Override any GCC internal prototype to avoid an error.
14820 Use char because int might match the return type of a GCC
14821 builtin and then its argument prototype would still apply. */
14825 char uncompress ();
14829 return uncompress ();
14834 rm -f conftest.$ac_objext conftest$ac_exeext
14835 if { (ac_try="$ac_link"
14836 case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14841 $as_echo "$ac_try_echo") >&5
14842 (eval "$ac_link") 2>conftest.er1
14844 grep -v '^
*+' conftest.er1 >conftest.err
14846 cat conftest.err >&5
14847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } && {
14849 test -z "$ac_c_werror_flag" ||
14850 test ! -s conftest.err
14851 } && test -s conftest$ac_exeext && {
14852 test "$cross_compiling" = yes ||
14853 $as_test_x conftest$ac_exeext
14855 ac_cv_lib_z_uncompress=yes
14857 $as_echo "$as_me: failed program was:" >&5
14858 sed 's
/^
/|
/' conftest.$ac_ext >&5
14860 ac_cv_lib_z_uncompress=no
14863 rm -rf conftest.dSYM
14864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14865 conftest$ac_exeext conftest.$ac_ext
14866 LIBS=$ac_check_lib_save_LIBS
14868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
14869 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
14870 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
14871 cat >>confdefs.h <<_ACEOF
14872 #define HAVE_LIBZ 1
14878 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14879 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
14880 { { $as_echo "$as_me:$LINENO: error:
14881 *** uncompress() missing, zlib-devel package required
14882 See \`config.log
' for more details." >&5
14883 $as_echo "$as_me: error:
14884 *** uncompress() missing, zlib-devel package required
14885 See \`config.log' for more details.
" >&2;}
14886 { (exit 1); exit 1; }; }; }
14891 { $as_echo "$as_me:$LINENO: checking
for crc32
in -lz" >&5
14892 $as_echo_n "checking
for crc32
in -lz...
" >&6; }
14893 if test "${ac_cv_lib_z_crc32+set}" = set; then
14894 $as_echo_n "(cached
) " >&6
14896 ac_check_lib_save_LIBS=$LIBS
14898 cat >conftest.$ac_ext <<_ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14905 /* Override any GCC internal prototype to avoid an error.
14906 Use char because int might match the return type of a GCC
14907 builtin and then its argument prototype would still apply. */
14920 rm -f conftest.$ac_objext conftest$ac_exeext
14921 if { (ac_try="$ac_link"
14922 case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14926 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14927 $as_echo "$ac_try_echo") >&5
14928 (eval "$ac_link") 2>conftest.er1
14930 grep -v '^ *+' conftest.er1 >conftest.err
14932 cat conftest.err >&5
14933 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14934 (exit $ac_status); } && {
14935 test -z "$ac_c_werror_flag" ||
14936 test ! -s conftest.err
14937 } && test -s conftest$ac_exeext && {
14938 test "$cross_compiling" = yes ||
14939 $as_test_x conftest$ac_exeext
14941 ac_cv_lib_z_crc32=yes
14943 $as_echo "$as_me: failed program was
:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 ac_cv_lib_z_crc32=no
14949 rm -rf conftest.dSYM
14950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14951 conftest$ac_exeext conftest.$ac_ext
14952 LIBS=$ac_check_lib_save_LIBS
14954 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_crc32" >&5
14955 $as_echo "$ac_cv_lib_z_crc32" >&6; }
14956 if test "x
$ac_cv_lib_z_crc32" = x""yes; then
14957 cat >>confdefs.h <<_ACEOF
14958 #define HAVE_LIBZ 1
14964 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
14965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14966 { { $as_echo "$as_me:$LINENO: error:
14967 *** crc32() missing, zlib-devel package required
14968 See \`config.log' for more details.
" >&5
14969 $as_echo "$as_me: error
:
14970 *** crc32
() missing
, zlib-devel package required
14971 See \
`config.log' for more details." >&2;}
14972 { (exit 1); exit 1; }; }; }
14979 cat >>confdefs.h <<\_ACEOF
14980 #define HAVE_ZLIB 1
14987 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14988 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14989 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14990 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14991 $as_echo_n "(cached) " >&6
14993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14994 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14996 # Is the header compilable?
14997 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
14998 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
14999 cat >conftest.$ac_ext <<_ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15005 $ac_includes_default
15006 #include <uuid/uuid.h>
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15012 *) ac_try_echo
=$ac_try;;
15014 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15015 $as_echo "$ac_try_echo") >&5
15016 (eval "$ac_compile") 2>conftest.er1
15018 grep -v '^ *+' conftest.er1
>conftest.err
15020 cat conftest.err
>&5
15021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } && {
15023 test -z "$ac_c_werror_flag" ||
15024 test ! -s conftest.err
15025 } && test -s conftest.
$ac_objext; then
15026 ac_header_compiler
=yes
15028 $as_echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.
$ac_ext >&5
15031 ac_header_compiler
=no
15034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15035 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15036 $as_echo "$ac_header_compiler" >&6; }
15038 # Is the header present?
15039 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
15040 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
15041 cat >conftest.
$ac_ext <<_ACEOF
15044 cat confdefs.h
>>conftest.
$ac_ext
15045 cat >>conftest.
$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 #include <uuid/uuid.h>
15049 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15050 case "(($ac_try" in
15051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15055 $as_echo "$ac_try_echo") >&5
15056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15058 grep -v '^ *+' conftest.er1 >conftest.err
15060 cat conftest.err >&5
15061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } >/dev/null && {
15063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15064 test ! -s conftest.err
15066 ac_header_preproc=yes
15068 $as_echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_header_preproc=no
15074 rm -f conftest.err conftest.$ac_ext
15075 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15076 $as_echo "$ac_header_preproc" >&6; }
15078 # So? What about this header?
15079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15081 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
15082 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15083 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
15084 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
15085 ac_header_preproc=yes
15088 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
15089 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
15090 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
15091 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
15092 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
15093 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
15094 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
15095 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
15096 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
15097 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
15098 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
15099 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
15103 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
15104 $as_echo_n "checking for uuid/uuid.h... " >&6; }
15105 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15106 $as_echo_n "(cached) " >&6
15108 ac_cv_header_uuid_uuid_h=$ac_header_preproc
15110 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
15111 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
15114 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
15117 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15119 { { $as_echo "$as_me:$LINENO: error
:
15120 *** uuid
/uuid.h missing
, libuuid-devel package required
15121 See \
`config.log' for more details." >&5
15122 $as_echo "$as_me: error:
15123 *** uuid/uuid.h missing, libuuid-devel package required
15124 See \`config.log
' for more details." >&2;}
15125 { (exit 1); exit 1; }; }; }
15131 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
15132 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
15133 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
15134 $as_echo_n "(cached) " >&6
15136 ac_check_lib_save_LIBS=$LIBS
15137 LIBS="-luuid $LIBS"
15138 cat >conftest.$ac_ext <<_ACEOF
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h. */
15145 /* Override any GCC internal prototype to avoid an error.
15146 Use char because int might match the return type of a GCC
15147 builtin and then its argument prototype would still apply. */
15151 char uuid_generate ();
15155 return uuid_generate ();
15160 rm -f conftest.$ac_objext conftest$ac_exeext
15161 if { (ac_try="$ac_link"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15167 $as_echo "$ac_try_echo") >&5
15168 (eval "$ac_link") 2>conftest.er1
15170 grep -v '^
*+' conftest.er1 >conftest.err
15172 cat conftest.err >&5
15173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } && {
15175 test -z "$ac_c_werror_flag" ||
15176 test ! -s conftest.err
15177 } && test -s conftest$ac_exeext && {
15178 test "$cross_compiling" = yes ||
15179 $as_test_x conftest$ac_exeext
15181 ac_cv_lib_uuid_uuid_generate=yes
15183 $as_echo "$as_me: failed program was:" >&5
15184 sed 's
/^
/|
/' conftest.$ac_ext >&5
15186 ac_cv_lib_uuid_uuid_generate=no
15189 rm -rf conftest.dSYM
15190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15191 conftest$ac_exeext conftest.$ac_ext
15192 LIBS=$ac_check_lib_save_LIBS
15194 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
15195 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
15196 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
15197 cat >>confdefs.h <<_ACEOF
15198 #define HAVE_LIBUUID 1
15201 LIBS="-luuid $LIBS"
15204 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15205 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
15206 { { $as_echo "$as_me:$LINENO: error:
15207 *** uuid_generate() missing, libuuid-devel package required
15208 See \`config.log
' for more details." >&5
15209 $as_echo "$as_me: error:
15210 *** uuid_generate() missing, libuuid-devel package required
15211 See \`config.log' for more details.
" >&2;}
15212 { (exit 1); exit 1; }; }; }
15217 { $as_echo "$as_me:$LINENO: checking
for uuid_is_null
in -luuid" >&5
15218 $as_echo_n "checking
for uuid_is_null
in -luuid...
" >&6; }
15219 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
15220 $as_echo_n "(cached
) " >&6
15222 ac_check_lib_save_LIBS=$LIBS
15223 LIBS="-luuid $LIBS"
15224 cat >conftest.$ac_ext <<_ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15231 /* Override any GCC internal prototype to avoid an error.
15232 Use char because int might match the return type of a GCC
15233 builtin and then its argument prototype would still apply. */
15237 char uuid_is_null ();
15241 return uuid_is_null ();
15246 rm -f conftest.$ac_objext conftest$ac_exeext
15247 if { (ac_try="$ac_link"
15248 case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15252 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15253 $as_echo "$ac_try_echo") >&5
15254 (eval "$ac_link") 2>conftest.er1
15256 grep -v '^ *+' conftest.er1 >conftest.err
15258 cat conftest.err >&5
15259 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15260 (exit $ac_status); } && {
15261 test -z "$ac_c_werror_flag" ||
15262 test ! -s conftest.err
15263 } && test -s conftest$ac_exeext && {
15264 test "$cross_compiling" = yes ||
15265 $as_test_x conftest$ac_exeext
15267 ac_cv_lib_uuid_uuid_is_null=yes
15269 $as_echo "$as_me: failed program was
:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 ac_cv_lib_uuid_uuid_is_null=no
15275 rm -rf conftest.dSYM
15276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15277 conftest$ac_exeext conftest.$ac_ext
15278 LIBS=$ac_check_lib_save_LIBS
15280 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_is_null" >&5
15281 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
15282 if test "x
$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
15283 cat >>confdefs.h <<_ACEOF
15284 #define HAVE_LIBUUID 1
15287 LIBS="-luuid $LIBS"
15290 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
15291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15292 { { $as_echo "$as_me:$LINENO: error:
15293 *** uuid_is_null() missing, libuuid-devel package required
15294 See \`config.log' for more details.
" >&5
15295 $as_echo "$as_me: error
:
15296 *** uuid_is_null
() missing
, libuuid-devel package required
15297 See \
`config.log' for more details." >&2;}
15298 { (exit 1); exit 1; }; }; }
15305 cat >>confdefs.h <<\_ACEOF
15306 #define HAVE_LIBUUID 1
15312 # Check whether --with-blkid was given.
15313 if test "${with_blkid+set}" = set; then
15314 withval=$with_blkid;
15321 if test "x$with_blkid" != xno; then
15323 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
15324 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
15325 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
15326 $as_echo_n "(cached) " >&6
15328 ac_check_lib_save_LIBS=$LIBS
15329 LIBS="-lblkid $LIBS"
15330 cat >conftest.$ac_ext <<_ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15337 /* Override any GCC internal prototype to avoid an error.
15338 Use char because int might match the return type of a GCC
15339 builtin and then its argument prototype would still apply. */
15343 char blkid_get_cache ();
15347 return blkid_get_cache ();
15352 rm -f conftest.$ac_objext conftest$ac_exeext
15353 if { (ac_try="$ac_link"
15354 case "(($ac_try" in
15355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15356 *) ac_try_echo
=$ac_try;;
15358 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15359 $as_echo "$ac_try_echo") >&5
15360 (eval "$ac_link") 2>conftest.er1
15362 grep -v '^ *+' conftest.er1
>conftest.err
15364 cat conftest.err
>&5
15365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } && {
15367 test -z "$ac_c_werror_flag" ||
15368 test ! -s conftest.err
15369 } && test -s conftest
$ac_exeext && {
15370 test "$cross_compiling" = yes ||
15371 $as_test_x conftest
$ac_exeext
15373 ac_cv_lib_blkid_blkid_get_cache
=yes
15375 $as_echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.
$ac_ext >&5
15378 ac_cv_lib_blkid_blkid_get_cache
=no
15381 rm -rf conftest.dSYM
15382 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15383 conftest
$ac_exeext conftest.
$ac_ext
15384 LIBS
=$ac_check_lib_save_LIBS
15386 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
15387 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
15388 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x
""yes; then
15390 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
15391 $as_echo_n "checking for blkid zfs support... " >&6; }
15394 dd if=/dev
/zero of
=$ZFS_DEV bs
=1024k count
=8 \
15395 >/dev
/null
2>/dev
/null
15396 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
15397 dd of
=$ZFS_DEV bs
=1k count
=8 \
15398 seek
=132 conv
=notrunc
&>/dev
/null \
15399 >/dev
/null
2>/dev
/null
15401 saved_LDFLAGS
="$LDFLAGS"
15404 if test "$cross_compiling" = yes; then
15405 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15407 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15408 See \`config.log' for more details." >&5
15409 $as_echo "$as_me: error: cannot run test program while cross compiling
15410 See \`config.log' for more details." >&2;}
15411 { (exit 1); exit 1; }; }; }
15413 cat >conftest.
$ac_ext <<_ACEOF
15416 cat confdefs.h
>>conftest.
$ac_ext
15417 cat >>conftest.
$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15421 #include <blkid/blkid.h>
15430 if (blkid_get_cache(&cache, NULL) < 0)
15433 value = blkid_get_tag_value(cache, "TYPE",
15436 blkid_put_cache(cache);
15440 if (strcmp(value, "zfs")) {
15442 blkid_put_cache(cache);
15447 blkid_put_cache(cache);
15453 rm -f conftest
$ac_exeext
15454 if { (ac_try
="$ac_link"
15455 case "(($ac_try" in
15456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15457 *) ac_try_echo=$ac_try;;
15459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15460 $as_echo "$ac_try_echo") >&5
15461 (eval "$ac_link") 2>&5
15463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15465 { (case "(($ac_try" in
15466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15467 *) ac_try_echo
=$ac_try;;
15469 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15470 $as_echo "$ac_try_echo") >&5
15471 (eval "$ac_try") 2>&5
15473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; }; then
15477 { $as_echo "$as_me:$LINENO: result: yes" >&5
15478 $as_echo "yes" >&6; }
15482 cat >>confdefs.h
<<\_ACEOF
15483 #define HAVE_LIBBLKID 1
15488 $as_echo "$as_me: program exited with status $ac_status" >&5
15489 $as_echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.
$ac_ext >&5
15492 ( exit $ac_status )
15495 { $as_echo "$as_me:$LINENO: result: no" >&5
15496 $as_echo "no" >&6; }
15497 if test "x$with_blkid" != xcheck
; then
15498 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15500 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15501 See \`config.log' for more details." >&5
15502 $as_echo "$as_me: error: --with-blkid given but unavailable
15503 See \`config.log' for more details." >&2;}
15504 { (exit 1); exit 1; }; }; }
15509 rm -rf conftest.dSYM
15510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15515 LDFLAGS
="$saved_LDFLAGS"
15519 if test "x$with_blkid" != xcheck
; then
15520 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15522 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15523 See \`config.log' for more details." >&5
15524 $as_echo "$as_me: error: --with-blkid given but unavailable
15525 See \`config.log' for more details." >&2;}
15526 { (exit 1); exit 1; }; }; }
15539 # Check whether --with-selinux was given.
15540 if test "${with_selinux+set}" = set; then
15541 withval
=$with_selinux;
15548 if test "x$with_selinux" != xno
; then
15550 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15551 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15552 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15553 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15554 $as_echo_n "(cached) " >&6
15556 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15557 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15559 # Is the header compilable?
15560 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
15561 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
15562 cat >conftest.
$ac_ext <<_ACEOF
15565 cat confdefs.h
>>conftest.
$ac_ext
15566 cat >>conftest.
$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 $ac_includes_default
15569 #include <selinux/selinux.h>
15571 rm -f conftest.
$ac_objext
15572 if { (ac_try
="$ac_compile"
15573 case "(($ac_try" in
15574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15578 $as_echo "$ac_try_echo") >&5
15579 (eval "$ac_compile") 2>conftest.er1
15581 grep -v '^ *+' conftest.er1 >conftest.err
15583 cat conftest.err >&5
15584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } && {
15586 test -z "$ac_c_werror_flag" ||
15587 test ! -s conftest.err
15588 } && test -s conftest.$ac_objext; then
15589 ac_header_compiler=yes
15591 $as_echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15594 ac_header_compiler=no
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15599 $as_echo "$ac_header_compiler" >&6; }
15601 # Is the header present?
15602 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
15603 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
15604 cat >conftest.$ac_ext <<_ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h. */
15610 #include <selinux/selinux.h>
15612 if { (ac_try="$ac_cpp conftest.$ac_ext"
15613 case "(($ac_try" in
15614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15615 *) ac_try_echo
=$ac_try;;
15617 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15618 $as_echo "$ac_try_echo") >&5
15619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15621 grep -v '^ *+' conftest.er1
>conftest.err
15623 cat conftest.err
>&5
15624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } >/dev
/null
&& {
15626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15627 test ! -s conftest.err
15629 ac_header_preproc
=yes
15631 $as_echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.
$ac_ext >&5
15634 ac_header_preproc
=no
15637 rm -f conftest.err conftest.
$ac_ext
15638 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15639 $as_echo "$ac_header_preproc" >&6; }
15641 # So? What about this header?
15642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15644 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
15645 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15646 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
15647 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
15648 ac_header_preproc
=yes
15651 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
15652 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
15653 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
15654 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
15655 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
15656 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
15657 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
15658 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
15659 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
15660 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
15661 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
15662 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
15666 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15667 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15668 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15669 $as_echo_n "(cached) " >&6
15671 ac_cv_header_selinux_selinux_h
=$ac_header_preproc
15673 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15674 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15677 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then
15679 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15680 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
15681 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
15682 $as_echo_n "(cached) " >&6
15684 ac_check_lib_save_LIBS
=$LIBS
15685 LIBS
="-lselinux $LIBS"
15686 cat >conftest.
$ac_ext <<_ACEOF
15689 cat confdefs.h
>>conftest.
$ac_ext
15690 cat >>conftest.
$ac_ext <<_ACEOF
15691 /* end confdefs.h. */
15693 /* Override any GCC internal prototype to avoid an error.
15694 Use char because int might match the return type of a GCC
15695 builtin and then its argument prototype would still apply. */
15699 char is_selinux_enabled ();
15703 return is_selinux_enabled ();
15708 rm -f conftest.
$ac_objext conftest
$ac_exeext
15709 if { (ac_try
="$ac_link"
15710 case "(($ac_try" in
15711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15715 $as_echo "$ac_try_echo") >&5
15716 (eval "$ac_link") 2>conftest.er1
15718 grep -v '^ *+' conftest.er1 >conftest.err
15720 cat conftest.err >&5
15721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } && {
15723 test -z "$ac_c_werror_flag" ||
15724 test ! -s conftest.err
15725 } && test -s conftest$ac_exeext && {
15726 test "$cross_compiling" = yes ||
15727 $as_test_x conftest$ac_exeext
15729 ac_cv_lib_selinux_is_selinux_enabled=yes
15731 $as_echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15734 ac_cv_lib_selinux_is_selinux_enabled=no
15737 rm -rf conftest.dSYM
15738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15739 conftest$ac_exeext conftest.$ac_ext
15740 LIBS=$ac_check_lib_save_LIBS
15742 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15743 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15744 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
15746 LIBSELINUX="-lselinux"
15749 cat >>confdefs.h <<\_ACEOF
15750 #define HAVE_LIBSELINUX 1
15756 if test "x$with_selinux" != xcheck; then
15757 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15759 { { $as_echo "$as_me:$LINENO: error
: --with-selinux given but unavailable
15760 See \
`config.log' for more details." >&5
15761 $as_echo "$as_me: error: --with-selinux given but unavailable
15762 See \`config.log
' for more details." >&2;}
15763 { (exit 1); exit 1; }; }; }
15773 if test "x$with_selinux" != xcheck; then
15774 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15775 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
15776 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
15777 See \`config.log
' for more details." >&5
15778 $as_echo "$as_me: error: --with-selinux given but unavailable
15779 See \`config.log' for more details.
" >&2;}
15780 { (exit 1); exit 1; }; }; }
15791 { $as_echo "$as_me:$LINENO: checking
for selinux support
" >&5
15792 $as_echo_n "checking
for selinux support...
" >&6; }
15793 { $as_echo "$as_me:$LINENO: result
: no
" >&5
15794 $as_echo "no
" >&6; }
15800 { $as_echo "$as_me:$LINENO: checking
for -Wframe-larger-than=<size
> support
" >&5
15801 $as_echo_n "checking
for -Wframe-larger-than=<size
> support...
" >&6; }
15803 saved_flags="$CFLAGS"
15804 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
15806 if test "$cross_compiling" = yes; then
15807 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
15808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15809 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15810 See \`config.log' for more details.
" >&5
15811 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
15812 See \
`config.log' for more details." >&2;}
15813 { (exit 1); exit 1; }; }; }
15815 cat >conftest.$ac_ext <<_ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15830 rm -f conftest$ac_exeext
15831 if { (ac_try="$ac_link"
15832 case "(($ac_try" in
15833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15834 *) ac_try_echo
=$ac_try;;
15836 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15837 $as_echo "$ac_try_echo") >&5
15838 (eval "$ac_link") 2>&5
15840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15842 { (case "(($ac_try" in
15843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15847 $as_echo "$ac_try_echo") >&5
15848 (eval "$ac_try") 2>&5
15850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15853 FRAME_LARGER_THAN=-Wframe-larger-than=1024
15854 { $as_echo "$as_me:$LINENO: result: yes" >&5
15855 $as_echo "yes" >&6; }
15858 $as_echo "$as_me: program exited with status $ac_status" >&5
15859 $as_echo "$as_me: failed program was:" >&5
15860 sed 's/^/| /' conftest.$ac_ext >&5
15862 ( exit $ac_status )
15865 { $as_echo "$as_me:$LINENO: result: no" >&5
15866 $as_echo "no" >&6; }
15869 rm -rf conftest.dSYM
15870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15875 CFLAGS="$saved_flags"
15879 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
15880 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
15882 saved_flags="$CFLAGS"
15883 CFLAGS="$CFLAGS -Wunused-but-set-variable"
15885 if test "$cross_compiling" = yes; then
15886 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15888 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
15889 See \
`config.log' for more details." >&5
15890 $as_echo "$as_me: error: cannot run test program while cross compiling
15891 See \`config.log
' for more details." >&2;}
15892 { (exit 1); exit 1; }; }; }
15894 cat >conftest.$ac_ext <<_ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15909 rm -f conftest$ac_exeext
15910 if { (ac_try="$ac_link"
15911 case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15916 $as_echo "$ac_try_echo") >&5
15917 (eval "$ac_link") 2>&5
15919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
15921 { (case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15926 $as_echo "$ac_try_echo") >&5
15927 (eval "$ac_try") 2>&5
15929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15932 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
15933 { $as_echo "$as_me:$LINENO: result: yes" >&5
15934 $as_echo "yes" >&6; }
15937 $as_echo "$as_me: program exited with status $ac_status" >&5
15938 $as_echo "$as_me: failed program was:" >&5
15939 sed 's
/^
/|
/' conftest.$ac_ext >&5
15941 ( exit $ac_status )
15943 NO_UNUSED_BUT_SET_VARIABLE=
15944 { $as_echo "$as_me:$LINENO: result: no" >&5
15945 $as_echo "no" >&6; }
15948 rm -rf conftest.dSYM
15949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15954 CFLAGS="$saved_flags"
15959 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
15960 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
15962 saved_CFLAGS="$CFLAGS"
15963 CFLAGS="-fstack-check"
15964 saved_LDFLAGS="$LDFLAGS"
15965 LDFLAGS="-lpthread"
15967 if test "$cross_compiling" = yes; then
15968 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15969 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
15970 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15971 See \`config.log
' for more details." >&5
15972 $as_echo "$as_me: error: cannot run test program while cross compiling
15973 See \`config.log' for more details.
" >&2;}
15974 { (exit 1); exit 1; }; }; }
15976 cat >conftest.$ac_ext <<_ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h. */
15983 #include <pthread.h>
15984 #include <sys/resource.h>
15985 #include <unistd.h>
15986 #include <bits/local_lim.h>
15988 #define PAGESIZE (sysconf(_SC_PAGESIZE))
15989 #define STACK_SIZE 8192
15990 #define BUFSIZE 4096
15992 void * func(void *arg)
16002 pthread_attr_t attr;
16007 setrlimit(RLIMIT_CORE, &l);
16008 pthread_attr_init(&attr);
16009 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
16010 pthread_attr_setguardsize(&attr, PAGESIZE);
16011 pthread_create(&tid, &attr, func, NULL);
16012 pthread_join(tid, NULL);
16018 rm -f conftest$ac_exeext
16019 if { (ac_try="$ac_link"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16025 $as_echo "$ac_try_echo") >&5
16026 (eval "$ac_link") 2>&5
16028 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16030 { (case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16034 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16035 $as_echo "$ac_try_echo") >&5
16036 (eval "$ac_try") 2>&5
16038 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16039 (exit $ac_status); }; }; then
16041 { $as_echo "$as_me:$LINENO: result
: no
" >&5
16042 $as_echo "no
" >&6; }
16045 $as_echo "$as_me: program exited with status
$ac_status" >&5
16046 $as_echo "$as_me: failed program was
:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16049 ( exit $ac_status )
16052 cat >>confdefs.h <<\_ACEOF
16053 #define NPTL_GUARD_WITHIN_STACK 1
16056 { $as_echo "$as_me:$LINENO: result
: yes" >&5
16057 $as_echo "yes" >&6; }
16060 rm -rf conftest.dSYM
16061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16065 CFLAGS="$saved_CFLAGS"
16066 LDFLAGS="$saved_LDFLAGS"
16072 # Check whether --with-linux was given.
16073 if test "${with_linux+set}" = set; then
16074 withval=$with_linux; kernelsrc="$withval"
16079 # Check whether --with-linux-obj was given.
16080 if test "${with_linux_obj+set}" = set; then
16081 withval=$with_linux_obj; kernelbuild="$withval"
16085 { $as_echo "$as_me:$LINENO: checking kernel
source directory
" >&5
16086 $as_echo_n "checking kernel
source directory...
" >&6; }
16087 if test -z "$kernelsrc"; then
16088 if test -e "/lib
/modules
/$
(uname
-r)/source"; then
16089 headersdir="/lib
/modules
/$
(uname
-r)/source"
16090 sourcelink=$(readlink -f "$headersdir")
16091 elif test -e "/lib
/modules
/$
(uname
-r)/build
"; then
16092 headersdir="/lib
/modules
/$
(uname
-r)/build
"
16093 sourcelink=$(readlink -f "$headersdir")
16095 sourcelink=$(ls -1d /usr/src/kernels/* \
16097 2>/dev/null | grep -v obj | tail -1)
16100 if test -n "$sourcelink" && test -e ${sourcelink}; then
16101 kernelsrc=`readlink -f ${sourcelink}`
16103 { $as_echo "$as_me:$LINENO: result
: Not found
" >&5
16104 $as_echo "Not found
" >&6; }
16105 { { $as_echo "$as_me:$LINENO: error
:
16106 *** Please
make sure the kernel devel package
for your distribution
16107 *** is installed
then try again. If that fails you can specify the
16108 *** location of the kernel
source with the
'--with-linux=PATH' option.
" >&5
16109 $as_echo "$as_me: error
:
16110 *** Please
make sure the kernel devel package
for your distribution
16111 *** is installed
then try again. If that fails you can specify the
16112 *** location of the kernel
source with the
'--with-linux=PATH' option.
" >&2;}
16113 { (exit 1); exit 1; }; }
16116 if test "$kernelsrc" = "NONE
"; then
16121 { $as_echo "$as_me:$LINENO: result
: $kernelsrc" >&5
16122 $as_echo "$kernelsrc" >&6; }
16123 { $as_echo "$as_me:$LINENO: checking kernel build directory
" >&5
16124 $as_echo_n "checking kernel build directory...
" >&6; }
16125 if test -z "$kernelbuild"; then
16126 if test -e "/lib
/modules
/$
(uname
-r)/build
"; then
16127 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16128 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16129 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16130 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16131 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16132 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16133 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
16135 kernelbuild=${kernelsrc}
16138 { $as_echo "$as_me:$LINENO: result
: $kernelbuild" >&5
16139 $as_echo "$kernelbuild" >&6; }
16141 { $as_echo "$as_me:$LINENO: checking kernel
source version
" >&5
16142 $as_echo_n "checking kernel
source version...
" >&6; }
16143 utsrelease1=$kernelbuild/include/linux/version.h
16144 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16145 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16146 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16147 utsrelease=linux/version.h
16148 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16149 utsrelease=linux/utsrelease.h
16150 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16151 utsrelease=generated/utsrelease.h
16154 if test "$utsrelease"; then
16155 kernsrcver=`(echo "#include <$utsrelease>";
16156 echo "kernsrcver=UTS_RELEASE") |
16157 cpp
-I $kernelbuild/include |
16158 grep "^kernsrcver=" | cut
-d \" -f 2`
16160 if test -z "$kernsrcver"; then
16161 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16162 $as_echo "Not found" >&6; }
16163 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16164 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16165 { (exit 1); exit 1; }; }
16168 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16169 $as_echo "Not found" >&6; }
16170 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16171 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16172 { (exit 1); exit 1; }; }
16175 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16176 $as_echo "$kernsrcver" >&6; }
16179 LINUX_OBJ=${kernelbuild}
16180 LINUX_VERSION=${kernsrcver}
16187 modpost=$LINUX/scripts/Makefile.modpost
16188 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16189 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16190 if test -f "$modpost"; then
16191 if grep -q Modules.symvers $modpost; then
16192 LINUX_SYMBOLS=Modules.symvers
16194 LINUX_SYMBOLS=Module.symvers
16197 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16198 { { $as_echo "$as_me:$LINENO: error:
16199 *** Please make sure the kernel devel package for your distribution
16200 *** is installed. If your building with a custom kernel make sure the
16201 *** kernel is configured, built, and the '--with-linux=PATH' configure
16202 *** option refers to the location of the kernel source." >&5
16203 $as_echo "$as_me: error:
16204 *** Please make sure the kernel devel package for your distribution
16205 *** is installed. If your building with a custom kernel make sure the
16206 *** kernel is configured, built, and the '--with-linux=PATH' configure
16207 *** option refers to the location of the kernel source." >&2;}
16208 { (exit 1); exit 1; }; }
16213 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16214 $as_echo "$LINUX_SYMBOLS" >&6; }
16220 # Check whether --with-spl was given.
16221 if test "${with_spl+set}" = set; then
16222 withval=$with_spl; splsrc="$withval"
16227 # Check whether --with-spl-obj was given.
16228 if test "${with_spl_obj+set}" = set; then
16229 withval=$with_spl_obj; splbuild="$withval"
16234 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
16235 $as_echo_n "checking spl source directory... " >&6; }
16236 if test -z "$splsrc"; then
16237 sourcelink=`ls -1d /usr
/src
/spl-
*/${LINUX_VERSION} \
16238 2>/dev
/null |
tail -1`
16240 if test -z "$sourcelink" || test ! -e $sourcelink; then
16244 if test -e $sourcelink; then
16245 splsrc=`readlink
-f ${sourcelink}`
16247 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16248 $as_echo "Not found" >&6; }
16249 { { $as_echo "$as_me:$LINENO: error:
16250 *** Please make sure the spl devel package for your distribution
16251 *** is installed then try again. If that fails you can specify the
16252 *** location of the spl source with the '--with-spl=PATH' option." >&5
16253 $as_echo "$as_me: error:
16254 *** Please make sure the spl devel package for your distribution
16255 *** is installed then try again. If that fails you can specify the
16256 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
16257 { (exit 1); exit 1; }; }
16260 if test "$splsrc" = "NONE"; then
16266 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
16267 $as_echo "$splsrc" >&6; }
16268 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
16269 $as_echo_n "checking spl build directory... " >&6; }
16270 if test -z "$splbuild"; then
16273 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
16274 $as_echo "$splbuild" >&6; }
16276 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
16277 $as_echo_n "checking spl source version... " >&6; }
16278 if test -r $splbuild/spl_config.h &&
16279 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
16281 splsrcver=`(echo "#include <spl_config.h>";
16282 echo "splsrcver=SPL_META_VERSION") |
16284 grep "^splsrcver=" | cut
-d \" -f 2`
16287 if test -z "$splsrcver"; then
16288 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16289 $as_echo "Not found" >&6; }
16290 { { $as_echo "$as_me:$LINENO: error:
16291 *** Cannot determine the version of the spl source.
16292 *** Please prepare the spl source before running this script" >&5
16293 $as_echo "$as_me: error:
16294 *** Cannot determine the version of the spl source.
16295 *** Please prepare the spl source before running this script" >&2;}
16296 { (exit 1); exit 1; }; }
16299 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
16300 $as_echo "$splsrcver" >&6; }
16303 SPL_OBJ=${splbuild}
16304 SPL_VERSION=${splsrcver}
16311 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
16312 $as_echo_n "checking spl file name for module symbols... " >&6; }
16313 if test -r $SPL_OBJ/Module.symvers; then
16314 SPL_SYMBOLS=Module.symvers
16315 elif test -r $SPL_OBJ/Modules.symvers; then
16316 SPL_SYMBOLS=Modules.symvers
16317 elif test -r $SPL_OBJ/module/Module.symvers; then
16318 SPL_SYMBOLS=Module.symvers
16319 elif test -r $SPL_OBJ/module/Modules.symvers; then
16320 SPL_SYMBOLS=Modules.symvers
16322 SPL_SYMBOLS=$LINUX_SYMBOLS
16325 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
16326 $as_echo "$SPL_SYMBOLS" >&6; }
16332 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16333 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16336 cat confdefs.h - <<_ACEOF >conftest.c
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16344 #ifndef AUTOCONF_INCLUDED
16345 #include <linux/config.h>
16352 #ifndef CONFIG_PREEMPT
16353 #error CONFIG_PREEMPT not #defined
16363 rm -Rf build && mkdir -p build
16364 echo "obj-m := conftest.o" >build/Makefile
16365 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367 (eval $ac_try) 2>&5
16369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
16374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; }; then
16377 { $as_echo "$as_me:$LINENO: result: yes" >&5
16378 $as_echo "yes" >&6; }
16379 { { $as_echo "$as_me:$LINENO: error:
16380 *** Kernel built with CONFIG_PREEMPT which is not supported.
16381 ** You must rebuild your kernel without this option." >&5
16382 $as_echo "$as_me: error:
16383 *** Kernel built with CONFIG_PREEMPT which is not supported.
16384 ** You must rebuild your kernel without this option." >&2;}
16385 { (exit 1); exit 1; }; }
16388 $as_echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16391 { $as_echo "$as_me:$LINENO: result: no" >&5
16392 $as_echo "no" >&6; }
16404 if test "$ZFS_META_LICENSE" = CDDL; then
16405 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
16406 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
16409 cat confdefs.h - <<_ACEOF >conftest.c
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16417 #ifndef AUTOCONF_INCLUDED
16418 #include <linux/config.h>
16425 #ifndef CONFIG_DEBUG_LOCK_ALLOC
16426 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
16436 rm -Rf build && mkdir -p build
16437 echo "obj-m := conftest.o" >build/Makefile
16438 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; }; then
16450 { $as_echo "$as_me:$LINENO: result: yes" >&5
16451 $as_echo "yes" >&6; }
16452 { { $as_echo "$as_me:$LINENO: error:
16453 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16454 *** incompatible with the CDDL license. You must rebuild
16455 *** your kernel without this option." >&5
16456 $as_echo "$as_me: error:
16457 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16458 *** incompatible with the CDDL license. You must rebuild
16459 *** your kernel without this option." >&2;}
16460 { (exit 1); exit 1; }; }
16463 $as_echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 { $as_echo "$as_me:$LINENO: result: no" >&5
16467 $as_echo "no" >&6; }
16480 if test "$ZFS_META_LICENSE" = GPL; then
16482 cat >>confdefs.h <<\_ACEOF
16483 #define HAVE_GPL_ONLY_SYMBOLS 1
16489 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
16490 $as_echo_n "checking block device operation prototypes... " >&6; }
16493 cat confdefs.h - <<_ACEOF >conftest.c
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h. */
16501 #include <linux/blkdev.h>
16507 int (*blk_open) (struct block_device *, fmode_t) = NULL;
16508 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
16509 int (*blk_ioctl) (struct block_device *, fmode_t,
16510 unsigned, unsigned long) = NULL;
16511 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
16512 unsigned, unsigned long) = NULL;
16513 struct block_device_operations blk_ops = {
16515 .release = blk_release,
16516 .ioctl = blk_ioctl,
16517 .compat_ioctl = blk_compat_ioctl,
16520 blk_ops.open(NULL, 0);
16521 blk_ops.release(NULL, 0);
16522 blk_ops.ioctl(NULL, 0, 0, 0);
16523 blk_ops.compat_ioctl(NULL, 0, 0, 0);
16532 rm -Rf build && mkdir -p build
16533 echo "obj-m := conftest.o" >build/Makefile
16534 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16546 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
16547 $as_echo "struct block_device" >&6; }
16549 cat >>confdefs.h <<\_ACEOF
16550 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
16555 $as_echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16558 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
16559 $as_echo "struct inode" >&6; }
16569 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
16570 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
16573 cat confdefs.h - <<_ACEOF >conftest.c
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16581 #include <linux/types.h>
16587 fmode_t *ptr __attribute__ ((unused));
16596 rm -Rf build && mkdir -p build
16597 echo "obj-m := conftest.o" >build/Makefile
16598 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16610 { $as_echo "$as_me:$LINENO: result: yes" >&5
16611 $as_echo "yes" >&6; }
16613 cat >>confdefs.h <<\_ACEOF
16614 #define HAVE_FMODE_T 1
16619 $as_echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 { $as_echo "$as_me:$LINENO: result: no" >&5
16623 $as_echo "no" >&6; }
16634 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
16635 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
16638 cat confdefs.h - <<_ACEOF >conftest.c
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h. */
16646 #include <linux/kobject.h>
16652 int val __attribute__ ((unused));
16653 val = KOBJ_NAME_LEN;
16662 rm -Rf build && mkdir -p build
16663 echo "obj-m := conftest.o" >build/Makefile
16664 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16676 { $as_echo "$as_me:$LINENO: result: yes" >&5
16677 $as_echo "yes" >&6; }
16679 cat >>confdefs.h <<\_ACEOF
16680 #define HAVE_KOBJ_NAME_LEN 1
16685 $as_echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 { $as_echo "$as_me:$LINENO: result: no" >&5
16689 $as_echo "no" >&6; }
16700 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
16701 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
16702 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
16703 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16705 if test $rc -ne 0; then
16707 for file in fs/block_dev.c; do
16708 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
16710 if test $rc -eq 0; then
16715 if test $export -eq 0; then
16716 { $as_echo "$as_me:$LINENO: result: no" >&5
16717 $as_echo "no" >&6; }
16720 { $as_echo "$as_me:$LINENO: result: yes" >&5
16721 $as_echo "yes" >&6; }
16723 cat >>confdefs.h <<\_ACEOF
16724 #define HAVE_BLKDEV_GET_BY_PATH 1
16729 { $as_echo "$as_me:$LINENO: result: yes" >&5
16730 $as_echo "yes" >&6; }
16732 cat >>confdefs.h <<\_ACEOF
16733 #define HAVE_BLKDEV_GET_BY_PATH 1
16740 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
16741 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
16742 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
16743 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16745 if test $rc -ne 0; then
16747 for file in fs/block_dev.c; do
16748 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
16750 if test $rc -eq 0; then
16755 if test $export -eq 0; then
16756 { $as_echo "$as_me:$LINENO: result: no" >&5
16757 $as_echo "no" >&6; }
16760 { $as_echo "$as_me:$LINENO: result: yes" >&5
16761 $as_echo "yes" >&6; }
16763 cat >>confdefs.h <<\_ACEOF
16764 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
16769 { $as_echo "$as_me:$LINENO: result: yes" >&5
16770 $as_echo "yes" >&6; }
16772 cat >>confdefs.h <<\_ACEOF
16773 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
16780 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
16781 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
16784 cat confdefs.h - <<_ACEOF >conftest.c
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16792 #include <linux/buffer_head.h>
16798 struct block_device *bdev = NULL;
16799 invalidate_bdev(bdev);
16808 rm -Rf build && mkdir -p build
16809 echo "obj-m := conftest.o" >build/Makefile
16810 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16822 { $as_echo "$as_me:$LINENO: result: yes" >&5
16823 $as_echo "yes" >&6; }
16825 cat >>confdefs.h <<\_ACEOF
16826 #define HAVE_1ARG_INVALIDATE_BDEV 1
16831 $as_echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 { $as_echo "$as_me:$LINENO: result: no" >&5
16835 $as_echo "no" >&6; }
16846 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
16847 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
16850 cat confdefs.h - <<_ACEOF >conftest.c
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16858 #include <linux/blkdev.h>
16864 struct block_device *bdev = NULL;
16865 bdev_logical_block_size(bdev);
16874 rm -Rf build && mkdir -p build
16875 echo "obj-m := conftest.o" >build/Makefile
16876 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16888 { $as_echo "$as_me:$LINENO: result: yes" >&5
16889 $as_echo "yes" >&6; }
16891 cat >>confdefs.h <<\_ACEOF
16892 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
16897 $as_echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 { $as_echo "$as_me:$LINENO: result: no" >&5
16901 $as_echo "no" >&6; }
16912 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
16913 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
16914 EXTRA_KCFLAGS="-Werror"
16917 cat confdefs.h - <<_ACEOF >conftest.c
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16925 #include <linux/bio.h>
16932 (void)bio_empty_barrier(&bio);
16941 rm -Rf build && mkdir -p build
16942 echo "obj-m := conftest.o" >build/Makefile
16943 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16955 { $as_echo "$as_me:$LINENO: result: yes" >&5
16956 $as_echo "yes" >&6; }
16958 cat >>confdefs.h <<\_ACEOF
16959 #define HAVE_BIO_EMPTY_BARRIER 1
16964 $as_echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 { $as_echo "$as_me:$LINENO: result: no" >&5
16968 $as_echo "no" >&6; }
16979 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
16980 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
16983 cat confdefs.h - <<_ACEOF >conftest.c
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16991 #include <linux/bio.h>
16997 int flags __attribute__ ((unused));
16998 flags = (1 << BIO_RW_FAILFAST);
17007 rm -Rf build && mkdir -p build
17008 echo "obj-m := conftest.o" >build/Makefile
17009 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; }; then
17021 { $as_echo "$as_me:$LINENO: result: yes" >&5
17022 $as_echo "yes" >&6; }
17024 cat >>confdefs.h <<\_ACEOF
17025 #define HAVE_BIO_RW_FAILFAST 1
17030 $as_echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 { $as_echo "$as_me:$LINENO: result: no" >&5
17034 $as_echo "no" >&6; }
17045 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
17046 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
17049 cat confdefs.h - <<_ACEOF >conftest.c
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17057 #include <linux/bio.h>
17063 int flags __attribute__ ((unused));
17064 flags = ((1 << BIO_RW_FAILFAST_DEV) |
17065 (1 << BIO_RW_FAILFAST_TRANSPORT) |
17066 (1 << BIO_RW_FAILFAST_DRIVER));
17075 rm -Rf build && mkdir -p build
17076 echo "obj-m := conftest.o" >build/Makefile
17077 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17089 { $as_echo "$as_me:$LINENO: result: yes" >&5
17090 $as_echo "yes" >&6; }
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_BIO_RW_FAILFAST_DTD 1
17098 $as_echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17101 { $as_echo "$as_me:$LINENO: result: no" >&5
17102 $as_echo "no" >&6; }
17113 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
17114 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
17117 cat confdefs.h - <<_ACEOF >conftest.c
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17125 #include <linux/bio.h>
17131 int flags __attribute__ ((unused));
17132 flags = REQ_FAILFAST_MASK;
17141 rm -Rf build && mkdir -p build
17142 echo "obj-m := conftest.o" >build/Makefile
17143 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17155 { $as_echo "$as_me:$LINENO: result: yes" >&5
17156 $as_echo "yes" >&6; }
17158 cat >>confdefs.h <<\_ACEOF
17159 #define HAVE_BIO_REQ_FAILFAST_MASK 1
17164 $as_echo "$as_me: failed program was:" >&5
17165 sed 's/^/| /' conftest.$ac_ext >&5
17167 { $as_echo "$as_me:$LINENO: result: no" >&5
17168 $as_echo "no" >&6; }
17179 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
17180 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
17181 tmp_flags="$EXTRA_KCFLAGS"
17182 EXTRA_KCFLAGS="-Werror"
17185 cat confdefs.h - <<_ACEOF >conftest.c
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17193 #include <linux/bio.h>
17199 void (*wanted_end_io)(struct bio *, int) = NULL;
17200 bio_end_io_t *local_end_io __attribute__ ((unused));
17202 local_end_io = wanted_end_io;
17211 rm -Rf build && mkdir -p build
17212 echo "obj-m := conftest.o" >build/Makefile
17213 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17225 { $as_echo "$as_me:$LINENO: result: yes" >&5
17226 $as_echo "yes" >&6; }
17228 cat >>confdefs.h <<\_ACEOF
17229 #define HAVE_2ARGS_BIO_END_IO_T 1
17234 $as_echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17237 { $as_echo "$as_me:$LINENO: result: no" >&5
17238 $as_echo "no" >&6; }
17247 EXTRA_KCFLAGS="$tmp_flags"
17250 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
17251 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
17254 cat confdefs.h - <<_ACEOF >conftest.c
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17262 #include <linux/bio.h>
17268 int flags __attribute__ ((unused));
17269 flags = BIO_RW_SYNC;
17278 rm -Rf build && mkdir -p build
17279 echo "obj-m := conftest.o" >build/Makefile
17280 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; }; then
17292 { $as_echo "$as_me:$LINENO: result: yes" >&5
17293 $as_echo "yes" >&6; }
17295 cat >>confdefs.h <<\_ACEOF
17296 #define HAVE_BIO_RW_SYNC 1
17301 $as_echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17304 { $as_echo "$as_me:$LINENO: result: no" >&5
17305 $as_echo "no" >&6; }
17316 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
17317 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
17320 cat confdefs.h - <<_ACEOF >conftest.c
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17328 #include <linux/bio.h>
17334 int flags __attribute__ ((unused));
17335 flags = BIO_RW_SYNCIO;
17344 rm -Rf build && mkdir -p build
17345 echo "obj-m := conftest.o" >build/Makefile
17346 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }; then
17358 { $as_echo "$as_me:$LINENO: result: yes" >&5
17359 $as_echo "yes" >&6; }
17361 cat >>confdefs.h <<\_ACEOF
17362 #define HAVE_BIO_RW_SYNCIO 1
17367 $as_echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17370 { $as_echo "$as_me:$LINENO: result: no" >&5
17371 $as_echo "no" >&6; }
17382 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
17383 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
17386 cat confdefs.h - <<_ACEOF >conftest.c
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h. */
17394 #include <linux/bio.h>
17400 int flags __attribute__ ((unused));
17410 rm -Rf build && mkdir -p build
17411 echo "obj-m := conftest.o" >build/Makefile
17412 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17424 { $as_echo "$as_me:$LINENO: result: yes" >&5
17425 $as_echo "yes" >&6; }
17427 cat >>confdefs.h <<\_ACEOF
17428 #define HAVE_REQ_SYNC 1
17433 $as_echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17436 { $as_echo "$as_me:$LINENO: result: no" >&5
17437 $as_echo "no" >&6; }
17448 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
17449 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
17452 cat confdefs.h - <<_ACEOF >conftest.c
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17460 #include <linux/blkdev.h>
17466 struct request *req = NULL;
17467 (void) blk_end_request(req, 0, 0);
17476 rm -Rf build && mkdir -p build
17477 echo "obj-m := conftest.o" >build/Makefile
17478 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17490 { $as_echo "$as_me:$LINENO: result: yes" >&5
17491 $as_echo "yes" >&6; }
17493 cat >>confdefs.h <<\_ACEOF
17494 #define HAVE_BLK_END_REQUEST 1
17499 $as_echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 { $as_echo "$as_me:$LINENO: result: no" >&5
17503 $as_echo "no" >&6; }
17513 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
17514 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
17517 cat confdefs.h - <<_ACEOF >conftest.c
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17525 #include <linux/module.h>
17526 #include <linux/blkdev.h>
17528 MODULE_LICENSE("CDDL");
17534 struct request *req = NULL;
17535 (void) blk_end_request(req, 0, 0);
17544 rm -Rf build && mkdir -p build
17545 echo "obj-m := conftest.o" >build/Makefile
17546 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; }; then
17558 { $as_echo "$as_me:$LINENO: result: no" >&5
17559 $as_echo "no" >&6; }
17562 $as_echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17565 { $as_echo "$as_me:$LINENO: result: yes" >&5
17566 $as_echo "yes" >&6; }
17568 cat >>confdefs.h <<\_ACEOF
17569 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
17582 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
17583 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
17586 cat confdefs.h - <<_ACEOF >conftest.c
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17594 #include <linux/blkdev.h>
17600 struct request_queue *q = NULL;
17601 (void) blk_fetch_request(q);
17610 rm -Rf build && mkdir -p build
17611 echo "obj-m := conftest.o" >build/Makefile
17612 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17624 { $as_echo "$as_me:$LINENO: result: yes" >&5
17625 $as_echo "yes" >&6; }
17627 cat >>confdefs.h <<\_ACEOF
17628 #define HAVE_BLK_FETCH_REQUEST 1
17633 $as_echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17636 { $as_echo "$as_me:$LINENO: result: no" >&5
17637 $as_echo "no" >&6; }
17648 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
17649 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
17652 cat confdefs.h - <<_ACEOF >conftest.c
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17660 #include <linux/blkdev.h>
17666 struct request_queue *q = NULL;
17667 struct request *req = NULL;
17668 blk_requeue_request(q, req);
17677 rm -Rf build && mkdir -p build
17678 echo "obj-m := conftest.o" >build/Makefile
17679 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17691 { $as_echo "$as_me:$LINENO: result: yes" >&5
17692 $as_echo "yes" >&6; }
17694 cat >>confdefs.h <<\_ACEOF
17695 #define HAVE_BLK_REQUEUE_REQUEST 1
17700 $as_echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17703 { $as_echo "$as_me:$LINENO: result: no" >&5
17704 $as_echo "no" >&6; }
17715 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
17716 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
17719 cat confdefs.h - <<_ACEOF >conftest.c
17722 cat confdefs.h >>conftest.$ac_ext
17723 cat >>conftest.$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17727 #include <linux/blkdev.h>
17733 struct request *req = NULL;
17734 (void) blk_rq_bytes(req);
17743 rm -Rf build && mkdir -p build
17744 echo "obj-m := conftest.o" >build/Makefile
17745 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; }; then
17757 { $as_echo "$as_me:$LINENO: result: yes" >&5
17758 $as_echo "yes" >&6; }
17760 cat >>confdefs.h <<\_ACEOF
17761 #define HAVE_BLK_RQ_BYTES 1
17766 $as_echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17769 { $as_echo "$as_me:$LINENO: result: no" >&5
17770 $as_echo "no" >&6; }
17780 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
17781 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
17784 cat confdefs.h - <<_ACEOF >conftest.c
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17792 #include <linux/module.h>
17793 #include <linux/blkdev.h>
17795 MODULE_LICENSE("CDDL");
17801 struct request *req = NULL;
17802 (void) blk_rq_bytes(req);
17811 rm -Rf build && mkdir -p build
17812 echo "obj-m := conftest.o" >build/Makefile
17813 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17825 { $as_echo "$as_me:$LINENO: result: no" >&5
17826 $as_echo "no" >&6; }
17829 $as_echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 { $as_echo "$as_me:$LINENO: result: yes" >&5
17833 $as_echo "yes" >&6; }
17835 cat >>confdefs.h <<\_ACEOF
17836 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
17849 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
17850 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
17853 cat confdefs.h - <<_ACEOF >conftest.c
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17861 #include <linux/blkdev.h>
17867 struct request *req = NULL;
17868 (void) blk_rq_pos(req);
17877 rm -Rf build && mkdir -p build
17878 echo "obj-m := conftest.o" >build/Makefile
17879 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17891 { $as_echo "$as_me:$LINENO: result: yes" >&5
17892 $as_echo "yes" >&6; }
17894 cat >>confdefs.h <<\_ACEOF
17895 #define HAVE_BLK_RQ_POS 1
17900 $as_echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 { $as_echo "$as_me:$LINENO: result: no" >&5
17904 $as_echo "no" >&6; }
17915 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
17916 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
17919 cat confdefs.h - <<_ACEOF >conftest.c
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17927 #include <linux/blkdev.h>
17933 struct request *req = NULL;
17934 (void) blk_rq_sectors(req);
17943 rm -Rf build && mkdir -p build
17944 echo "obj-m := conftest.o" >build/Makefile
17945 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17957 { $as_echo "$as_me:$LINENO: result: yes" >&5
17958 $as_echo "yes" >&6; }
17960 cat >>confdefs.h <<\_ACEOF
17961 #define HAVE_BLK_RQ_SECTORS 1
17966 $as_echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17969 { $as_echo "$as_me:$LINENO: result: no" >&5
17970 $as_echo "no" >&6; }
17981 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
17982 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17985 cat confdefs.h - <<_ACEOF >conftest.c
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17993 #include <linux/blkdev.h>
17999 struct gendisk *disk = NULL;
18000 (void) get_disk_ro(disk);
18009 rm -Rf build && mkdir -p build
18010 echo "obj-m := conftest.o" >build/Makefile
18011 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18023 { $as_echo "$as_me:$LINENO: result: yes" >&5
18024 $as_echo "yes" >&6; }
18026 cat >>confdefs.h <<\_ACEOF
18027 #define HAVE_GET_DISK_RO 1
18032 $as_echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 { $as_echo "$as_me:$LINENO: result: no" >&5
18036 $as_echo "no" >&6; }
18047 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
18048 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
18051 cat confdefs.h - <<_ACEOF >conftest.c
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18059 #include <linux/blkdev.h>
18065 struct request *req = NULL;
18066 (void) rq_is_sync(req);
18075 rm -Rf build && mkdir -p build
18076 echo "obj-m := conftest.o" >build/Makefile
18077 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18089 { $as_echo "$as_me:$LINENO: result: yes" >&5
18090 $as_echo "yes" >&6; }
18092 cat >>confdefs.h <<\_ACEOF
18093 #define HAVE_RQ_IS_SYNC 1
18098 $as_echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18101 { $as_echo "$as_me:$LINENO: result: no" >&5
18102 $as_echo "no" >&6; }
18113 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
18114 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
18117 cat confdefs.h - <<_ACEOF >conftest.c
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18125 #include <linux/blkdev.h>
18131 struct bio_vec *bv;
18132 struct req_iterator iter;
18133 struct request *req = NULL;
18134 rq_for_each_segment(bv, req, iter) { }
18143 rm -Rf build && mkdir -p build
18144 echo "obj-m := conftest.o" >build/Makefile
18145 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18157 { $as_echo "$as_me:$LINENO: result: yes" >&5
18158 $as_echo "yes" >&6; }
18160 cat >>confdefs.h <<\_ACEOF
18161 #define HAVE_RQ_FOR_EACH_SEGMENT 1
18166 $as_echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18169 { $as_echo "$as_me:$LINENO: result: no" >&5
18170 $as_echo "no" >&6; }
18180 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
18181 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
18184 cat confdefs.h - <<_ACEOF >conftest.c
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18192 #include <linux/fs.h>
18193 #include <linux/xattr.h>
18195 const struct xattr_handler xattr_test_handler = {
18201 const struct xattr_handler *xattr_handlers[] = {
18202 &xattr_test_handler,
18209 struct super_block sb __attribute__ ((unused));
18211 sb.s_xattr = xattr_handlers;
18220 rm -Rf build && mkdir -p build
18221 echo "obj-m := conftest.o" >build/Makefile
18222 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; }; then
18234 { $as_echo "$as_me:$LINENO: result: yes" >&5
18235 $as_echo "yes" >&6; }
18237 cat >>confdefs.h <<\_ACEOF
18238 #define HAVE_CONST_XATTR_HANDLER 1
18243 $as_echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18246 { $as_echo "$as_me:$LINENO: result: no" >&5
18247 $as_echo "no" >&6; }
18258 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18259 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
18262 cat confdefs.h - <<_ACEOF >conftest.c
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h. */
18270 #include <linux/xattr.h>
18276 int (*get)(struct dentry *dentry, const char *name,
18277 void *buffer, size_t size, int handler_flags) = NULL;
18278 struct xattr_handler xops __attribute__ ((unused));
18289 rm -Rf build && mkdir -p build
18290 echo "obj-m := conftest.o" >build/Makefile
18291 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298 (eval $ac_try) 2>&5
18300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; }; then
18303 { $as_echo "$as_me:$LINENO: result: yes" >&5
18304 $as_echo "yes" >&6; }
18306 cat >>confdefs.h <<\_ACEOF
18307 #define HAVE_DENTRY_XATTR_GET 1
18312 $as_echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 { $as_echo "$as_me:$LINENO: result: no" >&5
18316 $as_echo "no" >&6; }
18327 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
18328 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18331 cat confdefs.h - <<_ACEOF >conftest.c
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18339 #include <linux/xattr.h>
18345 int (*set)(struct dentry *dentry, const char *name,
18346 const void *buffer, size_t size, int flags,
18347 int handler_flags) = NULL;
18348 struct xattr_handler xops __attribute__ ((unused));
18359 rm -Rf build && mkdir -p build
18360 echo "obj-m := conftest.o" >build/Makefile
18361 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; }; then
18373 { $as_echo "$as_me:$LINENO: result: yes" >&5
18374 $as_echo "yes" >&6; }
18376 cat >>confdefs.h <<\_ACEOF
18377 #define HAVE_DENTRY_XATTR_SET 1
18382 $as_echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 { $as_echo "$as_me:$LINENO: result: no" >&5
18386 $as_echo "no" >&6; }
18397 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
18398 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
18401 cat confdefs.h - <<_ACEOF >conftest.c
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18409 #include <linux/fs.h>
18415 int (*fsync) (struct file *, int datasync) = NULL;
18416 struct file_operations fops __attribute__ ((unused));
18418 fops.fsync = fsync;
18427 rm -Rf build && mkdir -p build
18428 echo "obj-m := conftest.o" >build/Makefile
18429 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18441 { $as_echo "$as_me:$LINENO: result: yes" >&5
18442 $as_echo "yes" >&6; }
18444 cat >>confdefs.h <<\_ACEOF
18445 #define HAVE_2ARGS_FSYNC 1
18450 $as_echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18453 { $as_echo "$as_me:$LINENO: result: no" >&5
18454 $as_echo "no" >&6; }
18465 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
18466 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
18469 cat confdefs.h - <<_ACEOF >conftest.c
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18477 #include <linux/fs.h>
18483 void (*evict_inode) (struct inode *) = NULL;
18484 struct super_operations sops __attribute__ ((unused));
18486 sops.evict_inode = evict_inode;
18495 rm -Rf build && mkdir -p build
18496 echo "obj-m := conftest.o" >build/Makefile
18497 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; }; then
18509 { $as_echo "$as_me:$LINENO: result: yes" >&5
18510 $as_echo "yes" >&6; }
18512 cat >>confdefs.h <<\_ACEOF
18513 #define HAVE_EVICT_INODE 1
18518 $as_echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18521 { $as_echo "$as_me:$LINENO: result: no" >&5
18522 $as_echo "no" >&6; }
18533 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
18534 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
18535 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
18536 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18538 if test $rc -ne 0; then
18540 for file in fs/inode.c; do
18541 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
18543 if test $rc -eq 0; then
18548 if test $export -eq 0; then
18549 { $as_echo "$as_me:$LINENO: result: no" >&5
18550 $as_echo "no" >&6; }
18553 { $as_echo "$as_me:$LINENO: result: yes" >&5
18554 $as_echo "yes" >&6; }
18556 cat >>confdefs.h <<\_ACEOF
18557 #define HAVE_INSERT_INODE_LOCKED 1
18562 { $as_echo "$as_me:$LINENO: result: yes" >&5
18563 $as_echo "yes" >&6; }
18565 cat >>confdefs.h <<\_ACEOF
18566 #define HAVE_INSERT_INODE_LOCKED 1
18573 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
18574 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
18575 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
18576 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18578 if test $rc -ne 0; then
18580 for file in fs/dcache.c; do
18581 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
18583 if test $rc -eq 0; then
18588 if test $export -eq 0; then
18589 { $as_echo "$as_me:$LINENO: result: no" >&5
18590 $as_echo "no" >&6; }
18593 { $as_echo "$as_me:$LINENO: result: yes" >&5
18594 $as_echo "yes" >&6; }
18596 cat >>confdefs.h <<\_ACEOF
18597 #define HAVE_D_OBTAIN_ALIAS 1
18602 { $as_echo "$as_me:$LINENO: result: yes" >&5
18603 $as_echo "yes" >&6; }
18605 cat >>confdefs.h <<\_ACEOF
18606 #define HAVE_D_OBTAIN_ALIAS 1
18613 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
18614 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
18615 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
18616 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18618 if test $rc -ne 0; then
18620 for file in fs/block_dev.c; do
18621 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
18623 if test $rc -eq 0; then
18628 if test $export -eq 0; then
18629 { $as_echo "$as_me:$LINENO: result: no" >&5
18630 $as_echo "no" >&6; }
18633 { $as_echo "$as_me:$LINENO: result: yes" >&5
18634 $as_echo "yes" >&6; }
18636 cat >>confdefs.h <<\_ACEOF
18637 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
18642 { $as_echo "$as_me:$LINENO: result: yes" >&5
18643 $as_echo "yes" >&6; }
18645 cat >>confdefs.h <<\_ACEOF
18646 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
18653 if test "$LINUX_OBJ" != "$LINUX"; then
18654 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
18659 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
18660 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
18661 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
18667 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
18668 $as_echo_n "checking for target asm dir... " >&6; }
18669 TARGET_ARCH=`echo ${target_cpu} |
sed -e s
/i
.86/i386
/`
18671 case $TARGET_ARCH in
18673 TARGET_ASM_DIR=asm-${TARGET_ARCH}
18676 TARGET_ASM_DIR=asm-generic
18681 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
18682 $as_echo "$TARGET_ASM_DIR" >&6; }
18685 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
18686 $as_echo_n "checking for ioctl()... " >&6; }
18687 cat >conftest.$ac_ext <<_ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 #include <unistd.h>
18696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18697 $EGREP "ioctl" >/dev/null 2>&1; then
18704 cat >conftest.$ac_ext <<_ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h. */
18710 #include <sys/ioctl.h>
18713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18714 $EGREP "ioctl" >/dev/null 2>&1; then
18721 cat >conftest.$ac_ext <<_ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 #include <stropts.h>
18730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18731 $EGREP "ioctl" >/dev/null 2>&1; then
18739 if test $is_unistd = yes; then
18742 cat >>confdefs.h <<\_ACEOF
18743 #define HAVE_IOCTL_IN_UNISTD_H 1
18748 if test $is_sys_ioctl = yes; then
18751 cat >>confdefs.h <<\_ACEOF
18752 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
18755 elif test $is_stropts = yes; then
18757 cat >>confdefs.h <<\_ACEOF
18758 #define HAVE_IOCTL_IN_STROPTS_H 1
18766 if test $result = no; then
18767 { $as_echo "$as_me:$LINENO: result: no" >&5
18768 $as_echo "no" >&6; }
18769 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
18770 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
18771 { (exit 1); exit 1; }; }
18773 { $as_echo "$as_me:$LINENO: result: yes" >&5
18774 $as_echo "yes" >&6; }
18780 if test "${ac_cv_header_zlib_h+set}" = set; then
18781 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18782 $as_echo_n "checking for zlib.h... " >&6; }
18783 if test "${ac_cv_header_zlib_h+set}" = set; then
18784 $as_echo_n "(cached) " >&6
18786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18787 $as_echo "$ac_cv_header_zlib_h" >&6; }
18789 # Is the header compilable?
18790 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
18791 $as_echo_n "checking zlib.h usability... " >&6; }
18792 cat >conftest.$ac_ext <<_ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 $ac_includes_default
18801 rm -f conftest.$ac_objext
18802 if { (ac_try="$ac_compile"
18803 case "(($ac_try" in
18804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18805 *) ac_try_echo
=$ac_try;;
18807 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18808 $as_echo "$ac_try_echo") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18811 grep -v '^ *+' conftest.er1
>conftest.err
18813 cat conftest.err
>&5
18814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.
$ac_objext; then
18819 ac_header_compiler
=yes
18821 $as_echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.
$ac_ext >&5
18824 ac_header_compiler
=no
18827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18828 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18829 $as_echo "$ac_header_compiler" >&6; }
18831 # Is the header present?
18832 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
18833 $as_echo_n "checking zlib.h presence... " >&6; }
18834 cat >conftest.
$ac_ext <<_ACEOF
18837 cat confdefs.h
>>conftest.
$ac_ext
18838 cat >>conftest.
$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18842 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18843 case "(($ac_try" in
18844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18848 $as_echo "$ac_try_echo") >&5
18849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18851 grep -v '^ *+' conftest.er1 >conftest.err
18853 cat conftest.err >&5
18854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } >/dev/null && {
18856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18859 ac_header_preproc=yes
18861 $as_echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 ac_header_preproc=no
18867 rm -f conftest.err conftest.$ac_ext
18868 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18869 $as_echo "$ac_header_preproc" >&6; }
18871 # So? What about this header?
18872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18874 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18875 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18876 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
18877 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
18878 ac_header_preproc=yes
18881 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18882 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18883 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18884 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18885 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
18886 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
18887 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
18888 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18889 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18890 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18891 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
18892 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
18896 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18897 $as_echo_n "checking for zlib.h... " >&6; }
18898 if test "${ac_cv_header_zlib_h+set}" = set; then
18899 $as_echo_n "(cached) " >&6
18901 ac_cv_header_zlib_h=$ac_header_preproc
18903 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18904 $as_echo "$ac_cv_header_zlib_h" >&6; }
18907 if test "x$ac_cv_header_zlib_h" = x""yes; then
18910 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18912 { { $as_echo "$as_me:$LINENO: error
:
18913 *** zlib.h missing
, zlib-devel package required
18914 See \
`config.log' for more details." >&5
18915 $as_echo "$as_me: error:
18916 *** zlib.h missing, zlib-devel package required
18917 See \`config.log
' for more details." >&2;}
18918 { (exit 1); exit 1; }; }; }
18924 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
18925 $as_echo_n "checking for compress2 in -lz... " >&6; }
18926 if test "${ac_cv_lib_z_compress2+set}" = set; then
18927 $as_echo_n "(cached) " >&6
18929 ac_check_lib_save_LIBS=$LIBS
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18938 /* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
18948 return compress2 ();
18953 rm -f conftest.$ac_objext conftest$ac_exeext
18954 if { (ac_try="$ac_link"
18955 case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18960 $as_echo "$ac_try_echo") >&5
18961 (eval "$ac_link") 2>conftest.er1
18963 grep -v '^
*+' conftest.er1 >conftest.err
18965 cat conftest.err >&5
18966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); } && {
18968 test -z "$ac_c_werror_flag" ||
18969 test ! -s conftest.err
18970 } && test -s conftest$ac_exeext && {
18971 test "$cross_compiling" = yes ||
18972 $as_test_x conftest$ac_exeext
18974 ac_cv_lib_z_compress2=yes
18976 $as_echo "$as_me: failed program was:" >&5
18977 sed 's
/^
/|
/' conftest.$ac_ext >&5
18979 ac_cv_lib_z_compress2=no
18982 rm -rf conftest.dSYM
18983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18984 conftest$ac_exeext conftest.$ac_ext
18985 LIBS=$ac_check_lib_save_LIBS
18987 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
18988 $as_echo "$ac_cv_lib_z_compress2" >&6; }
18989 if test "x$ac_cv_lib_z_compress2" = x""yes; then
18990 cat >>confdefs.h <<_ACEOF
18991 #define HAVE_LIBZ 1
18997 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18998 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
18999 { { $as_echo "$as_me:$LINENO: error:
19000 *** compress2() missing, zlib-devel package required
19001 See \`config.log
' for more details." >&5
19002 $as_echo "$as_me: error:
19003 *** compress2() missing, zlib-devel package required
19004 See \`config.log' for more details.
" >&2;}
19005 { (exit 1); exit 1; }; }; }
19010 { $as_echo "$as_me:$LINENO: checking
for uncompress in -lz" >&5
19011 $as_echo_n "checking
for uncompress in -lz...
" >&6; }
19012 if test "${ac_cv_lib_z_uncompress+set}" = set; then
19013 $as_echo_n "(cached
) " >&6
19015 ac_check_lib_save_LIBS=$LIBS
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19024 /* Override any GCC internal prototype to avoid an error.
19025 Use char because int might match the return type of a GCC
19026 builtin and then its argument prototype would still apply. */
19030 char uncompress ();
19034 return uncompress ();
19039 rm -f conftest.$ac_objext conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19045 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19046 $as_echo "$ac_try_echo") >&5
19047 (eval "$ac_link") 2>conftest.er1
19049 grep -v '^ *+' conftest.er1 >conftest.err
19051 cat conftest.err >&5
19052 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19053 (exit $ac_status); } && {
19054 test -z "$ac_c_werror_flag" ||
19055 test ! -s conftest.err
19056 } && test -s conftest$ac_exeext && {
19057 test "$cross_compiling" = yes ||
19058 $as_test_x conftest$ac_exeext
19060 ac_cv_lib_z_uncompress=yes
19062 $as_echo "$as_me: failed program was
:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19065 ac_cv_lib_z_uncompress=no
19068 rm -rf conftest.dSYM
19069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19070 conftest$ac_exeext conftest.$ac_ext
19071 LIBS=$ac_check_lib_save_LIBS
19073 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_uncompress" >&5
19074 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
19075 if test "x
$ac_cv_lib_z_uncompress" = x""yes; then
19076 cat >>confdefs.h <<_ACEOF
19077 #define HAVE_LIBZ 1
19083 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
19084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19085 { { $as_echo "$as_me:$LINENO: error:
19086 *** uncompress() missing, zlib-devel package required
19087 See \`config.log' for more details.
" >&5
19088 $as_echo "$as_me: error
:
19089 *** uncompress() missing
, zlib-devel package required
19090 See \
`config.log' for more details." >&2;}
19091 { (exit 1); exit 1; }; }; }
19096 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
19097 $as_echo_n "checking for crc32 in -lz... " >&6; }
19098 if test "${ac_cv_lib_z_crc32+set}" = set; then
19099 $as_echo_n "(cached) " >&6
19101 ac_check_lib_save_LIBS=$LIBS
19103 cat >conftest.$ac_ext <<_ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19110 /* Override any GCC internal prototype to avoid an error.
19111 Use char because int might match the return type of a GCC
19112 builtin and then its argument prototype would still apply. */
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (ac_try="$ac_link"
19127 case "(($ac_try" in
19128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19129 *) ac_try_echo
=$ac_try;;
19131 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19132 $as_echo "$ac_try_echo") >&5
19133 (eval "$ac_link") 2>conftest.er1
19135 grep -v '^ *+' conftest.er1
>conftest.err
19137 cat conftest.err
>&5
19138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && {
19140 test -z "$ac_c_werror_flag" ||
19141 test ! -s conftest.err
19142 } && test -s conftest
$ac_exeext && {
19143 test "$cross_compiling" = yes ||
19144 $as_test_x conftest
$ac_exeext
19146 ac_cv_lib_z_crc32
=yes
19148 $as_echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.
$ac_ext >&5
19151 ac_cv_lib_z_crc32
=no
19154 rm -rf conftest.dSYM
19155 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19156 conftest
$ac_exeext conftest.
$ac_ext
19157 LIBS
=$ac_check_lib_save_LIBS
19159 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
19160 $as_echo "$ac_cv_lib_z_crc32" >&6; }
19161 if test "x$ac_cv_lib_z_crc32" = x
""yes; then
19162 cat >>confdefs.h
<<_ACEOF
19163 #define HAVE_LIBZ 1
19169 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19171 { { $as_echo "$as_me:$LINENO: error:
19172 *** crc32() missing, zlib-devel package required
19173 See \`config.log' for more details." >&5
19174 $as_echo "$as_me: error:
19175 *** crc32() missing, zlib-devel package required
19176 See \`config.log' for more details." >&2;}
19177 { (exit 1); exit 1; }; }; }
19184 cat >>confdefs.h
<<\_ACEOF
19185 #define HAVE_ZLIB 1
19192 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19193 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
19194 $as_echo_n "checking for uuid/uuid.h... " >&6; }
19195 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19196 $as_echo_n "(cached) " >&6
19198 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
19199 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
19201 # Is the header compilable?
19202 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
19203 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
19204 cat >conftest.
$ac_ext <<_ACEOF
19207 cat confdefs.h
>>conftest.
$ac_ext
19208 cat >>conftest.
$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210 $ac_includes_default
19211 #include <uuid/uuid.h>
19213 rm -f conftest.
$ac_objext
19214 if { (ac_try
="$ac_compile"
19215 case "(($ac_try" in
19216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19217 *) ac_try_echo=$ac_try;;
19219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19220 $as_echo "$ac_try_echo") >&5
19221 (eval "$ac_compile") 2>conftest.er1
19223 grep -v '^ *+' conftest.er1 >conftest.err
19225 cat conftest.err >&5
19226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); } && {
19228 test -z "$ac_c_werror_flag" ||
19229 test ! -s conftest.err
19230 } && test -s conftest.$ac_objext; then
19231 ac_header_compiler=yes
19233 $as_echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19236 ac_header_compiler=no
19239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19240 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19241 $as_echo "$ac_header_compiler" >&6; }
19243 # Is the header present?
19244 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
19245 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
19246 cat >conftest.$ac_ext <<_ACEOF
19249 cat confdefs.h >>conftest.$ac_ext
19250 cat >>conftest.$ac_ext <<_ACEOF
19251 /* end confdefs.h. */
19252 #include <uuid/uuid.h>
19254 if { (ac_try="$ac_cpp conftest.$ac_ext"
19255 case "(($ac_try" in
19256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19257 *) ac_try_echo
=$ac_try;;
19259 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19260 $as_echo "$ac_try_echo") >&5
19261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19263 grep -v '^ *+' conftest.er1
>conftest.err
19265 cat conftest.err
>&5
19266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } >/dev
/null
&& {
19268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19269 test ! -s conftest.err
19271 ac_header_preproc
=yes
19273 $as_echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.
$ac_ext >&5
19276 ac_header_preproc
=no
19279 rm -f conftest.err conftest.
$ac_ext
19280 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19281 $as_echo "$ac_header_preproc" >&6; }
19283 # So? What about this header?
19284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19286 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
19287 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19288 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
19289 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
19290 ac_header_preproc
=yes
19293 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
19294 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
19295 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
19296 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
19297 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
19298 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
19299 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
19300 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
19301 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
19302 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
19303 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
19304 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
19308 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
19309 $as_echo_n "checking for uuid/uuid.h... " >&6; }
19310 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19311 $as_echo_n "(cached) " >&6
19313 ac_cv_header_uuid_uuid_h
=$ac_header_preproc
19315 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
19316 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
19319 if test "x$ac_cv_header_uuid_uuid_h" = x
""yes; then
19322 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19324 { { $as_echo "$as_me:$LINENO: error:
19325 *** uuid/uuid.h missing, libuuid-devel package required
19326 See \`config.log' for more details." >&5
19327 $as_echo "$as_me: error:
19328 *** uuid/uuid.h missing, libuuid-devel package required
19329 See \`config.log' for more details." >&2;}
19330 { (exit 1); exit 1; }; }; }
19336 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
19337 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
19338 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
19339 $as_echo_n "(cached) " >&6
19341 ac_check_lib_save_LIBS
=$LIBS
19342 LIBS
="-luuid $LIBS"
19343 cat >conftest.
$ac_ext <<_ACEOF
19346 cat confdefs.h
>>conftest.
$ac_ext
19347 cat >>conftest.
$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19350 /* Override any GCC internal prototype to avoid an error.
19351 Use char because int might match the return type of a GCC
19352 builtin and then its argument prototype would still apply. */
19356 char uuid_generate ();
19360 return uuid_generate ();
19365 rm -f conftest.
$ac_objext conftest
$ac_exeext
19366 if { (ac_try
="$ac_link"
19367 case "(($ac_try" in
19368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19372 $as_echo "$ac_try_echo") >&5
19373 (eval "$ac_link") 2>conftest.er1
19375 grep -v '^ *+' conftest.er1 >conftest.err
19377 cat conftest.err >&5
19378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } && {
19380 test -z "$ac_c_werror_flag" ||
19381 test ! -s conftest.err
19382 } && test -s conftest$ac_exeext && {
19383 test "$cross_compiling" = yes ||
19384 $as_test_x conftest$ac_exeext
19386 ac_cv_lib_uuid_uuid_generate=yes
19388 $as_echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 ac_cv_lib_uuid_uuid_generate=no
19394 rm -rf conftest.dSYM
19395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19396 conftest$ac_exeext conftest.$ac_ext
19397 LIBS=$ac_check_lib_save_LIBS
19399 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
19400 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
19401 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
19402 cat >>confdefs.h <<_ACEOF
19403 #define HAVE_LIBUUID 1
19406 LIBS="-luuid $LIBS"
19409 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19411 { { $as_echo "$as_me:$LINENO: error
:
19412 *** uuid_generate
() missing
, libuuid-devel package required
19413 See \
`config.log' for more details." >&5
19414 $as_echo "$as_me: error:
19415 *** uuid_generate() missing, libuuid-devel package required
19416 See \`config.log
' for more details." >&2;}
19417 { (exit 1); exit 1; }; }; }
19422 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
19423 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
19424 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
19425 $as_echo_n "(cached) " >&6
19427 ac_check_lib_save_LIBS=$LIBS
19428 LIBS="-luuid $LIBS"
19429 cat >conftest.$ac_ext <<_ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19436 /* Override any GCC internal prototype to avoid an error.
19437 Use char because int might match the return type of a GCC
19438 builtin and then its argument prototype would still apply. */
19442 char uuid_is_null ();
19446 return uuid_is_null ();
19451 rm -f conftest.$ac_objext conftest$ac_exeext
19452 if { (ac_try="$ac_link"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19458 $as_echo "$ac_try_echo") >&5
19459 (eval "$ac_link") 2>conftest.er1
19461 grep -v '^
*+' conftest.er1 >conftest.err
19463 cat conftest.err >&5
19464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } && {
19466 test -z "$ac_c_werror_flag" ||
19467 test ! -s conftest.err
19468 } && test -s conftest$ac_exeext && {
19469 test "$cross_compiling" = yes ||
19470 $as_test_x conftest$ac_exeext
19472 ac_cv_lib_uuid_uuid_is_null=yes
19474 $as_echo "$as_me: failed program was:" >&5
19475 sed 's
/^
/|
/' conftest.$ac_ext >&5
19477 ac_cv_lib_uuid_uuid_is_null=no
19480 rm -rf conftest.dSYM
19481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19482 conftest$ac_exeext conftest.$ac_ext
19483 LIBS=$ac_check_lib_save_LIBS
19485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
19486 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
19487 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_LIBUUID 1
19492 LIBS="-luuid $LIBS"
19495 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19496 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
19497 { { $as_echo "$as_me:$LINENO: error:
19498 *** uuid_is_null() missing, libuuid-devel package required
19499 See \`config.log
' for more details." >&5
19500 $as_echo "$as_me: error:
19501 *** uuid_is_null() missing, libuuid-devel package required
19502 See \`config.log' for more details.
" >&2;}
19503 { (exit 1); exit 1; }; }; }
19510 cat >>confdefs.h <<\_ACEOF
19511 #define HAVE_LIBUUID 1
19517 # Check whether --with-blkid was given.
19518 if test "${with_blkid+set}" = set; then
19519 withval=$with_blkid;
19526 if test "x
$with_blkid" != xno; then
19528 { $as_echo "$as_me:$LINENO: checking
for blkid_get_cache
in -lblkid" >&5
19529 $as_echo_n "checking
for blkid_get_cache
in -lblkid...
" >&6; }
19530 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
19531 $as_echo_n "(cached
) " >&6
19533 ac_check_lib_save_LIBS=$LIBS
19534 LIBS="-lblkid $LIBS"
19535 cat >conftest.$ac_ext <<_ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19542 /* Override any GCC internal prototype to avoid an error.
19543 Use char because int might match the return type of a GCC
19544 builtin and then its argument prototype would still apply. */
19548 char blkid_get_cache ();
19552 return blkid_get_cache ();
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (ac_try="$ac_link"
19559 case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19563 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19564 $as_echo "$ac_try_echo") >&5
19565 (eval "$ac_link") 2>conftest.er1
19567 grep -v '^ *+' conftest.er1 >conftest.err
19569 cat conftest.err >&5
19570 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19571 (exit $ac_status); } && {
19572 test -z "$ac_c_werror_flag" ||
19573 test ! -s conftest.err
19574 } && test -s conftest$ac_exeext && {
19575 test "$cross_compiling" = yes ||
19576 $as_test_x conftest$ac_exeext
19578 ac_cv_lib_blkid_blkid_get_cache=yes
19580 $as_echo "$as_me: failed program was
:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19583 ac_cv_lib_blkid_blkid_get_cache=no
19586 rm -rf conftest.dSYM
19587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19588 conftest$ac_exeext conftest.$ac_ext
19589 LIBS=$ac_check_lib_save_LIBS
19591 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_blkid_blkid_get_cache" >&5
19592 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
19593 if test "x
$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
19595 { $as_echo "$as_me:$LINENO: checking
for blkid zfs support
" >&5
19596 $as_echo_n "checking
for blkid zfs support...
" >&6; }
19599 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
19600 >/dev/null 2>/dev/null
19601 echo -en "\x0c\xb1\xba\
0\
0\
0\
0\
0" | \
19602 dd of=$ZFS_DEV bs=1k count=8 \
19603 seek=132 conv=notrunc &>/dev/null \
19604 >/dev/null 2>/dev/null
19606 saved_LDFLAGS="$LDFLAGS"
19609 if test "$cross_compiling" = yes; then
19610 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
19611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19612 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19613 See \`config.log' for more details.
" >&5
19614 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
19615 See \
`config.log' for more details." >&2;}
19616 { (exit 1); exit 1; }; }; }
19618 cat >conftest.$ac_ext <<_ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h. */
19626 #include <blkid/blkid.h>
19635 if (blkid_get_cache(&cache, NULL) < 0)
19638 value = blkid_get_tag_value(cache, "TYPE",
19641 blkid_put_cache(cache);
19645 if (strcmp(value, "zfs")) {
19647 blkid_put_cache(cache);
19652 blkid_put_cache(cache);
19658 rm -f conftest$ac_exeext
19659 if { (ac_try="$ac_link"
19660 case "(($ac_try" in
19661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19662 *) ac_try_echo
=$ac_try;;
19664 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19665 $as_echo "$ac_try_echo") >&5
19666 (eval "$ac_link") 2>&5
19668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19670 { (case "(($ac_try" in
19671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19672 *) ac_try_echo=$ac_try;;
19674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19675 $as_echo "$ac_try_echo") >&5
19676 (eval "$ac_try") 2>&5
19678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19682 { $as_echo "$as_me:$LINENO: result: yes" >&5
19683 $as_echo "yes" >&6; }
19687 cat >>confdefs.h <<\_ACEOF
19688 #define HAVE_LIBBLKID 1
19693 $as_echo "$as_me: program exited with status $ac_status" >&5
19694 $as_echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ( exit $ac_status )
19700 { $as_echo "$as_me:$LINENO: result: no" >&5
19701 $as_echo "no" >&6; }
19702 if test "x$with_blkid" != xcheck; then
19703 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19705 { { $as_echo "$as_me:$LINENO: error
: --with-blkid given but unavailable
19706 See \
`config.log' for more details." >&5
19707 $as_echo "$as_me: error: --with-blkid given but unavailable
19708 See \`config.log
' for more details." >&2;}
19709 { (exit 1); exit 1; }; }; }
19714 rm -rf conftest.dSYM
19715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19720 LDFLAGS="$saved_LDFLAGS"
19724 if test "x$with_blkid" != xcheck; then
19725 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19726 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
19727 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19728 See \`config.log
' for more details." >&5
19729 $as_echo "$as_me: error: --with-blkid given but unavailable
19730 See \`config.log' for more details.
" >&2;}
19731 { (exit 1); exit 1; }; }; }
19744 # Check whether --with-selinux was given.
19745 if test "${with_selinux+set}" = set; then
19746 withval=$with_selinux;
19753 if test "x
$with_selinux" != xno; then
19755 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19756 { $as_echo "$as_me:$LINENO: checking
for selinux
/selinux.h
" >&5
19757 $as_echo_n "checking
for selinux
/selinux.h...
" >&6; }
19758 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19759 $as_echo_n "(cached
) " >&6
19761 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_selinux_selinux_h" >&5
19762 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19764 # Is the header compilable?
19765 { $as_echo "$as_me:$LINENO: checking selinux
/selinux.h usability
" >&5
19766 $as_echo_n "checking selinux
/selinux.h usability...
" >&6; }
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19773 $ac_includes_default
19774 #include <selinux/selinux.h>
19776 rm -f conftest.$ac_objext
19777 if { (ac_try="$ac_compile"
19778 case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19782 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19783 $as_echo "$ac_try_echo") >&5
19784 (eval "$ac_compile") 2>conftest.er1
19786 grep -v '^ *+' conftest.er1 >conftest.err
19788 cat conftest.err >&5
19789 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19790 (exit $ac_status); } && {
19791 test -z "$ac_c_werror_flag" ||
19792 test ! -s conftest.err
19793 } && test -s conftest.$ac_objext; then
19794 ac_header_compiler=yes
19796 $as_echo "$as_me: failed program was
:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 ac_header_compiler=no
19802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19803 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19804 $as_echo "$ac_header_compiler" >&6; }
19806 # Is the header present?
19807 { $as_echo "$as_me:$LINENO: checking selinux
/selinux.h presence
" >&5
19808 $as_echo_n "checking selinux
/selinux.h presence...
" >&6; }
19809 cat >conftest.$ac_ext <<_ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h. */
19815 #include <selinux/selinux.h>
19817 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19822 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19823 $as_echo "$ac_try_echo") >&5
19824 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19826 grep -v '^ *+' conftest.er1 >conftest.err
19828 cat conftest.err >&5
19829 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19830 (exit $ac_status); } >/dev/null && {
19831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19832 test ! -s conftest.err
19834 ac_header_preproc=yes
19836 $as_echo "$as_me: failed program was
:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 ac_header_preproc=no
19842 rm -f conftest.err conftest.$ac_ext
19843 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19844 $as_echo "$ac_header_preproc" >&6; }
19846 # So? What about this header?
19847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19849 { $as_echo "$as_me:$LINENO: WARNING
: selinux
/selinux.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19850 $as_echo "$as_me: WARNING
: selinux
/selinux.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19851 { $as_echo "$as_me:$LINENO: WARNING
: selinux
/selinux.h
: proceeding with the compiler
's result" >&5
19852 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result
" >&2;}
19853 ac_header_preproc=yes
19856 { $as_echo "$as_me:$LINENO: WARNING
: selinux
/selinux.h
: present but cannot be compiled
" >&5
19857 $as_echo "$as_me: WARNING
: selinux
/selinux.h
: present but cannot be compiled
" >&2;}
19858 { $as_echo "$as_me:$LINENO: WARNING
: selinux
/selinux.h
: check
for missing prerequisite headers?
" >&5
19859 $as_echo "$as_me: WARNING
: selinux
/selinux.h
: check
for missing prerequisite headers?
" >&2;}
19860 { $as_echo "$as_me:$LINENO: WARNING
: selinux
/selinux.h
: see the Autoconf documentation
" >&5
19861 $as_echo "$as_me: WARNING
: selinux
/selinux.h
: see the Autoconf documentation
" >&2;}
19862 { $as_echo "$as_me:$LINENO: WARNING
: selinux
/selinux.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19863 $as_echo "$as_me: WARNING
: selinux
/selinux.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19864 { $as_echo "$as_me:$LINENO: WARNING
: selinux
/selinux.h
: proceeding with the preprocessor
's result" >&5
19865 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result
" >&2;}
19866 { $as_echo "$as_me:$LINENO: WARNING
: selinux
/selinux.h
: in the future
, the compiler will take precedence
" >&5
19867 $as_echo "$as_me: WARNING
: selinux
/selinux.h
: in the future
, the compiler will take precedence
" >&2;}
19871 { $as_echo "$as_me:$LINENO: checking
for selinux
/selinux.h
" >&5
19872 $as_echo_n "checking
for selinux
/selinux.h...
" >&6; }
19873 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19874 $as_echo_n "(cached
) " >&6
19876 ac_cv_header_selinux_selinux_h=$ac_header_preproc
19878 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_selinux_selinux_h" >&5
19879 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19882 if test "x
$ac_cv_header_selinux_selinux_h" = x""yes; then
19884 { $as_echo "$as_me:$LINENO: checking
for is_selinux_enabled
in -lselinux" >&5
19885 $as_echo_n "checking
for is_selinux_enabled
in -lselinux...
" >&6; }
19886 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
19887 $as_echo_n "(cached
) " >&6
19889 ac_check_lib_save_LIBS=$LIBS
19890 LIBS="-lselinux $LIBS"
19891 cat >conftest.$ac_ext <<_ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19898 /* Override any GCC internal prototype to avoid an error.
19899 Use char because int might match the return type of a GCC
19900 builtin and then its argument prototype would still apply. */
19904 char is_selinux_enabled ();
19908 return is_selinux_enabled ();
19913 rm -f conftest.$ac_objext conftest$ac_exeext
19914 if { (ac_try="$ac_link"
19915 case "(($ac_try" in
19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19919 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19920 $as_echo "$ac_try_echo") >&5
19921 (eval "$ac_link") 2>conftest.er1
19923 grep -v '^ *+' conftest.er1 >conftest.err
19925 cat conftest.err >&5
19926 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19927 (exit $ac_status); } && {
19928 test -z "$ac_c_werror_flag" ||
19929 test ! -s conftest.err
19930 } && test -s conftest$ac_exeext && {
19931 test "$cross_compiling" = yes ||
19932 $as_test_x conftest$ac_exeext
19934 ac_cv_lib_selinux_is_selinux_enabled=yes
19936 $as_echo "$as_me: failed program was
:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19939 ac_cv_lib_selinux_is_selinux_enabled=no
19942 rm -rf conftest.dSYM
19943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19944 conftest$ac_exeext conftest.$ac_ext
19945 LIBS=$ac_check_lib_save_LIBS
19947 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19948 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19949 if test "x
$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
19951 LIBSELINUX="-lselinux"
19954 cat >>confdefs.h <<\_ACEOF
19955 #define HAVE_LIBSELINUX 1
19961 if test "x
$with_selinux" != xcheck; then
19962 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
19963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19964 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19965 See \`config.log' for more details.
" >&5
19966 $as_echo "$as_me: error
: --with-selinux given but unavailable
19967 See \
`config.log' for more details." >&2;}
19968 { (exit 1); exit 1; }; }; }
19978 if test "x$with_selinux" != xcheck; then
19979 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19981 { { $as_echo "$as_me:$LINENO: error
: --with-selinux given but unavailable
19982 See \
`config.log' for more details." >&5
19983 $as_echo "$as_me: error: --with-selinux given but unavailable
19984 See \`config.log
' for more details." >&2;}
19985 { (exit 1); exit 1; }; }; }
19996 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
19997 $as_echo_n "checking for selinux support... " >&6; }
19998 { $as_echo "$as_me:$LINENO: result: no" >&5
19999 $as_echo "no" >&6; }
20005 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
20006 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
20008 saved_flags="$CFLAGS"
20009 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
20011 if test "$cross_compiling" = yes; then
20012 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20013 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
20014 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20015 See \`config.log
' for more details." >&5
20016 $as_echo "$as_me: error: cannot run test program while cross compiling
20017 See \`config.log' for more details.
" >&2;}
20018 { (exit 1); exit 1; }; }; }
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20035 rm -f conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20042 $as_echo "$ac_try_echo") >&5
20043 (eval "$ac_link") 2>&5
20045 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20047 { (case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20051 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20052 $as_echo "$ac_try_echo") >&5
20053 (eval "$ac_try") 2>&5
20055 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20056 (exit $ac_status); }; }; then
20058 FRAME_LARGER_THAN=-Wframe-larger-than=1024
20059 { $as_echo "$as_me:$LINENO: result
: yes" >&5
20060 $as_echo "yes" >&6; }
20063 $as_echo "$as_me: program exited with status
$ac_status" >&5
20064 $as_echo "$as_me: failed program was
:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20067 ( exit $ac_status )
20070 { $as_echo "$as_me:$LINENO: result
: no
" >&5
20071 $as_echo "no
" >&6; }
20074 rm -rf conftest.dSYM
20075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20080 CFLAGS="$saved_flags"
20084 { $as_echo "$as_me:$LINENO: checking
for -Wno-unused-but-set-variable support
" >&5
20085 $as_echo_n "checking
for -Wno-unused-but-set-variable support...
" >&6; }
20087 saved_flags="$CFLAGS"
20088 CFLAGS="$CFLAGS -Wunused-but-set-variable"
20090 if test "$cross_compiling" = yes; then
20091 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
20092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20093 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20094 See \`config.log' for more details.
" >&5
20095 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
20096 See \
`config.log' for more details." >&2;}
20097 { (exit 1); exit 1; }; }; }
20099 cat >conftest.$ac_ext <<_ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20114 rm -f conftest$ac_exeext
20115 if { (ac_try="$ac_link"
20116 case "(($ac_try" in
20117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20118 *) ac_try_echo
=$ac_try;;
20120 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20121 $as_echo "$ac_try_echo") >&5
20122 (eval "$ac_link") 2>&5
20124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20126 { (case "(($ac_try" in
20127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20131 $as_echo "$ac_try_echo") >&5
20132 (eval "$ac_try") 2>&5
20134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
20137 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
20138 { $as_echo "$as_me:$LINENO: result: yes" >&5
20139 $as_echo "yes" >&6; }
20142 $as_echo "$as_me: program exited with status $ac_status" >&5
20143 $as_echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20146 ( exit $ac_status )
20148 NO_UNUSED_BUT_SET_VARIABLE=
20149 { $as_echo "$as_me:$LINENO: result: no" >&5
20150 $as_echo "no" >&6; }
20153 rm -rf conftest.dSYM
20154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20159 CFLAGS="$saved_flags"
20164 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
20165 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
20167 saved_CFLAGS="$CFLAGS"
20168 CFLAGS="-fstack-check"
20169 saved_LDFLAGS="$LDFLAGS"
20170 LDFLAGS="-lpthread"
20172 if test "$cross_compiling" = yes; then
20173 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20175 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
20176 See \
`config.log' for more details." >&5
20177 $as_echo "$as_me: error: cannot run test program while cross compiling
20178 See \`config.log
' for more details." >&2;}
20179 { (exit 1); exit 1; }; }; }
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20188 #include <pthread.h>
20189 #include <sys/resource.h>
20190 #include <unistd.h>
20191 #include <bits/local_lim.h>
20193 #define PAGESIZE (sysconf(_SC_PAGESIZE))
20194 #define STACK_SIZE 8192
20195 #define BUFSIZE 4096
20197 void * func(void *arg)
20207 pthread_attr_t attr;
20212 setrlimit(RLIMIT_CORE, &l);
20213 pthread_attr_init(&attr);
20214 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
20215 pthread_attr_setguardsize(&attr, PAGESIZE);
20216 pthread_create(&tid, &attr, func, NULL);
20217 pthread_join(tid, NULL);
20223 rm -f conftest$ac_exeext
20224 if { (ac_try="$ac_link"
20225 case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20230 $as_echo "$ac_try_echo") >&5
20231 (eval "$ac_link") 2>&5
20233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
20235 { (case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20240 $as_echo "$ac_try_echo") >&5
20241 (eval "$ac_try") 2>&5
20243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; }; then
20246 { $as_echo "$as_me:$LINENO: result: no" >&5
20247 $as_echo "no" >&6; }
20250 $as_echo "$as_me: program exited with status $ac_status" >&5
20251 $as_echo "$as_me: failed program was:" >&5
20252 sed 's
/^
/|
/' conftest.$ac_ext >&5
20254 ( exit $ac_status )
20257 cat >>confdefs.h <<\_ACEOF
20258 #define NPTL_GUARD_WITHIN_STACK 1
20261 { $as_echo "$as_me:$LINENO: result: yes" >&5
20262 $as_echo "yes" >&6; }
20265 rm -rf conftest.dSYM
20266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20270 CFLAGS="$saved_CFLAGS"
20271 LDFLAGS="$saved_LDFLAGS"
20276 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20277 $as_echo "Error!" >&6; }
20278 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
20279 user kernel|user|all|srpm" >&5
20280 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
20281 user kernel|user|all|srpm" >&2;}
20282 { (exit 1); exit 1; }; } ;;
20285 if test "$ZFS_CONFIG" = user ||
20286 test "$ZFS_CONFIG" = all; then
20288 CONFIG_USER_FALSE='#'
20290 CONFIG_USER_TRUE
='#'
20294 if test "$ZFS_CONFIG" = kernel ||
20295 test "$ZFS_CONFIG" = all
; then
20296 CONFIG_KERNEL_TRUE
=
20297 CONFIG_KERNEL_FALSE
='#'
20299 CONFIG_KERNEL_TRUE
='#'
20300 CONFIG_KERNEL_FALSE
=
20305 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
20306 $as_echo_n "checking whether debugging is enabled... " >&6; }
20307 # Check whether --enable-debug was given.
20308 if test "${enable_debug+set}" = set; then
20309 enableval
=$enable_debug;
20315 if test "x$enable_debug" = xyes
; then
20317 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
20318 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
20319 DEBUG_CFLAGS
="-DDEBUG -Werror"
20320 DEBUG_STACKFLAGS
="-fstack-check"
20324 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
20325 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
20326 DEBUG_CFLAGS
="-DNDEBUG"
20327 DEBUG_STACKFLAGS
=""
20334 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
20335 $as_echo "$enable_debug" >&6; }
20338 ac_config_files
="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile etc/Makefile etc/udev/Makefile etc/udev/rules.d/Makefile etc/udev/rules.d/60-zpool.rules etc/udev/rules.d/60-zvol.rules etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile 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 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 zfs-script-config.sh"
20341 cat >confcache
<<\_ACEOF
20342 # This file is a shell script that caches the results of configure
20343 # tests run on this system so they can be shared between configure
20344 # scripts and configure runs, see configure's option --config-cache.
20345 # It is not useful on other systems. If it contains results you don't
20346 # want to keep, you may remove or edit it.
20348 # config.status only pays attention to the cache file if you give it
20349 # the --recheck option to rerun configure.
20351 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20352 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20353 # following values.
20357 # The following way of writing the cache mishandles newlines in values,
20358 # but we know of no workaround that is simple, portable, and efficient.
20359 # So, we kill variables containing newlines.
20360 # Ultrix sh set writes to stderr and can't be redirected directly,
20361 # and sets the high bit in the cache file unless we assign to the vars.
20363 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20364 eval ac_val
=\$
$ac_var
20368 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20369 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20372 _ | IFS | as_nl
) ;; #(
20373 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20374 *) $as_unset $ac_var ;;
20380 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20381 *${as_nl}ac_space
=\
*)
20382 # `set' does not quote correctly, so add quotes (double-quote
20383 # substitution turns \\\\ into \\, and sed turns \\ into \).
20386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20389 # `set' quotes correctly as required by POSIX, so do not add quotes.
20390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20399 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20401 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20403 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20404 if test -w "$cache_file"; then
20405 test "x$cache_file" != "x/dev/null" &&
20406 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20407 $as_echo "$as_me: updating cache $cache_file" >&6;}
20408 cat confcache
>$cache_file
20410 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20411 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20416 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20417 # Let make expand exec_prefix.
20418 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20420 DEFS
=-DHAVE_CONFIG_H
20424 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20425 # 1. Remove the extension, and $U if already installed.
20426 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20427 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20428 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20429 # will be set to the directory where LIBOBJS objects are built.
20430 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20431 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20433 LIBOBJS
=$ac_libobjs
20435 LTLIBOBJS
=$ac_ltlibobjs
20438 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20439 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20440 Usually this means the macro was only invoked conditionally." >&5
20441 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20442 Usually this means the macro was only invoked conditionally." >&2;}
20443 { (exit 1); exit 1; }; }
20445 if test -n "$EXEEXT"; then
20447 am__EXEEXT_FALSE
='#'
20449 am__EXEEXT_TRUE
='#'
20453 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20454 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20455 Usually this means the macro was only invoked conditionally." >&5
20456 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20457 Usually this means the macro was only invoked conditionally." >&2;}
20458 { (exit 1); exit 1; }; }
20460 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20461 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20462 Usually this means the macro was only invoked conditionally." >&5
20463 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20464 Usually this means the macro was only invoked conditionally." >&2;}
20465 { (exit 1); exit 1; }; }
20467 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20468 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
20469 Usually this means the macro was only invoked conditionally." >&5
20470 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
20471 Usually this means the macro was only invoked conditionally." >&2;}
20472 { (exit 1); exit 1; }; }
20474 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20475 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20476 Usually this means the macro was only invoked conditionally." >&5
20477 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20478 Usually this means the macro was only invoked conditionally." >&2;}
20479 { (exit 1); exit 1; }; }
20481 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20482 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20483 Usually this means the macro was only invoked conditionally." >&5
20484 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20485 Usually this means the macro was only invoked conditionally." >&2;}
20486 { (exit 1); exit 1; }; }
20489 : ${CONFIG_STATUS=./config.status}
20491 ac_clean_files_save
=$ac_clean_files
20492 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20493 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20494 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20495 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20497 # Generated by $as_me.
20498 # Run this file to recreate the current configuration.
20499 # Compiler output produced by configure, useful for debugging
20500 # configure, is in config.log if it exists.
20503 ac_cs_recheck=false
20505 SHELL=\${CONFIG_SHELL-$SHELL}
20508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20509 ## --------------------- ##
20510 ## M4sh Initialization. ##
20511 ## --------------------- ##
20513 # Be more Bourne compatible
20514 DUALCASE
=1; export DUALCASE
# for MKS sh
20515 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20518 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20519 # is contrary to our usage. Disable this feature.
20520 alias -g '${1+"$@"}'='"$@"'
20521 setopt NO_GLOB_SUBST
20523 case `(set -o) 2>/dev/null` in
20524 *posix
*) set -o posix
;;
20533 # Avoid depending upon Character Ranges.
20534 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20535 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20536 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20537 as_cr_digits
='0123456789'
20538 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20543 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20544 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20545 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20546 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20547 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20548 as_echo='printf %s
\n'
20549 as_echo_n='printf %s
'
20551 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20552 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20553 as_echo_n='/usr
/ucb
/echo -n'
20555 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20556 as_echo_n_body='eval
20560 expr "X$arg" : "X\\(.*\\)$as_nl";
20561 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20563 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20565 export as_echo_n_body
20566 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20568 export as_echo_body
20569 as_echo='sh
-c $as_echo_body as_echo
'
20572 # The user is always right.
20573 if test "${PATH_SEPARATOR+set}" != set; then
20575 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20576 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20581 # Support unset when possible.
20582 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20590 # We need space, tab and new line, in precisely that order. Quoting is
20591 # there to prevent editors from complaining about space-tab.
20592 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20593 # splitting by setting IFS to empty value.)
20596 # Find who we are. Look in the path if we contain no directory separator.
20598 *[\\/]* ) as_myself=$0 ;;
20599 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20600 for as_dir in $PATH
20603 test -z "$as_dir" && as_dir=.
20604 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20610 # We did not find ourselves, most probably we were run as `sh COMMAND'
20611 # in which case we are not to be found in the path.
20612 if test "x$as_myself" = x
; then
20615 if test ! -f "$as_myself"; then
20616 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20617 { (exit 1); exit 1; }
20620 # Work around bugs in pre-3.0 UWIN ksh.
20621 for as_var
in ENV MAIL MAILPATH
20622 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20634 # Required to use basename.
20635 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20636 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20642 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20643 as_basename
=basename
20649 # Name of the executable.
20650 as_me
=`$as_basename -- "$0" ||
20651 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20652 X"$0" : 'X\(//\)$' \| \
20653 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20655 sed '/^.*\/\([^/][^/]*\)\/*$/{
20674 as_lineno_1
=$LINENO
20675 as_lineno_2
=$LINENO
20676 test "x$as_lineno_1" != "x$as_lineno_2" &&
20677 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
20679 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20680 # uniformly replaced by the line number. The first 'sed' inserts a
20681 # line-number line after each line using $LINENO; the second 'sed'
20682 # does the real work. The second script uses 'N' to pair each
20683 # line-number line with the line containing $LINENO, and appends
20684 # trailing '-' during substitution so that $LINENO is not a special
20685 # case at line end.
20686 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20687 # scripts with optimization help from Paolo Bonzini. Blame Lee
20688 # E. McMahon (1931-1989) for sed's syntax. :-)
20700 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20703 ' >$as_me.lineno
&&
20704 chmod +x
"$as_me.lineno" ||
20705 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20706 { (exit 1); exit 1; }; }
20708 # Don't try to exec as it changes $[0], causing all sort of problems
20709 # (the dirname of $[0] is not the place where we might find the
20710 # original and so on. Autoconf is especially sensitive to this).
20711 .
"./$as_me.lineno"
20712 # Exit status is that of the last command.
20717 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20723 ECHO_C
= ECHO_N
= ECHO_T
=
20724 case `echo -n x` in
20726 case `echo 'x\c'` in
20727 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20733 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20734 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20740 rm -f conf$$ conf$$.exe conf$$.
file
20741 if test -d conf$$.dir
; then
20742 rm -f conf$$.dir
/conf$$.
file
20745 mkdir conf$$.dir
2>/dev
/null
20747 if (echo >conf$$.
file) 2>/dev
/null
; then
20748 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20750 # ... but there are two gotchas:
20751 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20752 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20753 # In both cases, we have to default to `cp -p'.
20754 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20756 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20764 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20765 rmdir conf$$.dir
2>/dev
/null
20767 if mkdir
-p .
2>/dev
/null
; then
20770 test -d .
/-p && rmdir .
/-p
20774 if test -x / >/dev
/null
2>&1; then
20775 as_test_x
='test -x'
20777 if ls -dL / >/dev
/null
2>&1; then
20784 if test -d "$1"; then
20790 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20791 ???[sx]*):;;*)false;;esac;fi
20795 as_executable_p
=$as_test_x
20797 # Sed expression to map a string onto a valid CPP name.
20798 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20800 # Sed expression to map a string onto a valid variable name.
20801 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20806 # Save the log message, to keep $[0] and so on meaningful, and to
20807 # report actual input values of CONFIG_FILES etc. instead of their
20808 # values after options handling.
20810 This file was extended by $as_me, which was
20811 generated by GNU Autoconf 2.63. Invocation command line was
20813 CONFIG_FILES = $CONFIG_FILES
20814 CONFIG_HEADERS = $CONFIG_HEADERS
20815 CONFIG_LINKS = $CONFIG_LINKS
20816 CONFIG_COMMANDS = $CONFIG_COMMANDS
20819 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20824 case $ac_config_files in *"
20825 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20828 case $ac_config_headers in *"
20829 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20834 # Files that config.status was made for.
20835 config_files="$ac_config_files"
20836 config_headers="$ac_config_headers"
20837 config_commands="$ac_config_commands"
20841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20843 \`$as_me' instantiates files from templates according to the
20844 current configuration.
20846 Usage: $0 [OPTION]... [FILE]...
20848 -h, --help print this help, then exit
20849 -V, --version print version number and configuration settings, then exit
20850 -q, --quiet, --silent
20851 do not print progress messages
20852 -d, --debug don't remove temporary files
20853 --recheck update $as_me by reconfiguring in the same conditions
20854 --file=FILE[:TEMPLATE]
20855 instantiate the configuration file FILE
20856 --header=FILE[:TEMPLATE]
20857 instantiate the configuration header FILE
20859 Configuration files:
20862 Configuration headers:
20865 Configuration commands:
20868 Report bugs to <bug-autoconf@gnu.org>."
20871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20874 configured by $0, generated by GNU Autoconf 2.63,
20875 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20877 Copyright (C) 2008 Free Software Foundation, Inc.
20878 This config.status script is free software; the Free Software Foundation
20879 gives unlimited permission to copy, distribute and modify it."
20886 test -n "\$AWK" || AWK=awk
20889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20890 # The default lists apply if the user does not specify any file.
20896 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20897 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20908 # Handling of the options.
20909 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20911 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20912 $as_echo "$ac_cs_version"; exit ;;
20913 --debug |
--debu |
--deb |
--de |
--d |
-d )
20915 --file |
--fil |
--fi |
--f )
20918 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20920 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
20921 ac_need_defaults
=false
;;
20922 --header |
--heade |
--head |
--hea )
20925 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20927 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
20928 ac_need_defaults
=false
;;
20930 # Conflict between --help and --header
20931 { $as_echo "$as_me: error: ambiguous option: $1
20932 Try \`$0 --help' for more information." >&2
20933 { (exit 1); exit 1; }; };;
20934 --help |
--hel |
-h )
20935 $as_echo "$ac_cs_usage"; exit ;;
20936 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20937 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20940 # This is an error.
20941 -*) { $as_echo "$as_me: error: unrecognized option: $1
20942 Try \`$0 --help' for more information." >&2
20943 { (exit 1); exit 1; }; } ;;
20945 *) ac_config_targets
="$ac_config_targets $1"
20946 ac_need_defaults
=false
;;
20952 ac_configure_extra_args
=
20954 if $ac_cs_silent; then
20956 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20961 if \$ac_cs_recheck; then
20962 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20964 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20965 CONFIG_SHELL='$SHELL'
20966 export CONFIG_SHELL
20971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20976 ## Running $as_me. ##
20982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20986 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20989 # The HP-UX ksh and POSIX shell print the target directory to stdout
20990 # if CDPATH is set.
20991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20993 sed_quote_subst='$sed_quote_subst'
20994 double_quote_subst='$double_quote_subst'
20995 delay_variable_subst='$delay_variable_subst'
20996 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20997 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20998 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20999 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21000 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21001 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21002 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21003 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21004 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21005 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21006 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21007 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21008 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21009 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21010 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21011 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21012 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21013 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21014 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21015 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21016 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21017 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21018 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21019 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21020 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21021 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21022 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21023 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21024 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21025 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21026 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21027 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21028 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21029 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21030 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21031 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21032 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21033 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21034 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21035 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21036 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21037 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21038 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21039 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21040 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"`'
21041 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"`'
21042 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21043 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21044 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21045 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21046 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21047 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21048 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21049 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21050 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21051 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21052 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21053 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21054 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21055 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21056 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21057 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21058 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21059 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21060 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21061 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21062 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21063 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21064 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21065 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21066 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21067 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21068 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21069 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21070 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21071 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21072 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21073 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21074 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21075 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21076 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21077 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21078 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21079 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21080 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21081 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21082 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21083 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21084 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21085 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21086 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21087 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21088 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21089 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21090 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21091 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21092 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21093 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21094 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21095 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21096 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21097 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21098 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21099 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21100 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21101 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21102 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21103 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21104 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21105 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21106 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21107 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21108 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21109 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21110 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21111 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21112 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21113 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21116 LTCFLAGS='$LTCFLAGS'
21117 compiler='$compiler_DEFAULT'
21119 # Quote evaled strings.
21131 deplibs_check_method \
21140 lt_cv_sys_global_symbol_pipe \
21141 lt_cv_sys_global_symbol_to_cdecl \
21142 lt_cv_sys_global_symbol_to_c_name_address \
21143 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21146 lt_prog_compiler_no_builtin_flag \
21147 lt_prog_compiler_wl \
21148 lt_prog_compiler_pic \
21149 lt_prog_compiler_static \
21150 lt_cv_prog_compiler_c_o \
21158 export_dynamic_flag_spec \
21159 whole_archive_flag_spec \
21160 compiler_needs_object \
21162 allow_undefined_flag \
21163 no_undefined_flag \
21164 hardcode_libdir_flag_spec \
21165 hardcode_libdir_flag_spec_ld \
21166 hardcode_libdir_separator \
21171 variables_saved_for_relink \
21173 library_names_spec \
21178 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21179 *[\\\\\\\`\\"\\\$]*)
21180 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21183 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21188 # Double-quote double-evaled strings.
21189 for var in reload_cmds \
21190 old_postinstall_cmds \
21191 old_postuninstall_cmds \
21193 extract_expsyms_cmds \
21194 old_archive_from_new_cmds \
21195 old_archive_from_expsyms_cmds \
21197 archive_expsym_cmds \
21199 module_expsym_cmds \
21200 export_symbols_cmds \
21203 postuninstall_cmds \
21205 sys_lib_search_path_spec \
21206 sys_lib_dlsearch_path_spec; do
21207 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21208 *[\\\\\\\`\\"\\\$]*)
21209 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21212 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21217 # Fix-up fallback echo if it was mangled by the above quoting rules.
21219 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21223 ac_aux_dir='$ac_aux_dir'
21224 xsi_shell='$xsi_shell'
21225 lt_shell_append='$lt_shell_append'
21227 # See if we are running on zsh, and set the options which allow our
21228 # commands through without removal of \ escapes INIT.
21229 if test -n "\${ZSH_VERSION+set}" ; then
21230 setopt NO_GLOB_SUBST
21236 TIMESTAMP='$TIMESTAMP'
21245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21247 # Handling of arguments.
21248 for ac_config_target
in $ac_config_targets
21250 case $ac_config_target in
21251 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
21252 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21253 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
21254 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21255 "dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/Makefile" ;;
21256 "dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/90zfs/Makefile" ;;
21257 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
21258 "etc/udev/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/udev/Makefile" ;;
21259 "etc/udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/udev/rules.d/Makefile" ;;
21260 "etc/udev/rules.d/60-zpool.rules") CONFIG_FILES
="$CONFIG_FILES etc/udev/rules.d/60-zpool.rules" ;;
21261 "etc/udev/rules.d/60-zvol.rules") CONFIG_FILES
="$CONFIG_FILES etc/udev/rules.d/60-zvol.rules" ;;
21262 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
21263 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
21264 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
21265 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
21266 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
21267 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
21268 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
21269 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
21270 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
21271 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
21272 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
21273 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
21274 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
21275 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
21276 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
21277 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
21278 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
21279 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
21280 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
21281 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
21282 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
21283 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
21284 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
21285 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
21286 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
21287 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
21288 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
21289 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
21290 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
21291 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
21292 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
21293 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
21294 "cmd/zpool_layout/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
21295 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
21296 "cmd/zpool_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
21297 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
21298 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
21299 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
21300 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
21301 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
21302 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
21303 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
21304 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
21305 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
21306 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
21307 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
21308 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
21309 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
21310 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
21311 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
21312 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
21313 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
21314 "scripts/zpool-layout/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
21315 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
21316 "zfs.spec") CONFIG_FILES
="$CONFIG_FILES zfs.spec" ;;
21317 "zfs-modules.spec") CONFIG_FILES
="$CONFIG_FILES zfs-modules.spec" ;;
21318 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
21320 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21321 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21322 { (exit 1); exit 1; }; };;
21327 # If the user did not use the arguments to specify the items to instantiate,
21328 # then the envvar interface is used. Set only those that are not.
21329 # We use the long form for the default assignment because of an extremely
21330 # bizarre bug on SunOS 4.1.3.
21331 if $ac_need_defaults; then
21332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21334 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21337 # Have a temporary directory for convenience. Make it in the build tree
21338 # simply because there is no reason against having it here, and in addition,
21339 # creating and moving files from /tmp can sometimes cause problems.
21340 # Hook for its removal unless debugging.
21341 # Note that there is a small window in which the directory will not be cleaned:
21342 # after its creation but before its name has been assigned to `$tmp'.
21346 trap 'exit_status=$?
21347 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21349 trap '{ (exit 1); exit 1; }' 1 2 13 15
21351 # Create a (secure) tmp directory for tmp files.
21354 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21355 test -n "$tmp" && test -d "$tmp"
21358 tmp
=.
/conf$$
-$RANDOM
21359 (umask 077 && mkdir
"$tmp")
21362 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21363 { (exit 1); exit 1; }
21366 # Set up the scripts for CONFIG_FILES section.
21367 # No need to generate them if there are no CONFIG_FILES.
21368 # This happens for instance with `./config.status config.h'.
21369 if test -n "$CONFIG_FILES"; then
21373 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21374 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21377 ac_cs_awk_cr
=$ac_cr
21380 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21385 echo "cat >conf$$subs.awk <<_ACEOF" &&
21386 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21388 } >conf$$subs.sh ||
21389 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
21390 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
21391 { (exit 1); exit 1; }; }
21392 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21394 for ac_last_try in false false false false false :; do
21395 . ./conf$$subs.sh ||
21396 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
21397 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
21398 { (exit 1); exit 1; }; }
21400 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
21401 if test $ac_delim_n = $ac_delim_num; then
21403 elif $ac_last_try; then
21404 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
21405 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
21406 { (exit 1); exit 1; }; }
21408 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21411 rm -f conf$$subs.sh
21413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21414 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
21418 s/^/S["/; s
/!.
*/"]=/
21428 s/\(.\{148\}\).*/\1/
21430 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
21435 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21442 s/\(.\{148\}\).*/\1/
21444 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
21448 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21453 ' <conf$$subs.awk | sed '
21458 ' >>$CONFIG_STATUS || ac_write_fail=1
21459 rm -f conf$$subs.awk
21460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21462 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
21463 for (key in S) S_is_set[key] = 1
21469 nfields = split(line, field, "@
")
21471 len = length(field[1])
21472 for (i = 2; i < nfields; i++) {
21474 keylen = length(key)
21475 if (S_is_set[key]) {
21477 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21478 len += length(value) + length(field[++i])
21489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21490 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21491 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
21494 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
21495 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
21496 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
21497 { (exit 1); exit 1; }; }
21500 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21501 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
21502 # trailing colons and then remove the whole line if VPATH becomes empty
21503 # (actually we leave an empty line to preserve line numbers).
21504 if test "x
$srcdir" = x.; then
21505 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21506 s/:*\$(srcdir):*/:/
21507 s/:*\${srcdir}:*/:/
21509 s/^\([^=]*=[ ]*\):*/\1/
21515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21516 fi # test -n "$CONFIG_FILES"
21518 # Set up the scripts for CONFIG_HEADERS section.
21519 # No need to generate them if there are no CONFIG_HEADERS.
21520 # This happens for instance with `./config.status Makefile'.
21521 if test -n "$CONFIG_HEADERS"; then
21522 cat >"$tmp/defines.
awk" <<\_ACAWK ||
21526 # Transform confdefs.h into an awk script `defines.awk', embedded as
21527 # here-document in config.status, that substitutes the proper values into
21528 # config.h.in to produce config.h.
21530 # Create a delimiter string that does not exist in confdefs.h, to ease
21531 # handling of long lines.
21533 for ac_last_try in false false :; do
21534 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
21535 if test -z "$ac_t"; then
21537 elif $ac_last_try; then
21538 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
21539 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
21540 { (exit 1); exit 1; }; }
21542 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21546 # For the awk script, D is an array of macro values keyed by name,
21547 # likewise P contains macro parameters if any. Preserve backslash
21548 # newline sequences.
21550 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21552 s/.\{148\}/&'"$ac_delim"'/g
21555 s/^[ ]*#[ ]*define[ ][ ]*/ /
21562 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21564 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21568 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21569 D["\
1"]=" \
3\\\\\\n
"\\/p
21571 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21576 s/.\{148\}/&'"$ac_delim"'/g
21581 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21584 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21586 ' <confdefs.h | sed '
21587 s/'"$ac_delim"'/"\\\
21588 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21591 for (key in D) D_is_set[key] = 1
21594 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21596 split(line, arg, " ")
21597 if (arg[1] == "#") {
21601 defundef
= substr
(arg
[1], 2)
21604 split(mac1
, mac2
, "(") #)
21606 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21607 if (D_is_set
[macro
]) {
21608 # Preserve the white space surrounding the "#".
21609 print prefix
"define", macro P
[macro
] D
[macro
]
21612 # Replace #undef with comments. This is necessary, for example,
21613 # in the case of _POSIX_SOURCE, which is predefined and required
21614 # on some systems where configure will not decide to define it.
21615 if (defundef
== "undef") {
21616 print
"/*", prefix defundef
, macro
, "*/"
21624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21625 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21626 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21627 { (exit 1); exit 1; }; }
21628 fi # test -n "$CONFIG_HEADERS"
21631 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21636 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21638 case $ac_mode$ac_tag in
21640 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21641 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21642 { (exit 1); exit 1; }; };;
21643 :[FH
]-) ac_tag
=-:-;;
21644 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21661 -) ac_f
="$tmp/stdin";;
21662 *) # Look for the file first in the build tree, then in the source tree
21663 # (if the path is not absolute). The absolute path cannot be DOS-style,
21664 # because $ac_f cannot contain `:'.
21668 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21670 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21671 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21672 { (exit 1); exit 1; }; };;
21674 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21675 ac_file_inputs
="$ac_file_inputs '$ac_f'"
21678 # Let's still pretend it is `configure' which instantiates (i.e., don't
21679 # use $as_me), people would be surprised to read:
21680 # /* config.h. Generated by config.status. */
21681 configure_input
='Generated from '`
21682 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21684 if test x
"$ac_file" != x-
; then
21685 configure_input
="$ac_file. $configure_input"
21686 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21687 $as_echo "$as_me: creating $ac_file" >&6;}
21689 # Neutralize special characters interpreted by sed in replacement strings.
21690 case $configure_input in #(
21691 *\
&* |
*\|
* |
*\\* )
21692 ac_sed_conf_input
=`$as_echo "$configure_input" |
21693 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21694 *) ac_sed_conf_input
=$configure_input;;
21698 *:-:* |
*:-) cat >"$tmp/stdin" \
21699 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21700 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21701 { (exit 1); exit 1; }; } ;;
21706 ac_dir
=`$as_dirname -- "$ac_file" ||
21707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21708 X"$ac_file" : 'X\(//\)[^/]' \| \
21709 X"$ac_file" : 'X\(//\)$' \| \
21710 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21711 $as_echo X"$ac_file" |
21712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21716 /^X\(\/\/\)[^/].*/{
21731 -*) as_dir
=.
/$as_dir;;
21733 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21737 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21738 *) as_qdir
=$as_dir;;
21740 as_dirs
="'$as_qdir' $as_dirs"
21741 as_dir
=`$as_dirname -- "$as_dir" ||
21742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21743 X"$as_dir" : 'X\(//\)[^/]' \| \
21744 X"$as_dir" : 'X\(//\)$' \| \
21745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21746 $as_echo X"$as_dir" |
21747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21751 /^X\(\/\/\)[^/].*/{
21764 test -d "$as_dir" && break
21766 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21767 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21768 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21769 { (exit 1); exit 1; }; }; }
21773 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21775 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21776 # A ".." for each directory in $ac_dir_suffix.
21777 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21778 case $ac_top_builddir_sub in
21779 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21780 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21783 ac_abs_top_builddir
=$ac_pwd
21784 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21785 # for backward compatibility:
21786 ac_top_builddir
=$ac_top_build_prefix
21789 .
) # We are building in place.
21791 ac_top_srcdir
=$ac_top_builddir_sub
21792 ac_abs_top_srcdir
=$ac_pwd ;;
21793 [\\/]* | ?
:[\\/]* ) # Absolute name.
21794 ac_srcdir
=$srcdir$ac_dir_suffix;
21795 ac_top_srcdir
=$srcdir
21796 ac_abs_top_srcdir
=$srcdir ;;
21797 *) # Relative name.
21798 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21799 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21800 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21802 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21812 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21813 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21815 ac_MKDIR_P
=$MKDIR_P
21817 [\\/$
]* | ?
:[\\/]* ) ;;
21818 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21823 # If the template does not know about datarootdir, expand it.
21824 # FIXME: This hack should be removed a few years after 2.60.
21825 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21838 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21839 *datarootdir
*) ac_datarootdir_seen
=yes;;
21840 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21841 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21842 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21845 ac_datarootdir_hack='
21846 s&@datadir@&$datadir&g
21847 s&@docdir@&$docdir&g
21848 s&@infodir@&$infodir&g
21849 s&@localedir@&$localedir&g
21850 s&@mandir@&$mandir&g
21851 s&\\\${datarootdir}&$datarootdir&g' ;;
21855 # Neutralize VPATH when `$srcdir' = `.'.
21856 # Shell code in configure.ac might set extrasub.
21857 # FIXME: do we really want to maintain this feature?
21858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21859 ac_sed_extra="$ac_vpsub
21862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21864 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21865 s|@configure_input@|
$ac_sed_conf_input|
;t t
21866 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21867 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21868 s
&@srcdir@
&$ac_srcdir&;t t
21869 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21870 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21871 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21872 s
&@builddir@
&$ac_builddir&;t t
21873 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21874 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21875 s
&@INSTALL@
&$ac_INSTALL&;t t
21876 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21877 $ac_datarootdir_hack
21879 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
21880 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
21881 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
21882 { (exit 1); exit 1; }; }
21884 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21885 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21886 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21887 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21888 which seems to be undefined. Please make sure it is defined." >&5
21889 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21890 which seems to be undefined. Please make sure it is defined." >&2;}
21894 -) cat "$tmp/out" && rm -f "$tmp/out";;
21895 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21897 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21898 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21899 { (exit 1); exit 1; }; }
21905 if test x"$ac_file" != x-; then
21907 $as_echo "/* $configure_input */" \
21908 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21909 } >"$tmp/config.h" \
21910 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21911 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21912 { (exit 1); exit 1; }; }
21913 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21914 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21915 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21918 mv "$tmp/config.h" "$ac_file" \
21919 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21920 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21921 { (exit 1); exit 1; }; }
21924 $as_echo "/* $configure_input */" \
21925 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21926 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21927 $as_echo "$as_me: error: could not create -" >&2;}
21928 { (exit 1); exit 1; }; }
21930 # Compute "$ac_file"'s index
in $config_headers.
21933 for _am_header
in $config_headers :; do
21934 case $_am_header in
21935 $_am_arg |
$_am_arg:* )
21938 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21941 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21942 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21943 X"$_am_arg" : 'X\(//\)[^/]' \| \
21944 X"$_am_arg" : 'X\(//\)$' \| \
21945 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21946 $as_echo X"$_am_arg" |
21947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21951 /^X\(\/\/\)[^/].*/{
21963 s/.*/./; q'`/stamp-h
$_am_stamp_count
21966 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21967 $as_echo "$as_me: executing $ac_file commands" >&6;}
21972 case $ac_file$ac_mode in
21974 (mv zfs_config.h zfs_config.h.tmp
&&
21975 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
21976 rm zfs_config.h.tmp
) ||
exit 1 ;;
21977 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21978 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21979 # are listed without --file. Let's play safe and only enable the eval
21980 # if we detect the quoting.
21981 case $CONFIG_FILES in
21982 *\'*) eval set x
"$CONFIG_FILES" ;;
21983 *) set x
$CONFIG_FILES ;;
21988 # Strip MF so we end up with the name of the file.
21989 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21990 # Check whether this is an Automake generated Makefile or not.
21991 # We used to match only the files named `Makefile.in', but
21992 # some people rename them; so instead we look at the file content.
21993 # Grep'ing the first line is not enough: some people post-process
21994 # each Makefile.in and add a new line on top of each file to say so.
21995 # Grep'ing the whole file is not good either: AIX grep has a line
21996 # limit of 2048, but all sed's we know have understand at least 4000.
21997 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21998 dirpart
=`$as_dirname -- "$mf" ||
21999 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22000 X"$mf" : 'X\(//\)[^/]' \| \
22001 X"$mf" : 'X\(//\)$' \| \
22002 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22008 /^X\(\/\/\)[^/].*/{
22024 # Extract the definition of DEPDIR, am__include, and am__quote
22025 # from the Makefile without running `make'.
22026 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
22027 test -z "$DEPDIR" && continue
22028 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
22029 test -z "am__include" && continue
22030 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
22031 # When using ansi2knr, U may be empty or an underscore; expand it
22032 U
=`sed -n 's/^U = //p' < "$mf"`
22033 # Find all dependency output files, they are included files with
22034 # $(DEPDIR) in their names. We invoke sed twice because it is the
22035 # simplest approach to changing $(DEPDIR) to its actual value in the
22037 for file in `sed -n "
22038 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22039 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22040 # Make sure the directory exists.
22041 test -f "$dirpart/$file" && continue
22042 fdir
=`$as_dirname -- "$file" ||
22043 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22044 X"$file" : 'X\(//\)[^/]' \| \
22045 X"$file" : 'X\(//\)$' \| \
22046 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22047 $as_echo X"$file" |
22048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22052 /^X\(\/\/\)[^/].*/{
22065 { as_dir
=$dirpart/$fdir
22067 -*) as_dir
=.
/$as_dir;;
22069 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
22073 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22074 *) as_qdir
=$as_dir;;
22076 as_dirs
="'$as_qdir' $as_dirs"
22077 as_dir
=`$as_dirname -- "$as_dir" ||
22078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22079 X"$as_dir" : 'X\(//\)[^/]' \| \
22080 X"$as_dir" : 'X\(//\)$' \| \
22081 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22082 $as_echo X"$as_dir" |
22083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22087 /^X\(\/\/\)[^/].*/{
22100 test -d "$as_dir" && break
22102 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22103 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22104 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22105 { (exit 1); exit 1; }; }; }
22106 # echo "creating $dirpart/$file"
22107 echo '# dummy' > "$dirpart/$file"
22114 # See if we are running on zsh, and set the options which allow our
22115 # commands through without removal of \ escapes.
22116 if test -n "${ZSH_VERSION+set}" ; then
22117 setopt NO_GLOB_SUBST
22120 cfgfile
="${ofile}T"
22121 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22124 cat <<_LT_EOF >> "$cfgfile"
22127 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22128 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22129 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22130 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22132 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22133 # 2006, 2007, 2008 Free Software Foundation, Inc.
22134 # Written by Gordon Matzigkeit, 1996
22136 # This file is part of GNU Libtool.
22138 # GNU Libtool is free software; you can redistribute it and/or
22139 # modify it under the terms of the GNU General Public License as
22140 # published by the Free Software Foundation; either version 2 of
22141 # the License, or (at your option) any later version.
22143 # As a special exception to the GNU General Public License,
22144 # if you distribute this file as part of a program or library that
22145 # is built using GNU Libtool, you may include this file under the
22146 # same distribution terms that you use for the rest of that program.
22148 # GNU Libtool is distributed in the hope that it will be useful,
22149 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22150 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22151 # GNU General Public License for more details.
22153 # You should have received a copy of the GNU General Public License
22154 # along with GNU Libtool; see the file COPYING. If not, a copy
22155 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22156 # obtained by writing to the Free Software Foundation, Inc.,
22157 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22160 # The names of the tagged configurations supported by this script.
22163 # ### BEGIN LIBTOOL CONFIG
22165 # Which release of libtool.m4 was used?
22166 macro_version=$macro_version
22167 macro_revision=$macro_revision
22169 # Whether or not to build shared libraries.
22170 build_libtool_libs=$enable_shared
22172 # Whether or not to build static libraries.
22173 build_old_libs=$enable_static
22175 # What type of objects to build.
22178 # Whether or not to optimize for fast installation.
22179 fast_install=$enable_fast_install
22182 host_alias=$host_alias
22186 # The build system.
22187 build_alias=$build_alias
22191 # A sed program that does not truncate output.
22194 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22195 Xsed="\$SED -e 1s/^X//"
22197 # A grep program that handles long lines.
22203 # A literal string matcher.
22206 # A BSD- or MS-compatible name lister.
22209 # Whether we need soft or hard links.
22212 # What is the maximum length of a command?
22213 max_cmd_len=$max_cmd_len
22215 # Object file suffix (normally "o").
22218 # Executable file suffix (normally "").
22221 # whether the shell understands "unset".
22224 # turn spaces into newlines.
22227 # turn newlines into spaces.
22230 # How to create reloadable object files.
22231 reload_flag=$lt_reload_flag
22232 reload_cmds=$lt_reload_cmds
22234 # An object symbol dumper.
22235 OBJDUMP=$lt_OBJDUMP
22237 # Method to check whether dependent libraries are shared objects.
22238 deplibs_check_method=$lt_deplibs_check_method
22240 # Command to use when deplibs_check_method == "file_magic".
22241 file_magic_cmd=$lt_file_magic_cmd
22245 AR_FLAGS=$lt_AR_FLAGS
22247 # A symbol stripping program.
22250 # Commands used to install an old-style archive.
22252 old_postinstall_cmds=$lt_old_postinstall_cmds
22253 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22258 # LTCC compiler flags.
22259 LTCFLAGS=$lt_CFLAGS
22261 # Take the output of nm and produce a listing of raw symbols and C names.
22262 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22264 # Transform the output of nm in a proper C declaration.
22265 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22267 # Transform the output of nm in a C name address pair.
22268 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22270 # Transform the output of nm in a C name address pair when lib prefix is needed.
22271 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22273 # The name of the directory that contains temporary libtool files.
22276 # Shell to use when invoking shell scripts.
22279 # An echo program that does not interpret backslashes.
22282 # Used to examine libraries when file_magic_cmd begins with "file".
22283 MAGIC_CMD=$MAGIC_CMD
22285 # Must we lock files when doing compilation?
22286 need_locks=$lt_need_locks
22288 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22289 DSYMUTIL=$lt_DSYMUTIL
22291 # Tool to change global to local symbols on Mac OS X.
22294 # Tool to manipulate fat objects and archives on Mac OS X.
22297 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22300 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22301 OTOOL64=$lt_OTOOL64
22303 # Old archive suffix (normally "a").
22306 # Shared library suffix (normally ".so").
22307 shrext_cmds=$lt_shrext_cmds
22309 # The commands to extract the exported symbol list from a shared archive.
22310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22312 # Variables whose values should be saved in libtool wrapper scripts and
22313 # restored at link time.
22314 variables_saved_for_relink=$lt_variables_saved_for_relink
22316 # Do we need the "lib" prefix for modules?
22317 need_lib_prefix=$need_lib_prefix
22319 # Do we need a version for libraries?
22320 need_version=$need_version
22322 # Library versioning type.
22323 version_type=$version_type
22325 # Shared library runtime path variable.
22326 runpath_var=$runpath_var
22328 # Shared library path variable.
22329 shlibpath_var=$shlibpath_var
22331 # Is shlibpath searched before the hard-coded library search path?
22332 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22334 # Format of library name prefix.
22335 libname_spec=$lt_libname_spec
22337 # List of archive names. First name is the real one, the rest are links.
22338 # The last name is the one that the linker finds with -lNAME
22339 library_names_spec=$lt_library_names_spec
22341 # The coded name of the library, if different from the real name.
22342 soname_spec=$lt_soname_spec
22344 # Command to use after installation of a shared archive.
22345 postinstall_cmds=$lt_postinstall_cmds
22347 # Command to use after uninstallation of a shared archive.
22348 postuninstall_cmds=$lt_postuninstall_cmds
22350 # Commands used to finish a libtool library installation in a directory.
22351 finish_cmds=$lt_finish_cmds
22353 # As "finish_cmds", except a single script fragment to be evaled but
22355 finish_eval=$lt_finish_eval
22357 # Whether we should hardcode library paths into libraries.
22358 hardcode_into_libs=$hardcode_into_libs
22360 # Compile-time system search path for libraries.
22361 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22363 # Run-time system search path for libraries.
22364 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22366 # Whether dlopen is supported.
22367 dlopen_support=$enable_dlopen
22369 # Whether dlopen of programs is supported.
22370 dlopen_self=$enable_dlopen_self
22372 # Whether dlopen of statically linked programs is supported.
22373 dlopen_self_static=$enable_dlopen_self_static
22375 # Commands to strip libraries.
22376 old_striplib=$lt_old_striplib
22377 striplib=$lt_striplib
22380 # The linker used to build libraries.
22383 # Commands used to build an old-style archive.
22384 old_archive_cmds=$lt_old_archive_cmds
22386 # A language specific compiler.
22389 # Is the compiler the GNU compiler?
22392 # Compiler flag to turn off builtin functions.
22393 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22395 # How to pass a linker flag through the compiler.
22396 wl=$lt_lt_prog_compiler_wl
22398 # Additional compiler flags for building library objects.
22399 pic_flag=$lt_lt_prog_compiler_pic
22401 # Compiler flag to prevent dynamic linking.
22402 link_static_flag=$lt_lt_prog_compiler_static
22404 # Does compiler simultaneously support -c and -o options?
22405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22407 # Whether or not to add -lc for building shared libraries.
22408 build_libtool_need_lc=$archive_cmds_need_lc
22410 # Whether or not to disallow shared libs when runtime libs are static.
22411 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22413 # Compiler flag to allow reflexive dlopens.
22414 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22416 # Compiler flag to generate shared objects directly from archives.
22417 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22419 # Whether the compiler copes with passing no objects directly.
22420 compiler_needs_object=$lt_compiler_needs_object
22422 # Create an old-style archive from a shared archive.
22423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22425 # Create a temporary old-style archive to link instead of a shared archive.
22426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22428 # Commands used to build a shared archive.
22429 archive_cmds=$lt_archive_cmds
22430 archive_expsym_cmds=$lt_archive_expsym_cmds
22432 # Commands used to build a loadable module if different from building
22433 # a shared archive.
22434 module_cmds=$lt_module_cmds
22435 module_expsym_cmds=$lt_module_expsym_cmds
22437 # Whether we are building with GNU ld or not.
22438 with_gnu_ld=$lt_with_gnu_ld
22440 # Flag that allows shared libraries with undefined symbols to be built.
22441 allow_undefined_flag=$lt_allow_undefined_flag
22443 # Flag that enforces no undefined symbols.
22444 no_undefined_flag=$lt_no_undefined_flag
22446 # Flag to hardcode \$libdir into a binary during linking.
22447 # This must work even if \$libdir does not exist
22448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22450 # If ld is used when linking, flag to hardcode \$libdir into a binary
22451 # during linking. This must work even if \$libdir does not exist.
22452 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22454 # Whether we need a single "-rpath" flag with a separated argument.
22455 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22457 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22458 # DIR into the resulting binary.
22459 hardcode_direct=$hardcode_direct
22461 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22462 # DIR into the resulting binary and the resulting library dependency is
22463 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22464 # library is relocated.
22465 hardcode_direct_absolute=$hardcode_direct_absolute
22467 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22468 # into the resulting binary.
22469 hardcode_minus_L=$hardcode_minus_L
22471 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22472 # into the resulting binary.
22473 hardcode_shlibpath_var=$hardcode_shlibpath_var
22475 # Set to "yes" if building a shared library automatically hardcodes DIR
22476 # into the library and all subsequent libraries and executables linked
22478 hardcode_automatic=$hardcode_automatic
22480 # Set to yes if linker adds runtime paths of dependent libraries
22481 # to runtime path list.
22482 inherit_rpath=$inherit_rpath
22484 # Whether libtool must link a program against all its dependency libraries.
22485 link_all_deplibs=$link_all_deplibs
22487 # Fix the shell variable \$srcfile for the compiler.
22488 fix_srcfile_path=$lt_fix_srcfile_path
22490 # Set to "yes" if exported symbols are required.
22491 always_export_symbols=$always_export_symbols
22493 # The commands to list exported symbols.
22494 export_symbols_cmds=$lt_export_symbols_cmds
22496 # Symbols that should not be listed in the preloaded symbols.
22497 exclude_expsyms=$lt_exclude_expsyms
22499 # Symbols that must always be exported.
22500 include_expsyms=$lt_include_expsyms
22502 # Commands necessary for linking programs (against libraries) with templates.
22503 prelink_cmds=$lt_prelink_cmds
22505 # Specify filename containing input files.
22506 file_list_spec=$lt_file_list_spec
22508 # How to hardcode a shared library path into an executable.
22509 hardcode_action=$hardcode_action
22511 # ### END LIBTOOL CONFIG
22517 cat <<\_LT_EOF
>> "$cfgfile"
22518 # AIX sometimes has problems with the GCC collect2 program. For some
22519 # reason, if we set the COLLECT_NAMES environment variable, the problems
22520 # vanish in a puff of smoke.
22521 if test "X${COLLECT_NAMES+set}" != Xset
; then
22523 export COLLECT_NAMES
22530 ltmain
="$ac_aux_dir/ltmain.sh"
22533 # We use sed instead of cat because bash on DJGPP gets confused if
22534 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22535 # text mode, it properly converts lines to CR/LF. This bash problem
22536 # is reportedly fixed, but why not run on old versions too?
22537 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22538 ||
(rm -f "$cfgfile"; exit 1)
22542 cat << \_LT_EOF
>> "$cfgfile"
22544 # func_dirname file append nondir_replacement
22545 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22546 # otherwise set result to NONDIR_REPLACEMENT.
22550 */*) func_dirname_result
="${1%/*}${2}" ;;
22551 * ) func_dirname_result
="${3}" ;;
22555 # func_basename file
22558 func_basename_result
="${1##*/}"
22561 # func_dirname_and_basename file append nondir_replacement
22562 # perform func_basename and func_dirname in a single function
22564 # dirname: Compute the dirname of FILE. If nonempty,
22565 # add APPEND to the result, otherwise set result
22566 # to NONDIR_REPLACEMENT.
22567 # value returned in "$func_dirname_result"
22568 # basename: Compute filename of FILE.
22569 # value retuned in "$func_basename_result"
22570 # Implementation must be kept synchronized with func_dirname
22571 # and func_basename. For efficiency, we do not delegate to
22572 # those functions but instead duplicate the functionality here.
22573 func_dirname_and_basename
()
22576 */*) func_dirname_result
="${1%/*}${2}" ;;
22577 * ) func_dirname_result
="${3}" ;;
22579 func_basename_result
="${1##*/}"
22582 # func_stripname prefix suffix name
22583 # strip PREFIX and SUFFIX off of NAME.
22584 # PREFIX and SUFFIX must not contain globbing or regex special
22585 # characters, hashes, percent signs, but SUFFIX may contain a leading
22586 # dot (in which case that matches only a dot).
22589 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22590 # positional parameters, so assign one to ordinary parameter first.
22591 func_stripname_result
=${3}
22592 func_stripname_result
=${func_stripname_result#"${1}"}
22593 func_stripname_result
=${func_stripname_result%"${2}"}
22599 func_opt_split_opt
=${1%%=*}
22600 func_opt_split_arg
=${1#*=}
22607 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
22608 *) func_lo2o_result
=${1} ;;
22612 # func_xform libobj-or-source
22615 func_xform_result
=${1%.*}.lo
22618 # func_arith arithmetic-term...
22621 func_arith_result
=$
(( $
* ))
22625 # STRING may not start with a hyphen.
22628 func_len_result
=${#1}
22633 *) # Bourne compatible functions.
22634 cat << \_LT_EOF
>> "$cfgfile"
22636 # func_dirname file append nondir_replacement
22637 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22638 # otherwise set result to NONDIR_REPLACEMENT.
22641 # Extract subdirectory from the argument.
22642 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22643 if test "X$func_dirname_result" = "X${1}"; then
22644 func_dirname_result
="${3}"
22646 func_dirname_result
="$func_dirname_result${2}"
22650 # func_basename file
22653 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
22657 # func_stripname prefix suffix name
22658 # strip PREFIX and SUFFIX off of NAME.
22659 # PREFIX and SUFFIX must not contain globbing or regex special
22660 # characters, hashes, percent signs, but SUFFIX may contain a leading
22661 # dot (in which case that matches only a dot).
22662 # func_strip_suffix prefix name
22666 .
*) func_stripname_result
=`$ECHO "X${3}" \
22667 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22668 *) func_stripname_result
=`$ECHO "X${3}" \
22669 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22674 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
22675 my_sed_long_arg
='1s/^-[^=]*=//'
22680 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22681 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22687 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22690 # func_xform libobj-or-source
22693 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22696 # func_arith arithmetic-term...
22699 func_arith_result
=`expr "$@"`
22703 # STRING may not start with a hyphen.
22706 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22712 case $lt_shell_append in
22714 cat << \_LT_EOF
>> "$cfgfile"
22716 # func_append var value
22717 # Append VALUE to the end of shell variable VAR.
22725 cat << \_LT_EOF
>> "$cfgfile"
22727 # func_append var value
22728 # Append VALUE to the end of shell variable VAR.
22739 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22740 ||
(rm -f "$cfgfile"; exit 1)
22742 mv -f "$cfgfile" "$ofile" ||
22743 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22752 { (exit 0); exit 0; }
22754 chmod +x
$CONFIG_STATUS
22755 ac_clean_files
=$ac_clean_files_save
22757 test $ac_write_fail = 0 ||
22758 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22759 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22760 { (exit 1); exit 1; }; }
22763 # configure is writing to config.log, and then calls config.status.
22764 # config.status does its own redirection, appending to config.log.
22765 # Unfortunately, on DOS this fails, as config.log is still kept open
22766 # by configure, so config.status won't be able to write to it; its
22767 # output is simply discarded. So we exec the FD to /dev/null,
22768 # effectively closing config.log, so it can be properly (re)opened and
22769 # appended to by config.status. When coming back to configure, we
22770 # need to make the FD available again.
22771 if test "$no_create" != yes; then
22773 ac_config_status_args
=
22774 test "$silent" = yes &&
22775 ac_config_status_args
="$ac_config_status_args --quiet"
22777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22780 # would make configure fail if this is the last instruction.
22781 $ac_cs_success ||
{ (exit 1); exit 1; }
22783 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
22784 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22785 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}