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
813 NO_UNUSED_BUT_SET_VARIABLE
835 am__fastdepCCAS_FALSE
884 INSTALL_STRIP_PROGRAM
902 MAINTAINER_MODE_FALSE
953 program_transform_name
965 enable_option_checking
966 enable_maintainer_mode
968 enable_dependency_tracking
986 ac_precious_vars
='build_alias
999 # Initialize some variables set by options.
1001 ac_init_version
=false
1002 ac_unrecognized_opts
=
1003 ac_unrecognized_sep
=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file
=/dev
/null
1013 program_transform_name
=s
,x
,x
,
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir
='${exec_prefix}/bin'
1028 sbindir
='${exec_prefix}/sbin'
1029 libexecdir
='${exec_prefix}/libexec'
1030 datarootdir
='${prefix}/share'
1031 datadir
='${datarootdir}'
1032 sysconfdir
='${prefix}/etc'
1033 sharedstatedir
='${prefix}/com'
1034 localstatedir
='${prefix}/var'
1035 includedir
='${prefix}/include'
1036 oldincludedir
='/usr/include'
1037 docdir
='${datarootdir}/doc/${PACKAGE}'
1038 infodir
='${datarootdir}/info'
1043 libdir
='${exec_prefix}/lib'
1044 localedir
='${datarootdir}/locale'
1045 mandir
='${datarootdir}/man'
1051 # If the previous option needs an argument, assign it.
1052 if test -n "$ac_prev"; then
1053 eval $ac_prev=\
$ac_option
1059 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1063 # Accept the important Cygnus configure options, so we can diagnose typos.
1065 case $ac_dashdash$ac_option in
1069 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1071 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1072 bindir
=$ac_optarg ;;
1074 -build |
--build |
--buil |
--bui |
--bu)
1075 ac_prev
=build_alias
;;
1076 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1077 build_alias
=$ac_optarg ;;
1079 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1080 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1081 ac_prev
=cache_file
;;
1082 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1083 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1084 cache_file
=$ac_optarg ;;
1086 --config-cache |
-C)
1087 cache_file
=config.cache
;;
1089 -datadir |
--datadir |
--datadi |
--datad)
1091 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1092 datadir
=$ac_optarg ;;
1094 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1095 |
--dataroo |
--dataro |
--datar)
1096 ac_prev
=datarootdir
;;
1097 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1098 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1099 datarootdir
=$ac_optarg ;;
1101 -disable-* |
--disable-*)
1102 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1105 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_useropt_orig
=$ac_useropt
1108 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_
$ac_useropt"
1113 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114 ac_unrecognized_sep
=', ';;
1116 eval enable_
$ac_useropt=no
;;
1118 -docdir |
--docdir |
--docdi |
--doc |
--do)
1120 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1121 docdir
=$ac_optarg ;;
1123 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1125 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1126 dvidir
=$ac_optarg ;;
1128 -enable-* |
--enable-*)
1129 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1132 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1133 { (exit 1); exit 1; }; }
1134 ac_useropt_orig
=$ac_useropt
1135 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1138 "enable_
$ac_useropt"
1140 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1141 ac_unrecognized_sep
=', ';;
1143 eval enable_
$ac_useropt=\
$ac_optarg ;;
1145 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1146 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1147 |
--exec |
--exe |
--ex)
1148 ac_prev
=exec_prefix
;;
1149 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1150 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1151 |
--exec=* |
--exe=* |
--ex=*)
1152 exec_prefix
=$ac_optarg ;;
1154 -gas |
--gas |
--ga |
--g)
1155 # Obsolete; use --with-gas.
1158 -help |
--help |
--hel |
--he |
-h)
1159 ac_init_help
=long
;;
1160 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1161 ac_init_help
=recursive
;;
1162 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1163 ac_init_help
=short
;;
1165 -host |
--host |
--hos |
--ho)
1166 ac_prev
=host_alias
;;
1167 -host=* |
--host=* |
--hos=* |
--ho=*)
1168 host_alias
=$ac_optarg ;;
1170 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1172 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1174 htmldir
=$ac_optarg ;;
1176 -includedir |
--includedir |
--includedi |
--included |
--include \
1177 |
--includ |
--inclu |
--incl |
--inc)
1178 ac_prev
=includedir
;;
1179 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1180 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1181 includedir
=$ac_optarg ;;
1183 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1185 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1186 infodir
=$ac_optarg ;;
1188 -libdir |
--libdir |
--libdi |
--libd)
1190 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1191 libdir
=$ac_optarg ;;
1193 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1194 |
--libexe |
--libex |
--libe)
1195 ac_prev
=libexecdir
;;
1196 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1197 |
--libexe=* |
--libex=* |
--libe=*)
1198 libexecdir
=$ac_optarg ;;
1200 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1201 ac_prev
=localedir
;;
1202 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1203 localedir
=$ac_optarg ;;
1205 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1206 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1207 ac_prev
=localstatedir
;;
1208 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1209 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1210 localstatedir
=$ac_optarg ;;
1212 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1214 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1215 mandir
=$ac_optarg ;;
1217 -nfp |
--nfp |
--nf)
1218 # Obsolete; use --without-fp.
1221 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1222 |
--no-cr |
--no-c |
-n)
1225 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1226 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1229 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1230 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1231 |
--oldin |
--oldi |
--old |
--ol |
--o)
1232 ac_prev
=oldincludedir
;;
1233 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1234 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1235 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1236 oldincludedir
=$ac_optarg ;;
1238 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1240 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1241 prefix
=$ac_optarg ;;
1243 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1244 |
--program-pre |
--program-pr |
--program-p)
1245 ac_prev
=program_prefix
;;
1246 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1247 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1248 program_prefix
=$ac_optarg ;;
1250 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1251 |
--program-suf |
--program-su |
--program-s)
1252 ac_prev
=program_suffix
;;
1253 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1254 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1255 program_suffix
=$ac_optarg ;;
1257 -program-transform-name |
--program-transform-name \
1258 |
--program-transform-nam |
--program-transform-na \
1259 |
--program-transform-n |
--program-transform- \
1260 |
--program-transform |
--program-transfor \
1261 |
--program-transfo |
--program-transf \
1262 |
--program-trans |
--program-tran \
1263 |
--progr-tra |
--program-tr |
--program-t)
1264 ac_prev
=program_transform_name
;;
1265 -program-transform-name=* |
--program-transform-name=* \
1266 |
--program-transform-nam=* |
--program-transform-na=* \
1267 |
--program-transform-n=* |
--program-transform-=* \
1268 |
--program-transform=* |
--program-transfor=* \
1269 |
--program-transfo=* |
--program-transf=* \
1270 |
--program-trans=* |
--program-tran=* \
1271 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1272 program_transform_name
=$ac_optarg ;;
1274 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1276 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1277 pdfdir
=$ac_optarg ;;
1279 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1281 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1284 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1285 |
-silent |
--silent |
--silen |
--sile |
--sil)
1288 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1290 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1292 sbindir
=$ac_optarg ;;
1294 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1295 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1296 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1298 ac_prev
=sharedstatedir
;;
1299 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1300 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1301 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1303 sharedstatedir
=$ac_optarg ;;
1305 -site |
--site |
--sit)
1307 -site=* |
--site=* |
--sit=*)
1310 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1312 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1313 srcdir
=$ac_optarg ;;
1315 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1316 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1317 ac_prev
=sysconfdir
;;
1318 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1319 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1320 sysconfdir
=$ac_optarg ;;
1322 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1323 ac_prev
=target_alias
;;
1324 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1325 target_alias
=$ac_optarg ;;
1327 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1330 -version |
--version |
--versio |
--versi |
--vers |
-V)
1331 ac_init_version
=: ;;
1334 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1337 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338 { (exit 1); exit 1; }; }
1339 ac_useropt_orig
=$ac_useropt
1340 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1345 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep
=', ';;
1348 eval with_
$ac_useropt=\
$ac_optarg ;;
1350 -without-* |
--without-*)
1351 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1354 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1355 { (exit 1); exit 1; }; }
1356 ac_useropt_orig
=$ac_useropt
1357 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1362 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep
=', ';;
1365 eval with_
$ac_useropt=no
;;
1368 # Obsolete; use --with-x.
1371 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1372 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1373 ac_prev
=x_includes
;;
1374 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1375 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1376 x_includes
=$ac_optarg ;;
1378 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1379 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1380 ac_prev
=x_libraries
;;
1381 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1382 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1383 x_libraries
=$ac_optarg ;;
1385 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1386 Try \`$0 --help' for more information." >&2
1387 { (exit 1); exit 1; }; }
1391 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1394 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1395 { (exit 1); exit 1; }; }
1396 eval $ac_envvar=\
$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1410 if test -n "$ac_prev"; then
1411 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1412 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1413 { (exit 1); exit 1; }; }
1416 if test -n "$ac_unrecognized_opts"; then
1417 case $enable_option_checking in
1419 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1420 { (exit 1); exit 1; }; } ;;
1421 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1425 # Check all directory arguments for consistency.
1426 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427 datadir sysconfdir sharedstatedir localstatedir includedir \
1428 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429 libdir localedir mandir
1431 eval ac_val
=\$
$ac_var
1432 # Remove trailing slashes.
1435 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436 eval $ac_var=\
$ac_val;;
1438 # Be sure to have absolute directory names.
1440 [\\/$
]* | ?
:[\\/]* ) continue;;
1441 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1443 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1444 { (exit 1); exit 1; }; }
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1452 target
=$target_alias
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x
; then
1456 if test "x$build_alias" = x
; then
1457 cross_compiling
=maybe
1458 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1459 If a cross compiler is detected then cross compile mode will be used." >&2
1460 elif test "x$build_alias" != "x$host_alias"; then
1466 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1468 test "$silent" = yes && exec 6>/dev
/null
1471 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di
=`ls -di .` &&
1473 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1474 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1475 { (exit 1); exit 1; }; }
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1478 { (exit 1); exit 1; }; }
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483 ac_srcdir_defaulted
=yes
1484 # Try the directory containing this script, then the parent directory.
1485 ac_confdir
=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487 X"$as_myself" : 'X\(//\)[^/]' \| \
1488 X"$as_myself" : 'X\(//\)$' \| \
1489 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1513 ac_srcdir_defaulted
=no
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1517 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1518 { (exit 1); exit 1; }; }
1520 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1522 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1523 { (exit 1); exit 1; }; }
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1533 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1535 for ac_var
in $ac_precious_vars; do
1536 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1537 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1538 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1539 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1543 # Report the --help message.
1545 if test "$ac_init_help" = "long"; then
1546 # Omit some internal or obsolete options to make the list less imposing.
1547 # This message is too long to be a string in the A/UX 3.1 sh.
1549 \`configure' configures this package to adapt to many kinds of systems.
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE. See below for descriptions of some of the useful variables.
1556 Defaults for the options are specified in brackets.
1559 -h, --help display this help and exit
1560 --help=short display options specific to this package
1561 --help=recursive display the short help of all the included packages
1562 -V, --version display version information and exit
1563 -q, --quiet, --silent do not print \`checking...' messages
1564 --cache-file=FILE cache test results in FILE [disabled]
1565 -C, --config-cache alias for \`--cache-file=config.cache'
1566 -n, --no-create do not create output files
1567 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1569 Installation directories:
1570 --prefix=PREFIX install architecture-independent files in PREFIX
1571 [$ac_default_prefix]
1572 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1580 For better control, use the options below.
1582 Fine tuning of the installation directories:
1583 --bindir=DIR user executables [EPREFIX/bin]
1584 --sbindir=DIR system admin executables [EPREFIX/sbin]
1585 --libexecdir=DIR program executables [EPREFIX/libexec]
1586 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1587 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1588 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1589 --libdir=DIR object code libraries [EPREFIX/lib]
1590 --includedir=DIR C header files [PREFIX/include]
1591 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1592 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1593 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1594 --infodir=DIR info documentation [DATAROOTDIR/info]
1595 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1596 --mandir=DIR man documentation [DATAROOTDIR/man]
1597 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1598 --htmldir=DIR html documentation [DOCDIR]
1599 --dvidir=DIR dvi documentation [DOCDIR]
1600 --pdfdir=DIR pdf documentation [DOCDIR]
1601 --psdir=DIR ps documentation [DOCDIR]
1607 --program-prefix=PREFIX prepend PREFIX to installed program names
1608 --program-suffix=SUFFIX append SUFFIX to installed program names
1609 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1612 --build=BUILD configure
for building on BUILD
[guessed
]
1613 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1614 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1618 if test -n "$ac_init_help"; then
1623 --disable-option-checking ignore unrecognized
--enable/--with options
1624 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1625 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1626 --enable-maintainer-mode enable make rules and dependencies not useful
1627 (and sometimes confusing
) to the casual installer
1628 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1629 --disable-silent-rules verbose build output (undo: `make V
=0')
1630 --disable-dependency-tracking speeds up one-time build
1631 --enable-dependency-tracking do not reject slow dependency extractors
1632 --enable-shared[=PKGS] build shared libraries [default=yes]
1633 --enable-static[=PKGS] build static libraries [default=yes]
1634 --enable-fast-install[=PKGS]
1635 optimize for fast installation [default=yes]
1636 --disable-libtool-lock avoid locking (might break parallel builds)
1637 --enable-debug Enable generic debug support [default=no]
1640 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1641 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1642 --with-pic try to use only PIC/non-PIC objects [default=use
1644 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1645 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1646 --with-linux=PATH Path to kernel source
1647 --with-linux-obj=PATH Path to kernel build objects
1648 --with-spl=PATH Path to spl source
1649 --with-spl-obj=PATH Path to spl build objects
1650 --with-udevdir=DIR install udev helpers [EPREFIX/lib/udev]
1651 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1652 --with-blkid support blkid caching [default=check]
1653 --with-selinux support selinux [default=check]
1655 Some influential environment variables:
1656 CC C compiler command
1657 CFLAGS C compiler flags
1658 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1659 nonstandard directory <lib dir>
1660 LIBS libraries to pass to the linker, e.g. -l<library>
1661 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1662 you have headers in a nonstandard directory <include dir>
1664 CCAS assembler compiler command (defaults to CC)
1665 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1667 Use these variables to override the choices made by `configure' or to
help
1668 it to
find libraries and programs with nonstandard names
/locations.
1674 if test "$ac_init_help" = "recursive"; then
1675 # If there are subdirs, report their specific --help.
1676 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1677 test -d "$ac_dir" ||
1678 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1683 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1685 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1686 # A ".." for each directory in $ac_dir_suffix.
1687 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1688 case $ac_top_builddir_sub in
1689 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1690 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1693 ac_abs_top_builddir
=$ac_pwd
1694 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1695 # for backward compatibility:
1696 ac_top_builddir
=$ac_top_build_prefix
1699 .
) # We are building in place.
1701 ac_top_srcdir
=$ac_top_builddir_sub
1702 ac_abs_top_srcdir
=$ac_pwd ;;
1703 [\\/]* | ?
:[\\/]* ) # Absolute name.
1704 ac_srcdir
=$srcdir$ac_dir_suffix;
1705 ac_top_srcdir
=$srcdir
1706 ac_abs_top_srcdir
=$srcdir ;;
1708 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1709 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1710 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1712 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1714 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1715 # Check for guested configure.
1716 if test -f "$ac_srcdir/configure.gnu"; then
1718 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1719 elif test -f "$ac_srcdir/configure"; then
1721 $SHELL "$ac_srcdir/configure" --help=recursive
1723 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1725 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1729 test -n "$ac_init_help" && exit $ac_status
1730 if $ac_init_version; then
1733 generated by GNU Autoconf
2.63
1735 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1736 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1737 This configure
script is free software
; the Free Software Foundation
1738 gives unlimited permission to copy
, distribute and modify it.
1742 cat >config.log
<<_ACEOF
1743 This file contains any messages produced by compilers while
1744 running configure, to aid debugging if configure makes a mistake.
1746 It was created by $as_me, which was
1747 generated by GNU Autoconf 2.63. Invocation command line was
1759 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1760 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1761 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1762 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1763 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1765 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1766 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1768 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1769 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1770 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1771 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1772 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1773 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1774 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1782 test -z "$as_dir" && as_dir
=.
1783 $as_echo "PATH: $as_dir"
1799 # Keep a trace of the command line.
1800 # Strip out --no-create and --no-recursion so they do not pile up.
1801 # Strip out --silent because we don't want to record it for future runs.
1802 # Also quote any args containing shell meta-characters.
1803 # Make two passes to allow for proper duplicate-argument suppression.
1807 ac_must_keep_next
=false
1813 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1814 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1815 |
-silent |
--silent |
--silen |
--sile |
--sil)
1818 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1821 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1823 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1824 if test $ac_must_keep_next = true
; then
1825 ac_must_keep_next
=false
# Got value, back to normal.
1828 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1829 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1830 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1831 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1832 case "$ac_configure_args0 " in
1833 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1836 -* ) ac_must_keep_next
=true
;;
1839 ac_configure_args
="$ac_configure_args '$ac_arg'"
1844 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1845 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1847 # When interrupted or exit'd, cleanup temporary files, and complete
1848 # config.log. We remove comments because anyway the quotes in there
1849 # would cause problems or look ugly.
1850 # WARNING: Use '\'' to represent an apostrophe within the trap.
1851 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1852 trap 'exit_status=$?
1853 # Save into config.log some information that might help in debugging.
1858 ## ---------------- ##
1859 ## Cache variables. ##
1860 ## ---------------- ##
1863 # The following way of writing the cache mishandles newlines in values,
1865 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1866 eval ac_val=\$$ac_var
1870 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1874 _ | IFS | as_nl) ;; #(
1875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1876 *) $as_unset $ac_var ;;
1881 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1882 *${as_nl}ac_space=\ *)
1884 "s/'\''/'\''\\\\'\'''\''/g;
1885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1896 ## ----------------- ##
1897 ## Output variables. ##
1898 ## ----------------- ##
1901 for ac_var in $ac_subst_vars
1903 eval ac_val=\$$ac_var
1905 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907 $as_echo "$ac_var='\''$ac_val'\''"
1911 if test -n "$ac_subst_files"; then
1913 ## ------------------- ##
1914 ## File substitutions. ##
1915 ## ------------------- ##
1918 for ac_var
in $ac_subst_files
1920 eval ac_val
=\$
$ac_var
1922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1924 $as_echo "$ac_var='\''$ac_val'\''"
1929 if test -s confdefs.h; then
1939 test "$ac_signal" != 0 &&
1940 $as_echo "$as_me: caught signal $ac_signal"
1941 $as_echo "$as_me: exit $exit_status"
1943 rm -f core *.core core.conftest.* &&
1944 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1947 for ac_signal
in 1 2 13 15; do
1948 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1952 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1953 rm -f -r conftest
* confdefs.h
1955 # Predefined preprocessor variables.
1957 cat >>confdefs.h
<<_ACEOF
1958 #define PACKAGE_NAME "$PACKAGE_NAME"
1962 cat >>confdefs.h
<<_ACEOF
1963 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1967 cat >>confdefs.h
<<_ACEOF
1968 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1972 cat >>confdefs.h
<<_ACEOF
1973 #define PACKAGE_STRING "$PACKAGE_STRING"
1977 cat >>confdefs.h
<<_ACEOF
1978 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1982 # Let the site file select an alternate cache file if it wants to.
1983 # Prefer an explicitly selected file to automatically selected ones.
1986 if test -n "$CONFIG_SITE"; then
1987 ac_site_file1
=$CONFIG_SITE
1988 elif test "x$prefix" != xNONE
; then
1989 ac_site_file1
=$prefix/share
/config.site
1990 ac_site_file2
=$prefix/etc
/config.site
1992 ac_site_file1
=$ac_default_prefix/share
/config.site
1993 ac_site_file2
=$ac_default_prefix/etc
/config.site
1995 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1997 test "x$ac_site_file" = xNONE
&& continue
1998 if test -r "$ac_site_file"; then
1999 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2000 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2001 sed 's/^/| /' "$ac_site_file" >&5
2006 if test -r "$cache_file"; then
2007 # Some versions of bash will fail to source /dev/null (special
2008 # files actually), so we avoid doing that.
2009 if test -f "$cache_file"; then
2010 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2011 $as_echo "$as_me: loading cache $cache_file" >&6;}
2013 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2014 *) .
"./$cache_file";;
2018 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2019 $as_echo "$as_me: creating cache $cache_file" >&6;}
2023 # Check that the precious variables saved in the cache have kept the same
2025 ac_cache_corrupted
=false
2026 for ac_var
in $ac_precious_vars; do
2027 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2028 eval ac_new_set
=\
$ac_env_${ac_var}_set
2029 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2030 eval ac_new_val
=\
$ac_env_${ac_var}_value
2031 case $ac_old_set,$ac_new_set in
2033 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2034 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2035 ac_cache_corrupted
=: ;;
2037 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2038 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2039 ac_cache_corrupted
=: ;;
2042 if test "x$ac_old_val" != "x$ac_new_val"; then
2043 # differences in whitespace do not lead to failure.
2044 ac_old_val_w
=`echo x $ac_old_val`
2045 ac_new_val_w
=`echo x $ac_new_val`
2046 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2047 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2048 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2049 ac_cache_corrupted
=:
2051 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2052 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2053 eval $ac_var=\
$ac_old_val
2055 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2056 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2057 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2058 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2061 # Pass precious variables to config.status.
2062 if test "$ac_new_set" = set; then
2064 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065 *) ac_arg
=$ac_var=$ac_new_val ;;
2067 case " $ac_configure_args " in
2068 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2069 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2073 if $ac_cache_corrupted; then
2074 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2077 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2078 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2079 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2080 { (exit 1); exit 1; }; }
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
2107 ac_cpp
='$CPP $CPPFLAGS'
2108 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2117 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2118 $as_echo_n "checking metadata... " >&6; }
2121 _zfs_ac_meta_got_file
=no
2122 if test -f "$META"; then
2123 _zfs_ac_meta_got_file
=yes
2125 ZFS_META_NAME
=`perl -n\
2126 -e "BEGIN { \\$key=shift @ARGV; }"\
2127 -e "next unless s/^\s*\\$key[:=]//i;"\
2128 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2131 -e "s/^(['\"])(.*)\1/\\$2/;"\
2133 -e "END { print \\$val if defined \\$val; }"\
2134 '(?:NAME|PROJECT|PACKAGE)' $META`;
2135 if test -n "$ZFS_META_NAME"; then
2137 cat >>confdefs.h
<<_ACEOF
2138 #define ZFS_META_NAME "$ZFS_META_NAME"
2144 ZFS_META_VERSION
=`perl -n\
2145 -e "BEGIN { \\$key=shift @ARGV; }"\
2146 -e "next unless s/^\s*\\$key[:=]//i;"\
2147 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2150 -e "s/^(['\"])(.*)\1/\\$2/;"\
2152 -e "END { print \\$val if defined \\$val; }"\
2154 if test -n "$ZFS_META_VERSION"; then
2156 cat >>confdefs.h
<<_ACEOF
2157 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2163 ZFS_META_RELEASE
=`perl -n\
2164 -e "BEGIN { \\$key=shift @ARGV; }"\
2165 -e "next unless s/^\s*\\$key[:=]//i;"\
2166 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2169 -e "s/^(['\"])(.*)\1/\\$2/;"\
2171 -e "END { print \\$val if defined \\$val; }"\
2173 if test -n "$ZFS_META_RELEASE"; then
2175 cat >>confdefs.h
<<_ACEOF
2176 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2182 ZFS_META_LICENSE
=`perl -n\
2183 -e "BEGIN { \\$key=shift @ARGV; }"\
2184 -e "next unless s/^\s*\\$key[:=]//i;"\
2185 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2188 -e "s/^(['\"])(.*)\1/\\$2/;"\
2190 -e "END { print \\$val if defined \\$val; }"\
2192 if test -n "$ZFS_META_LICENSE"; then
2194 cat >>confdefs.h
<<_ACEOF
2195 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2201 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2202 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2203 test -n "$ZFS_META_RELEASE" &&
2204 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2206 cat >>confdefs.h
<<_ACEOF
2207 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2213 ZFS_META_DATA
=`perl -n\
2214 -e "BEGIN { \\$key=shift @ARGV; }"\
2215 -e "next unless s/^\s*\\$key[:=]//i;"\
2216 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2219 -e "s/^(['\"])(.*)\1/\\$2/;"\
2221 -e "END { print \\$val if defined \\$val; }"\
2223 if test -n "$ZFS_META_DATA"; then
2225 cat >>confdefs.h
<<_ACEOF
2226 #define ZFS_META_DATA "$ZFS_META_DATA"
2232 ZFS_META_AUTHOR
=`perl -n\
2233 -e "BEGIN { \\$key=shift @ARGV; }"\
2234 -e "next unless s/^\s*\\$key[:=]//i;"\
2235 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2238 -e "s/^(['\"])(.*)\1/\\$2/;"\
2240 -e "END { print \\$val if defined \\$val; }"\
2242 if test -n "$ZFS_META_AUTHOR"; then
2244 cat >>confdefs.h
<<_ACEOF
2245 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2252 ZFS_META_LT_CURRENT
=`perl -n\
2253 -e "BEGIN { \\$key=shift @ARGV; }"\
2254 -e "next unless s/^\s*\\$key[:=]//i;"\
2255 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2258 -e "s/^(['\"])(.*)\1/\\$2/;"\
2260 -e "END { print \\$val if defined \\$val; }"\
2261 'LT_CURRENT' $META`;
2262 ZFS_META_LT_REVISION
=`perl -n\
2263 -e "BEGIN { \\$key=shift @ARGV; }"\
2264 -e "next unless s/^\s*\\$key[:=]//i;"\
2265 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2268 -e "s/^(['\"])(.*)\1/\\$2/;"\
2270 -e "END { print \\$val if defined \\$val; }"\
2271 'LT_REVISION' $META`;
2272 ZFS_META_LT_AGE
=`perl -n\
2273 -e "BEGIN { \\$key=shift @ARGV; }"\
2274 -e "next unless s/^\s*\\$key[:=]//i;"\
2275 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2278 -e "s/^(['\"])(.*)\1/\\$2/;"\
2280 -e "END { print \\$val if defined \\$val; }"\
2282 if test -n "$ZFS_META_LT_CURRENT" \
2283 -o -n "$ZFS_META_LT_REVISION" \
2284 -o -n "$ZFS_META_LT_AGE"; then
2285 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2286 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2287 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2289 cat >>confdefs.h
<<_ACEOF
2290 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2294 cat >>confdefs.h
<<_ACEOF
2295 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2299 cat >>confdefs.h
<<_ACEOF
2300 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2309 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2310 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2314 for ac_dir
in config
"$srcdir"/config
; do
2315 if test -f "$ac_dir/install-sh"; then
2317 ac_install_sh
="$ac_aux_dir/install-sh -c"
2319 elif test -f "$ac_dir/install.sh"; then
2321 ac_install_sh
="$ac_aux_dir/install.sh -c"
2323 elif test -f "$ac_dir/shtool"; then
2325 ac_install_sh
="$ac_aux_dir/shtool install -c"
2329 if test -z "$ac_aux_dir"; then
2330 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2331 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2332 { (exit 1); exit 1; }; }
2335 # These three variables are undocumented and unsupported,
2336 # and are intended to be withdrawn in a future Autoconf release.
2337 # They can cause serious problems if a builder's source tree is in a directory
2338 # whose full name contains unusual characters.
2339 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2340 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2341 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2344 # Make sure we can run config.sub.
2345 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2346 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2347 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2348 { (exit 1); exit 1; }; }
2350 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2351 $as_echo_n "checking build system type... " >&6; }
2352 if test "${ac_cv_build+set}" = set; then
2353 $as_echo_n "(cached) " >&6
2355 ac_build_alias
=$build_alias
2356 test "x$ac_build_alias" = x
&&
2357 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2358 test "x$ac_build_alias" = x
&&
2359 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2360 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2361 { (exit 1); exit 1; }; }
2362 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2363 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2364 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2365 { (exit 1); exit 1; }; }
2368 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2369 $as_echo "$ac_cv_build" >&6; }
2370 case $ac_cv_build in
2372 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2373 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2374 { (exit 1); exit 1; }; };;
2377 ac_save_IFS
=$IFS; IFS
='-'
2383 # Remember, the first character of IFS is used to create $*,
2384 # except with old shells:
2387 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2390 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2391 $as_echo_n "checking host system type... " >&6; }
2392 if test "${ac_cv_host+set}" = set; then
2393 $as_echo_n "(cached) " >&6
2395 if test "x$host_alias" = x
; then
2396 ac_cv_host
=$ac_cv_build
2398 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2399 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2400 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2401 { (exit 1); exit 1; }; }
2405 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2406 $as_echo "$ac_cv_host" >&6; }
2409 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2410 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2411 { (exit 1); exit 1; }; };;
2414 ac_save_IFS
=$IFS; IFS
='-'
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2424 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2427 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2428 $as_echo_n "checking target system type... " >&6; }
2429 if test "${ac_cv_target+set}" = set; then
2430 $as_echo_n "(cached) " >&6
2432 if test "x$target_alias" = x
; then
2433 ac_cv_target
=$ac_cv_host
2435 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2436 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2437 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2438 { (exit 1); exit 1; }; }
2442 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2443 $as_echo "$ac_cv_target" >&6; }
2444 case $ac_cv_target in
2446 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2447 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2448 { (exit 1); exit 1; }; };;
2450 target
=$ac_cv_target
2451 ac_save_IFS
=$IFS; IFS
='-'
2457 # Remember, the first character of IFS is used to create $*,
2458 # except with old shells:
2461 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2464 # The aliases save the names the user supplied, while $host etc.
2465 # will get canonicalized.
2466 test -n "$target_alias" &&
2467 test "$program_prefix$program_suffix$program_transform_name" = \
2469 program_prefix
=${target_alias}-
2471 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2472 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2473 # Check whether --enable-maintainer-mode was given.
2474 if test "${enable_maintainer_mode+set}" = set; then
2475 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2477 USE_MAINTAINER_MODE
=no
2480 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2481 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2482 if test $USE_MAINTAINER_MODE = yes; then
2483 MAINTAINER_MODE_TRUE
=
2484 MAINTAINER_MODE_FALSE
='#'
2486 MAINTAINER_MODE_TRUE
='#'
2487 MAINTAINER_MODE_FALSE
=
2490 MAINT
=$MAINTAINER_MODE_TRUE
2493 # Check whether --enable-silent-rules was given.
2494 if test "${enable_silent_rules+set}" = set; then
2495 enableval
=$enable_silent_rules;
2498 case $enable_silent_rules in
2499 yes) AM_DEFAULT_VERBOSITY
=0;;
2500 no
) AM_DEFAULT_VERBOSITY
=1;;
2501 *) AM_DEFAULT_VERBOSITY
=1;;
2505 am__api_version='1.11'
2507 # Find a good install program. We prefer a C program (faster),
2508 # so one script is as good as another. But avoid the broken or
2509 # incompatible versions:
2510 # SysV /etc/install, /usr/sbin/install
2511 # SunOS /usr/etc/install
2512 # IRIX /sbin/install
2514 # AmigaOS /C/install, which installs bootblocks on floppy discs
2515 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2516 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2517 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2518 # OS/2's system install, which has a completely different semantic
2519 # ./install, which can be erroneously created by make from ./install.sh.
2520 # Reject install programs that cannot install multiple files.
2521 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2522 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2523 if test -z "$INSTALL"; then
2524 if test "${ac_cv_path_install+set}" = set; then
2525 $as_echo_n "(cached) " >&6
2527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2531 test -z "$as_dir" && as_dir
=.
2532 # Account for people who put trailing slashes in PATH elements.
2534 .
/ | .
// |
/cC
/* | \
2535 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2536 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2539 # OSF1 and SCO ODT 3.0 have their own names for install.
2540 # Don't use installbsd from OSF since it installs stuff as root
2542 for ac_prog
in ginstall scoinst
install; do
2543 for ac_exec_ext
in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2545 if test $ac_prog = install &&
2546 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2547 # AIX install. It has an incompatible calling convention.
2549 elif test $ac_prog = install &&
2550 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2551 # program-specific install script used by HP pwplus--don't use.
2554 rm -rf conftest.one conftest.two conftest.dir
2555 echo one
> conftest.one
2556 echo two
> conftest.two
2558 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2559 test -s conftest.one
&& test -s conftest.two
&&
2560 test -s conftest.dir
/conftest.one
&&
2561 test -s conftest.dir
/conftest.two
2563 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2576 rm -rf conftest.one conftest.two conftest.dir
2579 if test "${ac_cv_path_install+set}" = set; then
2580 INSTALL
=$ac_cv_path_install
2582 # As a last resort, use the slow shell script. Don't cache a
2583 # value for INSTALL within a source directory, because that will
2584 # break other packages using the cache if that directory is
2585 # removed, or if the value is a relative name.
2586 INSTALL
=$ac_install_sh
2589 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2590 $as_echo "$INSTALL" >&6; }
2592 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2593 # It thinks the first close brace ends the variable substitution.
2594 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2596 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2598 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2600 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2601 $as_echo_n "checking whether build environment is sane... " >&6; }
2604 echo timestamp
> conftest.
file
2605 # Reject unsafe characters in $srcdir or the absolute working directory
2606 # name. Accept space and tab only in the latter.
2610 *[\\\"\
#\$\&\'\`$am_lf]*)
2611 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2612 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2613 { (exit 1); exit 1; }; };;
2616 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2617 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2618 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2619 { (exit 1); exit 1; }; };;
2622 # Do `set' in a subshell so we don't clobber the current shell's
2623 # arguments. Must try -L first in case configure is actually a
2624 # symlink; some systems play weird games with the mod time of symlinks
2625 # (eg FreeBSD returns the mod time of the symlink's containing
2628 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2629 if test "$*" = "X"; then
2631 set X
`ls -t "$srcdir/configure" conftest.file`
2634 if test "$*" != "X $srcdir/configure conftest.file" \
2635 && test "$*" != "X conftest.file $srcdir/configure"; then
2637 # If neither matched, then we have a broken ls. This can happen
2638 # if, for instance, CONFIG_SHELL is bash and it inherits a
2639 # broken ls alias from the environment. This has actually
2640 # happened. Such a system could not be considered "sane".
2641 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2642 alias in your environment" >&5
2643 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2644 alias in your environment" >&2;}
2645 { (exit 1); exit 1; }; }
2648 test "$2" = conftest.
file
2654 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2655 Check your system clock" >&5
2656 $as_echo "$as_me: error: newly created file is older than distributed files!
2657 Check your system clock" >&2;}
2658 { (exit 1); exit 1; }; }
2660 { $as_echo "$as_me:$LINENO: result: yes" >&5
2661 $as_echo "yes" >&6; }
2662 test "$program_prefix" != NONE
&&
2663 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2664 # Use a double $ so make ignores it.
2665 test "$program_suffix" != NONE
&&
2666 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2667 # Double any \ or $.
2668 # By default was `s,x,x', remove it if useless.
2669 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2670 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2672 # expand $ac_aux_dir to an absolute path
2673 am_aux_dir
=`cd $ac_aux_dir && pwd`
2675 if test x
"${MISSING+set}" != xset
; then
2678 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2680 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2683 # Use eval to expand $SHELL
2684 if eval "$MISSING --run true"; then
2685 am_missing_run
="$MISSING --run "
2688 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2689 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2692 if test x
"${install_sh}" != xset
; then
2695 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2697 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2701 # Installed binaries are usually stripped using `strip' when the user
2702 # run `make install-strip'. However `strip' might not be the right
2703 # tool to use in cross-compilation environments, therefore Automake
2704 # will honor the `STRIP' environment variable to overrule this program.
2705 if test "$cross_compiling" != no
; then
2706 if test -n "$ac_tool_prefix"; then
2707 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2708 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_STRIP+set}" = set; then
2712 $as_echo_n "(cached) " >&6
2714 if test -n "$STRIP"; then
2715 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir
=.
2722 for ac_exec_ext
in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 STRIP
=$ac_cv_prog_STRIP
2735 if test -n "$STRIP"; then
2736 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2737 $as_echo "$STRIP" >&6; }
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740 $as_echo "no" >&6; }
2745 if test -z "$ac_cv_prog_STRIP"; then
2747 # Extract the first word of "strip", so it can be a program name with args.
2748 set dummy strip
; ac_word
=$2
2749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2752 $as_echo_n "(cached) " >&6
2754 if test -n "$ac_ct_STRIP"; then
2755 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir
=.
2762 for ac_exec_ext
in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764 ac_cv_prog_ac_ct_STRIP
="strip"
2765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2775 if test -n "$ac_ct_STRIP"; then
2776 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2777 $as_echo "$ac_ct_STRIP" >&6; }
2779 { $as_echo "$as_me:$LINENO: result: no" >&5
2780 $as_echo "no" >&6; }
2783 if test "x$ac_ct_STRIP" = x
; then
2786 case $cross_compiling:$ac_tool_warned in
2788 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2790 ac_tool_warned
=yes ;;
2795 STRIP
="$ac_cv_prog_STRIP"
2799 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2801 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2802 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2803 if test -z "$MKDIR_P"; then
2804 if test "${ac_cv_path_mkdir+set}" = set; then
2805 $as_echo_n "(cached) " >&6
2807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2808 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2811 test -z "$as_dir" && as_dir
=.
2812 for ac_prog
in mkdir gmkdir
; do
2813 for ac_exec_ext
in '' $ac_executable_extensions; do
2814 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2815 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2816 'mkdir (GNU coreutils) '* | \
2817 'mkdir (coreutils) '* | \
2818 'mkdir (fileutils) '4.1*)
2819 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2829 if test "${ac_cv_path_mkdir+set}" = set; then
2830 MKDIR_P
="$ac_cv_path_mkdir -p"
2832 # As a last resort, use the slow shell script. Don't cache a
2833 # value for MKDIR_P within a source directory, because that will
2834 # break other packages using the cache if that directory is
2835 # removed, or if the value is a relative name.
2836 test -d .
/--version && rmdir .
/--version
2837 MKDIR_P
="$ac_install_sh -d"
2840 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2841 $as_echo "$MKDIR_P" >&6; }
2845 [\\/$
]* | ?
:[\\/]*) ;;
2846 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2849 for ac_prog
in gawk mawk nawk
awk
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy
$ac_prog; ac_word
=$2
2853 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if test "${ac_cv_prog_AWK+set}" = set; then
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$AWK"; then
2859 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir
=.
2866 for ac_exec_ext
in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_AWK
="$ac_prog"
2869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 if test -n "$AWK"; then
2880 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2881 $as_echo "$AWK" >&6; }
2883 { $as_echo "$as_me:$LINENO: result: no" >&5
2884 $as_echo "no" >&6; }
2888 test -n "$AWK" && break
2891 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2892 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2894 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2895 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2896 $as_echo_n "(cached) " >&6
2898 cat >conftest.
make <<\_ACEOF
2901 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2903 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2904 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2906 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2908 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2912 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2913 { $as_echo "$as_me:$LINENO: result: yes" >&5
2914 $as_echo "yes" >&6; }
2917 { $as_echo "$as_me:$LINENO: result: no" >&5
2918 $as_echo "no" >&6; }
2919 SET_MAKE
="MAKE=${MAKE-make}"
2922 rm -rf .tst
2>/dev
/null
2923 mkdir .tst
2>/dev
/null
2924 if test -d .tst
; then
2929 rmdir .tst
2>/dev
/null
2931 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2932 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2933 # is not polluted with repeated "-I."
2934 am__isrc
=' -I$(srcdir)'
2935 # test to see if srcdir already configured
2936 if test -f $srcdir/config.status
; then
2937 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2938 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2939 { (exit 1); exit 1; }; }
2943 # test whether we have cygpath
2944 if test -z "$CYGPATH_W"; then
2945 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2946 CYGPATH_W
='cygpath -w'
2953 # Define the identity of the package.
2954 PACKAGE
=$ZFS_META_NAME
2955 VERSION
=$ZFS_META_VERSION
2958 cat >>confdefs.h
<<_ACEOF
2959 #define PACKAGE "$PACKAGE"
2963 cat >>confdefs.h
<<_ACEOF
2964 #define VERSION "$VERSION"
2967 # Some tools Automake needs.
2969 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2972 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2975 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2978 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2981 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2983 # We need awk for the "check" target. The system "awk" is bad on
2985 # Always define AMTAR for backward compatibility.
2987 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2989 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2995 ac_config_headers
="$ac_config_headers zfs_config.h"
2998 # Find a good install program. We prefer a C program (faster),
2999 # so one script is as good as another. But avoid the broken or
3000 # incompatible versions:
3001 # SysV /etc/install, /usr/sbin/install
3002 # SunOS /usr/etc/install
3003 # IRIX /sbin/install
3005 # AmigaOS /C/install, which installs bootblocks on floppy discs
3006 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3007 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3008 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3009 # OS/2's system install, which has a completely different semantic
3010 # ./install, which can be erroneously created by make from ./install.sh.
3011 # Reject install programs that cannot install multiple files.
3012 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3013 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3014 if test -z "$INSTALL"; then
3015 if test "${ac_cv_path_install+set}" = set; then
3016 $as_echo_n "(cached) " >&6
3018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir
=.
3023 # Account for people who put trailing slashes in PATH elements.
3025 .
/ | .
// |
/cC
/* | \
3026 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3027 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3030 # OSF1 and SCO ODT 3.0 have their own names for install.
3031 # Don't use installbsd from OSF since it installs stuff as root
3033 for ac_prog
in ginstall scoinst
install; do
3034 for ac_exec_ext
in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3036 if test $ac_prog = install &&
3037 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3038 # AIX install. It has an incompatible calling convention.
3040 elif test $ac_prog = install &&
3041 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3042 # program-specific install script used by HP pwplus--don't use.
3045 rm -rf conftest.one conftest.two conftest.dir
3046 echo one
> conftest.one
3047 echo two
> conftest.two
3049 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3050 test -s conftest.one
&& test -s conftest.two
&&
3051 test -s conftest.dir
/conftest.one
&&
3052 test -s conftest.dir
/conftest.two
3054 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3067 rm -rf conftest.one conftest.two conftest.dir
3070 if test "${ac_cv_path_install+set}" = set; then
3071 INSTALL
=$ac_cv_path_install
3073 # As a last resort, use the slow shell script. Don't cache a
3074 # value for INSTALL within a source directory, because that will
3075 # break other packages using the cache if that directory is
3076 # removed, or if the value is a relative name.
3077 INSTALL
=$ac_install_sh
3080 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3081 $as_echo "$INSTALL" >&6; }
3083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3084 # It thinks the first close brace ends the variable substitution.
3085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3089 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3092 ac_cpp
='$CPP $CPPFLAGS'
3093 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3098 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3099 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if test "${ac_cv_prog_CC+set}" = set; then
3102 $as_echo_n "(cached) " >&6
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC
="$CC" # Let the user override the test.
3107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir
=.
3112 for ac_exec_ext
in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 if test -n "$CC"; then
3126 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3129 { $as_echo "$as_me:$LINENO: result: no" >&5
3130 $as_echo "no" >&6; }
3135 if test -z "$ac_cv_prog_CC"; then
3137 # Extract the first word of "gcc", so it can be a program name with args.
3138 set dummy gcc
; ac_word
=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$ac_ct_CC"; then
3145 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir
=.
3152 for ac_exec_ext
in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_ac_ct_CC
="gcc"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3165 if test -n "$ac_ct_CC"; then
3166 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3167 $as_echo "$ac_ct_CC" >&6; }
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3173 if test "x$ac_ct_CC" = x
; then
3176 case $cross_compiling:$ac_tool_warned in
3178 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180 ac_tool_warned
=yes ;;
3188 if test -z "$CC"; then
3189 if test -n "$ac_tool_prefix"; then
3190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3191 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_CC+set}" = set; then
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC
="$CC" # Let the user override the test.
3200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir
=.
3205 for ac_exec_ext
in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 if test -n "$CC"; then
3219 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3222 { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3229 if test -z "$CC"; then
3230 # Extract the first word of "cc", so it can be a program name with args.
3231 set dummy cc
; ac_word
=$2
3232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_CC+set}" = set; then
3235 $as_echo_n "(cached) " >&6
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC
="$CC" # Let the user override the test.
3241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3245 test -z "$as_dir" && as_dir
=.
3246 for ac_exec_ext
in '' $ac_executable_extensions; do
3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3249 ac_prog_rejected
=yes
3253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 if test $ac_prog_rejected = yes; then
3261 # We found a bogon in the path, so make sure we never use it.
3262 set dummy
$ac_cv_prog_CC
3264 if test $# != 0; then
3265 # We chose a different compiler from the bogus one.
3266 # However, it has the same basename, so the bogon will be chosen
3267 # first if we set CC to just the basename; use the full file name.
3269 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3275 if test -n "$CC"; then
3276 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3277 $as_echo "$CC" >&6; }
3279 { $as_echo "$as_me:$LINENO: result: no" >&5
3280 $as_echo "no" >&6; }
3285 if test -z "$CC"; then
3286 if test -n "$ac_tool_prefix"; then
3287 for ac_prog
in cl.exe
3289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3290 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if test "${ac_cv_prog_CC+set}" = set; then
3294 $as_echo_n "(cached) " >&6
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC
="$CC" # Let the user override the test.
3299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3303 test -z "$as_dir" && as_dir
=.
3304 for ac_exec_ext
in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 if test -n "$CC"; then
3318 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3319 $as_echo "$CC" >&6; }
3321 { $as_echo "$as_me:$LINENO: result: no" >&5
3322 $as_echo "no" >&6; }
3326 test -n "$CC" && break
3329 if test -z "$CC"; then
3331 for ac_prog
in cl.exe
3333 # Extract the first word of "$ac_prog", so it can be a program name with args.
3334 set dummy
$ac_prog; ac_word
=$2
3335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3338 $as_echo_n "(cached) " >&6
3340 if test -n "$ac_ct_CC"; then
3341 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir
=.
3348 for ac_exec_ext
in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_prog_ac_ct_CC
="$ac_prog"
3351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3361 if test -n "$ac_ct_CC"; then
3362 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3363 $as_echo "$ac_ct_CC" >&6; }
3365 { $as_echo "$as_me:$LINENO: result: no" >&5
3366 $as_echo "no" >&6; }
3370 test -n "$ac_ct_CC" && break
3373 if test "x$ac_ct_CC" = x
; then
3376 case $cross_compiling:$ac_tool_warned in
3378 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3380 ac_tool_warned
=yes ;;
3389 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3392 See \`config.log' for more details." >&5
3393 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3394 See \`config.log' for more details." >&2;}
3395 { (exit 1); exit 1; }; }; }
3397 # Provide some information about the compiler.
3398 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3401 { (ac_try
="$ac_compiler --version >&5"
3403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3407 $as_echo "$ac_try_echo") >&5
3408 (eval "$ac_compiler --version >&5") 2>&5
3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }
3412 { (ac_try="$ac_compiler -v >&5"
3414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3415 *) ac_try_echo
=$ac_try;;
3417 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3418 $as_echo "$ac_try_echo") >&5
3419 (eval "$ac_compiler -v >&5") 2>&5
3421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }
3423 { (ac_try
="$ac_compiler -V >&5"
3425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3429 $as_echo "$ac_try_echo") >&5
3430 (eval "$ac_compiler -V >&5") 2>&5
3432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3450 ac_clean_files_save=$ac_clean_files
3451 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3452 # Try to create an executable without -o first, disregard a.out.
3453 # It will help us diagnose broken compilers, and finding out an intuition
3455 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3456 $as_echo_n "checking for C compiler default output file name... " >&6; }
3457 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3459 # The possible output files:
3460 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3463 for ac_file in $ac_files
3466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3467 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3472 if { (ac_try="$ac_link_default"
3474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3475 *) ac_try_echo
=$ac_try;;
3477 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3478 $as_echo "$ac_try_echo") >&5
3479 (eval "$ac_link_default") 2>&5
3481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; then
3483 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3484 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3485 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3486 # so that the user can short-circuit this test for compilers unknown to
3488 for ac_file
in $ac_files ''
3490 test -f "$ac_file" ||
continue
3492 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3495 # We found the default executable, but exeext='' is most
3499 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3501 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3503 # We set ac_cv_exeext here because the later test for it is not
3504 # safe: cross compilers may not add the suffix if given an `-o'
3505 # argument, so we may need to know it at that point already.
3506 # Even if this section looks crufty: it has the advantage of
3513 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3519 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3520 $as_echo "$ac_file" >&6; }
3521 if test -z "$ac_file"; then
3522 $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.
$ac_ext >&5
3525 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3528 See \`config.log' for more details." >&5
3529 $as_echo "$as_me: error: C compiler cannot create executables
3530 See \`config.log' for more details." >&2;}
3531 { (exit 77); exit 77; }; }; }
3534 ac_exeext
=$ac_cv_exeext
3536 # Check that the compiler produces executables we can run. If not, either
3537 # the compiler is broken, or we cross compile.
3538 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3539 $as_echo_n "checking whether the C compiler works... " >&6; }
3540 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3541 # If not cross compiling, check that we can run a simple program.
3542 if test "$cross_compiling" != yes; then
3543 if { ac_try
='./$ac_file'
3544 { (case "(($ac_try" in
3545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3549 $as_echo "$ac_try_echo") >&5
3550 (eval "$ac_try") 2>&5
3552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3556 if test "$cross_compiling" = maybe; then
3559 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3562 If you meant to cross compile
, use \
`--host'.
3563 See \`config.log
' for more details." >&5
3564 $as_echo "$as_me: error: cannot run C compiled programs.
3565 If you meant to cross compile, use \`--host'.
3566 See \
`config.log' for more details." >&2;}
3567 { (exit 1); exit 1; }; }; }
3571 { $as_echo "$as_me:$LINENO: result: yes" >&5
3572 $as_echo "yes" >&6; }
3574 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3575 ac_clean_files=$ac_clean_files_save
3576 # Check that the compiler produces executables we can run. If not, either
3577 # the compiler is broken, or we cross compile.
3578 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3579 $as_echo_n "checking whether we are cross compiling... " >&6; }
3580 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3581 $as_echo "$cross_compiling" >&6; }
3583 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3584 $as_echo_n "checking for suffix of executables... " >&6; }
3585 if { (ac_try="$ac_link"
3587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3588 *) ac_try_echo
=$ac_try;;
3590 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3591 $as_echo "$ac_try_echo") >&5
3592 (eval "$ac_link") 2>&5
3594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; then
3596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3598 # work properly (i.e., refer to `conftest.exe'), while it won't with
3600 for ac_file
in conftest.exe conftest conftest.
*; do
3601 test -f "$ac_file" ||
continue
3603 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3604 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3610 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3613 See \`config.log' for more details." >&5
3614 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3615 See \`config.log' for more details." >&2;}
3616 { (exit 1); exit 1; }; }; }
3619 rm -f conftest
$ac_cv_exeext
3620 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3621 $as_echo "$ac_cv_exeext" >&6; }
3623 rm -f conftest.
$ac_ext
3624 EXEEXT
=$ac_cv_exeext
3626 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3627 $as_echo_n "checking for suffix of object files... " >&6; }
3628 if test "${ac_cv_objext+set}" = set; then
3629 $as_echo_n "(cached) " >&6
3631 cat >conftest.
$ac_ext <<_ACEOF
3634 cat confdefs.h
>>conftest.
$ac_ext
3635 cat >>conftest.
$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3646 rm -f conftest.o conftest.obj
3647 if { (ac_try
="$ac_compile"
3649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3653 $as_echo "$ac_try_echo") >&5
3654 (eval "$ac_compile") 2>&5
3656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; then
3658 for ac_file in conftest.o conftest.obj conftest.*; do
3659 test -f "$ac_file" || continue;
3661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3662 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3667 $as_echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3670 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3673 See \
`config.log' for more details." >&5
3674 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3675 See \`config.log
' for more details." >&2;}
3676 { (exit 1); exit 1; }; }; }
3679 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3681 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3682 $as_echo "$ac_cv_objext" >&6; }
3683 OBJEXT=$ac_cv_objext
3685 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3686 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3687 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3688 $as_echo_n "(cached) " >&6
3690 cat >conftest.$ac_ext <<_ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3708 rm -f conftest.$ac_objext
3709 if { (ac_try="$ac_compile"
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715 $as_echo "$ac_try_echo") >&5
3716 (eval "$ac_compile") 2>conftest.er1
3718 grep -v '^
*+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && {
3723 test -z "$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 } && test -s conftest.$ac_objext; then
3728 $as_echo "$as_me: failed program was:" >&5
3729 sed 's
/^
/|
/' conftest.$ac_ext >&5
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if test "${ac_cv_prog_cc_g+set}" = set; then
3750 $as_echo_n "(cached) " >&6
3752 ac_save_c_werror_flag=$ac_c_werror_flag
3753 ac_c_werror_flag=yes
3756 cat >conftest.$ac_ext <<_ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3771 rm -f conftest.$ac_objext
3772 if { (ac_try="$ac_compile"
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3778 $as_echo "$ac_try_echo") >&5
3779 (eval "$ac_compile") 2>conftest.er1
3781 grep -v '^
*+' conftest.er1 >conftest.err
3783 cat conftest.err >&5
3784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } && {
3786 test -z "$ac_c_werror_flag" ||
3787 test ! -s conftest.err
3788 } && test -s conftest.$ac_objext; then
3791 $as_echo "$as_me: failed program was:" >&5
3792 sed 's
/^
/|
/' conftest.$ac_ext >&5
3795 cat >conftest.$ac_ext <<_ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3810 rm -f conftest.$ac_objext
3811 if { (ac_try="$ac_compile"
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3817 $as_echo "$ac_try_echo") >&5
3818 (eval "$ac_compile") 2>conftest.er1
3820 grep -v '^
*+' conftest.er1 >conftest.err
3822 cat conftest.err >&5
3823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } && {
3825 test -z "$ac_c_werror_flag" ||
3826 test ! -s conftest.err
3827 } && test -s conftest.$ac_objext; then
3830 $as_echo "$as_me: failed program was:" >&5
3831 sed 's
/^
/|
/' conftest.$ac_ext >&5
3833 ac_c_werror_flag=$ac_save_c_werror_flag
3835 cat >conftest.$ac_ext <<_ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3857 $as_echo "$ac_try_echo") >&5
3858 (eval "$ac_compile") 2>conftest.er1
3860 grep -v '^
*+' conftest.er1 >conftest.err
3862 cat conftest.err >&5
3863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } && {
3865 test -z "$ac_c_werror_flag" ||
3866 test ! -s conftest.err
3867 } && test -s conftest.$ac_objext; then
3870 $as_echo "$as_me: failed program was:" >&5
3871 sed 's
/^
/|
/' conftest.$ac_ext >&5
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 ac_c_werror_flag=$ac_save_c_werror_flag
3885 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3886 $as_echo "$ac_cv_prog_cc_g" >&6; }
3887 if test "$ac_test_CFLAGS" = set; then
3888 CFLAGS=$ac_save_CFLAGS
3889 elif test $ac_cv_prog_cc_g = yes; then
3890 if test "$GCC" = yes; then
3896 if test "$GCC" = yes; then
3902 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3903 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3904 if test "${ac_cv_prog_cc_c89+set}" = set; then
3905 $as_echo_n "(cached) " >&6
3907 ac_cv_prog_cc_c89=no
3909 cat >conftest.$ac_ext <<_ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3917 #include <sys/types.h>
3918 #include <sys/stat.h>
3919 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3920 struct buf
{ int x
; };
3921 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3922 static char
*e
(p
, i
)
3928 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3933 s
= g
(p
, va_arg
(v
,int
));
3938 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3939 function prototypes and stuff
, but not
'\xHH' hex character constants.
3940 These don
't provoke an error unfortunately, instead are silently treated
3941 as 'x
'. The following induces an error, until -std is added to get
3942 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3943 array size at least. It's necessary to
write '\x00'==0 to get something
3944 that
's true only with -std. */
3945 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3947 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3948 inside strings and character constants. */
3950 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3952 int test (int i, double x);
3953 struct s1 {int (*f) (int a);};
3954 struct s2 {int (*f) (double a);};
3955 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3961 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3966 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3967 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3969 CC="$ac_save_CC $ac_arg"
3970 rm -f conftest.$ac_objext
3971 if { (ac_try="$ac_compile"
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3977 $as_echo "$ac_try_echo") >&5
3978 (eval "$ac_compile") 2>conftest.er1
3980 grep -v '^
*+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && {
3985 test -z "$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3987 } && test -s conftest.$ac_objext; then
3988 ac_cv_prog_cc_c89=$ac_arg
3990 $as_echo "$as_me: failed program was:" >&5
3991 sed 's
/^
/|
/' conftest.$ac_ext >&5
3996 rm -f core conftest.err conftest.$ac_objext
3997 test "x$ac_cv_prog_cc_c89" != "xno" && break
3999 rm -f conftest.$ac_ext
4004 case "x$ac_cv_prog_cc_c89" in
4006 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4007 $as_echo "none needed" >&6; } ;;
4009 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4010 $as_echo "unsupported" >&6; } ;;
4012 CC="$CC $ac_cv_prog_cc_c89"
4013 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4014 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4021 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 DEPDIR="${am__leading_dot}deps"
4025 ac_config_commands="$ac_config_commands depfiles"
4028 am_make=${MAKE-make}
4029 cat > confinc << 'END
'
4031 @echo this is the am__doit target
4034 # If we don't
find an include directive
, just comment out the code.
4035 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4036 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4040 # First try GNU make style include.
4041 echo "include confinc" > confmf
4042 # Ignore all kinds of additional output from `make'.
4043 case `$am_make -s -f confmf 2> /dev/null` in #(
4044 *the\ am__doit\ target
*)
4050 # Now try BSD make style include.
4051 if test "$am__include" = "#"; then
4052 echo '.include "confinc"' > confmf
4053 case `$am_make -s -f confmf 2> /dev/null` in #(
4054 *the\ am__doit\ target
*)
4055 am__include
=.include
4063 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4064 $as_echo "$_am_result" >&6; }
4065 rm -f confinc confmf
4067 # Check whether --enable-dependency-tracking was given.
4068 if test "${enable_dependency_tracking+set}" = set; then
4069 enableval
=$enable_dependency_tracking;
4072 if test "x$enable_dependency_tracking" != xno
; then
4073 am_depcomp
="$ac_aux_dir/depcomp"
4076 if test "x$enable_dependency_tracking" != xno; then
4086 depcc
="$CC" am_compiler_list
=
4088 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4089 $as_echo_n "checking dependency style of $depcc... " >&6; }
4090 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4091 $as_echo_n "(cached) " >&6
4093 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4094 # We make a subdir and do the tests there. Otherwise we can end up
4095 # making bogus files that we don't know about and never remove. For
4096 # instance it was reported that on HP-UX the gcc test will end up
4097 # making a dummy file named `D' -- because `-MD' means `put the output
4100 # Copy depcomp to subdir because otherwise we won't find it if we're
4101 # using a relative directory.
4102 cp "$am_depcomp" conftest.dir
4104 # We will build objects and dependencies in a subdirectory because
4105 # it helps to detect inapplicable dependency modes. For instance
4106 # both Tru64's cc and ICC support -MD to output dependencies as a
4107 # side effect of compilation, but ICC will put the dependencies in
4108 # the current directory while Tru64 will put them in the object
4112 am_cv_CC_dependencies_compiler_type
=none
4113 if test "$am_compiler_list" = ""; then
4114 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4117 case " $depcc " in #(
4118 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4121 for depmode
in $am_compiler_list; do
4122 # Setup a source with many dependencies, because some compilers
4123 # like to wrap large dependency lists on column 80 (with \), and
4124 # we should not choose a depcomp mode which is confused by this.
4126 # We need to recreate these files for each test, as the compiler may
4127 # overwrite some of them when testing with obscure command lines.
4128 # This happens at least with the AIX C compiler.
4130 for i
in 1 2 3 4 5 6; do
4131 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4132 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4133 # Solaris 8's {/usr,}/bin/sh.
4134 touch sub
/conftst
$i.h
4136 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4138 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4139 # mode. It turns out that the SunPro C++ compiler does not properly
4140 # handle `-M -o', and we need to detect this. Also, some Intel
4141 # versions had trouble with output in subdirs
4142 am__obj
=sub
/conftest.
${OBJEXT-o}
4143 am__minus_obj
="-o $am__obj"
4146 # This depmode causes a compiler race in universal mode.
4147 test "$am__universal" = false ||
continue
4150 # after this tag, mechanisms are not by side-effect, so they'll
4151 # only be used when explicitly requested
4152 if test "x$enable_dependency_tracking" = xyes
; then
4158 msvisualcpp | msvcmsys
)
4159 # This compiler won't grok `-c -o', but also, the minuso test has
4160 # not run yet. These depmodes are late enough in the game, and
4161 # so weak that their functioning should not be impacted.
4162 am__obj
=conftest.
${OBJEXT-o}
4167 if depmode
=$depmode \
4168 source=sub
/conftest.c object
=$am__obj \
4169 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4170 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4171 >/dev
/null
2>conftest.err
&&
4172 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4173 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4174 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4175 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4176 # icc doesn't choke on unknown options, it will just issue warnings
4177 # or remarks (even with -Werror). So we grep stderr for any message
4178 # that says an option was ignored or not supported.
4179 # When given -MP, icc 7.0 and 7.1 complain thusly:
4180 # icc: Command line warning: ignoring option '-M'; no argument required
4181 # The diagnosis changed in icc 8.0:
4182 # icc: Command line remark: option '-MP' not supported
4183 if (grep 'ignoring option' conftest.err ||
4184 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4185 am_cv_CC_dependencies_compiler_type
=$depmode
4194 am_cv_CC_dependencies_compiler_type
=none
4198 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4199 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4200 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4203 test "x$enable_dependency_tracking" != xno \
4204 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4206 am__fastdepCC_FALSE
='#'
4208 am__fastdepCC_TRUE
='#'
4209 am__fastdepCC_FALSE
=
4215 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4216 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4221 macro_version
='2.2.6b'
4222 macro_revision
='1.3017'
4236 ltmain
="$ac_aux_dir/ltmain.sh"
4238 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4239 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4240 if test "${ac_cv_path_SED+set}" = set; then
4241 $as_echo_n "(cached) " >&6
4243 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4244 for ac_i
in 1 2 3 4 5 6 7; do
4245 ac_script
="$ac_script$as_nl$ac_script"
4247 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4248 $as_unset ac_script || ac_script
=
4249 if test -z "$SED"; then
4250 ac_path_SED_found
=false
4251 # Loop through the user's path and test for each of PROGNAME-LIST
4252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir
=.
4257 for ac_prog
in sed gsed
; do
4258 for ac_exec_ext
in '' $ac_executable_extensions; do
4259 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4260 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4261 # Check for GNU ac_path_SED and select it if it is found.
4262 # Check for GNU $ac_path_SED
4263 case `"$ac_path_SED" --version 2>&1` in
4265 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4268 $as_echo_n 0123456789 >"conftest.in"
4271 cat "conftest.in" "conftest.in" >"conftest.tmp"
4272 mv "conftest.tmp" "conftest.in"
4273 cp "conftest.in" "conftest.nl"
4274 $as_echo '' >> "conftest.nl"
4275 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4276 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4277 ac_count
=`expr $ac_count + 1`
4278 if test $ac_count -gt ${ac_path_SED_max-0}; then
4279 # Best one so far, save it but keep looking for a better one
4280 ac_cv_path_SED
="$ac_path_SED"
4281 ac_path_SED_max
=$ac_count
4283 # 10*(2^10) chars as input seems more than enough
4284 test $ac_count -gt 10 && break
4286 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4289 $ac_path_SED_found && break 3
4294 if test -z "$ac_cv_path_SED"; then
4295 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4296 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4297 { (exit 1); exit 1; }; }
4304 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4305 $as_echo "$ac_cv_path_SED" >&6; }
4306 SED
="$ac_cv_path_SED"
4309 test -z "$SED" && SED
=sed
4310 Xsed
="$SED -e 1s/^X//"
4322 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4323 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4324 if test "${ac_cv_path_GREP+set}" = set; then
4325 $as_echo_n "(cached) " >&6
4327 if test -z "$GREP"; then
4328 ac_path_GREP_found
=false
4329 # Loop through the user's path and test for each of PROGNAME-LIST
4330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4331 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4334 test -z "$as_dir" && as_dir
=.
4335 for ac_prog
in grep ggrep
; do
4336 for ac_exec_ext
in '' $ac_executable_extensions; do
4337 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4338 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4339 # Check for GNU ac_path_GREP and select it if it is found.
4340 # Check for GNU $ac_path_GREP
4341 case `"$ac_path_GREP" --version 2>&1` in
4343 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4346 $as_echo_n 0123456789 >"conftest.in"
4349 cat "conftest.in" "conftest.in" >"conftest.tmp"
4350 mv "conftest.tmp" "conftest.in"
4351 cp "conftest.in" "conftest.nl"
4352 $as_echo 'GREP' >> "conftest.nl"
4353 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4354 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4355 ac_count
=`expr $ac_count + 1`
4356 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4357 # Best one so far, save it but keep looking for a better one
4358 ac_cv_path_GREP
="$ac_path_GREP"
4359 ac_path_GREP_max
=$ac_count
4361 # 10*(2^10) chars as input seems more than enough
4362 test $ac_count -gt 10 && break
4364 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4367 $ac_path_GREP_found && break 3
4372 if test -z "$ac_cv_path_GREP"; then
4373 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4374 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4375 { (exit 1); exit 1; }; }
4378 ac_cv_path_GREP
=$GREP
4382 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4383 $as_echo "$ac_cv_path_GREP" >&6; }
4384 GREP
="$ac_cv_path_GREP"
4387 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4388 $as_echo_n "checking for egrep... " >&6; }
4389 if test "${ac_cv_path_EGREP+set}" = set; then
4390 $as_echo_n "(cached) " >&6
4392 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4393 then ac_cv_path_EGREP
="$GREP -E"
4395 if test -z "$EGREP"; then
4396 ac_path_EGREP_found
=false
4397 # Loop through the user's path and test for each of PROGNAME-LIST
4398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4399 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4402 test -z "$as_dir" && as_dir
=.
4403 for ac_prog
in egrep; do
4404 for ac_exec_ext
in '' $ac_executable_extensions; do
4405 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4406 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4407 # Check for GNU ac_path_EGREP and select it if it is found.
4408 # Check for GNU $ac_path_EGREP
4409 case `"$ac_path_EGREP" --version 2>&1` in
4411 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4414 $as_echo_n 0123456789 >"conftest.in"
4417 cat "conftest.in" "conftest.in" >"conftest.tmp"
4418 mv "conftest.tmp" "conftest.in"
4419 cp "conftest.in" "conftest.nl"
4420 $as_echo 'EGREP' >> "conftest.nl"
4421 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4422 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4423 ac_count
=`expr $ac_count + 1`
4424 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4425 # Best one so far, save it but keep looking for a better one
4426 ac_cv_path_EGREP
="$ac_path_EGREP"
4427 ac_path_EGREP_max
=$ac_count
4429 # 10*(2^10) chars as input seems more than enough
4430 test $ac_count -gt 10 && break
4432 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4435 $ac_path_EGREP_found && break 3
4440 if test -z "$ac_cv_path_EGREP"; then
4441 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4442 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4443 { (exit 1); exit 1; }; }
4446 ac_cv_path_EGREP
=$EGREP
4451 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4452 $as_echo "$ac_cv_path_EGREP" >&6; }
4453 EGREP
="$ac_cv_path_EGREP"
4456 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4457 $as_echo_n "checking for fgrep... " >&6; }
4458 if test "${ac_cv_path_FGREP+set}" = set; then
4459 $as_echo_n "(cached) " >&6
4461 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4462 then ac_cv_path_FGREP
="$GREP -F"
4464 if test -z "$FGREP"; then
4465 ac_path_FGREP_found
=false
4466 # Loop through the user's path and test for each of PROGNAME-LIST
4467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4468 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4471 test -z "$as_dir" && as_dir
=.
4472 for ac_prog
in fgrep
; do
4473 for ac_exec_ext
in '' $ac_executable_extensions; do
4474 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4475 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4476 # Check for GNU ac_path_FGREP and select it if it is found.
4477 # Check for GNU $ac_path_FGREP
4478 case `"$ac_path_FGREP" --version 2>&1` in
4480 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4483 $as_echo_n 0123456789 >"conftest.in"
4486 cat "conftest.in" "conftest.in" >"conftest.tmp"
4487 mv "conftest.tmp" "conftest.in"
4488 cp "conftest.in" "conftest.nl"
4489 $as_echo 'FGREP' >> "conftest.nl"
4490 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4491 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4492 ac_count
=`expr $ac_count + 1`
4493 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4494 # Best one so far, save it but keep looking for a better one
4495 ac_cv_path_FGREP
="$ac_path_FGREP"
4496 ac_path_FGREP_max
=$ac_count
4498 # 10*(2^10) chars as input seems more than enough
4499 test $ac_count -gt 10 && break
4501 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4504 $ac_path_FGREP_found && break 3
4509 if test -z "$ac_cv_path_FGREP"; then
4510 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4511 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4512 { (exit 1); exit 1; }; }
4515 ac_cv_path_FGREP
=$FGREP
4520 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4521 $as_echo "$ac_cv_path_FGREP" >&6; }
4522 FGREP
="$ac_cv_path_FGREP"
4525 test -z "$GREP" && GREP
=grep
4545 # Check whether --with-gnu-ld was given.
4546 if test "${with_gnu_ld+set}" = set; then
4547 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4553 if test "$GCC" = yes; then
4554 # Check if gcc -print-prog-name=ld gives a path.
4555 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4556 $as_echo_n "checking for ld used by $CC... " >&6; }
4559 # gcc leaves a trailing carriage return which upsets mingw
4560 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4562 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4565 # Accept absolute paths.
4567 re_direlt
='/[^/][^/]*/\.\./'
4568 # Canonicalize the pathname of ld
4569 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4570 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4571 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4573 test -z "$LD" && LD
="$ac_prog"
4576 # If it fails, then pretend we aren't using GCC.
4580 # If it is relative, then search for the first ld in PATH.
4584 elif test "$with_gnu_ld" = yes; then
4585 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4586 $as_echo_n "checking for GNU ld... " >&6; }
4588 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4589 $as_echo_n "checking for non-GNU ld... " >&6; }
4591 if test "${lt_cv_path_LD+set}" = set; then
4592 $as_echo_n "(cached) " >&6
4594 if test -z "$LD"; then
4595 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4596 for ac_dir
in $PATH; do
4598 test -z "$ac_dir" && ac_dir
=.
4599 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4600 lt_cv_path_LD
="$ac_dir/$ac_prog"
4601 # Check to see if the program is GNU ld. I'd rather use --version,
4602 # but apparently some variants of GNU ld only accept -v.
4603 # Break only if it was the GNU/non-GNU ld that we prefer.
4604 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4605 *GNU
* |
*'with BFD'*)
4606 test "$with_gnu_ld" != no
&& break
4609 test "$with_gnu_ld" != yes && break
4616 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4621 if test -n "$LD"; then
4622 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4623 $as_echo "$LD" >&6; }
4625 { $as_echo "$as_me:$LINENO: result: no" >&5
4626 $as_echo "no" >&6; }
4628 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4629 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4630 { (exit 1); exit 1; }; }
4631 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4632 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4633 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4634 $as_echo_n "(cached) " >&6
4636 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4637 case `$LD -v 2>&1 </dev/null` in
4638 *GNU
* |
*'with BFD'*)
4639 lt_cv_prog_gnu_ld
=yes
4642 lt_cv_prog_gnu_ld
=no
4646 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4647 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4648 with_gnu_ld
=$lt_cv_prog_gnu_ld
4658 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4659 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4660 if test "${lt_cv_path_NM+set}" = set; then
4661 $as_echo_n "(cached) " >&6
4663 if test -n "$NM"; then
4664 # Let the user override the test.
4667 lt_nm_to_check
="${ac_tool_prefix}nm"
4668 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4669 lt_nm_to_check
="$lt_nm_to_check nm"
4671 for lt_tmp_nm
in $lt_nm_to_check; do
4672 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4673 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4675 test -z "$ac_dir" && ac_dir
=.
4676 tmp_nm
="$ac_dir/$lt_tmp_nm"
4677 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4678 # Check to see if the nm accepts a BSD-compat flag.
4679 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4680 # nm: unknown option "B" ignored
4681 # Tru64's nm complains that /dev/null is an invalid object file
4682 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4683 */dev
/null
* |
*'Invalid file or object type'*)
4684 lt_cv_path_NM
="$tmp_nm -B"
4688 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4690 lt_cv_path_NM
="$tmp_nm -p"
4694 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4695 continue # so that we can try to find one that supports BSD flags
4704 : ${lt_cv_path_NM=no}
4707 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4708 $as_echo "$lt_cv_path_NM" >&6; }
4709 if test "$lt_cv_path_NM" != "no"; then
4712 # Didn't find any BSD compatible name lister, look for dumpbin.
4713 if test -n "$ac_tool_prefix"; then
4714 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4717 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4721 $as_echo_n "(cached) " >&6
4723 if test -n "$DUMPBIN"; then
4724 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir
=.
4731 for ac_exec_ext
in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 DUMPBIN
=$ac_cv_prog_DUMPBIN
4744 if test -n "$DUMPBIN"; then
4745 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4746 $as_echo "$DUMPBIN" >&6; }
4748 { $as_echo "$as_me:$LINENO: result: no" >&5
4749 $as_echo "no" >&6; }
4753 test -n "$DUMPBIN" && break
4756 if test -z "$DUMPBIN"; then
4757 ac_ct_DUMPBIN
=$DUMPBIN
4758 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4760 # Extract the first word of "$ac_prog", so it can be a program name with args.
4761 set dummy
$ac_prog; ac_word
=$2
4762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4765 $as_echo_n "(cached) " >&6
4767 if test -n "$ac_ct_DUMPBIN"; then
4768 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4774 test -z "$as_dir" && as_dir
=.
4775 for ac_exec_ext
in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4788 if test -n "$ac_ct_DUMPBIN"; then
4789 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4790 $as_echo "$ac_ct_DUMPBIN" >&6; }
4792 { $as_echo "$as_me:$LINENO: result: no" >&5
4793 $as_echo "no" >&6; }
4797 test -n "$ac_ct_DUMPBIN" && break
4800 if test "x$ac_ct_DUMPBIN" = x
; then
4803 case $cross_compiling:$ac_tool_warned in
4805 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4807 ac_tool_warned
=yes ;;
4809 DUMPBIN
=$ac_ct_DUMPBIN
4814 if test "$DUMPBIN" != ":"; then
4818 test -z "$NM" && NM
=nm
4825 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4826 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4827 if test "${lt_cv_nm_interface+set}" = set; then
4828 $as_echo_n "(cached) " >&6
4830 lt_cv_nm_interface
="BSD nm"
4831 echo "int some_variable = 0;" > conftest.
$ac_ext
4832 (eval echo "\"\$as_me:4832: $ac_compile\"" >&5)
4833 (eval "$ac_compile" 2>conftest.err
)
4834 cat conftest.err
>&5
4835 (eval echo "\"\$as_me:4835: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4836 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4837 cat conftest.err
>&5
4838 (eval echo "\"\$as_me:4838: output\"" >&5)
4839 cat conftest.out
>&5
4840 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4841 lt_cv_nm_interface
="MS dumpbin"
4845 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4846 $as_echo "$lt_cv_nm_interface" >&6; }
4848 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4849 $as_echo_n "checking whether ln -s works... " >&6; }
4851 if test "$LN_S" = "ln -s"; then
4852 { $as_echo "$as_me:$LINENO: result: yes" >&5
4853 $as_echo "yes" >&6; }
4855 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4856 $as_echo "no, using $LN_S" >&6; }
4859 # find the maximum length of command line arguments
4860 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4861 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4862 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4863 $as_echo_n "(cached) " >&6
4870 # On DJGPP, this test can blow up pretty badly due to problems in libc
4871 # (any single argument exceeding 2000 bytes causes a buffer overrun
4872 # during glob expansion). Even if it were fixed, the result of this
4873 # check would be larger than it should be.
4874 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4878 # Under GNU Hurd, this test is not required because there is
4879 # no limit to the length of command line arguments.
4880 # Libtool will interpret -1 as no limit whatsoever
4881 lt_cv_sys_max_cmd_len
=-1;
4884 cygwin
* | mingw
* | cegcc
*)
4885 # On Win9x/ME, this test blows up -- it succeeds, but takes
4886 # about 5 minutes as the teststring grows exponentially.
4887 # Worse, since 9x/ME are not pre-emptively multitasking,
4888 # you end up with a "frozen" computer, even though with patience
4889 # the test eventually succeeds (with a max line length of 256k).
4890 # Instead, let's just punt: use the minimum linelength reported by
4891 # all of the supported platforms: 8192 (on NT/2K/XP).
4892 lt_cv_sys_max_cmd_len
=8192;
4896 # On AmigaOS with pdksh, this test takes hours, literally.
4897 # So we just punt and use a minimum line length of 8192.
4898 lt_cv_sys_max_cmd_len
=8192;
4901 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4902 # This has been around since 386BSD, at least. Likely further.
4903 if test -x /sbin
/sysctl
; then
4904 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4905 elif test -x /usr
/sbin
/sysctl
; then
4906 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4908 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4910 # And add a safety zone
4911 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4912 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4916 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4917 lt_cv_sys_max_cmd_len
=196608
4921 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4922 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4923 # nice to cause kernel panics so lets avoid the loop below.
4924 # First set a reasonable default.
4925 lt_cv_sys_max_cmd_len
=16384
4927 if test -x /sbin
/sysconfig
; then
4928 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4929 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4934 lt_cv_sys_max_cmd_len
=102400
4936 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4937 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4938 if test -n "$kargmax"; then
4939 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4941 lt_cv_sys_max_cmd_len
=32768
4945 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4946 if test -n "$lt_cv_sys_max_cmd_len"; then
4947 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4948 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4950 # Make teststring a little bigger before we do anything with it.
4951 # a 1K string should be a reasonable start.
4952 for i
in 1 2 3 4 5 6 7 8 ; do
4953 teststring
=$teststring$teststring
4955 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4956 # If test is not a shell built-in, we'll probably end up computing a
4957 # maximum length that is only half of the actual maximum length, but
4959 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4960 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4961 test $i != 17 # 1/2 MB should be enough
4964 teststring
=$teststring$teststring
4966 # Only check the string length outside the loop.
4967 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4969 # Add a significant safety factor because C++ compilers can tack on
4970 # massive amounts of additional arguments before passing them to the
4971 # linker. It appears as though 1/2 is a usable value.
4972 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4979 if test -n $lt_cv_sys_max_cmd_len ; then
4980 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4981 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4983 { $as_echo "$as_me:$LINENO: result: none" >&5
4984 $as_echo "none" >&6; }
4986 max_cmd_len
=$lt_cv_sys_max_cmd_len
4997 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4998 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4999 # Try some XSI features
5002 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5004 && eval 'test $(( 1 + 1 )) -eq 2 \
5005 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5007 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
5008 $as_echo "$xsi_shell" >&6; }
5011 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
5012 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5014 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5016 && lt_shell_append=yes
5017 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
5018 $as_echo "$lt_shell_append" >&6; }
5021 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5031 # test EBCDIC or ASCII
5032 case `echo X|tr X '\101'` in
5033 A) # ASCII based system
5034 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5035 lt_SP2NL='tr \040 \012'
5036 lt_NL2SP='tr \015\012 \040\040'
5038 *) # EBCDIC based system
5039 lt_SP2NL='tr \100 \n'
5040 lt_NL2SP='tr \r\n \100\100'
5052 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
5053 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5054 if test "${lt_cv_ld_reload_flag+set}" = set; then
5055 $as_echo_n "(cached
) " >&6
5057 lt_cv_ld_reload_flag='-r'
5059 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
5060 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5061 reload_flag=$lt_cv_ld_reload_flag
5062 case $reload_flag in
5064 *) reload_flag=" $reload_flag" ;;
5066 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5069 if test "$GCC" = yes; then
5070 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5072 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5085 if test -n "$ac_tool_prefix"; then
5086 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5087 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5088 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5089 $as_echo_n "checking
for $ac_word...
" >&6; }
5090 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5091 $as_echo_n "(cached
) " >&6
5093 if test -n "$OBJDUMP"; then
5094 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5104 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5113 OBJDUMP=$ac_cv_prog_OBJDUMP
5114 if test -n "$OBJDUMP"; then
5115 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5116 $as_echo "$OBJDUMP" >&6; }
5118 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5119 $as_echo "no
" >&6; }
5124 if test -z "$ac_cv_prog_OBJDUMP"; then
5125 ac_ct_OBJDUMP=$OBJDUMP
5126 # Extract the first word of "objdump
", so it can be a program name with args.
5127 set dummy objdump; ac_word=$2
5128 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5129 $as_echo_n "checking
for $ac_word...
" >&6; }
5130 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5131 $as_echo_n "(cached
) " >&6
5133 if test -n "$ac_ct_OBJDUMP"; then
5134 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5144 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5153 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5154 if test -n "$ac_ct_OBJDUMP"; then
5155 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5156 $as_echo "$ac_ct_OBJDUMP" >&6; }
5158 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5159 $as_echo "no
" >&6; }
5162 if test "x
$ac_ct_OBJDUMP" = x; then
5165 case $cross_compiling:$ac_tool_warned in
5167 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5168 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5169 ac_tool_warned=yes ;;
5171 OBJDUMP=$ac_ct_OBJDUMP
5174 OBJDUMP="$ac_cv_prog_OBJDUMP"
5177 test -z "$OBJDUMP" && OBJDUMP=objdump
5187 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5188 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5189 if test "${lt_cv_deplibs_check_method+set}" = set; then
5190 $as_echo_n "(cached
) " >&6
5192 lt_cv_file_magic_cmd='$MAGIC_CMD'
5193 lt_cv_file_magic_test_file=
5194 lt_cv_deplibs_check_method='unknown'
5195 # Need to set the preceding variable on all platforms that support
5196 # interlibrary dependencies.
5197 # 'none' -- dependencies not supported.
5198 # `unknown' -- same as none, but documents that we really don't know.
5199 # 'pass_all' -- all dependencies passed with no checks.
5200 # 'test_compile' -- check by making test program.
5201 # 'file_magic [[regex]]' -- check by looking for files in library path
5202 # which responds to the $file_magic_cmd with a given extended regex.
5203 # If you have `file' or equivalent on your system and you're not sure
5204 # whether `pass_all' will *always* work, you probably want this one.
5208 lt_cv_deplibs_check_method=pass_all
5212 lt_cv_deplibs_check_method=pass_all
5216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5217 lt_cv_file_magic_cmd='/usr/bin/file -L'
5218 lt_cv_file_magic_test_file=/shlib/libc.so
5222 # func_win32_libid is a shell function defined in ltmain.sh
5223 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5224 lt_cv_file_magic_cmd='func_win32_libid'
5228 # Base MSYS/MinGW do not provide the 'file' command needed by
5229 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5230 # unless we find 'file', for example because we are cross-compiling.
5231 if ( file / ) >/dev/null 2>&1; then
5232 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5233 lt_cv_file_magic_cmd='func_win32_libid'
5235 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5236 lt_cv_file_magic_cmd='$OBJDUMP -f'
5241 # use the weaker test based on 'objdump'. See mingw*.
5242 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5243 lt_cv_file_magic_cmd='$OBJDUMP -f'
5246 darwin* | rhapsody*)
5247 lt_cv_deplibs_check_method=pass_all
5250 freebsd* | dragonfly*)
5251 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5254 # Not sure whether the presence of OpenBSD here was a mistake.
5255 # Let's accept both of them until this is cleared up.
5256 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5257 lt_cv_file_magic_cmd=/usr/bin/file
5258 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5262 lt_cv_deplibs_check_method=pass_all
5267 lt_cv_deplibs_check_method=pass_all
5270 hpux10.20* | hpux11*)
5271 lt_cv_file_magic_cmd=/usr/bin/file
5274 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5275 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5278 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]'
5279 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5283 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5289 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5293 irix5* | irix6* | nonstopux*)
5295 *-32|*"-32 ") libmagic=32-bit;;
5296 *-n32|*"-n32 ") libmagic=N32;;
5297 *-64|*"-64 ") libmagic=64-bit;;
5298 *) libmagic=never-match;;
5300 lt_cv_deplibs_check_method=pass_all
5303 # This must be Linux ELF.
5304 linux* | k*bsd*-gnu)
5305 lt_cv_deplibs_check_method=pass_all
5309 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5318 lt_cv_file_magic_cmd=/usr/bin/file
5319 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5323 lt_cv_deplibs_check_method=pass_all
5327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5334 osf3* | osf4* | osf5*)
5335 lt_cv_deplibs_check_method=pass_all
5339 lt_cv_deplibs_check_method=pass_all
5343 lt_cv_deplibs_check_method=pass_all
5346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5347 lt_cv_deplibs_check_method=pass_all
5351 case $host_vendor in
5353 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]'
5354 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5357 lt_cv_deplibs_check_method=pass_all
5360 lt_cv_file_magic_cmd='/bin/file'
5361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5364 lt_cv_file_magic_cmd='/bin/file'
5365 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5366 lt_cv_file_magic_test_file=/lib/libc.so
5369 lt_cv_deplibs_check_method=pass_all
5372 lt_cv_deplibs_check_method=pass_all
5378 lt_cv_deplibs_check_method=pass_all
5383 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5384 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5385 file_magic_cmd=$lt_cv_file_magic_cmd
5386 deplibs_check_method=$lt_cv_deplibs_check_method
5387 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5400 if test -n "$ac_tool_prefix"; then
5401 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5402 set dummy ${ac_tool_prefix}ar; ac_word=$2
5403 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5404 $as_echo_n "checking
for $ac_word...
" >&6; }
5405 if test "${ac_cv_prog_AR+set}" = set; then
5406 $as_echo_n "(cached
) " >&6
5408 if test -n "$AR"; then
5409 ac_cv_prog_AR="$AR" # Let the user override the test.
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_AR="${ac_tool_prefix}ar"
5419 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5429 if test -n "$AR"; then
5430 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5431 $as_echo "$AR" >&6; }
5433 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5434 $as_echo "no
" >&6; }
5439 if test -z "$ac_cv_prog_AR"; then
5441 # Extract the first word of "ar", so it can be a program name with args.
5442 set dummy ar; ac_word=$2
5443 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5444 $as_echo_n "checking
for $ac_word...
" >&6; }
5445 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5446 $as_echo_n "(cached
) " >&6
5448 if test -n "$ac_ct_AR"; then
5449 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_ac_ct_AR="ar"
5459 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5468 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5469 if test -n "$ac_ct_AR"; then
5470 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5471 $as_echo "$ac_ct_AR" >&6; }
5473 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5474 $as_echo "no
" >&6; }
5477 if test "x
$ac_ct_AR" = x; then
5480 case $cross_compiling:$ac_tool_warned in
5482 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5483 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5484 ac_tool_warned=yes ;;
5492 test -z "$AR" && AR=ar
5493 test -z "$AR_FLAGS" && AR_FLAGS=cru
5505 if test -n "$ac_tool_prefix"; then
5506 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}strip; ac_word=$2
5508 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5509 $as_echo_n "checking
for $ac_word...
" >&6; }
5510 if test "${ac_cv_prog_STRIP+set}" = set; then
5511 $as_echo_n "(cached
) " >&6
5513 if test -n "$STRIP"; then
5514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5524 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5533 STRIP=$ac_cv_prog_STRIP
5534 if test -n "$STRIP"; then
5535 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5536 $as_echo "$STRIP" >&6; }
5538 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5539 $as_echo "no
" >&6; }
5544 if test -z "$ac_cv_prog_STRIP"; then
5546 # Extract the first word of "strip
", so it can be a program name with args.
5547 set dummy strip; ac_word=$2
5548 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5549 $as_echo_n "checking
for $ac_word...
" >&6; }
5550 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5551 $as_echo_n "(cached
) " >&6
5553 if test -n "$ac_ct_STRIP"; then
5554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_ac_ct_STRIP="strip
"
5564 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5574 if test -n "$ac_ct_STRIP"; then
5575 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5576 $as_echo "$ac_ct_STRIP" >&6; }
5578 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5579 $as_echo "no
" >&6; }
5582 if test "x
$ac_ct_STRIP" = x; then
5585 case $cross_compiling:$ac_tool_warned in
5587 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5588 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5589 ac_tool_warned=yes ;;
5594 STRIP="$ac_cv_prog_STRIP"
5597 test -z "$STRIP" && STRIP=:
5604 if test -n "$ac_tool_prefix"; then
5605 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5606 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5607 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5608 $as_echo_n "checking
for $ac_word...
" >&6; }
5609 if test "${ac_cv_prog_RANLIB+set}" = set; then
5610 $as_echo_n "(cached
) " >&6
5612 if test -n "$RANLIB"; then
5613 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5623 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5632 RANLIB=$ac_cv_prog_RANLIB
5633 if test -n "$RANLIB"; then
5634 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5635 $as_echo "$RANLIB" >&6; }
5637 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5638 $as_echo "no
" >&6; }
5643 if test -z "$ac_cv_prog_RANLIB"; then
5644 ac_ct_RANLIB=$RANLIB
5645 # Extract the first word of "ranlib
", so it can be a program name with args.
5646 set dummy ranlib; ac_word=$2
5647 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5648 $as_echo_n "checking
for $ac_word...
" >&6; }
5649 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5650 $as_echo_n "(cached
) " >&6
5652 if test -n "$ac_ct_RANLIB"; then
5653 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5663 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5672 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5673 if test -n "$ac_ct_RANLIB"; then
5674 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5675 $as_echo "$ac_ct_RANLIB" >&6; }
5677 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5678 $as_echo "no
" >&6; }
5681 if test "x
$ac_ct_RANLIB" = x; then
5684 case $cross_compiling:$ac_tool_warned in
5686 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5687 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5688 ac_tool_warned=yes ;;
5690 RANLIB=$ac_ct_RANLIB
5693 RANLIB="$ac_cv_prog_RANLIB"
5696 test -z "$RANLIB" && RANLIB=:
5703 # Determine commands to create old-style static archives.
5704 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5705 old_postinstall_cmds='chmod 644 $oldlib'
5706 old_postuninstall_cmds=
5708 if test -n "$RANLIB"; then
5711 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5714 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5717 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5753 # If no C compiler was specified, use CC.
5756 # If no C compiler flags were specified, use CFLAGS.
5757 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5759 # Allow CC to be a program name with arguments.
5763 # Check for command to grab the raw symbol name followed by C symbol from nm.
5764 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5765 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5766 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5767 $as_echo_n "(cached
) " >&6
5770 # These are sane defaults that work on at least a few old systems.
5771 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5773 # Character class describing NM global symbol codes.
5774 symcode='[BCDEGRST]'
5776 # Regexp to match symbols that can be accessed directly from C.
5777 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5779 # Define system-specific variables.
5784 cygwin* | mingw* | pw32* | cegcc*)
5785 symcode='[ABCDGISTW]'
5788 if test "$host_cpu" = ia64; then
5789 symcode='[ABCDEGRST]'
5793 symcode='[BCDEGRST]'
5796 symcode='[BCDEGQRST]'
5807 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5815 # If we're using GNU nm, then use its standard symbol codes.
5816 case `$NM -V 2>&1` in
5817 *GNU* | *'with BFD'*)
5818 symcode='[ABCDGIRSTW]' ;;
5821 # Transform an extracted symbol line into a proper C declaration.
5822 # Some systems (esp. on ia64) link data and code symbols differently,
5823 # so use this general approach.
5824 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5826 # Transform an extracted symbol line into symbol name and symbol address
5827 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5828 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'"
5830 # Handle CRLF in mingw tool chain
5834 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5838 # Try without a prefix underscore, then with it.
5839 for ac_symprfx in "" "_
"; do
5841 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5842 symxfrm="\\1 $ac_symprfx\\2 \\2"
5844 # Write the raw and C identifiers.
5845 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5846 # Fake it for dumpbin and say T for any non-static function
5847 # and D for any global variable.
5848 # Also find C++ and __fastcall symbols from MSVC++,
5849 # which start with @ or ?.
5850 lt_cv_sys_global_symbol_pipe="$AWK '"\
5851 " {last_section=section; section=\$ 3};"\
5852 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5853 " \$ 0!~/External *\|/{next};"\
5854 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5855 " {if(hide[section]) next};"\
5856 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5857 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5858 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5859 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5860 " ' prfx
=^
$ac_symprfx"
5862 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5865 # Check to see that the pipe works correctly.
5869 cat > conftest.$ac_ext <<_LT_EOF
5874 void nm_test_func(void);
5875 void nm_test_func(void){}
5879 int main(){nm_test_var='a';nm_test_func();return(0);}
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>&5
5885 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5886 (exit $ac_status); }; then
5887 # Now try to grab the symbols.
5889 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5890 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5892 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5893 (exit $ac_status); } && test -s "$nlist"; then
5894 # Try sorting and uniquifying the output.
5895 if sort "$nlist" | uniq > "$nlist"T; then
5896 mv -f "$nlist"T "$nlist"
5901 # Make sure that we snagged all the symbols we need.
5902 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5903 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5904 cat <<_LT_EOF > conftest.$ac_ext
5910 # Now generate the symbol file.
5911 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5913 cat <<_LT_EOF >> conftest.$ac_ext
5915 /* The mapping between symbol names and symbols. */
5920 lt__PROGRAM__LTX_preloaded_symbols[] =
5922 { "@PROGRAM@
", (void *) 0 },
5924 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5925 cat <<\_LT_EOF >> conftest.$ac_ext
5929 /* This works around a problem in FreeBSD linker */
5930 #ifdef FREEBSD_WORKAROUND
5931 static const void *lt_preloaded_setup() {
5932 return lt__PROGRAM__LTX_preloaded_symbols;
5940 # Now try linking the two files.
5941 mv conftest.$ac_objext conftstm.$ac_objext
5942 lt_save_LIBS="$LIBS"
5943 lt_save_CFLAGS="$CFLAGS"
5944 LIBS="conftstm.
$ac_objext"
5945 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947 (eval $ac_link) 2>&5
5949 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5950 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5953 LIBS="$lt_save_LIBS"
5954 CFLAGS="$lt_save_CFLAGS"
5956 echo "cannot
find nm_test_func
in $nlist" >&5
5959 echo "cannot
find nm_test_var
in $nlist" >&5
5962 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5965 echo "$progname: failed program was
:" >&5
5966 cat conftest.$ac_ext >&5
5968 rm -rf conftest* conftst*
5970 # Do not use the global_symbol_pipe unless it works.
5971 if test "$pipe_works" = yes; then
5974 lt_cv_sys_global_symbol_pipe=
5980 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5981 lt_cv_sys_global_symbol_to_cdecl=
5983 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5984 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
5985 $as_echo "failed
" >&6; }
5987 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
5988 $as_echo "ok
" >&6; }
6013 # Check whether --enable-libtool-lock was given.
6014 if test "${enable_libtool_lock+set}" = set; then
6015 enableval=$enable_libtool_lock;
6018 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6020 # Some flags need to be propagated to the compiler or linker for good
6024 # Find out which ABI we are using.
6025 echo 'int i;' > conftest.$ac_ext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>&5
6029 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6030 (exit $ac_status); }; then
6031 case `/usr/bin/file conftest.$ac_objext` in
6043 # Find out which ABI we are using.
6044 echo '#line 6044 "configure
"' > conftest.$ac_ext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>&5
6048 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6049 (exit $ac_status); }; then
6050 if test "$lt_cv_prog_gnu_ld" = yes; then
6051 case `/usr/bin/file conftest.$ac_objext` in
6053 LD="${LD-ld} -melf32bsmip"
6056 LD="${LD-ld} -melf32bmipn32"
6059 LD="${LD-ld} -melf64bmip"
6063 case `/usr/bin/file conftest.$ac_objext` in
6079 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6080 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6081 # Find out which ABI we are using.
6082 echo 'int i;' > conftest.$ac_ext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084 (eval $ac_compile) 2>&5
6086 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6087 (exit $ac_status); }; then
6088 case `/usr/bin/file conftest.o` in
6091 x86_64-*kfreebsd*-gnu)
6092 LD="${LD-ld} -m elf_i386_fbsd
"
6095 LD="${LD-ld} -m elf_i386
"
6097 ppc64-*linux*|powerpc64-*linux*)
6098 LD="${LD-ld} -m elf32ppclinux
"
6101 LD="${LD-ld} -m elf_s390
"
6104 LD="${LD-ld} -m elf32_sparc
"
6110 x86_64-*kfreebsd*-gnu)
6111 LD="${LD-ld} -m elf_x86_64_fbsd
"
6114 LD="${LD-ld} -m elf_x86_64
"
6116 ppc*-*linux*|powerpc*-*linux*)
6117 LD="${LD-ld} -m elf64ppc
"
6119 s390*-*linux*|s390*-*tpf*)
6120 LD="${LD-ld} -m elf64_s390
"
6123 LD="${LD-ld} -m elf64_sparc
"
6133 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6134 SAVE_CFLAGS="$CFLAGS"
6135 CFLAGS="$CFLAGS -belf"
6136 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6137 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6138 if test "${lt_cv_cc_needs_belf+set}" = set; then
6139 $as_echo_n "(cached
) " >&6
6142 ac_cpp='$CPP $CPPFLAGS'
6143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (ac_try="$ac_link"
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6168 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6169 $as_echo "$ac_try_echo") >&5
6170 (eval "$ac_link") 2>conftest.er1
6172 grep -v '^ *+' conftest.er1 >conftest.err
6174 cat conftest.err >&5
6175 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6176 (exit $ac_status); } && {
6177 test -z "$ac_c_werror_flag" ||
6178 test ! -s conftest.err
6179 } && test -s conftest$ac_exeext && {
6180 test "$cross_compiling" = yes ||
6181 $as_test_x conftest$ac_exeext
6183 lt_cv_cc_needs_belf=yes
6185 $as_echo "$as_me: failed program was
:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6188 lt_cv_cc_needs_belf=no
6191 rm -rf conftest.dSYM
6192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6193 conftest$ac_exeext conftest.$ac_ext
6195 ac_cpp='$CPP $CPPFLAGS'
6196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6201 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6202 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6203 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6204 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6205 CFLAGS="$SAVE_CFLAGS"
6209 # Find out which ABI we are using.
6210 echo 'int i;' > conftest.$ac_ext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>&5
6214 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6215 (exit $ac_status); }; then
6216 case `/usr/bin/file conftest.o` in
6218 case $lt_cv_prog_gnu_ld in
6219 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6221 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6233 need_locks="$enable_libtool_lock"
6237 rhapsody* | darwin*)
6238 if test -n "$ac_tool_prefix"; then
6239 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6240 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6241 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6242 $as_echo_n "checking
for $ac_word...
" >&6; }
6243 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6244 $as_echo_n "(cached
) " >&6
6246 if test -n "$DSYMUTIL"; then
6247 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6257 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6266 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6267 if test -n "$DSYMUTIL"; then
6268 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6269 $as_echo "$DSYMUTIL" >&6; }
6271 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6272 $as_echo "no
" >&6; }
6277 if test -z "$ac_cv_prog_DSYMUTIL"; then
6278 ac_ct_DSYMUTIL=$DSYMUTIL
6279 # Extract the first word of "dsymutil
", so it can be a program name with args.
6280 set dummy dsymutil; ac_word=$2
6281 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6282 $as_echo_n "checking
for $ac_word...
" >&6; }
6283 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6284 $as_echo_n "(cached
) " >&6
6286 if test -n "$ac_ct_DSYMUTIL"; then
6287 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6297 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6306 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6307 if test -n "$ac_ct_DSYMUTIL"; then
6308 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6309 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6311 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6312 $as_echo "no
" >&6; }
6315 if test "x
$ac_ct_DSYMUTIL" = x; then
6318 case $cross_compiling:$ac_tool_warned in
6320 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6321 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6322 ac_tool_warned=yes ;;
6324 DSYMUTIL=$ac_ct_DSYMUTIL
6327 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6330 if test -n "$ac_tool_prefix"; then
6331 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6332 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6333 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6334 $as_echo_n "checking
for $ac_word...
" >&6; }
6335 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6336 $as_echo_n "(cached
) " >&6
6338 if test -n "$NMEDIT"; then
6339 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6349 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6358 NMEDIT=$ac_cv_prog_NMEDIT
6359 if test -n "$NMEDIT"; then
6360 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6361 $as_echo "$NMEDIT" >&6; }
6363 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6364 $as_echo "no
" >&6; }
6369 if test -z "$ac_cv_prog_NMEDIT"; then
6370 ac_ct_NMEDIT=$NMEDIT
6371 # Extract the first word of "nmedit
", so it can be a program name with args.
6372 set dummy nmedit; ac_word=$2
6373 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6374 $as_echo_n "checking
for $ac_word...
" >&6; }
6375 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6376 $as_echo_n "(cached
) " >&6
6378 if test -n "$ac_ct_NMEDIT"; then
6379 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6389 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6398 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6399 if test -n "$ac_ct_NMEDIT"; then
6400 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6401 $as_echo "$ac_ct_NMEDIT" >&6; }
6403 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6404 $as_echo "no
" >&6; }
6407 if test "x
$ac_ct_NMEDIT" = x; then
6410 case $cross_compiling:$ac_tool_warned in
6412 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6413 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6414 ac_tool_warned=yes ;;
6416 NMEDIT=$ac_ct_NMEDIT
6419 NMEDIT="$ac_cv_prog_NMEDIT"
6422 if test -n "$ac_tool_prefix"; then
6423 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6424 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6425 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6426 $as_echo_n "checking
for $ac_word...
" >&6; }
6427 if test "${ac_cv_prog_LIPO+set}" = set; then
6428 $as_echo_n "(cached
) " >&6
6430 if test -n "$LIPO"; then
6431 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6441 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6450 LIPO=$ac_cv_prog_LIPO
6451 if test -n "$LIPO"; then
6452 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6453 $as_echo "$LIPO" >&6; }
6455 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6456 $as_echo "no
" >&6; }
6461 if test -z "$ac_cv_prog_LIPO"; then
6463 # Extract the first word of "lipo
", so it can be a program name with args.
6464 set dummy lipo; ac_word=$2
6465 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6466 $as_echo_n "checking
for $ac_word...
" >&6; }
6467 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6468 $as_echo_n "(cached
) " >&6
6470 if test -n "$ac_ct_LIPO"; then
6471 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_prog_ac_ct_LIPO="lipo
"
6481 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6490 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6491 if test -n "$ac_ct_LIPO"; then
6492 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6493 $as_echo "$ac_ct_LIPO" >&6; }
6495 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6496 $as_echo "no
" >&6; }
6499 if test "x
$ac_ct_LIPO" = x; then
6502 case $cross_compiling:$ac_tool_warned in
6504 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6505 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6506 ac_tool_warned=yes ;;
6511 LIPO="$ac_cv_prog_LIPO"
6514 if test -n "$ac_tool_prefix"; then
6515 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}otool; ac_word=$2
6517 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6518 $as_echo_n "checking
for $ac_word...
" >&6; }
6519 if test "${ac_cv_prog_OTOOL+set}" = set; then
6520 $as_echo_n "(cached
) " >&6
6522 if test -n "$OTOOL"; then
6523 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6533 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6542 OTOOL=$ac_cv_prog_OTOOL
6543 if test -n "$OTOOL"; then
6544 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6545 $as_echo "$OTOOL" >&6; }
6547 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6548 $as_echo "no
" >&6; }
6553 if test -z "$ac_cv_prog_OTOOL"; then
6555 # Extract the first word of "otool
", so it can be a program name with args.
6556 set dummy otool; ac_word=$2
6557 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6558 $as_echo_n "checking
for $ac_word...
" >&6; }
6559 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6560 $as_echo_n "(cached
) " >&6
6562 if test -n "$ac_ct_OTOOL"; then
6563 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_ac_ct_OTOOL="otool
"
6573 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6582 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6583 if test -n "$ac_ct_OTOOL"; then
6584 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6585 $as_echo "$ac_ct_OTOOL" >&6; }
6587 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6588 $as_echo "no
" >&6; }
6591 if test "x
$ac_ct_OTOOL" = x; then
6594 case $cross_compiling:$ac_tool_warned in
6596 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6597 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6598 ac_tool_warned=yes ;;
6603 OTOOL="$ac_cv_prog_OTOOL"
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6609 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6610 $as_echo_n "checking
for $ac_word...
" >&6; }
6611 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6612 $as_echo_n "(cached
) " >&6
6614 if test -n "$OTOOL64"; then
6615 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6625 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6634 OTOOL64=$ac_cv_prog_OTOOL64
6635 if test -n "$OTOOL64"; then
6636 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6637 $as_echo "$OTOOL64" >&6; }
6639 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6640 $as_echo "no
" >&6; }
6645 if test -z "$ac_cv_prog_OTOOL64"; then
6646 ac_ct_OTOOL64=$OTOOL64
6647 # Extract the first word of "otool64
", so it can be a program name with args.
6648 set dummy otool64; ac_word=$2
6649 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6650 $as_echo_n "checking
for $ac_word...
" >&6; }
6651 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6652 $as_echo_n "(cached
) " >&6
6654 if test -n "$ac_ct_OTOOL64"; then
6655 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6665 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6674 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6675 if test -n "$ac_ct_OTOOL64"; then
6676 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6677 $as_echo "$ac_ct_OTOOL64" >&6; }
6679 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6680 $as_echo "no
" >&6; }
6683 if test "x
$ac_ct_OTOOL64" = x; then
6686 case $cross_compiling:$ac_tool_warned in
6688 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6689 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6690 ac_tool_warned=yes ;;
6692 OTOOL64=$ac_ct_OTOOL64
6695 OTOOL64="$ac_cv_prog_OTOOL64"
6724 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6725 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6726 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6727 $as_echo_n "(cached
) " >&6
6729 lt_cv_apple_cc_single_mod=no
6730 if test -z "${LT_MULTI_MODULE}"; then
6731 # By default we will add the -single_module flag. You can override
6732 # by either setting the environment variable LT_MULTI_MODULE
6733 # non-empty at configure time, or by adding -multi_module to the
6735 rm -rf libconftest.dylib*
6736 echo "int foo
(void
){return 1;}" > conftest.c
6737 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6738 -dynamiclib -Wl,-single_module conftest.c
" >&5
6739 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6740 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6742 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6743 lt_cv_apple_cc_single_mod=yes
6745 cat conftest.err >&5
6747 rm -rf libconftest.dylib*
6751 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6752 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6753 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6754 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6755 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6756 $as_echo_n "(cached
) " >&6
6758 lt_cv_ld_exported_symbols_list=no
6759 save_LDFLAGS=$LDFLAGS
6760 echo "_main
" > conftest.sym
6761 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6762 cat >conftest.$ac_ext <<_ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6777 rm -f conftest.$ac_objext conftest$ac_exeext
6778 if { (ac_try="$ac_link"
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6783 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6784 $as_echo "$ac_try_echo") >&5
6785 (eval "$ac_link") 2>conftest.er1
6787 grep -v '^ *+' conftest.er1 >conftest.err
6789 cat conftest.err >&5
6790 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest$ac_exeext && {
6795 test "$cross_compiling" = yes ||
6796 $as_test_x conftest$ac_exeext
6798 lt_cv_ld_exported_symbols_list=yes
6800 $as_echo "$as_me: failed program was
:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 lt_cv_ld_exported_symbols_list=no
6806 rm -rf conftest.dSYM
6807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6808 conftest$ac_exeext conftest.$ac_ext
6809 LDFLAGS="$save_LDFLAGS"
6812 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6813 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6815 rhapsody* | darwin1.[012])
6816 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6818 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6819 darwin*) # darwin 5.x on
6820 # if running on 10.5 or later, the deployment target defaults
6821 # to the OS version, if on x86, and 10.4, the deployment
6822 # target defaults to 10.4. Don't you love it?
6823 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6824 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6825 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6827 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6829 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6833 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6834 _lt_dar_single_mod='$single_module'
6836 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6837 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6839 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6841 if test "$DSYMUTIL" != ":"; then
6842 _lt_dsymutil='~$DSYMUTIL $lib || :'
6850 ac_cpp='$CPP $CPPFLAGS'
6851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6854 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6855 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6856 # On Suns, sometimes $CPP names a directory.
6857 if test -n "$CPP" && test -d "$CPP"; then
6860 if test -z "$CPP"; then
6861 if test "${ac_cv_prog_CPP+set}" = set; then
6862 $as_echo_n "(cached
) " >&6
6864 # Double quotes because CPP needs to be expanded
6865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6868 for ac_c_preproc_warn_flag in '' yes
6870 # Use a header file that comes with gcc, so configuring glibc
6871 # with a fresh cross-compiler works.
6872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873 # <limits.h> exists even on freestanding compilers.
6874 # On the NeXT, cc -E runs the code through the compiler's parser,
6875 # not just through cpp. "Syntax error
" is here to catch this case.
6876 cat >conftest.$ac_ext <<_ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6883 # include <limits.h>
6885 # include <assert.h>
6889 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6894 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6898 grep -v '^ *+' conftest.er1 >conftest.err
6900 cat conftest.err >&5
6901 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6902 (exit $ac_status); } >/dev/null && {
6903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6908 $as_echo "$as_me: failed program was
:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6911 # Broken: fails on valid input.
6915 rm -f conftest.err conftest.$ac_ext
6917 # OK, works on sane cases. Now check whether nonexistent headers
6918 # can be detected and how.
6919 cat >conftest.$ac_ext <<_ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 #include <ac_nonexistent.h>
6927 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6930 *) ac_try_echo=$ac_try;;
6932 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6933 $as_echo "$ac_try_echo") >&5
6934 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6936 grep -v '^ *+' conftest.er1 >conftest.err
6938 cat conftest.err >&5
6939 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6940 (exit $ac_status); } >/dev/null && {
6941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6944 # Broken: success on invalid input.
6947 $as_echo "$as_me: failed program was
:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6950 # Passes both tests.
6955 rm -f conftest.err conftest.$ac_ext
6958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6959 rm -f conftest.err conftest.$ac_ext
6960 if $ac_preproc_ok; then
6972 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
6973 $as_echo "$CPP" >&6; }
6975 for ac_c_preproc_warn_flag in '' yes
6977 # Use a header file that comes with gcc, so configuring glibc
6978 # with a fresh cross-compiler works.
6979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6980 # <limits.h> exists even on freestanding compilers.
6981 # On the NeXT, cc -E runs the code through the compiler's parser,
6982 # not just through cpp. "Syntax error
" is here to catch this case.
6983 cat >conftest.$ac_ext <<_ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6990 # include <limits.h>
6992 # include <assert.h>
6996 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6999 *) ac_try_echo=$ac_try;;
7001 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7002 $as_echo "$ac_try_echo") >&5
7003 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7005 grep -v '^ *+' conftest.er1 >conftest.err
7007 cat conftest.err >&5
7008 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7009 (exit $ac_status); } >/dev/null && {
7010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7015 $as_echo "$as_me: failed program was
:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7018 # Broken: fails on valid input.
7022 rm -f conftest.err conftest.$ac_ext
7024 # OK, works on sane cases. Now check whether nonexistent headers
7025 # can be detected and how.
7026 cat >conftest.$ac_ext <<_ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 #include <ac_nonexistent.h>
7034 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037 *) ac_try_echo=$ac_try;;
7039 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7040 $as_echo "$ac_try_echo") >&5
7041 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7043 grep -v '^ *+' conftest.er1 >conftest.err
7045 cat conftest.err >&5
7046 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7047 (exit $ac_status); } >/dev/null && {
7048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7049 test ! -s conftest.err
7051 # Broken: success on invalid input.
7054 $as_echo "$as_me: failed program was
:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7057 # Passes both tests.
7062 rm -f conftest.err conftest.$ac_ext
7065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7066 rm -f conftest.err conftest.$ac_ext
7067 if $ac_preproc_ok; then
7070 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7072 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7073 See \`config.log' for more details.
" >&5
7074 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7075 See \
`config.log' for more details." >&2;}
7076 { (exit 1); exit 1; }; }; }
7080 ac_cpp='$CPP $CPPFLAGS'
7081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7086 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7087 $as_echo_n "checking for ANSI C header files... " >&6; }
7088 if test "${ac_cv_header_stdc+set}" = set; then
7089 $as_echo_n "(cached) " >&6
7091 cat >conftest.$ac_ext <<_ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7110 rm -f conftest.$ac_objext
7111 if { (ac_try="$ac_compile"
7113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7114 *) ac_try_echo
=$ac_try;;
7116 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7117 $as_echo "$ac_try_echo") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1
>conftest.err
7122 cat conftest.err
>&5
7123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.
$ac_objext; then
7128 ac_cv_header_stdc
=yes
7130 $as_echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.
$ac_ext >&5
7133 ac_cv_header_stdc
=no
7136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7138 if test $ac_cv_header_stdc = yes; then
7139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7140 cat >conftest.
$ac_ext <<_ACEOF
7143 cat confdefs.h
>>conftest.
$ac_ext
7144 cat >>conftest.
$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7150 $EGREP "memchr" >/dev
/null
2>&1; then
7153 ac_cv_header_stdc
=no
7159 if test $ac_cv_header_stdc = yes; then
7160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7161 cat >conftest.
$ac_ext <<_ACEOF
7164 cat confdefs.h
>>conftest.
$ac_ext
7165 cat >>conftest.
$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7171 $EGREP "free" >/dev
/null
2>&1; then
7174 ac_cv_header_stdc
=no
7180 if test $ac_cv_header_stdc = yes; then
7181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7182 if test "$cross_compiling" = yes; then
7185 cat >conftest.
$ac_ext <<_ACEOF
7188 cat confdefs.h
>>conftest.
$ac_ext
7189 cat >>conftest.
$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7193 #if ((' ' & 0x0FF) == 0x020)
7194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7197 # define ISLOWER(c) \
7198 (('a' <= (c) && (c) <= 'i') \
7199 || ('j' <= (c) && (c) <= 'r') \
7200 || ('s' <= (c) && (c) <= 'z'))
7201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7209 for (i = 0; i < 256; i++)
7210 if (XOR (islower (i), ISLOWER (i))
7211 || toupper (i) != TOUPPER (i))
7216 rm -f conftest
$ac_exeext
7217 if { (ac_try
="$ac_link"
7219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7220 *) ac_try_echo=$ac_try;;
7222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7223 $as_echo "$ac_try_echo") >&5
7224 (eval "$ac_link") 2>&5
7226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7228 { (case "(($ac_try" in
7229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7230 *) ac_try_echo
=$ac_try;;
7232 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7233 $as_echo "$ac_try_echo") >&5
7234 (eval "$ac_try") 2>&5
7236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7240 $as_echo "$as_me: program exited with status $ac_status" >&5
7241 $as_echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.
$ac_ext >&5
7245 ac_cv_header_stdc
=no
7247 rm -rf conftest.dSYM
7248 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7255 $as_echo "$ac_cv_header_stdc" >&6; }
7256 if test $ac_cv_header_stdc = yes; then
7258 cat >>confdefs.h
<<\_ACEOF
7259 #define STDC_HEADERS 1
7264 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7274 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7275 inttypes.h stdint.h unistd.h
7277 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7278 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7279 $as_echo_n "checking for $ac_header... " >&6; }
7280 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7281 $as_echo_n "(cached) " >&6
7283 cat >conftest.
$ac_ext <<_ACEOF
7286 cat confdefs.h
>>conftest.
$ac_ext
7287 cat >>conftest.
$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7291 #include <$ac_header>
7293 rm -f conftest.
$ac_objext
7294 if { (ac_try
="$ac_compile"
7296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7300 $as_echo "$ac_try_echo") >&5
7301 (eval "$ac_compile") 2>conftest.er1
7303 grep -v '^ *+' conftest.er1 >conftest.err
7305 cat conftest.err >&5
7306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } && {
7308 test -z "$ac_c_werror_flag" ||
7309 test ! -s conftest.err
7310 } && test -s conftest.$ac_objext; then
7311 eval "$as_ac_Header=yes"
7313 $as_echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7316 eval "$as_ac_Header=no"
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321 ac_res=`eval 'as_val=${'$as_ac_Header'}
7322 $as_echo "$as_val"'`
7323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7324 $as_echo "$ac_res" >&6; }
7325 as_val=`eval 'as_val=${'$as_ac_Header'}
7326 $as_echo "$as_val"'`
7327 if test "x$as_val" = x""yes; then
7328 cat >>confdefs.h <<_ACEOF
7329 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7338 for ac_header in dlfcn.h
7340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7342 $as_echo_n "checking for $ac_header... " >&6; }
7343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7344 $as_echo_n "(cached) " >&6
7346 cat >conftest.$ac_ext <<_ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h. */
7352 $ac_includes_default
7354 #include <$ac_header>
7356 rm -f conftest.$ac_objext
7357 if { (ac_try="$ac_compile"
7359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7360 *) ac_try_echo
=$ac_try;;
7362 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7363 $as_echo "$ac_try_echo") >&5
7364 (eval "$ac_compile") 2>conftest.er1
7366 grep -v '^ *+' conftest.er1
>conftest.err
7368 cat conftest.err
>&5
7369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && {
7371 test -z "$ac_c_werror_flag" ||
7372 test ! -s conftest.err
7373 } && test -s conftest.
$ac_objext; then
7374 eval "$as_ac_Header=yes"
7376 $as_echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.
$ac_ext >&5
7379 eval "$as_ac_Header=no"
7382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7384 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7385 $as_echo "$as_val"'`
7386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7387 $as_echo "$ac_res" >&6; }
7388 as_val
=`eval 'as_val=${'$as_ac_Header'}
7389 $as_echo "$as_val"'`
7390 if test "x$as_val" = x
""yes; then
7391 cat >>confdefs.h
<<_ACEOF
7392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7411 # Check whether --enable-shared was given.
7412 if test "${enable_shared+set}" = set; then
7413 enableval
=$enable_shared; p
=${PACKAGE-default}
7415 yes) enable_shared
=yes ;;
7416 no
) enable_shared
=no
;;
7419 # Look at the argument we got. We use all the common list separators.
7420 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7421 for pkg
in $enableval; do
7423 if test "X$pkg" = "X$p"; then
7442 # Check whether --enable-static was given.
7443 if test "${enable_static+set}" = set; then
7444 enableval
=$enable_static; p
=${PACKAGE-default}
7446 yes) enable_static
=yes ;;
7447 no
) enable_static
=no
;;
7450 # Look at the argument we got. We use all the common list separators.
7451 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7452 for pkg
in $enableval; do
7454 if test "X$pkg" = "X$p"; then
7474 # Check whether --with-pic was given.
7475 if test "${with_pic+set}" = set; then
7476 withval
=$with_pic; pic_mode
="$withval"
7482 test -z "$pic_mode" && pic_mode
=default
7490 # Check whether --enable-fast-install was given.
7491 if test "${enable_fast_install+set}" = set; then
7492 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7494 yes) enable_fast_install
=yes ;;
7495 no
) enable_fast_install
=no
;;
7497 enable_fast_install
=no
7498 # Look at the argument we got. We use all the common list separators.
7499 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7500 for pkg
in $enableval; do
7502 if test "X$pkg" = "X$p"; then
7503 enable_fast_install
=yes
7510 enable_fast_install
=yes
7523 # This can be used to rebuild libtool when needed
7524 LIBTOOL_DEPS
="$ltmain"
7526 # Always use our own libtool.
7527 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7553 test -z "$LN_S" && LN_S
="ln -s"
7568 if test -n "${ZSH_VERSION+set}" ; then
7569 setopt NO_GLOB_SUBST
7572 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7573 $as_echo_n "checking for objdir... " >&6; }
7574 if test "${lt_cv_objdir+set}" = set; then
7575 $as_echo_n "(cached) " >&6
7577 rm -f .libs
2>/dev
/null
7578 mkdir .libs
2>/dev
/null
7579 if test -d .libs
; then
7582 # MS-DOS does not allow filenames that begin with a dot.
7585 rmdir .libs
2>/dev
/null
7587 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7588 $as_echo "$lt_cv_objdir" >&6; }
7589 objdir
=$lt_cv_objdir
7595 cat >>confdefs.h
<<_ACEOF
7596 #define LT_OBJDIR "$lt_cv_objdir/"
7617 # AIX sometimes has problems with the GCC collect2 program. For some
7618 # reason, if we set the COLLECT_NAMES environment variable, the problems
7619 # vanish in a puff of smoke.
7620 if test "X${COLLECT_NAMES+set}" != Xset
; then
7622 export COLLECT_NAMES
7627 # Sed substitution that helps us do robust quoting. It backslashifies
7628 # metacharacters that are still active within double-quoted strings.
7629 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7631 # Same as above, but do not quote variable references.
7632 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7634 # Sed substitution to delay expansion of an escaped shell variable in a
7635 # double_quote_subst'ed string.
7636 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7638 # Sed substitution to delay expansion of an escaped single quote.
7639 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7641 # Sed substitution to avoid accidental globbing in evaled expressions
7642 no_glob_subst
='s/\*/\\\*/g'
7646 can_build_shared
=yes
7648 # All known linkers require a `.a' archive for static linking (except MSVC,
7649 # which needs '.lib').
7652 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7655 old_CFLAGS
="$CFLAGS"
7657 # Set sane defaults for various variables
7658 test -z "$CC" && CC
=cc
7659 test -z "$LTCC" && LTCC
=$CC
7660 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7661 test -z "$LD" && LD
=ld
7662 test -z "$ac_objext" && ac_objext
=o
7664 for cc_temp
in $compiler""; do
7666 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7667 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7672 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7675 # Only perform the check for file, if the check method requires it
7676 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7677 case $deplibs_check_method in
7679 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7680 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7681 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7682 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7683 $as_echo_n "(cached) " >&6
7687 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7690 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7691 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7692 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7693 for ac_dir
in $ac_dummy; do
7695 test -z "$ac_dir" && ac_dir
=.
7696 if test -f $ac_dir/${ac_tool_prefix}file; then
7697 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7698 if test -n "$file_magic_test_file"; then
7699 case $deplibs_check_method in
7701 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7702 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7703 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7704 $EGREP "$file_magic_regex" > /dev
/null
; then
7709 *** Warning: the command libtool uses to detect shared libraries,
7710 *** $file_magic_cmd, produces output that libtool cannot recognize.
7711 *** The result is that libtool may fail to recognize shared libraries
7712 *** as such. This will affect the creation of libtool libraries that
7713 *** depend on shared libraries, but programs linked with such libtool
7714 *** libraries will work regardless of this problem. Nevertheless, you
7715 *** may want to report the problem to your system manager and/or to
7716 *** bug-libtool@gnu.org
7726 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7731 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7732 if test -n "$MAGIC_CMD"; then
7733 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7734 $as_echo "$MAGIC_CMD" >&6; }
7736 { $as_echo "$as_me:$LINENO: result: no" >&5
7737 $as_echo "no" >&6; }
7744 if test -z "$lt_cv_path_MAGIC_CMD"; then
7745 if test -n "$ac_tool_prefix"; then
7746 { $as_echo "$as_me:$LINENO: checking for file" >&5
7747 $as_echo_n "checking for file... " >&6; }
7748 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7749 $as_echo_n "(cached) " >&6
7753 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7756 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7757 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7758 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7759 for ac_dir
in $ac_dummy; do
7761 test -z "$ac_dir" && ac_dir
=.
7762 if test -f $ac_dir/file; then
7763 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7764 if test -n "$file_magic_test_file"; then
7765 case $deplibs_check_method in
7767 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7768 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7769 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7770 $EGREP "$file_magic_regex" > /dev
/null
; then
7775 *** Warning: the command libtool uses to detect shared libraries,
7776 *** $file_magic_cmd, produces output that libtool cannot recognize.
7777 *** The result is that libtool may fail to recognize shared libraries
7778 *** as such. This will affect the creation of libtool libraries that
7779 *** depend on shared libraries, but programs linked with such libtool
7780 *** libraries will work regardless of this problem. Nevertheless, you
7781 *** may want to report the problem to your system manager and/or to
7782 *** bug-libtool@gnu.org
7792 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7797 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7798 if test -n "$MAGIC_CMD"; then
7799 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7800 $as_echo "$MAGIC_CMD" >&6; }
7802 { $as_echo "$as_me:$LINENO: result: no" >&5
7803 $as_echo "no" >&6; }
7816 # Use C for the default configuration in the libtool script
7820 ac_cpp
='$CPP $CPPFLAGS'
7821 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7826 # Source file extension for C test sources.
7829 # Object file extension for compiled C test sources.
7833 # Code to be used in simple compile tests
7834 lt_simple_compile_test_code
="int some_variable = 0;"
7836 # Code to be used in simple link tests
7837 lt_simple_link_test_code
='int main(){return(0);}'
7845 # If no C compiler was specified, use CC.
7848 # If no C compiler flags were specified, use CFLAGS.
7849 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7851 # Allow CC to be a program name with arguments.
7854 # Save the default compiler, since it gets overwritten when the other
7855 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7856 compiler_DEFAULT
=$CC
7858 # save warnings/boilerplate of simple test code
7859 ac_outfile
=conftest.
$ac_objext
7860 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7861 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7862 _lt_compiler_boilerplate
=`cat conftest.err`
7865 ac_outfile
=conftest.
$ac_objext
7866 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7867 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7868 _lt_linker_boilerplate
=`cat conftest.err`
7872 if test -n "$compiler"; then
7874 lt_prog_compiler_no_builtin_flag
=
7876 if test "$GCC" = yes; then
7877 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7879 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7880 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7881 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7882 $as_echo_n "(cached) " >&6
7884 lt_cv_prog_compiler_rtti_exceptions
=no
7885 ac_outfile
=conftest.
$ac_objext
7886 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7887 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7888 # Insert the option either (1) after the last *FLAGS variable, or
7889 # (2) before a word containing "conftest.", or (3) at the end.
7890 # Note that $ac_compile itself does not contain backslashes and begins
7891 # with a dollar sign (not a hyphen), so the echo should work correctly.
7892 # The option is referenced via a variable to avoid confusing sed.
7893 lt_compile
=`echo "$ac_compile" | $SED \
7894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7896 -e 's:$: $lt_compiler_flag:'`
7897 (eval echo "\"\$as_me:7897: $lt_compile\"" >&5)
7898 (eval "$lt_compile" 2>conftest.err
)
7900 cat conftest.err
>&5
7901 echo "$as_me:7901: \$? = $ac_status" >&5
7902 if (exit $ac_status) && test -s "$ac_outfile"; then
7903 # The compiler can only warn and ignore the option if not recognized
7904 # So say no if there are warnings other than the usual output.
7905 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7906 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7907 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7908 lt_cv_prog_compiler_rtti_exceptions
=yes
7914 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7915 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7917 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7918 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7930 lt_prog_compiler_wl
=
7931 lt_prog_compiler_pic
=
7932 lt_prog_compiler_static
=
7934 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7935 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7937 if test "$GCC" = yes; then
7938 lt_prog_compiler_wl
='-Wl,'
7939 lt_prog_compiler_static
='-static'
7943 # All AIX code is PIC.
7944 if test "$host_cpu" = ia64
; then
7945 # AIX 5 now supports IA64 processor
7946 lt_prog_compiler_static
='-Bstatic'
7953 # see comment about AmigaOS4 .so support
7954 lt_prog_compiler_pic
='-fPIC'
7957 # FIXME: we need at least 68020 code to build shared libraries, but
7958 # adding the `-m68020' flag to GCC prevents building anything better,
7960 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7965 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7966 # PIC is the default for these OSes.
7969 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7970 # This hack is so that the source file can tell whether it is being
7971 # built for inclusion in a dll (and should export symbols for example).
7972 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7973 # (--disable-auto-import) libraries
7974 lt_prog_compiler_pic
='-DDLL_EXPORT'
7977 darwin
* | rhapsody
*)
7978 # PIC is the default on this platform
7979 # Common symbols not allowed in MH_DYLIB files
7980 lt_prog_compiler_pic
='-fno-common'
7984 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7985 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7986 # sets the default TLS model and affects inlining.
7992 lt_prog_compiler_pic
='-fPIC'
7998 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7999 # Instead, we relocate shared libraries at runtime.
8003 # Just because we use GCC doesn't mean we suddenly get shared libraries
8004 # on systems that don't support them.
8005 lt_prog_compiler_can_build_shared
=no
8010 # QNX uses GNU C++, but need to define -shared option too, otherwise
8012 lt_prog_compiler_pic
='-fPIC -shared'
8016 if test -d /usr
/nec
; then
8017 lt_prog_compiler_pic
=-Kconform_pic
8022 lt_prog_compiler_pic
='-fPIC'
8026 # PORTME Check for flag to pass linker flags through the system compiler.
8029 lt_prog_compiler_wl
='-Wl,'
8030 if test "$host_cpu" = ia64
; then
8031 # AIX 5 now supports IA64 processor
8032 lt_prog_compiler_static
='-Bstatic'
8034 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8038 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8039 # This hack is so that the source file can tell whether it is being
8040 # built for inclusion in a dll (and should export symbols for example).
8041 lt_prog_compiler_pic
='-DDLL_EXPORT'
8044 hpux9
* | hpux10
* | hpux11
*)
8045 lt_prog_compiler_wl
='-Wl,'
8046 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8053 lt_prog_compiler_pic
='+Z'
8056 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8057 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8060 irix5
* | irix6
* | nonstopux
*)
8061 lt_prog_compiler_wl
='-Wl,'
8062 # PIC (with -KPIC) is the default.
8063 lt_prog_compiler_static
='-non_shared'
8066 linux
* | k
*bsd
*-gnu)
8067 case $cc_basename in
8068 # old Intel for x86_64 which still supported -KPIC.
8070 lt_prog_compiler_wl
='-Wl,'
8071 lt_prog_compiler_pic
='-KPIC'
8072 lt_prog_compiler_static
='-static'
8074 # icc used to be incompatible with GCC.
8075 # ICC 10 doesn't accept -KPIC any more.
8077 lt_prog_compiler_wl
='-Wl,'
8078 lt_prog_compiler_pic
='-fPIC'
8079 lt_prog_compiler_static
='-static'
8081 # Lahey Fortran 8.1.
8083 lt_prog_compiler_wl
='-Wl,'
8084 lt_prog_compiler_pic
='--shared'
8085 lt_prog_compiler_static
='--static'
8087 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8088 # Portland Group compilers (*not* the Pentium gcc compiler,
8089 # which looks to be a dead project)
8090 lt_prog_compiler_wl
='-Wl,'
8091 lt_prog_compiler_pic
='-fpic'
8092 lt_prog_compiler_static
='-Bstatic'
8095 lt_prog_compiler_wl
='-Wl,'
8096 # All Alpha code is PIC.
8097 lt_prog_compiler_static
='-non_shared'
8100 # IBM XL C 8.0/Fortran 10.1 on PPC
8101 lt_prog_compiler_wl
='-Wl,'
8102 lt_prog_compiler_pic
='-qpic'
8103 lt_prog_compiler_static
='-qstaticlink'
8106 case `$CC -V 2>&1 | sed 5q` in
8109 lt_prog_compiler_pic
='-KPIC'
8110 lt_prog_compiler_static
='-Bstatic'
8111 lt_prog_compiler_wl
='-Wl,'
8114 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8115 lt_prog_compiler_pic
='-KPIC'
8116 lt_prog_compiler_static
='-Bstatic'
8117 lt_prog_compiler_wl
=''
8125 lt_prog_compiler_pic
='-KPIC'
8126 lt_prog_compiler_static
='-Bstatic'
8130 # QNX uses GNU C++, but need to define -shared option too, otherwise
8132 lt_prog_compiler_pic
='-fPIC -shared'
8135 osf3
* | osf4
* | osf5
*)
8136 lt_prog_compiler_wl
='-Wl,'
8137 # All OSF/1 code is PIC.
8138 lt_prog_compiler_static
='-non_shared'
8142 lt_prog_compiler_static
='-non_shared'
8146 lt_prog_compiler_pic
='-KPIC'
8147 lt_prog_compiler_static
='-Bstatic'
8148 case $cc_basename in
8150 lt_prog_compiler_wl
='-Qoption ld ';;
8152 lt_prog_compiler_wl
='-Wl,';;
8157 lt_prog_compiler_wl
='-Qoption ld '
8158 lt_prog_compiler_pic
='-PIC'
8159 lt_prog_compiler_static
='-Bstatic'
8162 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8163 lt_prog_compiler_wl
='-Wl,'
8164 lt_prog_compiler_pic
='-KPIC'
8165 lt_prog_compiler_static
='-Bstatic'
8169 if test -d /usr
/nec
;then
8170 lt_prog_compiler_pic
='-Kconform_pic'
8171 lt_prog_compiler_static
='-Bstatic'
8175 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8176 lt_prog_compiler_wl
='-Wl,'
8177 lt_prog_compiler_pic
='-KPIC'
8178 lt_prog_compiler_static
='-Bstatic'
8182 lt_prog_compiler_wl
='-Wl,'
8183 lt_prog_compiler_can_build_shared
=no
8187 lt_prog_compiler_pic
='-pic'
8188 lt_prog_compiler_static
='-Bstatic'
8192 lt_prog_compiler_can_build_shared
=no
8198 # For platforms which do not support PIC, -DPIC is meaningless:
8200 lt_prog_compiler_pic
=
8203 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8206 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8207 $as_echo "$lt_prog_compiler_pic" >&6; }
8215 # Check to make sure the PIC flag actually works.
8217 if test -n "$lt_prog_compiler_pic"; then
8218 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8219 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8220 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8221 $as_echo_n "(cached) " >&6
8223 lt_cv_prog_compiler_pic_works
=no
8224 ac_outfile
=conftest.
$ac_objext
8225 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8226 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8227 # Insert the option either (1) after the last *FLAGS variable, or
8228 # (2) before a word containing "conftest.", or (3) at the end.
8229 # Note that $ac_compile itself does not contain backslashes and begins
8230 # with a dollar sign (not a hyphen), so the echo should work correctly.
8231 # The option is referenced via a variable to avoid confusing sed.
8232 lt_compile
=`echo "$ac_compile" | $SED \
8233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8235 -e 's:$: $lt_compiler_flag:'`
8236 (eval echo "\"\$as_me:8236: $lt_compile\"" >&5)
8237 (eval "$lt_compile" 2>conftest.err
)
8239 cat conftest.err
>&5
8240 echo "$as_me:8240: \$? = $ac_status" >&5
8241 if (exit $ac_status) && test -s "$ac_outfile"; then
8242 # The compiler can only warn and ignore the option if not recognized
8243 # So say no if there are warnings other than the usual output.
8244 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8245 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8246 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8247 lt_cv_prog_compiler_pic_works
=yes
8253 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8254 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8256 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8257 case $lt_prog_compiler_pic in
8259 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8262 lt_prog_compiler_pic
=
8263 lt_prog_compiler_can_build_shared
=no
8274 # Check to make sure the static flag actually works.
8276 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8277 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8278 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8279 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8280 $as_echo_n "(cached) " >&6
8282 lt_cv_prog_compiler_static_works
=no
8283 save_LDFLAGS
="$LDFLAGS"
8284 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8285 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8286 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8287 # The linker can only warn and ignore the option if not recognized
8288 # So say no if there are warnings
8289 if test -s conftest.err
; then
8290 # Append any errors to the config.log.
8291 cat conftest.err
1>&5
8292 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8293 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8294 if diff conftest.exp conftest.er2
>/dev
/null
; then
8295 lt_cv_prog_compiler_static_works
=yes
8298 lt_cv_prog_compiler_static_works
=yes
8302 LDFLAGS
="$save_LDFLAGS"
8305 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8306 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8308 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8311 lt_prog_compiler_static
=
8320 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8321 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8322 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8323 $as_echo_n "(cached) " >&6
8325 lt_cv_prog_compiler_c_o
=no
8326 $RM -r conftest
2>/dev
/null
8330 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8332 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8333 # Insert the option either (1) after the last *FLAGS variable, or
8334 # (2) before a word containing "conftest.", or (3) at the end.
8335 # Note that $ac_compile itself does not contain backslashes and begins
8336 # with a dollar sign (not a hyphen), so the echo should work correctly.
8337 lt_compile
=`echo "$ac_compile" | $SED \
8338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340 -e 's:$: $lt_compiler_flag:'`
8341 (eval echo "\"\$as_me:8341: $lt_compile\"" >&5)
8342 (eval "$lt_compile" 2>out
/conftest.err
)
8344 cat out
/conftest.err
>&5
8345 echo "$as_me:8345: \$? = $ac_status" >&5
8346 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8348 # The compiler can only warn and ignore the option if not recognized
8349 # So say no if there are warnings
8350 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8351 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8352 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8353 lt_cv_prog_compiler_c_o
=yes
8358 # SGI C++ compiler will create directory out/ii_files/ for
8359 # template instantiation
8360 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8361 $RM out
/* && rmdir out
8367 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8368 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8375 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8377 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8378 $as_echo_n "(cached) " >&6
8380 lt_cv_prog_compiler_c_o
=no
8381 $RM -r conftest
2>/dev
/null
8385 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8387 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8388 # Insert the option either (1) after the last *FLAGS variable, or
8389 # (2) before a word containing "conftest.", or (3) at the end.
8390 # Note that $ac_compile itself does not contain backslashes and begins
8391 # with a dollar sign (not a hyphen), so the echo should work correctly.
8392 lt_compile
=`echo "$ac_compile" | $SED \
8393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8395 -e 's:$: $lt_compiler_flag:'`
8396 (eval echo "\"\$as_me:8396: $lt_compile\"" >&5)
8397 (eval "$lt_compile" 2>out
/conftest.err
)
8399 cat out
/conftest.err
>&5
8400 echo "$as_me:8400: \$? = $ac_status" >&5
8401 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8403 # The compiler can only warn and ignore the option if not recognized
8404 # So say no if there are warnings
8405 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8406 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8407 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8408 lt_cv_prog_compiler_c_o
=yes
8413 # SGI C++ compiler will create directory out/ii_files/ for
8414 # template instantiation
8415 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8416 $RM out
/* && rmdir out
8422 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8423 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8428 hard_links
="nottested"
8429 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8430 # do not overwrite the value of need_locks provided by the user
8431 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8432 $as_echo_n "checking if we can lock with hard links... " >&6; }
8435 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8437 ln conftest.a conftest.b
2>&5 || hard_links
=no
8438 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8439 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8440 $as_echo "$hard_links" >&6; }
8441 if test "$hard_links" = no
; then
8442 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8443 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8455 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8456 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8459 allow_undefined_flag
=
8460 always_export_symbols
=no
8462 archive_expsym_cmds
=
8463 compiler_needs_object
=no
8464 enable_shared_with_static_runtimes
=no
8465 export_dynamic_flag_spec
=
8466 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8467 hardcode_automatic
=no
8469 hardcode_direct_absolute
=no
8470 hardcode_libdir_flag_spec
=
8471 hardcode_libdir_flag_spec_ld
=
8472 hardcode_libdir_separator
=
8474 hardcode_shlibpath_var
=unsupported
8476 link_all_deplibs
=unknown
8479 old_archive_from_new_cmds
=
8480 old_archive_from_expsyms_cmds
=
8481 thread_safe_flag_spec
=
8482 whole_archive_flag_spec
=
8483 # include_expsyms should be a list of space-separated symbols to be *always*
8484 # included in the symbol list
8486 # exclude_expsyms can be an extended regexp of symbols to exclude
8487 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8488 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8489 # as well as any symbol that contains `d'.
8490 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8491 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8492 # platforms (ab)use it in PIC code, but their linkers get confused if
8493 # the symbol is explicitly referenced. Since portable code cannot
8494 # rely on this symbol name, it's probably fine to never include it in
8495 # preloaded symbol tables.
8496 # Exclude shared library initialization/finalization symbols.
8497 extract_expsyms_cmds
=
8500 cygwin
* | mingw
* | pw32
* | cegcc
*)
8501 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8502 # When not using gcc, we currently assume that we are using
8503 # Microsoft Visual C++.
8504 if test "$GCC" != yes; then
8509 # we just hope/assume this is gcc and not c89 (= MSVC++)
8518 if test "$with_gnu_ld" = yes; then
8519 # If archive_cmds runs LD, not CC, wlarc should be empty
8522 # Set some defaults for GNU ld with shared library support. These
8523 # are reset later if shared libraries are not supported. Putting them
8524 # here allows them to be overridden if necessary.
8525 runpath_var
=LD_RUN_PATH
8526 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8527 export_dynamic_flag_spec
='${wl}--export-dynamic'
8528 # ancient GNU ld didn't support --whole-archive et. al.
8529 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8530 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8532 whole_archive_flag_spec
=
8534 supports_anon_versioning
=no
8535 case `$LD -v 2>&1` in
8536 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8537 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8538 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8539 *\
2.11.
*) ;; # other 2.11 versions
8540 *) supports_anon_versioning
=yes ;;
8543 # See if GNU ld supports shared libraries.
8546 # On AIX/PPC, the GNU linker is very broken
8547 if test "$host_cpu" != ia64
; then
8551 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8552 *** to be unable to reliably create shared libraries on AIX.
8553 *** Therefore, libtool is disabling shared libraries support. If you
8554 *** really care for shared libraries, you may want to modify your PATH
8555 *** so that a non-GNU linker is found, and then restart.
8564 # see comment about AmigaOS4 .so support
8565 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8566 archive_expsym_cmds
=''
8569 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)'
8570 hardcode_libdir_flag_spec
='-L$libdir'
8571 hardcode_minus_L
=yes
8577 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8578 allow_undefined_flag
=unsupported
8579 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8580 # support --undefined. This deserves some investigation. FIXME
8581 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8587 cygwin
* | mingw
* | pw32
* | cegcc
*)
8588 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8589 # as there is no search path for DLLs.
8590 hardcode_libdir_flag_spec
='-L$libdir'
8591 allow_undefined_flag
=unsupported
8592 always_export_symbols
=no
8593 enable_shared_with_static_runtimes
=yes
8594 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8596 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8597 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8598 # If the export-symbols file already is a .def file (1st line
8599 # is EXPORTS), use it as is; otherwise, prepend...
8600 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8601 cp $export_symbols $output_objdir/$soname.def;
8603 echo EXPORTS > $output_objdir/$soname.def;
8604 cat $export_symbols >> $output_objdir/$soname.def;
8606 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8614 hardcode_shlibpath_var
=no
8615 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8616 export_dynamic_flag_spec
='${wl}-E'
8617 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8618 # Instead, shared libraries are loaded at an image base (0x10000000 by
8619 # default) and relocated if they conflict, which is a slow very memory
8620 # consuming and fragmenting process. To avoid this, we pick a random,
8621 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8622 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8623 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8624 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'
8627 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8629 if test "$host_os" = linux-dietlibc
; then
8630 case $cc_basename in
8631 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8634 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8635 && test "$tmp_diet" = no
8638 tmp_sharedflag
='-shared'
8639 case $cc_basename,$host_cpu in
8640 pgcc
*) # Portland Group C compiler
8641 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'
8642 tmp_addflag
=' $pic_flag'
8644 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8645 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'
8646 tmp_addflag
=' $pic_flag -Mnomain' ;;
8647 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8648 tmp_addflag
=' -i_dynamic' ;;
8649 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8650 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8651 ifc
* | ifort
*) # Intel Fortran compiler
8652 tmp_addflag
=' -nofor_main' ;;
8653 lf95
*) # Lahey Fortran 8.1
8654 whole_archive_flag_spec
=
8655 tmp_sharedflag
='--shared' ;;
8656 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8657 tmp_sharedflag
='-qmkshrobj'
8660 case `$CC -V 2>&1 | sed 5q` in
8661 *Sun\ C
*) # Sun C 5.9
8662 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'
8663 compiler_needs_object
=yes
8664 tmp_sharedflag
='-G' ;;
8665 *Sun\ F
*) # Sun Fortran 8.3
8666 tmp_sharedflag
='-G' ;;
8668 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670 if test "x$supports_anon_versioning" = xyes
; then
8671 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8673 echo "local: *; };" >> $output_objdir/$libname.ver~
8674 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8677 case $cc_basename in
8679 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8680 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8681 hardcode_libdir_flag_spec
=
8682 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8683 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8684 if test "x$supports_anon_versioning" = xyes
; then
8685 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8687 echo "local: *; };" >> $output_objdir/$libname.ver~
8688 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8698 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8699 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8702 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8708 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8712 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8713 *** create shared libraries on Solaris systems. Therefore, libtool
8714 *** is disabling shared libraries support. We urge you to upgrade GNU
8715 *** binutils to release 2.9.1 or newer. Another option is to modify
8716 *** your PATH or compiler configuration so that the native linker is
8717 *** used, and then restart.
8720 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8721 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8728 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8729 case `$LD -v 2>&1` in
8730 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8734 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8735 *** reliably create shared libraries on SCO systems. Therefore, libtool
8736 *** is disabling shared libraries support. We urge you to upgrade GNU
8737 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8744 # For security reasons, it is highly recommended that you always
8745 # use absolute paths for naming shared libraries, and exclude the
8746 # DT_RUNPATH tag from executables and libraries. But doing so
8747 # requires that you compile everything twice, which is a pain.
8748 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8749 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8750 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8763 hardcode_shlibpath_var
=no
8767 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8768 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8776 if test "$ld_shlibs" = no
; then
8778 hardcode_libdir_flag_spec
=
8779 export_dynamic_flag_spec
=
8780 whole_archive_flag_spec
=
8783 # PORTME fill in a description of your system's linker (not GNU ld)
8786 allow_undefined_flag
=unsupported
8787 always_export_symbols
=yes
8788 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'
8789 # Note: this linker hardcodes the directories in LIBPATH if there
8790 # are no directories specified by -L.
8791 hardcode_minus_L
=yes
8792 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8793 # Neither direct hardcoding nor static linking is supported with a
8795 hardcode_direct
=unsupported
8800 if test "$host_cpu" = ia64
; then
8801 # On IA64, the linker does run time linking by default, so we don't
8802 # have to do anything special.
8803 aix_use_runtimelinking
=no
8804 exp_sym_flag
='-Bexport'
8807 # If we're using GNU nm, then we don't want the "-C" option.
8808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8809 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8810 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'
8812 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'
8814 aix_use_runtimelinking
=no
8816 # Test if we are trying to use run time linking or normal
8817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8818 # need to do runtime linking.
8819 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8820 for ld_flag
in $LDFLAGS; do
8821 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8822 aix_use_runtimelinking
=yes
8829 exp_sym_flag
='-bexport'
8830 no_entry_flag
='-bnoentry'
8833 # When large executables or shared objects are built, AIX ld can
8834 # have problems creating the table of contents. If linking a library
8835 # or program results in "error TOC overflow" add -mminimal-toc to
8836 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8837 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8841 hardcode_direct_absolute
=yes
8842 hardcode_libdir_separator
=':'
8843 link_all_deplibs
=yes
8844 file_list_spec
='${wl}-f,'
8846 if test "$GCC" = yes; then
8847 case $host_os in aix4.
[012]|aix4.
[012].
*)
8848 # We only want to do this on AIX 4.2 and lower, the check
8849 # below for broken collect2 doesn't work under 4.3+
8850 collect2name
=`${CC} -print-prog-name=collect2`
8851 if test -f "$collect2name" &&
8852 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8854 # We have reworked collect2
8857 # We have old collect2
8858 hardcode_direct
=unsupported
8859 # It fails to find uninstalled libraries when the uninstalled
8860 # path is not listed in the libpath. Setting hardcode_minus_L
8861 # to unsupported forces relinking
8862 hardcode_minus_L
=yes
8863 hardcode_libdir_flag_spec
='-L$libdir'
8864 hardcode_libdir_separator
=
8868 shared_flag
='-shared'
8869 if test "$aix_use_runtimelinking" = yes; then
8870 shared_flag
="$shared_flag "'${wl}-G'
8874 if test "$host_cpu" = ia64
; then
8875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8876 # chokes on -Wl,-G. The following line is correct:
8879 if test "$aix_use_runtimelinking" = yes; then
8880 shared_flag
='${wl}-G'
8882 shared_flag
='${wl}-bM:SRE'
8887 export_dynamic_flag_spec
='${wl}-bexpall'
8888 # It seems that -bexpall does not export symbols beginning with
8889 # underscore (_), so it is better to generate a list of symbols to export.
8890 always_export_symbols
=yes
8891 if test "$aix_use_runtimelinking" = yes; then
8892 # Warning - without using the other runtime loading flags (-brtl),
8893 # -berok will link without error, but may produce a broken library.
8894 allow_undefined_flag
='-berok'
8895 # Determine the default libpath from the value encoded in an
8897 cat >conftest.
$ac_ext <<_ACEOF
8900 cat confdefs.h
>>conftest.
$ac_ext
8901 cat >>conftest.
$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8912 rm -f conftest.
$ac_objext conftest
$ac_exeext
8913 if { (ac_try
="$ac_link"
8915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8919 $as_echo "$ac_try_echo") >&5
8920 (eval "$ac_link") 2>conftest.er1
8922 grep -v '^ *+' conftest.er1 >conftest.err
8924 cat conftest.err >&5
8925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest$ac_exeext && {
8930 test "$cross_compiling" = yes ||
8931 $as_test_x conftest$ac_exeext
8934 lt_aix_libpath_sed='
8935 /Import File Strings/,/^$/ {
8941 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8942 # Check for a 64-bit object if we didn't find anything.
8943 if test -z "$aix_libpath"; then
8944 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8947 $as_echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8953 rm -rf conftest.dSYM
8954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8955 conftest$ac_exeext conftest.$ac_ext
8956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8959 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"
8961 if test "$host_cpu" = ia64; then
8962 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8963 allow_undefined_flag="-z nodefs"
8964 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"
8966 # Determine the default libpath from the value encoded in an
8968 cat >conftest.$ac_ext <<_ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h. */
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (ac_try="$ac_link"
8986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8987 *) ac_try_echo
=$ac_try;;
8989 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8990 $as_echo "$ac_try_echo") >&5
8991 (eval "$ac_link") 2>conftest.er1
8993 grep -v '^ *+' conftest.er1
>conftest.err
8995 cat conftest.err
>&5
8996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } && {
8998 test -z "$ac_c_werror_flag" ||
8999 test ! -s conftest.err
9000 } && test -s conftest
$ac_exeext && {
9001 test "$cross_compiling" = yes ||
9002 $as_test_x conftest
$ac_exeext
9005 lt_aix_libpath_sed
='
9006 /Import File Strings/,/^$/ {
9012 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9013 # Check for a 64-bit object if we didn't find anything.
9014 if test -z "$aix_libpath"; then
9015 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9018 $as_echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.
$ac_ext >&5
9024 rm -rf conftest.dSYM
9025 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9026 conftest
$ac_exeext conftest.
$ac_ext
9027 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9029 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9030 # Warning - without using the other run time loading flags,
9031 # -berok will link without error, but may produce a broken library.
9032 no_undefined_flag
=' ${wl}-bernotok'
9033 allow_undefined_flag
=' ${wl}-berok'
9034 # Exported symbols can be pulled into shared objects from archives
9035 whole_archive_flag_spec
='$convenience'
9036 archive_cmds_need_lc
=yes
9037 # This is similar to how AIX traditionally builds its shared libraries.
9038 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'
9046 # see comment about AmigaOS4 .so support
9047 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds
=''
9051 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)'
9052 hardcode_libdir_flag_spec
='-L$libdir'
9053 hardcode_minus_L
=yes
9059 export_dynamic_flag_spec
=-rdynamic
9062 cygwin
* | mingw
* | pw32
* | cegcc
*)
9063 # When not using gcc, we currently assume that we are using
9064 # Microsoft Visual C++.
9065 # hardcode_libdir_flag_spec is actually meaningless, as there is
9066 # no search path for DLLs.
9067 hardcode_libdir_flag_spec
=' '
9068 allow_undefined_flag
=unsupported
9069 # Tell ltmain to make .lib files, not .a files.
9071 # Tell ltmain to make .dll files, not .so files.
9073 # FIXME: Setting linknames here is a bad hack.
9074 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9075 # The linker will automatically build a .lib file if we build a DLL.
9076 old_archive_from_new_cmds
='true'
9077 # FIXME: Should let the user specify the lib program.
9078 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9079 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9080 enable_shared_with_static_runtimes
=yes
9083 darwin
* | rhapsody
*)
9086 archive_cmds_need_lc
=no
9088 hardcode_automatic
=yes
9089 hardcode_shlibpath_var
=unsupported
9090 whole_archive_flag_spec
=''
9091 link_all_deplibs
=yes
9092 allow_undefined_flag
="$_lt_dar_allow_undefined"
9093 case $cc_basename in
9094 ifort
*) _lt_dar_can_shared
=yes ;;
9095 *) _lt_dar_can_shared
=$GCC ;;
9097 if test "$_lt_dar_can_shared" = "yes"; then
9098 output_verbose_link_cmd
=echo
9099 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9100 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9101 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}"
9102 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}"
9111 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112 hardcode_libdir_flag_spec
='-L$libdir'
9113 hardcode_shlibpath_var
=no
9120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9121 # support. Future versions do this automatically, but an explicit c++rt0.o
9122 # does not break anything, and helps significantly (at the cost of a little
9125 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9126 hardcode_libdir_flag_spec
='-R$libdir'
9128 hardcode_shlibpath_var
=no
9131 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9133 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9135 hardcode_minus_L
=yes
9136 hardcode_shlibpath_var
=no
9139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9140 freebsd
* | dragonfly
*)
9141 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9142 hardcode_libdir_flag_spec
='-R$libdir'
9144 hardcode_shlibpath_var
=no
9148 if test "$GCC" = yes; then
9149 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'
9151 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'
9153 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9154 hardcode_libdir_separator
=:
9157 # hardcode_minus_L: Not really in the search PATH,
9158 # but as the default location of the library.
9159 hardcode_minus_L
=yes
9160 export_dynamic_flag_spec
='${wl}-E'
9164 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9165 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9167 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9169 if test "$with_gnu_ld" = no
; then
9170 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9171 hardcode_libdir_flag_spec_ld
='+b $libdir'
9172 hardcode_libdir_separator
=:
9174 hardcode_direct_absolute
=yes
9175 export_dynamic_flag_spec
='${wl}-E'
9176 # hardcode_minus_L: Not really in the search PATH,
9177 # but as the default location of the library.
9178 hardcode_minus_L
=yes
9183 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9186 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9192 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9198 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9201 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9204 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9208 if test "$with_gnu_ld" = no
; then
9209 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9210 hardcode_libdir_separator
=:
9215 hardcode_shlibpath_var
=no
9219 hardcode_direct_absolute
=yes
9220 export_dynamic_flag_spec
='${wl}-E'
9222 # hardcode_minus_L: Not really in the search PATH,
9223 # but as the default location of the library.
9224 hardcode_minus_L
=yes
9230 irix5
* | irix6
* | nonstopux
*)
9231 if test "$GCC" = yes; then
9232 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'
9233 # Try to use the -exported_symbol ld option, if it does not
9234 # work, assume that -exports_file does not work either and
9235 # implicitly export all symbols.
9236 save_LDFLAGS
="$LDFLAGS"
9237 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9238 cat >conftest.
$ac_ext <<_ACEOF
9241 rm -f conftest.
$ac_objext conftest
$ac_exeext
9242 if { (ac_try
="$ac_link"
9244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9248 $as_echo "$ac_try_echo") >&5
9249 (eval "$ac_link") 2>conftest.er1
9251 grep -v '^ *+' conftest.er1 >conftest.err
9253 cat conftest.err >&5
9254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } && {
9256 test -z "$ac_c_werror_flag" ||
9257 test ! -s conftest.err
9258 } && test -s conftest$ac_exeext && {
9259 test "$cross_compiling" = yes ||
9260 $as_test_x conftest$ac_exeext
9262 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'
9265 $as_echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9271 rm -rf conftest.dSYM
9272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9273 conftest$ac_exeext conftest.$ac_ext
9274 LDFLAGS="$save_LDFLAGS"
9276 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'
9277 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'
9279 archive_cmds_need_lc='no'
9280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9281 hardcode_libdir_separator=:
9283 link_all_deplibs=yes
9287 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9290 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9292 hardcode_libdir_flag_spec='-R$libdir'
9294 hardcode_shlibpath_var=no
9298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 hardcode_libdir_separator=:
9302 hardcode_shlibpath_var=no
9309 if test -f /usr/libexec/ld.so; then
9311 hardcode_shlibpath_var=no
9312 hardcode_direct_absolute=yes
9313 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9314 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9315 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9317 export_dynamic_flag_spec='${wl}-E'
9320 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_libdir_flag_spec='-R$libdir'
9325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9326 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9336 hardcode_libdir_flag_spec='-L$libdir'
9337 hardcode_minus_L=yes
9338 allow_undefined_flag=unsupported
9339 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'
9340 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9344 if test "$GCC" = yes; then
9345 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9346 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'
9348 allow_undefined_flag=' -expect_unresolved \*'
9349 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'
9351 archive_cmds_need_lc='no'
9352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353 hardcode_libdir_separator=:
9356 osf4* | osf5*) # as osf3* with the addition of -msym flag
9357 if test "$GCC" = yes; then
9358 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9359 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
9360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9362 allow_undefined_flag=' -expect_unresolved \*'
9363 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'
9364 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~
9365 $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'
9367 # Both c and cxx compiler support -rpath directly
9368 hardcode_libdir_flag_spec='-rpath $libdir'
9370 archive_cmds_need_lc='no'
9371 hardcode_libdir_separator=:
9375 no_undefined_flag=' -z defs'
9376 if test "$GCC" = yes; then
9378 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9380 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9382 case `$CC -V 2>&1` in
9385 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9387 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9391 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9393 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9397 hardcode_libdir_flag_spec='-R$libdir'
9398 hardcode_shlibpath_var=no
9400 solaris2.[0-5] | solaris2.[0-5].*) ;;
9402 # The compiler driver will combine and reorder linker options,
9403 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9404 # but is careful enough not to reorder.
9405 # Supported since Solaris 2.6 (maybe 2.5.1?)
9406 if test "$GCC" = yes; then
9407 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9409 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9413 link_all_deplibs
=yes
9417 if test "x$host_vendor" = xsequent
; then
9418 # Use $CC to link under sequent, because it throws in some extra .o
9419 # files that make .init and .fini sections work.
9420 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9422 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9424 hardcode_libdir_flag_spec
='-L$libdir'
9426 hardcode_minus_L
=yes
9427 hardcode_shlibpath_var
=no
9431 case $host_vendor in
9433 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9434 hardcode_direct
=yes # is this really true???
9437 ## LD is ld it makes a PLAMLIB
9438 ## CC just makes a GrossModule.
9439 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9440 reload_cmds
='$CC -r -o $output$reload_objs'
9444 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9448 runpath_var
='LD_RUN_PATH'
9449 hardcode_shlibpath_var
=no
9453 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_shlibpath_var
=no
9455 export_dynamic_flag_spec
='-Bexport'
9459 if test -d /usr
/nec
; then
9460 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461 hardcode_shlibpath_var
=no
9462 runpath_var
=LD_RUN_PATH
9463 hardcode_runpath_var
=yes
9468 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9469 no_undefined_flag
='${wl}-z,text'
9470 archive_cmds_need_lc
=no
9471 hardcode_shlibpath_var
=no
9472 runpath_var
='LD_RUN_PATH'
9474 if test "$GCC" = yes; then
9475 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9478 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 sysv5
* | sco3.2v5
* | sco5v6
*)
9484 # Note: We can NOT use -z defs as we might desire, because we do not
9485 # link with -lc, and that would cause any symbols used from libc to
9486 # always be unresolved, which means just about no library would
9487 # ever link correctly. If we're not using GNU ld we use -z text
9488 # though, which does catch some bad symbols but isn't as heavy-handed
9490 no_undefined_flag
='${wl}-z,text'
9491 allow_undefined_flag
='${wl}-z,nodefs'
9492 archive_cmds_need_lc
=no
9493 hardcode_shlibpath_var
=no
9494 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9495 hardcode_libdir_separator
=':'
9496 link_all_deplibs
=yes
9497 export_dynamic_flag_spec
='${wl}-Bexport'
9498 runpath_var
='LD_RUN_PATH'
9500 if test "$GCC" = yes; then
9501 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_libdir_flag_spec
='-L$libdir'
9512 hardcode_shlibpath_var
=no
9520 if test x
$host_vendor = xsni
; then
9522 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9523 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9529 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9530 $as_echo "$ld_shlibs" >&6; }
9531 test "$ld_shlibs" = no
&& can_build_shared
=no
9533 with_gnu_ld
=$with_gnu_ld
9550 # Do we need to explicitly link libc?
9552 case "x$archive_cmds_need_lc" in
9554 # Assume -lc should be added
9555 archive_cmds_need_lc
=yes
9557 if test "$enable_shared" = yes && test "$GCC" = yes; then
9558 case $archive_cmds in
9560 # FIXME: we may have to deal with multi-command sequences.
9563 # Test whether the compiler implicitly links with -lc since on some
9564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9565 # to ld, don't add -lc before -lgcc.
9566 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9567 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9569 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9572 (eval $ac_compile) 2>&5
9574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } 2>conftest.err
; then
9578 libobjs
=conftest.
$ac_objext
9580 wl
=$lt_prog_compiler_wl
9581 pic_flag
=$lt_prog_compiler_pic
9587 lt_save_allow_undefined_flag
=$allow_undefined_flag
9588 allow_undefined_flag
=
9589 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9590 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }
9595 archive_cmds_need_lc
=no
9597 archive_cmds_need_lc
=yes
9599 allow_undefined_flag
=$lt_save_allow_undefined_flag
9601 cat conftest.err
1>&5
9604 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9605 $as_echo "$archive_cmds_need_lc" >&6; }
9768 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9769 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9771 if test "$GCC" = yes; then
9773 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9774 *) lt_awk_arg
="/^libraries:/" ;;
9776 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9777 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9778 # if the path contains ";" then we assume it to be the separator
9779 # otherwise default to the standard path separator (i.e. ":") - it is
9780 # assumed that no part of a normal pathname contains ";" but that should
9781 # okay in the real world where ";" in dirpaths is itself problematic.
9782 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9784 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9786 # Ok, now we have the path, separated by spaces, we can step through it
9787 # and add multilib dir if necessary.
9788 lt_tmp_lt_search_path_spec
=
9789 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9790 for lt_sys_path
in $lt_search_path_spec; do
9791 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9792 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9794 test -d "$lt_sys_path" && \
9795 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9798 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9799 BEGIN {RS=" "; FS="/|\n";} {
9802 for (lt_i = NF; lt_i > 0; lt_i--) {
9803 if ($lt_i != "" && $lt_i != ".") {
9804 if ($lt_i == "..") {
9807 if (lt_count == 0) {
9808 lt_foo="/" $lt_i lt_foo;
9815 if (lt_foo != "") { lt_freq[lt_foo]++; }
9816 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9818 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9820 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9823 libname_spec
='lib$name'
9831 shlibpath_overrides_runpath
=unknown
9833 dynamic_linker
="$host_os ld.so"
9834 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9835 need_lib_prefix
=unknown
9836 hardcode_into_libs
=no
9838 # when you set need_version to no, make sure it does not cause -set_version
9839 # flags to be left without arguments
9840 need_version
=unknown
9845 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9846 shlibpath_var
=LIBPATH
9848 # AIX 3 has no versioning support, so we append a major version to the name.
9849 soname_spec
='${libname}${release}${shared_ext}$major'
9856 hardcode_into_libs
=yes
9857 if test "$host_cpu" = ia64
; then
9858 # AIX 5 supports IA64
9859 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9860 shlibpath_var
=LD_LIBRARY_PATH
9862 # With GCC up to 2.95.x, collect2 would create an import file
9863 # for dependence libraries. The import file would start with
9864 # the line `#! .'. This would cause the generated library to
9865 # depend on `.', always an invalid library. This was fixed in
9866 # development snapshots of GCC prior to 3.0.
9868 aix4 | aix4.
[01] | aix4.
[01].
*)
9869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9871 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9878 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9879 # soname into executable. Probably we can add versioning support to
9880 # collect2, so additional links can be useful in future.
9881 if test "$aix_use_runtimelinking" = yes; then
9882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9883 # instead of lib<name>.a to let people know that these are not
9884 # typical AIX shared libraries.
9885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9887 # We preserve .a as extension for shared libraries through AIX4.2
9888 # and later when we are not doing run time linking.
9889 library_names_spec
='${libname}${release}.a $libname.a'
9890 soname_spec
='${libname}${release}${shared_ext}$major'
9892 shlibpath_var
=LIBPATH
9899 # Since July 2007 AmigaOS4 officially supports .so libraries.
9900 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 library_names_spec
='$libname.ixlibrary $libname.a'
9905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9906 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'
9912 library_names_spec
='${libname}${shared_ext}'
9913 dynamic_linker
="$host_os ld.so"
9914 shlibpath_var
=LIBRARY_PATH
9920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 soname_spec
='${libname}${release}${shared_ext}$major'
9922 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9923 shlibpath_var
=LD_LIBRARY_PATH
9924 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9925 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9926 # the default ld.so.conf also contains /usr/contrib/lib and
9927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9928 # libtool to hard-code these into programs
9931 cygwin
* | mingw
* | pw32
* | cegcc
*)
9932 version_type
=windows
9937 case $GCC,$host_os in
9938 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9939 library_names_spec
='$libname.dll.a'
9940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9941 postinstall_cmds
='base_file=`basename \${file}`~
9942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9943 dldir=$destdir/`dirname \$dlpath`~
9944 test -d \$dldir || mkdir -p \$dldir~
9945 $install_prog $dir/$dlname \$dldir/$dlname~
9946 chmod a+x \$dldir/$dlname~
9947 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9948 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9950 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9951 dlpath=$dir/\$dldll~
9953 shlibpath_overrides_runpath
=yes
9957 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9958 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9959 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9962 # MinGW DLLs use traditional 'lib' prefix
9963 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9964 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9965 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9966 # It is most probably a Windows format PATH printed by
9967 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9968 # path with ; separators, and with drive letters. We can handle the
9969 # drive letters (cygwin fileutils understands them), so leave them,
9970 # especially as we might pass files found there to a mingw objdump,
9971 # which wouldn't understand a cygwinified path. Ahh.
9972 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9974 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9978 # pw32 DLLs use 'pw' prefix rather than 'lib'
9979 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9985 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9988 dynamic_linker
='Win32 ld.exe'
9989 # FIXME: first we should search . and the directory the executable is in
9993 darwin
* | rhapsody
*)
9994 dynamic_linker
="$host_os dyld"
9998 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9999 soname_spec
='${libname}${release}${major}$shared_ext'
10000 shlibpath_overrides_runpath
=yes
10001 shlibpath_var
=DYLD_LIBRARY_PATH
10002 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10004 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10005 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10013 soname_spec
='${libname}${release}${shared_ext}$major'
10014 shlibpath_var
=LD_LIBRARY_PATH
10021 freebsd
* | dragonfly
*)
10022 # DragonFly does not have aout. When/if they implement a new
10023 # versioning mechanism, adjust this.
10024 if test -x /usr
/bin
/objformat
; then
10025 objformat
=`/usr/bin/objformat`
10028 freebsd
[123]*) objformat
=aout
;;
10029 *) objformat
=elf
;;
10032 version_type
=freebsd-
$objformat
10033 case $version_type in
10035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10040 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10044 shlibpath_var
=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath
=yes
10049 freebsd3.
[01]* | freebsdelf3.
[01]*)
10050 shlibpath_overrides_runpath
=yes
10051 hardcode_into_libs
=yes
10053 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10054 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10055 shlibpath_overrides_runpath
=no
10056 hardcode_into_libs
=yes
10058 *) # from 4.6 on, and DragonFly
10059 shlibpath_overrides_runpath
=yes
10060 hardcode_into_libs
=yes
10069 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10070 soname_spec
='${libname}${release}${shared_ext}$major'
10071 shlibpath_var
=LD_LIBRARY_PATH
10072 hardcode_into_libs
=yes
10075 hpux9
* | hpux10
* | hpux11
*)
10076 # Give a soname corresponding to the major version so that dld.sl refuses to
10077 # link against other versions.
10084 hardcode_into_libs
=yes
10085 dynamic_linker
="$host_os dld.so"
10086 shlibpath_var
=LD_LIBRARY_PATH
10087 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10088 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089 soname_spec
='${libname}${release}${shared_ext}$major'
10090 if test "X$HPUX_IA64_MODE" = X32
; then
10091 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10093 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10095 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10099 hardcode_into_libs
=yes
10100 dynamic_linker
="$host_os dld.sl"
10101 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10102 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 soname_spec
='${libname}${release}${shared_ext}$major'
10105 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10106 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10110 dynamic_linker
="$host_os dld.sl"
10111 shlibpath_var
=SHLIB_PATH
10112 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10113 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 soname_spec
='${libname}${release}${shared_ext}$major'
10117 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10118 postinstall_cmds
='chmod 555 $lib'
10125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10126 soname_spec
='${libname}${release}${shared_ext}$major'
10127 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10128 shlibpath_var
=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath
=no
10130 hardcode_into_libs
=yes
10133 irix5
* | irix6
* | nonstopux
*)
10135 nonstopux
*) version_type
=nonstopux
;;
10137 if test "$lt_cv_prog_gnu_ld" = yes; then
10145 soname_spec
='${libname}${release}${shared_ext}$major'
10146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10148 irix5
* | nonstopux
*)
10149 libsuff
= shlibsuff
=
10152 case $LD in # libtool.m4 will add one of these switches to LD
10153 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10154 libsuff
= shlibsuff
= libmagic
=32-bit;;
10155 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10156 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10157 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10158 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10159 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10163 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10164 shlibpath_overrides_runpath
=no
10165 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10166 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10167 hardcode_into_libs
=yes
10170 # No shared lib support for Linux oldld, aout, or coff.
10171 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10175 # This must be Linux ELF.
10176 linux
* | k
*bsd
*-gnu)
10180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 soname_spec
='${libname}${release}${shared_ext}$major'
10182 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10183 shlibpath_var
=LD_LIBRARY_PATH
10184 shlibpath_overrides_runpath
=no
10185 # Some binutils ld are patched to set DT_RUNPATH
10186 save_LDFLAGS
=$LDFLAGS
10187 save_libdir
=$libdir
10188 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10189 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10190 cat >conftest.
$ac_ext <<_ACEOF
10193 cat confdefs.h
>>conftest.
$ac_ext
10194 cat >>conftest.
$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10205 rm -f conftest.
$ac_objext conftest
$ac_exeext
10206 if { (ac_try
="$ac_link"
10207 case "(($ac_try" in
10208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10212 $as_echo "$ac_try_echo") >&5
10213 (eval "$ac_link") 2>conftest.er1
10215 grep -v '^ *+' conftest.er1 >conftest.err
10217 cat conftest.err >&5
10218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } && {
10220 test -z "$ac_c_werror_flag" ||
10221 test ! -s conftest.err
10222 } && test -s conftest$ac_exeext && {
10223 test "$cross_compiling" = yes ||
10224 $as_test_x conftest$ac_exeext
10226 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10227 shlibpath_overrides_runpath=yes
10231 $as_echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10237 rm -rf conftest.dSYM
10238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LDFLAGS=$save_LDFLAGS
10241 libdir=$save_libdir
10243 # This implies no fast_install, which is unacceptable.
10244 # Some rework will be needed to allow for fast_install
10245 # before this can be enabled.
10246 hardcode_into_libs=yes
10248 # Add ABI-specific directories to the system library path.
10249 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10251 # Append ld.so.conf contents to the search path
10252 if test -f /etc/ld.so.conf; then
10253 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' ' '`
10254 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10257 # We used to test for /lib/ld.so.1 and disable shared libraries on
10258 # powerpc, because MkLinux only supported shared libraries with the
10259 # GNU dynamic linker. Since this was broken with cross compilers,
10260 # most powerpc-linux boxes support dynamic linking these days and
10261 # people can always --disable-shared, the test was removed, and we
10262 # assume the GNU/Linux dynamic linker is in use.
10263 dynamic_linker='GNU/Linux ld.so'
10270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273 dynamic_linker='NetBSD (a.out) ld.so'
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 dynamic_linker='NetBSD ld.elf_so'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes
10281 hardcode_into_libs=yes
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=no
10299 hardcode_into_libs=yes
10300 dynamic_linker='ldqnx.so'
10305 sys_lib_dlsearch_path_spec="/usr/lib"
10307 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10309 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10310 *) need_version=no ;;
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10317 openbsd2.[89] | openbsd2.[89].*)
10318 shlibpath_overrides_runpath=no
10321 shlibpath_overrides_runpath=yes
10325 shlibpath_overrides_runpath=yes
10330 libname_spec='$name'
10333 library_names_spec='$libname${shared_ext} $libname.a'
10334 dynamic_linker='OS/2 ld.exe'
10335 shlibpath_var=LIBPATH
10338 osf3* | osf4* | osf5*)
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10346 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10362 # ldd complains unless libraries are executable
10363 postinstall_cmds='chmod +x $lib'
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 if test "$with_gnu_ld" = yes; then
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 case $host_vendor in
10385 shlibpath_overrides_runpath=no
10387 runpath_var=LD_RUN_PATH
10395 shlibpath_overrides_runpath=no
10396 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10402 if test -d /usr/nec ;then
10404 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10405 soname_spec='$libname${shared_ext}.$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10411 version_type=freebsd-elf
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 shlibpath_overrides_runpath=yes
10418 hardcode_into_libs=yes
10419 if test "$with_gnu_ld" = yes; then
10420 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10422 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10425 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10429 sys_lib_dlsearch_path_spec='/usr/lib'
10433 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 shlibpath_overrides_runpath=no
10440 hardcode_into_libs=yes
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 shlibpath_var=LD_LIBRARY_PATH
10454 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10455 $as_echo "$dynamic_linker" >&6; }
10456 test "$dynamic_linker" = no && can_build_shared=no
10458 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10459 if test "$GCC" = yes; then
10460 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10463 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10464 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10466 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10467 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10556 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10557 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10559 if test -n "$hardcode_libdir_flag_spec" ||
10560 test -n "$runpath_var" ||
10561 test "X$hardcode_automatic" = "Xyes" ; then
10563 # We can hardcode non-existent directories.
10564 if test "$hardcode_direct" != no &&
10565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10566 # have to relink, otherwise we might link with an installed library
10567 # when we should be linking with a yet-to-be-installed one
10568 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10569 test "$hardcode_minus_L" != no; then
10570 # Linking always hardcodes the temporary library directory.
10571 hardcode_action=relink
10573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10574 hardcode_action=immediate
10577 # We cannot hardcode anything, or else we can only hardcode existing
10579 hardcode_action=unsupported
10581 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10582 $as_echo "$hardcode_action" >&6; }
10584 if test "$hardcode_action" = relink ||
10585 test "$inherit_rpath" = yes; then
10586 # Fast installation is not supported
10587 enable_fast_install=no
10588 elif test "$shlibpath_overrides_runpath" = yes ||
10589 test "$enable_shared" = no; then
10590 # Fast installation is not necessary
10591 enable_fast_install=needless
10599 if test "x$enable_dlopen" != xyes; then
10600 enable_dlopen=unknown
10601 enable_dlopen_self=unknown
10602 enable_dlopen_self_static=unknown
10609 lt_cv_dlopen="load_add_on"
10611 lt_cv_dlopen_self=yes
10614 mingw* | pw32* | cegcc*)
10615 lt_cv_dlopen="LoadLibrary"
10620 lt_cv_dlopen="dlopen"
10625 # if libdl is installed we need to link against it
10626 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10629 $as_echo_n "(cached) " >&6
10631 ac_check_lib_save_LIBS=$LIBS
10633 cat >conftest.$ac_ext <<_ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10640 /* Override any GCC internal prototype to avoid an error.
10641 Use char because int might match the return type of a GCC
10642 builtin and then its argument prototype would still apply. */
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (ac_try="$ac_link"
10657 case "(($ac_try" in
10658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10659 *) ac_try_echo
=$ac_try;;
10661 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10662 $as_echo "$ac_try_echo") >&5
10663 (eval "$ac_link") 2>conftest.er1
10665 grep -v '^ *+' conftest.er1
>conftest.err
10667 cat conftest.err
>&5
10668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && {
10670 test -z "$ac_c_werror_flag" ||
10671 test ! -s conftest.err
10672 } && test -s conftest
$ac_exeext && {
10673 test "$cross_compiling" = yes ||
10674 $as_test_x conftest
$ac_exeext
10676 ac_cv_lib_dl_dlopen
=yes
10678 $as_echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.
$ac_ext >&5
10681 ac_cv_lib_dl_dlopen
=no
10684 rm -rf conftest.dSYM
10685 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10686 conftest
$ac_exeext conftest.
$ac_ext
10687 LIBS
=$ac_check_lib_save_LIBS
10689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10691 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10692 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10695 lt_cv_dlopen
="dyld"
10697 lt_cv_dlopen_self
=yes
10704 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10705 $as_echo_n "checking for shl_load... " >&6; }
10706 if test "${ac_cv_func_shl_load+set}" = set; then
10707 $as_echo_n "(cached) " >&6
10709 cat >conftest.
$ac_ext <<_ACEOF
10712 cat confdefs.h
>>conftest.
$ac_ext
10713 cat >>conftest.
$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10717 #define shl_load innocuous_shl_load
10719 /* System header to define __stub macros and hopefully few prototypes,
10720 which can conflict with char shl_load (); below.
10721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10722 <limits.h> exists even on freestanding compilers. */
10725 # include <limits.h>
10727 # include <assert.h>
10732 /* Override any GCC internal prototype to avoid an error.
10733 Use char because int might match the return type of a GCC
10734 builtin and then its argument prototype would still apply. */
10739 /* The GNU C library defines this for functions which it implements
10740 to always fail with ENOSYS. Some functions are actually named
10741 something starting with __ and the normal name is an alias. */
10742 #if defined __stub_shl_load || defined __stub___shl_load
10749 return shl_load ();
10754 rm -f conftest.
$ac_objext conftest
$ac_exeext
10755 if { (ac_try
="$ac_link"
10756 case "(($ac_try" in
10757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10761 $as_echo "$ac_try_echo") >&5
10762 (eval "$ac_link") 2>conftest.er1
10764 grep -v '^ *+' conftest.er1 >conftest.err
10766 cat conftest.err >&5
10767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext && {
10772 test "$cross_compiling" = yes ||
10773 $as_test_x conftest$ac_exeext
10775 ac_cv_func_shl_load=yes
10777 $as_echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_func_shl_load=no
10783 rm -rf conftest.dSYM
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10787 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10788 $as_echo "$ac_cv_func_shl_load" >&6; }
10789 if test "x$ac_cv_func_shl_load" = x""yes; then
10790 lt_cv_dlopen="shl_load"
10792 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10793 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10794 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10795 $as_echo_n "(cached) " >&6
10797 ac_check_lib_save_LIBS=$LIBS
10799 cat >conftest.$ac_ext <<_ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10806 /* Override any GCC internal prototype to avoid an error.
10807 Use char because int might match the return type of a GCC
10808 builtin and then its argument prototype would still apply. */
10816 return shl_load ();
10821 rm -f conftest.$ac_objext conftest$ac_exeext
10822 if { (ac_try="$ac_link"
10823 case "(($ac_try" in
10824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10825 *) ac_try_echo
=$ac_try;;
10827 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10828 $as_echo "$ac_try_echo") >&5
10829 (eval "$ac_link") 2>conftest.er1
10831 grep -v '^ *+' conftest.er1
>conftest.err
10833 cat conftest.err
>&5
10834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } && {
10836 test -z "$ac_c_werror_flag" ||
10837 test ! -s conftest.err
10838 } && test -s conftest
$ac_exeext && {
10839 test "$cross_compiling" = yes ||
10840 $as_test_x conftest
$ac_exeext
10842 ac_cv_lib_dld_shl_load
=yes
10844 $as_echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.
$ac_ext >&5
10847 ac_cv_lib_dld_shl_load
=no
10850 rm -rf conftest.dSYM
10851 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10852 conftest
$ac_exeext conftest.
$ac_ext
10853 LIBS
=$ac_check_lib_save_LIBS
10855 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10856 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10857 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10858 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10860 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10861 $as_echo_n "checking for dlopen... " >&6; }
10862 if test "${ac_cv_func_dlopen+set}" = set; then
10863 $as_echo_n "(cached) " >&6
10865 cat >conftest.
$ac_ext <<_ACEOF
10868 cat confdefs.h
>>conftest.
$ac_ext
10869 cat >>conftest.
$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10873 #define dlopen innocuous_dlopen
10875 /* System header to define __stub macros and hopefully few prototypes,
10876 which can conflict with char dlopen (); below.
10877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10878 <limits.h> exists even on freestanding compilers. */
10881 # include <limits.h>
10883 # include <assert.h>
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10895 /* The GNU C library defines this for functions which it implements
10896 to always fail with ENOSYS. Some functions are actually named
10897 something starting with __ and the normal name is an alias. */
10898 #if defined __stub_dlopen || defined __stub___dlopen
10910 rm -f conftest.
$ac_objext conftest
$ac_exeext
10911 if { (ac_try
="$ac_link"
10912 case "(($ac_try" in
10913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10917 $as_echo "$ac_try_echo") >&5
10918 (eval "$ac_link") 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest$ac_exeext && {
10928 test "$cross_compiling" = yes ||
10929 $as_test_x conftest$ac_exeext
10931 ac_cv_func_dlopen=yes
10933 $as_echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10936 ac_cv_func_dlopen=no
10939 rm -rf conftest.dSYM
10940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10941 conftest$ac_exeext conftest.$ac_ext
10943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10944 $as_echo "$ac_cv_func_dlopen" >&6; }
10945 if test "x$ac_cv_func_dlopen" = x""yes; then
10946 lt_cv_dlopen="dlopen"
10948 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10949 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10951 $as_echo_n "(cached) " >&6
10953 ac_check_lib_save_LIBS=$LIBS
10955 cat >conftest.$ac_ext <<_ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10962 /* Override any GCC internal prototype to avoid an error.
10963 Use char because int might match the return type of a GCC
10964 builtin and then its argument prototype would still apply. */
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10981 *) ac_try_echo
=$ac_try;;
10983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10984 $as_echo "$ac_try_echo") >&5
10985 (eval "$ac_link") 2>conftest.er1
10987 grep -v '^ *+' conftest.er1
>conftest.err
10989 cat conftest.err
>&5
10990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest
$ac_exeext && {
10995 test "$cross_compiling" = yes ||
10996 $as_test_x conftest
$ac_exeext
10998 ac_cv_lib_dl_dlopen
=yes
11000 $as_echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.
$ac_ext >&5
11003 ac_cv_lib_dl_dlopen
=no
11006 rm -rf conftest.dSYM
11007 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11008 conftest
$ac_exeext conftest.
$ac_ext
11009 LIBS
=$ac_check_lib_save_LIBS
11011 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11012 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11013 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
11014 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11016 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11017 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11019 $as_echo_n "(cached) " >&6
11021 ac_check_lib_save_LIBS
=$LIBS
11022 LIBS
="-lsvld $LIBS"
11023 cat >conftest.
$ac_ext <<_ACEOF
11026 cat confdefs.h
>>conftest.
$ac_ext
11027 cat >>conftest.
$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11030 /* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
11045 rm -f conftest.
$ac_objext conftest
$ac_exeext
11046 if { (ac_try
="$ac_link"
11047 case "(($ac_try" in
11048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11052 $as_echo "$ac_try_echo") >&5
11053 (eval "$ac_link") 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_c_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest$ac_exeext && {
11063 test "$cross_compiling" = yes ||
11064 $as_test_x conftest$ac_exeext
11066 ac_cv_lib_svld_dlopen=yes
11068 $as_echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11071 ac_cv_lib_svld_dlopen=no
11074 rm -rf conftest.dSYM
11075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11076 conftest$ac_exeext conftest.$ac_ext
11077 LIBS=$ac_check_lib_save_LIBS
11079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11080 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11081 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11084 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11085 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11086 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11087 $as_echo_n "(cached) " >&6
11089 ac_check_lib_save_LIBS=$LIBS
11091 cat >conftest.$ac_ext <<_ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11098 /* Override any GCC internal prototype to avoid an error.
11099 Use char because int might match the return type of a GCC
11100 builtin and then its argument prototype would still apply. */
11108 return dld_link ();
11113 rm -f conftest.$ac_objext conftest$ac_exeext
11114 if { (ac_try="$ac_link"
11115 case "(($ac_try" in
11116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11117 *) ac_try_echo
=$ac_try;;
11119 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11120 $as_echo "$ac_try_echo") >&5
11121 (eval "$ac_link") 2>conftest.er1
11123 grep -v '^ *+' conftest.er1
>conftest.err
11125 cat conftest.err
>&5
11126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } && {
11128 test -z "$ac_c_werror_flag" ||
11129 test ! -s conftest.err
11130 } && test -s conftest
$ac_exeext && {
11131 test "$cross_compiling" = yes ||
11132 $as_test_x conftest
$ac_exeext
11134 ac_cv_lib_dld_dld_link
=yes
11136 $as_echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.
$ac_ext >&5
11139 ac_cv_lib_dld_dld_link
=no
11142 rm -rf conftest.dSYM
11143 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11144 conftest
$ac_exeext conftest.
$ac_ext
11145 LIBS
=$ac_check_lib_save_LIBS
11147 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11148 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11149 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11150 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11171 if test "x$lt_cv_dlopen" != xno
; then
11177 case $lt_cv_dlopen in
11179 save_CPPFLAGS
="$CPPFLAGS"
11180 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11182 save_LDFLAGS
="$LDFLAGS"
11183 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11186 LIBS
="$lt_cv_dlopen_libs $LIBS"
11188 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11189 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11190 if test "${lt_cv_dlopen_self+set}" = set; then
11191 $as_echo_n "(cached) " >&6
11193 if test "$cross_compiling" = yes; then :
11194 lt_cv_dlopen_self
=cross
11196 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11197 lt_status
=$lt_dlunknown
11198 cat > conftest.
$ac_ext <<_LT_EOF
11199 #line 11199 "configure"
11200 #include "confdefs.h"
11209 # define LT_DLGLOBAL RTLD_GLOBAL
11212 # define LT_DLGLOBAL DL_GLOBAL
11214 # define LT_DLGLOBAL 0
11218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11219 find out it does not work in some platform. */
11220 #ifndef LT_DLLAZY_OR_NOW
11222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11225 # define LT_DLLAZY_OR_NOW DL_LAZY
11228 # define LT_DLLAZY_OR_NOW RTLD_NOW
11231 # define LT_DLLAZY_OR_NOW DL_NOW
11233 # define LT_DLLAZY_OR_NOW 0
11240 void fnord() { int i=42;}
11243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11244 int status = $lt_dlunknown;
11248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11249 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11250 /* dlclose (self); */
11258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259 (eval $ac_link) 2>&5
11261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11263 (.
/conftest
; exit; ) >&5 2>/dev
/null
11265 case x
$lt_status in
11266 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11267 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11268 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11271 # compilation failed
11272 lt_cv_dlopen_self
=no
11279 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11280 $as_echo "$lt_cv_dlopen_self" >&6; }
11282 if test "x$lt_cv_dlopen_self" = xyes
; then
11283 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11284 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11285 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11286 if test "${lt_cv_dlopen_self_static+set}" = set; then
11287 $as_echo_n "(cached) " >&6
11289 if test "$cross_compiling" = yes; then :
11290 lt_cv_dlopen_self_static
=cross
11292 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11293 lt_status
=$lt_dlunknown
11294 cat > conftest.
$ac_ext <<_LT_EOF
11295 #line 11295 "configure"
11296 #include "confdefs.h"
11305 # define LT_DLGLOBAL RTLD_GLOBAL
11308 # define LT_DLGLOBAL DL_GLOBAL
11310 # define LT_DLGLOBAL 0
11314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11315 find out it does not work in some platform. */
11316 #ifndef LT_DLLAZY_OR_NOW
11318 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11321 # define LT_DLLAZY_OR_NOW DL_LAZY
11324 # define LT_DLLAZY_OR_NOW RTLD_NOW
11327 # define LT_DLLAZY_OR_NOW DL_NOW
11329 # define LT_DLLAZY_OR_NOW 0
11336 void fnord() { int i=42;}
11339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11340 int status = $lt_dlunknown;
11344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11345 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11346 /* dlclose (self); */
11354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11355 (eval $ac_link) 2>&5
11357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11359 (.
/conftest
; exit; ) >&5 2>/dev
/null
11361 case x
$lt_status in
11362 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11363 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11364 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11367 # compilation failed
11368 lt_cv_dlopen_self_static
=no
11375 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11376 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11379 CPPFLAGS
="$save_CPPFLAGS"
11380 LDFLAGS
="$save_LDFLAGS"
11385 case $lt_cv_dlopen_self in
11386 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11387 *) enable_dlopen_self
=unknown
;;
11390 case $lt_cv_dlopen_self_static in
11391 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11392 *) enable_dlopen_self_static
=unknown
;;
11414 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11415 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11416 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11417 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11418 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11419 { $as_echo "$as_me:$LINENO: result: yes" >&5
11420 $as_echo "yes" >&6; }
11422 # FIXME - insert some real tests, host_os isn't really good enough
11425 if test -n "$STRIP" ; then
11426 striplib
="$STRIP -x"
11427 old_striplib
="$STRIP -S"
11428 { $as_echo "$as_me:$LINENO: result: yes" >&5
11429 $as_echo "yes" >&6; }
11431 { $as_echo "$as_me:$LINENO: result: no" >&5
11432 $as_echo "no" >&6; }
11436 { $as_echo "$as_me:$LINENO: result: no" >&5
11437 $as_echo "no" >&6; }
11453 # Report which library types will actually be built
11454 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11455 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11456 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11457 $as_echo "$can_build_shared" >&6; }
11459 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11460 $as_echo_n "checking whether to build shared libraries... " >&6; }
11461 test "$can_build_shared" = "no" && enable_shared
=no
11463 # On AIX, shared libraries and static libraries use the same namespace, and
11464 # are all built from PIC.
11467 test "$enable_shared" = yes && enable_static
=no
11468 if test -n "$RANLIB"; then
11469 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11470 postinstall_cmds
='$RANLIB $lib'
11475 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11476 test "$enable_shared" = yes && enable_static
=no
11480 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11481 $as_echo "$enable_shared" >&6; }
11483 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11484 $as_echo_n "checking whether to build static libraries... " >&6; }
11485 # Make sure either enable_shared or enable_static is yes.
11486 test "$enable_shared" = yes || enable_static
=yes
11487 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11488 $as_echo "$enable_static" >&6; }
11495 ac_cpp
='$CPP $CPPFLAGS'
11496 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11497 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11498 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11514 ac_config_commands
="$ac_config_commands libtool"
11519 # Only expand once:
11522 # By default we simply use the C compiler to build assembly code.
11524 test "${CCAS+set}" = set || CCAS
=$CC
11525 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11529 depcc
="$CCAS" am_compiler_list
=
11531 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11532 $as_echo_n "checking dependency style of $depcc... " >&6; }
11533 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11534 $as_echo_n "(cached) " >&6
11536 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11537 # We make a subdir and do the tests there. Otherwise we can end up
11538 # making bogus files that we don't know about and never remove. For
11539 # instance it was reported that on HP-UX the gcc test will end up
11540 # making a dummy file named `D' -- because `-MD' means `put the output
11543 # Copy depcomp to subdir because otherwise we won't find it if we're
11544 # using a relative directory.
11545 cp "$am_depcomp" conftest.dir
11547 # We will build objects and dependencies in a subdirectory because
11548 # it helps to detect inapplicable dependency modes. For instance
11549 # both Tru64's cc and ICC support -MD to output dependencies as a
11550 # side effect of compilation, but ICC will put the dependencies in
11551 # the current directory while Tru64 will put them in the object
11555 am_cv_CCAS_dependencies_compiler_type
=none
11556 if test "$am_compiler_list" = ""; then
11557 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11559 am__universal
=false
11562 for depmode
in $am_compiler_list; do
11563 # Setup a source with many dependencies, because some compilers
11564 # like to wrap large dependency lists on column 80 (with \), and
11565 # we should not choose a depcomp mode which is confused by this.
11567 # We need to recreate these files for each test, as the compiler may
11568 # overwrite some of them when testing with obscure command lines.
11569 # This happens at least with the AIX C compiler.
11571 for i
in 1 2 3 4 5 6; do
11572 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11573 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11574 # Solaris 8's {/usr,}/bin/sh.
11575 touch sub
/conftst
$i.h
11577 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11579 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11580 # mode. It turns out that the SunPro C++ compiler does not properly
11581 # handle `-M -o', and we need to detect this. Also, some Intel
11582 # versions had trouble with output in subdirs
11583 am__obj
=sub
/conftest.
${OBJEXT-o}
11584 am__minus_obj
="-o $am__obj"
11587 # This depmode causes a compiler race in universal mode.
11588 test "$am__universal" = false ||
continue
11591 # after this tag, mechanisms are not by side-effect, so they'll
11592 # only be used when explicitly requested
11593 if test "x$enable_dependency_tracking" = xyes
; then
11599 msvisualcpp | msvcmsys
)
11600 # This compiler won't grok `-c -o', but also, the minuso test has
11601 # not run yet. These depmodes are late enough in the game, and
11602 # so weak that their functioning should not be impacted.
11603 am__obj
=conftest.
${OBJEXT-o}
11608 if depmode
=$depmode \
11609 source=sub
/conftest.c object
=$am__obj \
11610 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11611 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11612 >/dev
/null
2>conftest.err
&&
11613 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11614 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11615 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11616 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11617 # icc doesn't choke on unknown options, it will just issue warnings
11618 # or remarks (even with -Werror). So we grep stderr for any message
11619 # that says an option was ignored or not supported.
11620 # When given -MP, icc 7.0 and 7.1 complain thusly:
11621 # icc: Command line warning: ignoring option '-M'; no argument required
11622 # The diagnosis changed in icc 8.0:
11623 # icc: Command line remark: option '-MP' not supported
11624 if (grep 'ignoring option' conftest.err ||
11625 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11626 am_cv_CCAS_dependencies_compiler_type
=$depmode
11633 rm -rf conftest.dir
11635 am_cv_CCAS_dependencies_compiler_type
=none
11639 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11640 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11641 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11644 test "x$enable_dependency_tracking" != xno \
11645 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11646 am__fastdepCCAS_TRUE
=
11647 am__fastdepCCAS_FALSE
='#'
11649 am__fastdepCCAS_TRUE
='#'
11650 am__fastdepCCAS_FALSE
=
11656 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11657 $as_echo_n "checking zfs author... " >&6; }
11658 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11659 $as_echo "$ZFS_META_AUTHOR" >&6; }
11661 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11662 $as_echo_n "checking zfs license... " >&6; }
11663 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11664 $as_echo "$ZFS_META_LICENSE" >&6; }
11671 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11672 $as_echo_n "checking whether $RPM is available... " >&6; }
11673 if tmp
=$
($RPM --version 2>/dev
/null
); then
11675 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11677 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11678 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11683 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11684 $as_echo "$HAVE_RPM" >&6; }
11689 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11690 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11691 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then
11693 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11695 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11696 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11701 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11702 $as_echo "$HAVE_RPMBUILD" >&6; }
11717 DPKGBUILD
=dpkg-buildpackage
11719 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11720 $as_echo_n "checking whether $DPKG is available... " >&6; }
11721 if tmp
=$
($DPKG --version 2>/dev
/null
); then
11723 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11725 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11726 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11731 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11732 $as_echo "$HAVE_DPKG" >&6; }
11737 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11738 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11739 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then
11741 DPKGBUILD_VERSION
=$
(echo $tmp | \
11742 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11744 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11745 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11750 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11751 $as_echo "$HAVE_DPKGBUILD" >&6; }
11767 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11768 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11769 if tmp
=$
($ALIEN --version 2>/dev
/null
); then
11771 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11773 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11774 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11779 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11780 $as_echo "$HAVE_ALIEN" >&6; }
11790 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11791 $as_echo_n "checking linux distribution... " >&6; }
11792 if test -f /etc
/redhat-release
; then
11794 elif test -f /etc
/fedora-release
; then
11796 elif test -f /etc
/gentoo-release
; then
11798 elif test -f /etc
/debian_version
; then
11800 elif test -f /etc
/SuSE-release
; then
11802 elif test -f /etc
/slackware-version
; then
11804 elif test -f /etc
/lsb-release
; then
11806 elif test -f /etc
/lunar.release
; then
11808 elif test -f /etc
/arch-release
; then
11813 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11814 $as_echo "$VENDOR" >&6; }
11817 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11818 $as_echo_n "checking default package type... " >&6; }
11820 redhat
) DEFAULT_PACKAGE
=rpm
;;
11821 fedora
) DEFAULT_PACKAGE
=rpm
;;
11822 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11823 debian
) DEFAULT_PACKAGE
=deb
;;
11824 sles
) DEFAULT_PACKAGE
=rpm
;;
11825 slackware
) DEFAULT_PACKAGE
=tgz
;;
11826 gentoo
) DEFAULT_PACKAGE
=tgz
;;
11827 lunar
) DEFAULT_PACKAGE
=tgz
;;
11828 *) DEFAULT_PACKAGE
=rpm
;;
11831 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11832 $as_echo "$DEFAULT_PACKAGE" >&6; }
11835 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11836 $as_echo_n "checking default init directory... " >&6; }
11838 arch
) DEFAULT_INIT_DIR
=$sysconfdir/rc.d
;;
11839 *) DEFAULT_INIT_DIR
=$sysconfdir/init.d
;;
11842 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11843 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11846 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11847 $as_echo_n "checking default init script type... " >&6; }
11849 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
11850 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
11851 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
11852 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
11853 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
11854 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
11855 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
11856 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
11857 arch
) DEFAULT_INIT_SCRIPT
=arch
;;
11858 *) DEFAULT_INIT_SCRIPT
=lsb
;;
11861 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11862 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11867 TARGET_ASM_DIR
=asm-generic
11872 # Check whether --with-config was given.
11873 if test "${with_config+set}" = set; then
11874 withval
=$with_config; ZFS_CONFIG
="$withval"
11878 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11879 $as_echo_n "checking zfs config... " >&6; }
11880 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11881 $as_echo "$ZFS_CONFIG" >&6; };
11886 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11887 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11889 saved_flags
="$CFLAGS"
11890 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
11892 if test "$cross_compiling" = yes; then
11893 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11895 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11896 See \`config.log' for more details." >&5
11897 $as_echo "$as_me: error: cannot run test program while cross compiling
11898 See \`config.log' for more details." >&2;}
11899 { (exit 1); exit 1; }; }; }
11901 cat >conftest.
$ac_ext <<_ACEOF
11904 cat confdefs.h
>>conftest.
$ac_ext
11905 cat >>conftest.
$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11916 rm -f conftest
$ac_exeext
11917 if { (ac_try
="$ac_link"
11918 case "(($ac_try" in
11919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924 (eval "$ac_link") 2>&5
11926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11928 { (case "(($ac_try" in
11929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11930 *) ac_try_echo
=$ac_try;;
11932 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11933 $as_echo "$ac_try_echo") >&5
11934 (eval "$ac_try") 2>&5
11936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11939 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
11940 { $as_echo "$as_me:$LINENO: result: yes" >&5
11941 $as_echo "yes" >&6; }
11944 $as_echo "$as_me: program exited with status $ac_status" >&5
11945 $as_echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.
$ac_ext >&5
11948 ( exit $ac_status )
11950 NO_UNUSED_BUT_SET_VARIABLE
=
11951 { $as_echo "$as_me:$LINENO: result: no" >&5
11952 $as_echo "no" >&6; }
11955 rm -rf conftest.dSYM
11956 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11961 CFLAGS
="$saved_flags"
11966 case "$ZFS_CONFIG" in
11970 # Check whether --with-linux was given.
11971 if test "${with_linux+set}" = set; then
11972 withval
=$with_linux; kernelsrc
="$withval"
11977 # Check whether --with-linux-obj was given.
11978 if test "${with_linux_obj+set}" = set; then
11979 withval
=$with_linux_obj; kernelbuild
="$withval"
11983 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11984 $as_echo_n "checking kernel source directory... " >&6; }
11985 if test -z "$kernelsrc"; then
11987 if test -e "/lib/modules/$(uname -r)/source"; then
11989 headersdir
="/lib/modules/$(uname -r)/source"
11990 sourcelink
=$
(readlink
-f "$headersdir")
11992 elif test -e "/lib/modules/$(uname -r)/build"; then
11994 headersdir
="/lib/modules/$(uname -r)/build"
11995 sourcelink
=$
(readlink
-f "$headersdir")
11999 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
12001 2>/dev
/null |
grep -v obj |
tail -1)
12006 if test -n "$sourcelink" && test -e ${sourcelink}; then
12008 kernelsrc
=`readlink -f ${sourcelink}`
12012 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12013 $as_echo "Not found" >&6; }
12014 { { $as_echo "$as_me:$LINENO: error:
12015 *** Please make sure the kernel devel package for your distribution
12016 *** is installed then try again. If that fails you can specify the
12017 *** location of the kernel source with the '--with-linux=PATH' option." >&5
12018 $as_echo "$as_me: error:
12019 *** Please make sure the kernel devel package for your distribution
12020 *** is installed then try again. If that fails you can specify the
12021 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12022 { (exit 1); exit 1; }; }
12029 if test "$kernelsrc" = "NONE"; then
12039 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12040 $as_echo "$kernelsrc" >&6; }
12041 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12042 $as_echo_n "checking kernel build directory... " >&6; }
12043 if test -z "$kernelbuild"; then
12045 if test -e "/lib/modules/$(uname -r)/build"; then
12047 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
12049 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12051 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12053 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
12055 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
12057 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
12059 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
12063 kernelbuild
=${kernelsrc}
12070 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12071 $as_echo "$kernelbuild" >&6; }
12073 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12074 $as_echo_n "checking kernel source version... " >&6; }
12075 utsrelease1
=$kernelbuild/include
/linux
/version.h
12076 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
12077 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
12078 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
12080 utsrelease
=linux
/version.h
12082 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
12084 utsrelease
=linux
/utsrelease.h
12086 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
12088 utsrelease
=generated
/utsrelease.h
12093 if test "$utsrelease"; then
12095 kernsrcver
=`(echo "#include <$utsrelease>";
12096 echo "kernsrcver=UTS_RELEASE") |
12097 cpp -I $kernelbuild/include |
12098 grep "^kernsrcver=" | cut -d \" -f 2`
12100 if test -z "$kernsrcver"; then
12102 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12103 $as_echo "Not found" >&6; }
12104 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12105 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12106 { (exit 1); exit 1; }; }
12113 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12114 $as_echo "Not found" >&6; }
12115 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12116 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12117 { (exit 1); exit 1; }; }
12122 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12123 $as_echo "$kernsrcver" >&6; }
12126 LINUX_OBJ
=${kernelbuild}
12127 LINUX_VERSION
=${kernsrcver}
12134 modpost
=$LINUX/scripts
/Makefile.modpost
12135 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12136 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12137 if test -f "$modpost"; then
12139 if grep -q Modules.symvers
$modpost; then
12141 LINUX_SYMBOLS
=Modules.symvers
12145 LINUX_SYMBOLS
=Module.symvers
12150 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12152 { { $as_echo "$as_me:$LINENO: error:
12153 *** Please make sure the kernel devel package for your distribution
12154 *** is installed. If your building with a custom kernel make sure the
12155 *** kernel is configured, built, and the '--with-linux=PATH' configure
12156 *** option refers to the location of the kernel source." >&5
12157 $as_echo "$as_me: error:
12158 *** Please make sure the kernel devel package for your distribution
12159 *** is installed. If your building with a custom kernel make sure the
12160 *** kernel is configured, built, and the '--with-linux=PATH' configure
12161 *** option refers to the location of the kernel source." >&2;}
12162 { (exit 1); exit 1; }; }
12173 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12174 $as_echo "$LINUX_SYMBOLS" >&6; }
12180 # Check whether --with-spl was given.
12181 if test "${with_spl+set}" = set; then
12182 withval
=$with_spl; splsrc
="$withval"
12187 # Check whether --with-spl-obj was given.
12188 if test "${with_spl_obj+set}" = set; then
12189 withval
=$with_spl_obj; splbuild
="$withval"
12194 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12195 $as_echo_n "checking spl source directory... " >&6; }
12196 if test -z "$splsrc"; then
12198 sourcelink
=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12199 2>/dev/null | tail -1`
12201 if test -z "$sourcelink" ||
test ! -e $sourcelink; then
12208 if test -e $sourcelink; then
12210 splsrc
=`readlink -f ${sourcelink}`
12214 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12215 $as_echo "Not found" >&6; }
12216 { { $as_echo "$as_me:$LINENO: error:
12217 *** Please make sure the spl devel package for your distribution
12218 *** is installed then try again. If that fails you can specify the
12219 *** location of the spl source with the '--with-spl=PATH' option." >&5
12220 $as_echo "$as_me: error:
12221 *** Please make sure the spl devel package for your distribution
12222 *** is installed then try again. If that fails you can specify the
12223 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12224 { (exit 1); exit 1; }; }
12231 if test "$splsrc" = "NONE"; then
12242 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12243 $as_echo "$splsrc" >&6; }
12244 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12245 $as_echo_n "checking spl build directory... " >&6; }
12246 if test -z "$splbuild"; then
12252 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12253 $as_echo "$splbuild" >&6; }
12255 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12256 $as_echo_n "checking spl source version... " >&6; }
12257 if test -r $splbuild/spl_config.h
&&
12258 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then
12261 splsrcver
=`(echo "#include <spl_config.h>";
12262 echo "splsrcver=SPL_META_VERSION") |
12264 grep "^splsrcver=" | cut -d \" -f 2`
12269 if test -z "$splsrcver"; then
12271 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12272 $as_echo "Not found" >&6; }
12273 { { $as_echo "$as_me:$LINENO: error:
12274 *** Cannot determine the version of the spl source.
12275 *** Please prepare the spl source before running this script" >&5
12276 $as_echo "$as_me: error:
12277 *** Cannot determine the version of the spl source.
12278 *** Please prepare the spl source before running this script" >&2;}
12279 { (exit 1); exit 1; }; }
12284 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12285 $as_echo "$splsrcver" >&6; }
12288 SPL_OBJ
=${splbuild}
12289 SPL_VERSION
=${splsrcver}
12296 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12297 $as_echo_n "checking spl file name for module symbols... " >&6; }
12298 if test -r $SPL_OBJ/Module.symvers
; then
12300 SPL_SYMBOLS
=Module.symvers
12302 elif test -r $SPL_OBJ/Modules.symvers
; then
12304 SPL_SYMBOLS
=Modules.symvers
12306 elif test -r $SPL_OBJ/module
/Module.symvers
; then
12308 SPL_SYMBOLS
=Module.symvers
12310 elif test -r $SPL_OBJ/module
/Modules.symvers
; then
12312 SPL_SYMBOLS
=Modules.symvers
12316 SPL_SYMBOLS
=$LINUX_SYMBOLS
12321 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12322 $as_echo "$SPL_SYMBOLS" >&6; }
12328 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12329 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12332 cat confdefs.h
- <<_ACEOF >conftest.c
12335 cat confdefs.h
>>conftest.
$ac_ext
12336 cat >>conftest.
$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12340 #include <linux/module.h>
12346 #ifndef CONFIG_PREEMPT
12347 #error CONFIG_PREEMPT not #defined
12357 rm -Rf build
&& mkdir
-p build
12358 echo "obj-m := conftest.o" >build
/Makefile
12359 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12371 { $as_echo "$as_me:$LINENO: result: yes" >&5
12372 $as_echo "yes" >&6; }
12373 { { $as_echo "$as_me:$LINENO: error:
12374 *** Kernel built with CONFIG_PREEMPT which is not supported.
12375 *** You must rebuild your kernel without this option." >&5
12376 $as_echo "$as_me: error:
12377 *** Kernel built with CONFIG_PREEMPT which is not supported.
12378 *** You must rebuild your kernel without this option." >&2;}
12379 { (exit 1); exit 1; }; }
12382 $as_echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.
$ac_ext >&5
12385 { $as_echo "$as_me:$LINENO: result: no" >&5
12386 $as_echo "no" >&6; }
12398 if test "$ZFS_META_LICENSE" = CDDL
; then
12400 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12401 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12404 cat confdefs.h
- <<_ACEOF >conftest.c
12407 cat confdefs.h
>>conftest.
$ac_ext
12408 cat >>conftest.
$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12412 #include <linux/module.h>
12418 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12419 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12429 rm -Rf build
&& mkdir
-p build
12430 echo "obj-m := conftest.o" >build
/Makefile
12431 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12443 { $as_echo "$as_me:$LINENO: result: yes" >&5
12444 $as_echo "yes" >&6; }
12445 { { $as_echo "$as_me:$LINENO: error:
12446 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12447 *** incompatible with the CDDL license. You must rebuild
12448 *** your kernel without this option." >&5
12449 $as_echo "$as_me: error:
12450 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12451 *** incompatible with the CDDL license. You must rebuild
12452 *** your kernel without this option." >&2;}
12453 { (exit 1); exit 1; }; }
12456 $as_echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.
$ac_ext >&5
12459 { $as_echo "$as_me:$LINENO: result: no" >&5
12460 $as_echo "no" >&6; }
12475 if test "$ZFS_META_LICENSE" = GPL
; then
12478 cat >>confdefs.h
<<\_ACEOF
12479 #define HAVE_GPL_ONLY_SYMBOLS 1
12487 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12488 $as_echo_n "checking block device operation prototypes... " >&6; }
12491 cat confdefs.h
- <<_ACEOF >conftest.c
12494 cat confdefs.h
>>conftest.
$ac_ext
12495 cat >>conftest.
$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12499 #include <linux/blkdev.h>
12505 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12506 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12507 int (*blk_ioctl) (struct block_device *, fmode_t,
12508 unsigned, unsigned long) = NULL;
12509 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12510 unsigned, unsigned long) = NULL;
12511 struct block_device_operations blk_ops = {
12513 .release = blk_release,
12514 .ioctl = blk_ioctl,
12515 .compat_ioctl = blk_compat_ioctl,
12518 blk_ops.open(NULL, 0);
12519 blk_ops.release(NULL, 0);
12520 blk_ops.ioctl(NULL, 0, 0, 0);
12521 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12530 rm -Rf build
&& mkdir
-p build
12531 echo "obj-m := conftest.o" >build
/Makefile
12532 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12544 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12545 $as_echo "struct block_device" >&6; }
12547 cat >>confdefs.h
<<\_ACEOF
12548 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12553 $as_echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.
$ac_ext >&5
12556 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12557 $as_echo "struct inode" >&6; }
12567 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12568 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12571 cat confdefs.h
- <<_ACEOF >conftest.c
12574 cat confdefs.h
>>conftest.
$ac_ext
12575 cat >>conftest.
$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12579 #include <linux/types.h>
12585 fmode_t *ptr __attribute__ ((unused));
12594 rm -Rf build
&& mkdir
-p build
12595 echo "obj-m := conftest.o" >build
/Makefile
12596 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12608 { $as_echo "$as_me:$LINENO: result: yes" >&5
12609 $as_echo "yes" >&6; }
12611 cat >>confdefs.h
<<\_ACEOF
12612 #define HAVE_FMODE_T 1
12617 $as_echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.
$ac_ext >&5
12620 { $as_echo "$as_me:$LINENO: result: no" >&5
12621 $as_echo "no" >&6; }
12632 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12633 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12636 cat confdefs.h
- <<_ACEOF >conftest.c
12639 cat confdefs.h
>>conftest.
$ac_ext
12640 cat >>conftest.
$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12644 #include <linux/kobject.h>
12650 int val __attribute__ ((unused));
12651 val = KOBJ_NAME_LEN;
12660 rm -Rf build
&& mkdir
-p build
12661 echo "obj-m := conftest.o" >build
/Makefile
12662 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12674 { $as_echo "$as_me:$LINENO: result: yes" >&5
12675 $as_echo "yes" >&6; }
12677 cat >>confdefs.h
<<\_ACEOF
12678 #define HAVE_KOBJ_NAME_LEN 1
12683 $as_echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.
$ac_ext >&5
12686 { $as_echo "$as_me:$LINENO: result: no" >&5
12687 $as_echo "no" >&6; }
12698 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12699 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12700 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12701 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12703 if test $rc -ne 0; then
12706 for file in fs
/block_dev.c
; do
12707 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev
/null
12709 if test $rc -eq 0; then
12717 if test $export -eq 0; then
12719 { $as_echo "$as_me:$LINENO: result: no" >&5
12720 $as_echo "no" >&6; }
12725 { $as_echo "$as_me:$LINENO: result: yes" >&5
12726 $as_echo "yes" >&6; }
12728 cat >>confdefs.h
<<\_ACEOF
12729 #define HAVE_BLKDEV_GET_BY_PATH 1
12738 { $as_echo "$as_me:$LINENO: result: yes" >&5
12739 $as_echo "yes" >&6; }
12741 cat >>confdefs.h
<<\_ACEOF
12742 #define HAVE_BLKDEV_GET_BY_PATH 1
12751 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12752 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12753 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12754 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12756 if test $rc -ne 0; then
12759 for file in fs
/block_dev.c
; do
12760 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev
/null
12762 if test $rc -eq 0; then
12770 if test $export -eq 0; then
12772 { $as_echo "$as_me:$LINENO: result: no" >&5
12773 $as_echo "no" >&6; }
12778 { $as_echo "$as_me:$LINENO: result: yes" >&5
12779 $as_echo "yes" >&6; }
12781 cat >>confdefs.h
<<\_ACEOF
12782 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12791 { $as_echo "$as_me:$LINENO: result: yes" >&5
12792 $as_echo "yes" >&6; }
12794 cat >>confdefs.h
<<\_ACEOF
12795 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12804 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12805 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12808 cat confdefs.h
- <<_ACEOF >conftest.c
12811 cat confdefs.h
>>conftest.
$ac_ext
12812 cat >>conftest.
$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12816 #include <linux/buffer_head.h>
12822 struct block_device *bdev = NULL;
12823 invalidate_bdev(bdev);
12832 rm -Rf build
&& mkdir
-p build
12833 echo "obj-m := conftest.o" >build
/Makefile
12834 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 (eval $ac_try) 2>&5
12843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; }; then
12846 { $as_echo "$as_me:$LINENO: result: yes" >&5
12847 $as_echo "yes" >&6; }
12849 cat >>confdefs.h
<<\_ACEOF
12850 #define HAVE_1ARG_INVALIDATE_BDEV 1
12855 $as_echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.
$ac_ext >&5
12858 { $as_echo "$as_me:$LINENO: result: no" >&5
12859 $as_echo "no" >&6; }
12870 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12871 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12874 cat confdefs.h
- <<_ACEOF >conftest.c
12877 cat confdefs.h
>>conftest.
$ac_ext
12878 cat >>conftest.
$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12882 #include <linux/blkdev.h>
12888 struct block_device *bdev = NULL;
12889 bdev_logical_block_size(bdev);
12898 rm -Rf build
&& mkdir
-p build
12899 echo "obj-m := conftest.o" >build
/Makefile
12900 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12912 { $as_echo "$as_me:$LINENO: result: yes" >&5
12913 $as_echo "yes" >&6; }
12915 cat >>confdefs.h
<<\_ACEOF
12916 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12921 $as_echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.
$ac_ext >&5
12924 { $as_echo "$as_me:$LINENO: result: no" >&5
12925 $as_echo "no" >&6; }
12936 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12937 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12938 EXTRA_KCFLAGS
="-Werror"
12941 cat confdefs.h
- <<_ACEOF >conftest.c
12944 cat confdefs.h
>>conftest.
$ac_ext
12945 cat >>conftest.
$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12949 #include <linux/bio.h>
12956 (void)bio_empty_barrier(&bio);
12965 rm -Rf build
&& mkdir
-p build
12966 echo "obj-m := conftest.o" >build
/Makefile
12967 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; }; then
12979 { $as_echo "$as_me:$LINENO: result: yes" >&5
12980 $as_echo "yes" >&6; }
12982 cat >>confdefs.h
<<\_ACEOF
12983 #define HAVE_BIO_EMPTY_BARRIER 1
12988 $as_echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.
$ac_ext >&5
12991 { $as_echo "$as_me:$LINENO: result: no" >&5
12992 $as_echo "no" >&6; }
13003 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13004 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13007 cat confdefs.h
- <<_ACEOF >conftest.c
13010 cat confdefs.h
>>conftest.
$ac_ext
13011 cat >>conftest.
$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13015 #include <linux/bio.h>
13021 int flags __attribute__ ((unused));
13022 flags = (1 << BIO_RW_FAILFAST);
13031 rm -Rf build
&& mkdir
-p build
13032 echo "obj-m := conftest.o" >build
/Makefile
13033 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13045 { $as_echo "$as_me:$LINENO: result: yes" >&5
13046 $as_echo "yes" >&6; }
13048 cat >>confdefs.h
<<\_ACEOF
13049 #define HAVE_BIO_RW_FAILFAST 1
13054 $as_echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.
$ac_ext >&5
13057 { $as_echo "$as_me:$LINENO: result: no" >&5
13058 $as_echo "no" >&6; }
13069 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13070 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13073 cat confdefs.h
- <<_ACEOF >conftest.c
13076 cat confdefs.h
>>conftest.
$ac_ext
13077 cat >>conftest.
$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13081 #include <linux/bio.h>
13087 int flags __attribute__ ((unused));
13088 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13089 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13090 (1 << BIO_RW_FAILFAST_DRIVER));
13099 rm -Rf build
&& mkdir
-p build
13100 echo "obj-m := conftest.o" >build
/Makefile
13101 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; }; then
13113 { $as_echo "$as_me:$LINENO: result: yes" >&5
13114 $as_echo "yes" >&6; }
13116 cat >>confdefs.h
<<\_ACEOF
13117 #define HAVE_BIO_RW_FAILFAST_DTD 1
13122 $as_echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.
$ac_ext >&5
13125 { $as_echo "$as_me:$LINENO: result: no" >&5
13126 $as_echo "no" >&6; }
13137 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13138 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13141 cat confdefs.h
- <<_ACEOF >conftest.c
13144 cat confdefs.h
>>conftest.
$ac_ext
13145 cat >>conftest.
$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13149 #include <linux/bio.h>
13155 int flags __attribute__ ((unused));
13156 flags = REQ_FAILFAST_MASK;
13165 rm -Rf build
&& mkdir
-p build
13166 echo "obj-m := conftest.o" >build
/Makefile
13167 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
13179 { $as_echo "$as_me:$LINENO: result: yes" >&5
13180 $as_echo "yes" >&6; }
13182 cat >>confdefs.h
<<\_ACEOF
13183 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13188 $as_echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.
$ac_ext >&5
13191 { $as_echo "$as_me:$LINENO: result: no" >&5
13192 $as_echo "no" >&6; }
13203 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13204 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13205 tmp_flags
="$EXTRA_KCFLAGS"
13206 EXTRA_KCFLAGS
="-Werror"
13209 cat confdefs.h
- <<_ACEOF >conftest.c
13212 cat confdefs.h
>>conftest.
$ac_ext
13213 cat >>conftest.
$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13217 #include <linux/bio.h>
13223 void (*wanted_end_io)(struct bio *, int) = NULL;
13224 bio_end_io_t *local_end_io __attribute__ ((unused));
13226 local_end_io = wanted_end_io;
13235 rm -Rf build
&& mkdir
-p build
13236 echo "obj-m := conftest.o" >build
/Makefile
13237 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
13249 { $as_echo "$as_me:$LINENO: result: yes" >&5
13250 $as_echo "yes" >&6; }
13252 cat >>confdefs.h
<<\_ACEOF
13253 #define HAVE_2ARGS_BIO_END_IO_T 1
13258 $as_echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.
$ac_ext >&5
13261 { $as_echo "$as_me:$LINENO: result: no" >&5
13262 $as_echo "no" >&6; }
13271 EXTRA_KCFLAGS
="$tmp_flags"
13274 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13275 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13278 cat confdefs.h
- <<_ACEOF >conftest.c
13281 cat confdefs.h
>>conftest.
$ac_ext
13282 cat >>conftest.
$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13286 #include <linux/bio.h>
13292 int flags __attribute__ ((unused));
13293 flags = BIO_RW_SYNC;
13302 rm -Rf build
&& mkdir
-p build
13303 echo "obj-m := conftest.o" >build
/Makefile
13304 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13316 { $as_echo "$as_me:$LINENO: result: yes" >&5
13317 $as_echo "yes" >&6; }
13319 cat >>confdefs.h
<<\_ACEOF
13320 #define HAVE_BIO_RW_SYNC 1
13325 $as_echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.
$ac_ext >&5
13328 { $as_echo "$as_me:$LINENO: result: no" >&5
13329 $as_echo "no" >&6; }
13340 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13341 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13344 cat confdefs.h
- <<_ACEOF >conftest.c
13347 cat confdefs.h
>>conftest.
$ac_ext
13348 cat >>conftest.
$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13352 #include <linux/bio.h>
13358 int flags __attribute__ ((unused));
13359 flags = BIO_RW_SYNCIO;
13368 rm -Rf build
&& mkdir
-p build
13369 echo "obj-m := conftest.o" >build
/Makefile
13370 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13382 { $as_echo "$as_me:$LINENO: result: yes" >&5
13383 $as_echo "yes" >&6; }
13385 cat >>confdefs.h
<<\_ACEOF
13386 #define HAVE_BIO_RW_SYNCIO 1
13391 $as_echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.
$ac_ext >&5
13394 { $as_echo "$as_me:$LINENO: result: no" >&5
13395 $as_echo "no" >&6; }
13406 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13407 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13410 cat confdefs.h
- <<_ACEOF >conftest.c
13413 cat confdefs.h
>>conftest.
$ac_ext
13414 cat >>conftest.
$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13418 #include <linux/bio.h>
13424 int flags __attribute__ ((unused));
13434 rm -Rf build
&& mkdir
-p build
13435 echo "obj-m := conftest.o" >build
/Makefile
13436 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13448 { $as_echo "$as_me:$LINENO: result: yes" >&5
13449 $as_echo "yes" >&6; }
13451 cat >>confdefs.h
<<\_ACEOF
13452 #define HAVE_REQ_SYNC 1
13457 $as_echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.
$ac_ext >&5
13460 { $as_echo "$as_me:$LINENO: result: no" >&5
13461 $as_echo "no" >&6; }
13472 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13473 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13476 cat confdefs.h
- <<_ACEOF >conftest.c
13479 cat confdefs.h
>>conftest.
$ac_ext
13480 cat >>conftest.
$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13484 #include <linux/blkdev.h>
13490 struct request *req = NULL;
13491 (void) blk_end_request(req, 0, 0);
13500 rm -Rf build
&& mkdir
-p build
13501 echo "obj-m := conftest.o" >build
/Makefile
13502 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504 (eval $ac_try) 2>&5
13506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13514 { $as_echo "$as_me:$LINENO: result: yes" >&5
13515 $as_echo "yes" >&6; }
13517 cat >>confdefs.h
<<\_ACEOF
13518 #define HAVE_BLK_END_REQUEST 1
13523 $as_echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.
$ac_ext >&5
13526 { $as_echo "$as_me:$LINENO: result: no" >&5
13527 $as_echo "no" >&6; }
13537 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13538 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13541 cat confdefs.h
- <<_ACEOF >conftest.c
13544 cat confdefs.h
>>conftest.
$ac_ext
13545 cat >>conftest.
$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13549 #include <linux/module.h>
13550 #include <linux/blkdev.h>
13552 MODULE_LICENSE("CDDL");
13558 struct request *req = NULL;
13559 (void) blk_end_request(req, 0, 0);
13568 rm -Rf build
&& mkdir
-p build
13569 echo "obj-m := conftest.o" >build
/Makefile
13570 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; }; then
13582 { $as_echo "$as_me:$LINENO: result: no" >&5
13583 $as_echo "no" >&6; }
13586 $as_echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.
$ac_ext >&5
13589 { $as_echo "$as_me:$LINENO: result: yes" >&5
13590 $as_echo "yes" >&6; }
13592 cat >>confdefs.h
<<\_ACEOF
13593 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13606 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
13607 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13610 cat confdefs.h
- <<_ACEOF >conftest.c
13613 cat confdefs.h
>>conftest.
$ac_ext
13614 cat >>conftest.
$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13618 #include <linux/blkdev.h>
13624 struct request_queue *q = NULL;
13625 (void) blk_fetch_request(q);
13634 rm -Rf build
&& mkdir
-p build
13635 echo "obj-m := conftest.o" >build
/Makefile
13636 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13648 { $as_echo "$as_me:$LINENO: result: yes" >&5
13649 $as_echo "yes" >&6; }
13651 cat >>confdefs.h
<<\_ACEOF
13652 #define HAVE_BLK_FETCH_REQUEST 1
13657 $as_echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.
$ac_ext >&5
13660 { $as_echo "$as_me:$LINENO: result: no" >&5
13661 $as_echo "no" >&6; }
13672 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13673 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13676 cat confdefs.h
- <<_ACEOF >conftest.c
13679 cat confdefs.h
>>conftest.
$ac_ext
13680 cat >>conftest.
$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13684 #include <linux/blkdev.h>
13690 struct request_queue *q = NULL;
13691 struct request *req = NULL;
13692 blk_requeue_request(q, req);
13701 rm -Rf build
&& mkdir
-p build
13702 echo "obj-m := conftest.o" >build
/Makefile
13703 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13715 { $as_echo "$as_me:$LINENO: result: yes" >&5
13716 $as_echo "yes" >&6; }
13718 cat >>confdefs.h
<<\_ACEOF
13719 #define HAVE_BLK_REQUEUE_REQUEST 1
13724 $as_echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.
$ac_ext >&5
13727 { $as_echo "$as_me:$LINENO: result: no" >&5
13728 $as_echo "no" >&6; }
13739 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13740 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13743 cat confdefs.h
- <<_ACEOF >conftest.c
13746 cat confdefs.h
>>conftest.
$ac_ext
13747 cat >>conftest.
$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13751 #include <linux/blkdev.h>
13757 struct request *req = NULL;
13758 (void) blk_rq_bytes(req);
13767 rm -Rf build
&& mkdir
-p build
13768 echo "obj-m := conftest.o" >build
/Makefile
13769 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13781 { $as_echo "$as_me:$LINENO: result: yes" >&5
13782 $as_echo "yes" >&6; }
13784 cat >>confdefs.h
<<\_ACEOF
13785 #define HAVE_BLK_RQ_BYTES 1
13790 $as_echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.
$ac_ext >&5
13793 { $as_echo "$as_me:$LINENO: result: no" >&5
13794 $as_echo "no" >&6; }
13804 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13805 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13808 cat confdefs.h
- <<_ACEOF >conftest.c
13811 cat confdefs.h
>>conftest.
$ac_ext
13812 cat >>conftest.
$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13816 #include <linux/module.h>
13817 #include <linux/blkdev.h>
13819 MODULE_LICENSE("CDDL");
13825 struct request *req = NULL;
13826 (void) blk_rq_bytes(req);
13835 rm -Rf build
&& mkdir
-p build
13836 echo "obj-m := conftest.o" >build
/Makefile
13837 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13849 { $as_echo "$as_me:$LINENO: result: no" >&5
13850 $as_echo "no" >&6; }
13853 $as_echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.
$ac_ext >&5
13856 { $as_echo "$as_me:$LINENO: result: yes" >&5
13857 $as_echo "yes" >&6; }
13859 cat >>confdefs.h
<<\_ACEOF
13860 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13873 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13874 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13877 cat confdefs.h
- <<_ACEOF >conftest.c
13880 cat confdefs.h
>>conftest.
$ac_ext
13881 cat >>conftest.
$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13885 #include <linux/blkdev.h>
13891 struct request *req = NULL;
13892 (void) blk_rq_pos(req);
13901 rm -Rf build
&& mkdir
-p build
13902 echo "obj-m := conftest.o" >build
/Makefile
13903 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13915 { $as_echo "$as_me:$LINENO: result: yes" >&5
13916 $as_echo "yes" >&6; }
13918 cat >>confdefs.h
<<\_ACEOF
13919 #define HAVE_BLK_RQ_POS 1
13924 $as_echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.
$ac_ext >&5
13927 { $as_echo "$as_me:$LINENO: result: no" >&5
13928 $as_echo "no" >&6; }
13939 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13940 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13943 cat confdefs.h
- <<_ACEOF >conftest.c
13946 cat confdefs.h
>>conftest.
$ac_ext
13947 cat >>conftest.
$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13951 #include <linux/blkdev.h>
13957 struct request *req = NULL;
13958 (void) blk_rq_sectors(req);
13967 rm -Rf build
&& mkdir
-p build
13968 echo "obj-m := conftest.o" >build
/Makefile
13969 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
13981 { $as_echo "$as_me:$LINENO: result: yes" >&5
13982 $as_echo "yes" >&6; }
13984 cat >>confdefs.h
<<\_ACEOF
13985 #define HAVE_BLK_RQ_SECTORS 1
13990 $as_echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.
$ac_ext >&5
13993 { $as_echo "$as_me:$LINENO: result: no" >&5
13994 $as_echo "no" >&6; }
14005 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
14006 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14009 cat confdefs.h
- <<_ACEOF >conftest.c
14012 cat confdefs.h
>>conftest.
$ac_ext
14013 cat >>conftest.
$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14017 #include <linux/blkdev.h>
14023 struct gendisk *disk = NULL;
14024 (void) get_disk_ro(disk);
14033 rm -Rf build
&& mkdir
-p build
14034 echo "obj-m := conftest.o" >build
/Makefile
14035 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; }; then
14047 { $as_echo "$as_me:$LINENO: result: yes" >&5
14048 $as_echo "yes" >&6; }
14050 cat >>confdefs.h
<<\_ACEOF
14051 #define HAVE_GET_DISK_RO 1
14056 $as_echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.
$ac_ext >&5
14059 { $as_echo "$as_me:$LINENO: result: no" >&5
14060 $as_echo "no" >&6; }
14071 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
14072 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14075 cat confdefs.h
- <<_ACEOF >conftest.c
14078 cat confdefs.h
>>conftest.
$ac_ext
14079 cat >>conftest.
$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14083 #include <linux/blkdev.h>
14089 struct request *req = NULL;
14090 (void) rq_is_sync(req);
14099 rm -Rf build
&& mkdir
-p build
14100 echo "obj-m := conftest.o" >build
/Makefile
14101 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14113 { $as_echo "$as_me:$LINENO: result: yes" >&5
14114 $as_echo "yes" >&6; }
14116 cat >>confdefs.h
<<\_ACEOF
14117 #define HAVE_RQ_IS_SYNC 1
14122 $as_echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.
$ac_ext >&5
14125 { $as_echo "$as_me:$LINENO: result: no" >&5
14126 $as_echo "no" >&6; }
14137 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
14138 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14141 cat confdefs.h
- <<_ACEOF >conftest.c
14144 cat confdefs.h
>>conftest.
$ac_ext
14145 cat >>conftest.
$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14149 #include <linux/blkdev.h>
14155 struct bio_vec *bv;
14156 struct req_iterator iter;
14157 struct request *req = NULL;
14158 rq_for_each_segment(bv, req, iter) { }
14167 rm -Rf build
&& mkdir
-p build
14168 echo "obj-m := conftest.o" >build
/Makefile
14169 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14181 { $as_echo "$as_me:$LINENO: result: yes" >&5
14182 $as_echo "yes" >&6; }
14184 cat >>confdefs.h
<<\_ACEOF
14185 #define HAVE_RQ_FOR_EACH_SEGMENT 1
14190 $as_echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.
$ac_ext >&5
14193 { $as_echo "$as_me:$LINENO: result: no" >&5
14194 $as_echo "no" >&6; }
14204 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
14205 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14208 cat confdefs.h
- <<_ACEOF >conftest.c
14211 cat confdefs.h
>>conftest.
$ac_ext
14212 cat >>conftest.
$ac_ext <<_ACEOF
14213 /* end confdefs.h. */
14216 #include <linux/fs.h>
14217 #include <linux/xattr.h>
14219 const struct xattr_handler xattr_test_handler = {
14225 const struct xattr_handler *xattr_handlers[] = {
14226 &xattr_test_handler,
14233 struct super_block sb __attribute__ ((unused));
14235 sb.s_xattr = xattr_handlers;
14244 rm -Rf build
&& mkdir
-p build
14245 echo "obj-m := conftest.o" >build
/Makefile
14246 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 (eval $ac_try) 2>&5
14255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; }; then
14258 { $as_echo "$as_me:$LINENO: result: yes" >&5
14259 $as_echo "yes" >&6; }
14261 cat >>confdefs.h
<<\_ACEOF
14262 #define HAVE_CONST_XATTR_HANDLER 1
14267 $as_echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.
$ac_ext >&5
14270 { $as_echo "$as_me:$LINENO: result: no" >&5
14271 $as_echo "no" >&6; }
14282 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14283 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14286 cat confdefs.h
- <<_ACEOF >conftest.c
14289 cat confdefs.h
>>conftest.
$ac_ext
14290 cat >>conftest.
$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14294 #include <linux/xattr.h>
14300 int (*get)(struct dentry *dentry, const char *name,
14301 void *buffer, size_t size, int handler_flags) = NULL;
14302 struct xattr_handler xops __attribute__ ((unused));
14313 rm -Rf build
&& mkdir
-p build
14314 echo "obj-m := conftest.o" >build
/Makefile
14315 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14327 { $as_echo "$as_me:$LINENO: result: yes" >&5
14328 $as_echo "yes" >&6; }
14330 cat >>confdefs.h
<<\_ACEOF
14331 #define HAVE_DENTRY_XATTR_GET 1
14336 $as_echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.
$ac_ext >&5
14339 { $as_echo "$as_me:$LINENO: result: no" >&5
14340 $as_echo "no" >&6; }
14351 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
14352 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14355 cat confdefs.h
- <<_ACEOF >conftest.c
14358 cat confdefs.h
>>conftest.
$ac_ext
14359 cat >>conftest.
$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14363 #include <linux/xattr.h>
14369 int (*set)(struct dentry *dentry, const char *name,
14370 const void *buffer, size_t size, int flags,
14371 int handler_flags) = NULL;
14372 struct xattr_handler xops __attribute__ ((unused));
14383 rm -Rf build
&& mkdir
-p build
14384 echo "obj-m := conftest.o" >build
/Makefile
14385 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14397 { $as_echo "$as_me:$LINENO: result: yes" >&5
14398 $as_echo "yes" >&6; }
14400 cat >>confdefs.h
<<\_ACEOF
14401 #define HAVE_DENTRY_XATTR_SET 1
14406 $as_echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.
$ac_ext >&5
14409 { $as_echo "$as_me:$LINENO: result: no" >&5
14410 $as_echo "no" >&6; }
14421 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
14422 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
14426 cat confdefs.h
- <<_ACEOF >conftest.c
14429 cat confdefs.h
>>conftest.
$ac_ext
14430 cat >>conftest.
$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14434 #include <linux/fs.h>
14440 int (*fsync) (struct file *, struct dentry *, int) = NULL;
14441 struct file_operations fops __attribute__ ((unused));
14443 fops.fsync = fsync;
14452 rm -Rf build
&& mkdir
-p build
14453 echo "obj-m := conftest.o" >build
/Makefile
14454 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14466 { $as_echo "$as_me:$LINENO: result: dentry" >&5
14467 $as_echo "dentry" >&6; }
14469 cat >>confdefs.h
<<\_ACEOF
14470 #define HAVE_FSYNC_WITH_DENTRY 1
14475 $as_echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.
$ac_ext >&5
14490 cat confdefs.h
- <<_ACEOF >conftest.c
14493 cat confdefs.h
>>conftest.
$ac_ext
14494 cat >>conftest.
$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14498 #include <linux/fs.h>
14504 int (*fsync) (struct file *, int) = NULL;
14505 struct file_operations fops __attribute__ ((unused));
14507 fops.fsync = fsync;
14516 rm -Rf build
&& mkdir
-p build
14517 echo "obj-m := conftest.o" >build
/Makefile
14518 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14530 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
14531 $as_echo "no dentry" >&6; }
14533 cat >>confdefs.h
<<\_ACEOF
14534 #define HAVE_FSYNC_WITHOUT_DENTRY 1
14539 $as_echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.
$ac_ext >&5
14554 cat confdefs.h
- <<_ACEOF >conftest.c
14557 cat confdefs.h
>>conftest.
$ac_ext
14558 cat >>conftest.
$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14562 #include <linux/fs.h>
14568 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
14569 struct file_operations fops __attribute__ ((unused));
14571 fops.fsync = fsync;
14580 rm -Rf build
&& mkdir
-p build
14581 echo "obj-m := conftest.o" >build
/Makefile
14582 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589 (eval $ac_try) 2>&5
14591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; }; then
14594 { $as_echo "$as_me:$LINENO: result: range" >&5
14595 $as_echo "range" >&6; }
14597 cat >>confdefs.h
<<\_ACEOF
14598 #define HAVE_FSYNC_RANGE 1
14603 $as_echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.
$ac_ext >&5
14617 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
14618 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14621 cat confdefs.h
- <<_ACEOF >conftest.c
14624 cat confdefs.h
>>conftest.
$ac_ext
14625 cat >>conftest.
$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14629 #include <linux/fs.h>
14635 void (*evict_inode) (struct inode *) = NULL;
14636 struct super_operations sops __attribute__ ((unused)) = {
14637 .evict_inode = evict_inode,
14647 rm -Rf build
&& mkdir
-p build
14648 echo "obj-m := conftest.o" >build
/Makefile
14649 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14661 { $as_echo "$as_me:$LINENO: result: yes" >&5
14662 $as_echo "yes" >&6; }
14664 cat >>confdefs.h
<<\_ACEOF
14665 #define HAVE_EVICT_INODE 1
14670 $as_echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.
$ac_ext >&5
14673 { $as_echo "$as_me:$LINENO: result: no" >&5
14674 $as_echo "no" >&6; }
14685 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
14686 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
14687 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
14688 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14690 if test $rc -ne 0; then
14693 for file in fs
/inode.c
; do
14694 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev
/null
14696 if test $rc -eq 0; then
14704 if test $export -eq 0; then
14706 { $as_echo "$as_me:$LINENO: result: no" >&5
14707 $as_echo "no" >&6; }
14712 { $as_echo "$as_me:$LINENO: result: yes" >&5
14713 $as_echo "yes" >&6; }
14715 cat >>confdefs.h
<<\_ACEOF
14716 #define HAVE_INSERT_INODE_LOCKED 1
14725 { $as_echo "$as_me:$LINENO: result: yes" >&5
14726 $as_echo "yes" >&6; }
14728 cat >>confdefs.h
<<\_ACEOF
14729 #define HAVE_INSERT_INODE_LOCKED 1
14738 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
14739 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
14740 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
14741 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14743 if test $rc -ne 0; then
14746 for file in fs
/dcache.c
; do
14747 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev
/null
14749 if test $rc -eq 0; then
14757 if test $export -eq 0; then
14759 { $as_echo "$as_me:$LINENO: result: no" >&5
14760 $as_echo "no" >&6; }
14765 { $as_echo "$as_me:$LINENO: result: yes" >&5
14766 $as_echo "yes" >&6; }
14768 cat >>confdefs.h
<<\_ACEOF
14769 #define HAVE_D_OBTAIN_ALIAS 1
14778 { $as_echo "$as_me:$LINENO: result: yes" >&5
14779 $as_echo "yes" >&6; }
14781 cat >>confdefs.h
<<\_ACEOF
14782 #define HAVE_D_OBTAIN_ALIAS 1
14791 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
14792 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
14793 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
14794 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14796 if test $rc -ne 0; then
14799 for file in fs
/block_dev.c
; do
14800 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev
/null
14802 if test $rc -eq 0; then
14810 if test $export -eq 0; then
14812 { $as_echo "$as_me:$LINENO: result: no" >&5
14813 $as_echo "no" >&6; }
14818 { $as_echo "$as_me:$LINENO: result: yes" >&5
14819 $as_echo "yes" >&6; }
14821 cat >>confdefs.h
<<\_ACEOF
14822 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
14831 { $as_echo "$as_me:$LINENO: result: yes" >&5
14832 $as_echo "yes" >&6; }
14834 cat >>confdefs.h
<<\_ACEOF
14835 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
14844 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
14845 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
14846 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
14847 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14849 if test $rc -ne 0; then
14852 for file in mm
/truncate.c
; do
14853 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev
/null
14855 if test $rc -eq 0; then
14863 if test $export -eq 0; then
14865 { $as_echo "$as_me:$LINENO: result: no" >&5
14866 $as_echo "no" >&6; }
14871 { $as_echo "$as_me:$LINENO: result: yes" >&5
14872 $as_echo "yes" >&6; }
14874 cat >>confdefs.h
<<\_ACEOF
14875 #define HAVE_TRUNCATE_SETSIZE 1
14884 { $as_echo "$as_me:$LINENO: result: yes" >&5
14885 $as_echo "yes" >&6; }
14887 cat >>confdefs.h
<<\_ACEOF
14888 #define HAVE_TRUNCATE_SETSIZE 1
14897 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
14898 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
14899 tmp_flags
="$EXTRA_KCFLAGS"
14900 EXTRA_KCFLAGS
="-Werror"
14903 cat confdefs.h
- <<_ACEOF >conftest.c
14906 cat confdefs.h
>>conftest.
$ac_ext
14907 cat >>conftest.
$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14911 #include <linux/security.h>
14917 security_inode_init_security(NULL,NULL,NULL,NULL,NULL,NULL);
14926 rm -Rf build
&& mkdir
-p build
14927 echo "obj-m := conftest.o" >build
/Makefile
14928 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14940 { $as_echo "$as_me:$LINENO: result: yes" >&5
14941 $as_echo "yes" >&6; }
14943 cat >>confdefs.h
<<\_ACEOF
14944 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
14949 $as_echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.
$ac_ext >&5
14952 { $as_echo "$as_me:$LINENO: result: no" >&5
14953 $as_echo "no" >&6; }
14962 EXTRA_KCFLAGS
="$tmp_flags"
14965 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
14966 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
14967 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
14968 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14970 if test $rc -ne 0; then
14973 for file in fs
/super.c
; do
14974 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev
/null
14976 if test $rc -eq 0; then
14984 if test $export -eq 0; then
14986 { $as_echo "$as_me:$LINENO: result: no" >&5
14987 $as_echo "no" >&6; }
14992 { $as_echo "$as_me:$LINENO: result: yes" >&5
14993 $as_echo "yes" >&6; }
14995 cat >>confdefs.h
<<\_ACEOF
14996 #define HAVE_MOUNT_NODEV 1
15005 { $as_echo "$as_me:$LINENO: result: yes" >&5
15006 $as_echo "yes" >&6; }
15008 cat >>confdefs.h
<<\_ACEOF
15009 #define HAVE_MOUNT_NODEV 1
15018 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
15019 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
15022 cat confdefs.h
- <<_ACEOF >conftest.c
15025 cat confdefs.h
>>conftest.
$ac_ext
15026 cat >>conftest.
$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15030 #include <linux/fs.h>
15036 struct super_block sb __attribute__ ((unused));
15046 rm -Rf build
&& mkdir
-p build
15047 echo "obj-m := conftest.o" >build
/Makefile
15048 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15060 { $as_echo "$as_me:$LINENO: result: yes" >&5
15061 $as_echo "yes" >&6; }
15063 cat >>confdefs.h
<<\_ACEOF
15069 $as_echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.
$ac_ext >&5
15072 { $as_echo "$as_me:$LINENO: result: no" >&5
15073 $as_echo "no" >&6; }
15084 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
15085 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
15086 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
15087 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15089 if test $rc -ne 0; then
15092 for file in mm
/backing-dev.c
; do
15093 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev
/null
15095 if test $rc -eq 0; then
15103 if test $export -eq 0; then
15105 { $as_echo "$as_me:$LINENO: result: no" >&5
15106 $as_echo "no" >&6; }
15111 { $as_echo "$as_me:$LINENO: result: yes" >&5
15112 $as_echo "yes" >&6; }
15114 cat >>confdefs.h
<<\_ACEOF
15115 #define HAVE_BDI_SETUP_AND_REGISTER 1
15124 { $as_echo "$as_me:$LINENO: result: yes" >&5
15125 $as_echo "yes" >&6; }
15127 cat >>confdefs.h
<<\_ACEOF
15128 #define HAVE_BDI_SETUP_AND_REGISTER 1
15137 if test "$LINUX_OBJ" != "$LINUX"; then
15139 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15146 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
15147 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
15148 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
15155 # Check whether --with-udevdir was given.
15156 if test "${with_udevdir+set}" = set; then
15157 withval
=$with_udevdir; udevdir
=$withval
15159 udevdir
='${exec_prefix}/lib/udev'
15164 # Check whether --with-udevruledir was given.
15165 if test "${with_udevruledir+set}" = set; then
15166 withval
=$with_udevruledir; udevruledir
=$withval
15168 udevruledir
='${udevdir}/rules.d'
15176 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
15177 $as_echo_n "checking for target asm dir... " >&6; }
15178 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
15180 case $TARGET_ARCH in
15182 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
15185 TARGET_ASM_DIR
=asm-generic
15190 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
15191 $as_echo "$TARGET_ASM_DIR" >&6; }
15194 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
15195 $as_echo_n "checking for ioctl()... " >&6; }
15196 cat >conftest.
$ac_ext <<_ACEOF
15199 cat confdefs.h
>>conftest.
$ac_ext
15200 cat >>conftest.
$ac_ext <<_ACEOF
15201 /* end confdefs.h. */
15202 #include <unistd.h>
15205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15206 $EGREP "ioctl" >/dev
/null
2>&1; then
15213 cat >conftest.
$ac_ext <<_ACEOF
15216 cat confdefs.h
>>conftest.
$ac_ext
15217 cat >>conftest.
$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 #include <sys/ioctl.h>
15222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15223 $EGREP "ioctl" >/dev
/null
2>&1; then
15230 cat >conftest.
$ac_ext <<_ACEOF
15233 cat confdefs.h
>>conftest.
$ac_ext
15234 cat >>conftest.
$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15236 #include <stropts.h>
15239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15240 $EGREP "ioctl" >/dev
/null
2>&1; then
15248 if test $is_unistd = yes; then
15251 cat >>confdefs.h
<<\_ACEOF
15252 #define HAVE_IOCTL_IN_UNISTD_H 1
15257 if test $is_sys_ioctl = yes; then
15260 cat >>confdefs.h
<<\_ACEOF
15261 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
15264 elif test $is_stropts = yes; then
15266 cat >>confdefs.h
<<\_ACEOF
15267 #define HAVE_IOCTL_IN_STROPTS_H 1
15275 if test $result = no
; then
15276 { $as_echo "$as_me:$LINENO: result: no" >&5
15277 $as_echo "no" >&6; }
15278 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
15279 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
15280 { (exit 1); exit 1; }; }
15282 { $as_echo "$as_me:$LINENO: result: yes" >&5
15283 $as_echo "yes" >&6; }
15289 if test "${ac_cv_header_zlib_h+set}" = set; then
15290 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
15291 $as_echo_n "checking for zlib.h... " >&6; }
15292 if test "${ac_cv_header_zlib_h+set}" = set; then
15293 $as_echo_n "(cached) " >&6
15295 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15296 $as_echo "$ac_cv_header_zlib_h" >&6; }
15298 # Is the header compilable?
15299 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
15300 $as_echo_n "checking zlib.h usability... " >&6; }
15301 cat >conftest.
$ac_ext <<_ACEOF
15304 cat confdefs.h
>>conftest.
$ac_ext
15305 cat >>conftest.
$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 $ac_includes_default
15310 rm -f conftest.
$ac_objext
15311 if { (ac_try
="$ac_compile"
15312 case "(($ac_try" in
15313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15317 $as_echo "$ac_try_echo") >&5
15318 (eval "$ac_compile") 2>conftest.er1
15320 grep -v '^ *+' conftest.er1 >conftest.err
15322 cat conftest.err >&5
15323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } && {
15325 test -z "$ac_c_werror_flag" ||
15326 test ! -s conftest.err
15327 } && test -s conftest.$ac_objext; then
15328 ac_header_compiler=yes
15330 $as_echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333 ac_header_compiler=no
15336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15338 $as_echo "$ac_header_compiler" >&6; }
15340 # Is the header present?
15341 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
15342 $as_echo_n "checking zlib.h presence... " >&6; }
15343 cat >conftest.$ac_ext <<_ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15351 if { (ac_try="$ac_cpp conftest.$ac_ext"
15352 case "(($ac_try" in
15353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15354 *) ac_try_echo
=$ac_try;;
15356 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15357 $as_echo "$ac_try_echo") >&5
15358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15360 grep -v '^ *+' conftest.er1
>conftest.err
15362 cat conftest.err
>&5
15363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } >/dev
/null
&& {
15365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15366 test ! -s conftest.err
15368 ac_header_preproc
=yes
15370 $as_echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.
$ac_ext >&5
15373 ac_header_preproc
=no
15376 rm -f conftest.err conftest.
$ac_ext
15377 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15378 $as_echo "$ac_header_preproc" >&6; }
15380 # So? What about this header?
15381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15383 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15384 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15385 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
15386 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
15387 ac_header_preproc
=yes
15390 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
15391 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
15392 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
15393 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
15394 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
15395 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
15396 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
15397 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15398 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
15399 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
15400 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
15401 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
15405 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
15406 $as_echo_n "checking for zlib.h... " >&6; }
15407 if test "${ac_cv_header_zlib_h+set}" = set; then
15408 $as_echo_n "(cached) " >&6
15410 ac_cv_header_zlib_h
=$ac_header_preproc
15412 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15413 $as_echo "$ac_cv_header_zlib_h" >&6; }
15416 if test "x$ac_cv_header_zlib_h" = x
""yes; then
15419 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15421 { { $as_echo "$as_me:$LINENO: error:
15422 *** zlib.h missing, zlib-devel package required
15423 See \`config.log' for more details." >&5
15424 $as_echo "$as_me: error:
15425 *** zlib.h missing, zlib-devel package required
15426 See \`config.log' for more details." >&2;}
15427 { (exit 1); exit 1; }; }; }
15433 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
15434 $as_echo_n "checking for compress2 in -lz... " >&6; }
15435 if test "${ac_cv_lib_z_compress2+set}" = set; then
15436 $as_echo_n "(cached) " >&6
15438 ac_check_lib_save_LIBS
=$LIBS
15440 cat >conftest.
$ac_ext <<_ACEOF
15443 cat confdefs.h
>>conftest.
$ac_ext
15444 cat >>conftest.
$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15447 /* Override any GCC internal prototype to avoid an error.
15448 Use char because int might match the return type of a GCC
15449 builtin and then its argument prototype would still apply. */
15457 return compress2 ();
15462 rm -f conftest.
$ac_objext conftest
$ac_exeext
15463 if { (ac_try
="$ac_link"
15464 case "(($ac_try" in
15465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15469 $as_echo "$ac_try_echo") >&5
15470 (eval "$ac_link") 2>conftest.er1
15472 grep -v '^ *+' conftest.er1 >conftest.err
15474 cat conftest.err >&5
15475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } && {
15477 test -z "$ac_c_werror_flag" ||
15478 test ! -s conftest.err
15479 } && test -s conftest$ac_exeext && {
15480 test "$cross_compiling" = yes ||
15481 $as_test_x conftest$ac_exeext
15483 ac_cv_lib_z_compress2=yes
15485 $as_echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15488 ac_cv_lib_z_compress2=no
15491 rm -rf conftest.dSYM
15492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15493 conftest$ac_exeext conftest.$ac_ext
15494 LIBS=$ac_check_lib_save_LIBS
15496 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
15497 $as_echo "$ac_cv_lib_z_compress2" >&6; }
15498 if test "x$ac_cv_lib_z_compress2" = x""yes; then
15499 cat >>confdefs.h <<_ACEOF
15500 #define HAVE_LIBZ 1
15506 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15508 { { $as_echo "$as_me:$LINENO: error
:
15509 *** compress2
() missing
, zlib-devel package required
15510 See \
`config.log' for more details." >&5
15511 $as_echo "$as_me: error:
15512 *** compress2() missing, zlib-devel package required
15513 See \`config.log
' for more details." >&2;}
15514 { (exit 1); exit 1; }; }; }
15519 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
15520 $as_echo_n "checking for uncompress in -lz... " >&6; }
15521 if test "${ac_cv_lib_z_uncompress+set}" = set; then
15522 $as_echo_n "(cached) " >&6
15524 ac_check_lib_save_LIBS=$LIBS
15526 cat >conftest.$ac_ext <<_ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15533 /* Override any GCC internal prototype to avoid an error.
15534 Use char because int might match the return type of a GCC
15535 builtin and then its argument prototype would still apply. */
15539 char uncompress ();
15543 return uncompress ();
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (ac_try="$ac_link"
15550 case "(($ac_try" in
15551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552 *) ac_try_echo=$ac_try;;
15554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15555 $as_echo "$ac_try_echo") >&5
15556 (eval "$ac_link") 2>conftest.er1
15558 grep -v '^
*+' conftest.er1 >conftest.err
15560 cat conftest.err >&5
15561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } && {
15563 test -z "$ac_c_werror_flag" ||
15564 test ! -s conftest.err
15565 } && test -s conftest$ac_exeext && {
15566 test "$cross_compiling" = yes ||
15567 $as_test_x conftest$ac_exeext
15569 ac_cv_lib_z_uncompress=yes
15571 $as_echo "$as_me: failed program was:" >&5
15572 sed 's
/^
/|
/' conftest.$ac_ext >&5
15574 ac_cv_lib_z_uncompress=no
15577 rm -rf conftest.dSYM
15578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579 conftest$ac_exeext conftest.$ac_ext
15580 LIBS=$ac_check_lib_save_LIBS
15582 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
15583 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
15584 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
15585 cat >>confdefs.h <<_ACEOF
15586 #define HAVE_LIBZ 1
15592 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15593 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
15594 { { $as_echo "$as_me:$LINENO: error:
15595 *** uncompress() missing, zlib-devel package required
15596 See \`config.log
' for more details." >&5
15597 $as_echo "$as_me: error:
15598 *** uncompress() missing, zlib-devel package required
15599 See \`config.log' for more details.
" >&2;}
15600 { (exit 1); exit 1; }; }; }
15605 { $as_echo "$as_me:$LINENO: checking
for crc32
in -lz" >&5
15606 $as_echo_n "checking
for crc32
in -lz...
" >&6; }
15607 if test "${ac_cv_lib_z_crc32+set}" = set; then
15608 $as_echo_n "(cached
) " >&6
15610 ac_check_lib_save_LIBS=$LIBS
15612 cat >conftest.$ac_ext <<_ACEOF
15615 cat confdefs.h >>conftest.$ac_ext
15616 cat >>conftest.$ac_ext <<_ACEOF
15617 /* end confdefs.h. */
15619 /* Override any GCC internal prototype to avoid an error.
15620 Use char because int might match the return type of a GCC
15621 builtin and then its argument prototype would still apply. */
15634 rm -f conftest.$ac_objext conftest$ac_exeext
15635 if { (ac_try="$ac_link"
15636 case "(($ac_try" in
15637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15640 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15641 $as_echo "$ac_try_echo") >&5
15642 (eval "$ac_link") 2>conftest.er1
15644 grep -v '^ *+' conftest.er1 >conftest.err
15646 cat conftest.err >&5
15647 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15648 (exit $ac_status); } && {
15649 test -z "$ac_c_werror_flag" ||
15650 test ! -s conftest.err
15651 } && test -s conftest$ac_exeext && {
15652 test "$cross_compiling" = yes ||
15653 $as_test_x conftest$ac_exeext
15655 ac_cv_lib_z_crc32=yes
15657 $as_echo "$as_me: failed program was
:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15660 ac_cv_lib_z_crc32=no
15663 rm -rf conftest.dSYM
15664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15665 conftest$ac_exeext conftest.$ac_ext
15666 LIBS=$ac_check_lib_save_LIBS
15668 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_crc32" >&5
15669 $as_echo "$ac_cv_lib_z_crc32" >&6; }
15670 if test "x
$ac_cv_lib_z_crc32" = x""yes; then
15671 cat >>confdefs.h <<_ACEOF
15672 #define HAVE_LIBZ 1
15678 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
15679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15680 { { $as_echo "$as_me:$LINENO: error:
15681 *** crc32() missing, zlib-devel package required
15682 See \`config.log' for more details.
" >&5
15683 $as_echo "$as_me: error
:
15684 *** crc32
() missing
, zlib-devel package required
15685 See \
`config.log' for more details." >&2;}
15686 { (exit 1); exit 1; }; }; }
15693 cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_ZLIB 1
15701 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15702 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
15703 $as_echo_n "checking for uuid/uuid.h... " >&6; }
15704 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15705 $as_echo_n "(cached) " >&6
15707 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
15708 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
15710 # Is the header compilable?
15711 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
15712 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 $ac_includes_default
15720 #include <uuid/uuid.h>
15722 rm -f conftest.$ac_objext
15723 if { (ac_try="$ac_compile"
15724 case "(($ac_try" in
15725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15726 *) ac_try_echo
=$ac_try;;
15728 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15729 $as_echo "$ac_try_echo") >&5
15730 (eval "$ac_compile") 2>conftest.er1
15732 grep -v '^ *+' conftest.er1
>conftest.err
15734 cat conftest.err
>&5
15735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } && {
15737 test -z "$ac_c_werror_flag" ||
15738 test ! -s conftest.err
15739 } && test -s conftest.
$ac_objext; then
15740 ac_header_compiler
=yes
15742 $as_echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.
$ac_ext >&5
15745 ac_header_compiler
=no
15748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15749 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15750 $as_echo "$ac_header_compiler" >&6; }
15752 # Is the header present?
15753 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
15754 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
15755 cat >conftest.
$ac_ext <<_ACEOF
15758 cat confdefs.h
>>conftest.
$ac_ext
15759 cat >>conftest.
$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 #include <uuid/uuid.h>
15763 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15764 case "(($ac_try" in
15765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15772 grep -v '^ *+' conftest.er1 >conftest.err
15774 cat conftest.err >&5
15775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } >/dev/null && {
15777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15780 ac_header_preproc=yes
15782 $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_header_preproc=no
15788 rm -f conftest.err conftest.$ac_ext
15789 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15790 $as_echo "$ac_header_preproc" >&6; }
15792 # So? What about this header?
15793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15795 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
15796 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15797 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
15798 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
15799 ac_header_preproc=yes
15802 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
15803 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
15804 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
15805 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
15806 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
15807 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
15808 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
15809 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
15810 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
15811 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
15812 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
15813 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
15817 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
15818 $as_echo_n "checking for uuid/uuid.h... " >&6; }
15819 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15820 $as_echo_n "(cached) " >&6
15822 ac_cv_header_uuid_uuid_h=$ac_header_preproc
15824 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
15825 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
15828 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
15831 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15833 { { $as_echo "$as_me:$LINENO: error
:
15834 *** uuid
/uuid.h missing
, libuuid-devel package required
15835 See \
`config.log' for more details." >&5
15836 $as_echo "$as_me: error:
15837 *** uuid/uuid.h missing, libuuid-devel package required
15838 See \`config.log
' for more details." >&2;}
15839 { (exit 1); exit 1; }; }; }
15845 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
15846 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
15847 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
15848 $as_echo_n "(cached) " >&6
15850 ac_check_lib_save_LIBS=$LIBS
15851 LIBS="-luuid $LIBS"
15852 cat >conftest.$ac_ext <<_ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15859 /* Override any GCC internal prototype to avoid an error.
15860 Use char because int might match the return type of a GCC
15861 builtin and then its argument prototype would still apply. */
15865 char uuid_generate ();
15869 return uuid_generate ();
15874 rm -f conftest.$ac_objext conftest$ac_exeext
15875 if { (ac_try="$ac_link"
15876 case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15881 $as_echo "$ac_try_echo") >&5
15882 (eval "$ac_link") 2>conftest.er1
15884 grep -v '^
*+' conftest.er1 >conftest.err
15886 cat conftest.err >&5
15887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } && {
15889 test -z "$ac_c_werror_flag" ||
15890 test ! -s conftest.err
15891 } && test -s conftest$ac_exeext && {
15892 test "$cross_compiling" = yes ||
15893 $as_test_x conftest$ac_exeext
15895 ac_cv_lib_uuid_uuid_generate=yes
15897 $as_echo "$as_me: failed program was:" >&5
15898 sed 's
/^
/|
/' conftest.$ac_ext >&5
15900 ac_cv_lib_uuid_uuid_generate=no
15903 rm -rf conftest.dSYM
15904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15905 conftest$ac_exeext conftest.$ac_ext
15906 LIBS=$ac_check_lib_save_LIBS
15908 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
15909 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
15910 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
15911 cat >>confdefs.h <<_ACEOF
15912 #define HAVE_LIBUUID 1
15915 LIBS="-luuid $LIBS"
15918 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15919 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
15920 { { $as_echo "$as_me:$LINENO: error:
15921 *** uuid_generate() missing, libuuid-devel package required
15922 See \`config.log
' for more details." >&5
15923 $as_echo "$as_me: error:
15924 *** uuid_generate() missing, libuuid-devel package required
15925 See \`config.log' for more details.
" >&2;}
15926 { (exit 1); exit 1; }; }; }
15931 { $as_echo "$as_me:$LINENO: checking
for uuid_is_null
in -luuid" >&5
15932 $as_echo_n "checking
for uuid_is_null
in -luuid...
" >&6; }
15933 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
15934 $as_echo_n "(cached
) " >&6
15936 ac_check_lib_save_LIBS=$LIBS
15937 LIBS="-luuid $LIBS"
15938 cat >conftest.$ac_ext <<_ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15945 /* Override any GCC internal prototype to avoid an error.
15946 Use char because int might match the return type of a GCC
15947 builtin and then its argument prototype would still apply. */
15951 char uuid_is_null ();
15955 return uuid_is_null ();
15960 rm -f conftest.$ac_objext conftest$ac_exeext
15961 if { (ac_try="$ac_link"
15962 case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15966 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15967 $as_echo "$ac_try_echo") >&5
15968 (eval "$ac_link") 2>conftest.er1
15970 grep -v '^ *+' conftest.er1 >conftest.err
15972 cat conftest.err >&5
15973 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15974 (exit $ac_status); } && {
15975 test -z "$ac_c_werror_flag" ||
15976 test ! -s conftest.err
15977 } && test -s conftest$ac_exeext && {
15978 test "$cross_compiling" = yes ||
15979 $as_test_x conftest$ac_exeext
15981 ac_cv_lib_uuid_uuid_is_null=yes
15983 $as_echo "$as_me: failed program was
:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 ac_cv_lib_uuid_uuid_is_null=no
15989 rm -rf conftest.dSYM
15990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15991 conftest$ac_exeext conftest.$ac_ext
15992 LIBS=$ac_check_lib_save_LIBS
15994 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_is_null" >&5
15995 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
15996 if test "x
$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
15997 cat >>confdefs.h <<_ACEOF
15998 #define HAVE_LIBUUID 1
16001 LIBS="-luuid $LIBS"
16004 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
16005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16006 { { $as_echo "$as_me:$LINENO: error:
16007 *** uuid_is_null() missing, libuuid-devel package required
16008 See \`config.log' for more details.
" >&5
16009 $as_echo "$as_me: error
:
16010 *** uuid_is_null
() missing
, libuuid-devel package required
16011 See \
`config.log' for more details." >&2;}
16012 { (exit 1); exit 1; }; }; }
16019 cat >>confdefs.h <<\_ACEOF
16020 #define HAVE_LIBUUID 1
16026 # Check whether --with-blkid was given.
16027 if test "${with_blkid+set}" = set; then
16028 withval=$with_blkid;
16035 if test "x$with_blkid" != xno; then
16037 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
16038 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
16039 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
16040 $as_echo_n "(cached) " >&6
16042 ac_check_lib_save_LIBS=$LIBS
16043 LIBS="-lblkid $LIBS"
16044 cat >conftest.$ac_ext <<_ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16051 /* Override any GCC internal prototype to avoid an error.
16052 Use char because int might match the return type of a GCC
16053 builtin and then its argument prototype would still apply. */
16057 char blkid_get_cache ();
16061 return blkid_get_cache ();
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (ac_try="$ac_link"
16068 case "(($ac_try" in
16069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16070 *) ac_try_echo
=$ac_try;;
16072 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16073 $as_echo "$ac_try_echo") >&5
16074 (eval "$ac_link") 2>conftest.er1
16076 grep -v '^ *+' conftest.er1
>conftest.err
16078 cat conftest.err
>&5
16079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } && {
16081 test -z "$ac_c_werror_flag" ||
16082 test ! -s conftest.err
16083 } && test -s conftest
$ac_exeext && {
16084 test "$cross_compiling" = yes ||
16085 $as_test_x conftest
$ac_exeext
16087 ac_cv_lib_blkid_blkid_get_cache
=yes
16089 $as_echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.
$ac_ext >&5
16092 ac_cv_lib_blkid_blkid_get_cache
=no
16095 rm -rf conftest.dSYM
16096 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16097 conftest
$ac_exeext conftest.
$ac_ext
16098 LIBS
=$ac_check_lib_save_LIBS
16100 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
16101 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
16102 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x
""yes; then
16104 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
16105 $as_echo_n "checking for blkid zfs support... " >&6; }
16108 dd if=/dev
/zero of
=$ZFS_DEV bs
=1024k count
=8 \
16109 >/dev
/null
2>/dev
/null
16110 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
16111 dd of
=$ZFS_DEV bs
=1k count
=8 \
16112 seek
=132 conv
=notrunc
&>/dev
/null \
16113 >/dev
/null
2>/dev
/null
16115 saved_LDFLAGS
="$LDFLAGS"
16118 if test "$cross_compiling" = yes; then
16119 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16121 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16122 See \`config.log' for more details." >&5
16123 $as_echo "$as_me: error: cannot run test program while cross compiling
16124 See \`config.log' for more details." >&2;}
16125 { (exit 1); exit 1; }; }; }
16127 cat >conftest.
$ac_ext <<_ACEOF
16130 cat confdefs.h
>>conftest.
$ac_ext
16131 cat >>conftest.
$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16135 #include <blkid/blkid.h>
16144 if (blkid_get_cache(&cache, NULL) < 0)
16147 value = blkid_get_tag_value(cache, "TYPE",
16150 blkid_put_cache(cache);
16154 if (strcmp(value, "zfs")) {
16156 blkid_put_cache(cache);
16161 blkid_put_cache(cache);
16167 rm -f conftest
$ac_exeext
16168 if { (ac_try
="$ac_link"
16169 case "(($ac_try" in
16170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16174 $as_echo "$ac_try_echo") >&5
16175 (eval "$ac_link") 2>&5
16177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16179 { (case "(($ac_try" in
16180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16181 *) ac_try_echo
=$ac_try;;
16183 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16184 $as_echo "$ac_try_echo") >&5
16185 (eval "$ac_try") 2>&5
16187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16191 { $as_echo "$as_me:$LINENO: result: yes" >&5
16192 $as_echo "yes" >&6; }
16196 cat >>confdefs.h
<<\_ACEOF
16197 #define HAVE_LIBBLKID 1
16202 $as_echo "$as_me: program exited with status $ac_status" >&5
16203 $as_echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.
$ac_ext >&5
16206 ( exit $ac_status )
16209 { $as_echo "$as_me:$LINENO: result: no" >&5
16210 $as_echo "no" >&6; }
16211 if test "x$with_blkid" != xcheck
; then
16212 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16214 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
16215 See \`config.log' for more details." >&5
16216 $as_echo "$as_me: error: --with-blkid given but unavailable
16217 See \`config.log' for more details." >&2;}
16218 { (exit 1); exit 1; }; }; }
16223 rm -rf conftest.dSYM
16224 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16229 LDFLAGS
="$saved_LDFLAGS"
16233 if test "x$with_blkid" != xcheck
; then
16234 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16236 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
16237 See \`config.log' for more details." >&5
16238 $as_echo "$as_me: error: --with-blkid given but unavailable
16239 See \`config.log' for more details." >&2;}
16240 { (exit 1); exit 1; }; }; }
16253 # Check whether --with-selinux was given.
16254 if test "${with_selinux+set}" = set; then
16255 withval
=$with_selinux;
16262 if test "x$with_selinux" != xno
; then
16264 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16265 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
16266 $as_echo_n "checking for selinux/selinux.h... " >&6; }
16267 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16268 $as_echo_n "(cached) " >&6
16270 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
16271 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
16273 # Is the header compilable?
16274 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
16275 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
16276 cat >conftest.
$ac_ext <<_ACEOF
16279 cat confdefs.h
>>conftest.
$ac_ext
16280 cat >>conftest.
$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16282 $ac_includes_default
16283 #include <selinux/selinux.h>
16285 rm -f conftest.
$ac_objext
16286 if { (ac_try
="$ac_compile"
16287 case "(($ac_try" in
16288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16289 *) ac_try_echo=$ac_try;;
16291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16292 $as_echo "$ac_try_echo") >&5
16293 (eval "$ac_compile") 2>conftest.er1
16295 grep -v '^ *+' conftest.er1 >conftest.err
16297 cat conftest.err >&5
16298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } && {
16300 test -z "$ac_c_werror_flag" ||
16301 test ! -s conftest.err
16302 } && test -s conftest.$ac_objext; then
16303 ac_header_compiler=yes
16305 $as_echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 ac_header_compiler=no
16311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16312 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16313 $as_echo "$ac_header_compiler" >&6; }
16315 # Is the header present?
16316 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
16317 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
16318 cat >conftest.$ac_ext <<_ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16324 #include <selinux/selinux.h>
16326 if { (ac_try="$ac_cpp conftest.$ac_ext"
16327 case "(($ac_try" in
16328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16329 *) ac_try_echo
=$ac_try;;
16331 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16332 $as_echo "$ac_try_echo") >&5
16333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16335 grep -v '^ *+' conftest.er1
>conftest.err
16337 cat conftest.err
>&5
16338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } >/dev
/null
&& {
16340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16341 test ! -s conftest.err
16343 ac_header_preproc
=yes
16345 $as_echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.
$ac_ext >&5
16348 ac_header_preproc
=no
16351 rm -f conftest.err conftest.
$ac_ext
16352 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16353 $as_echo "$ac_header_preproc" >&6; }
16355 # So? What about this header?
16356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16358 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
16359 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16360 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
16361 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
16362 ac_header_preproc
=yes
16365 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
16366 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
16367 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
16368 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
16369 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
16370 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
16371 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
16372 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
16373 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
16374 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
16375 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
16376 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
16380 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
16381 $as_echo_n "checking for selinux/selinux.h... " >&6; }
16382 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16383 $as_echo_n "(cached) " >&6
16385 ac_cv_header_selinux_selinux_h
=$ac_header_preproc
16387 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
16388 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
16391 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then
16393 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
16394 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
16395 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
16396 $as_echo_n "(cached) " >&6
16398 ac_check_lib_save_LIBS
=$LIBS
16399 LIBS
="-lselinux $LIBS"
16400 cat >conftest.
$ac_ext <<_ACEOF
16403 cat confdefs.h
>>conftest.
$ac_ext
16404 cat >>conftest.
$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16407 /* Override any GCC internal prototype to avoid an error.
16408 Use char because int might match the return type of a GCC
16409 builtin and then its argument prototype would still apply. */
16413 char is_selinux_enabled ();
16417 return is_selinux_enabled ();
16422 rm -f conftest.
$ac_objext conftest
$ac_exeext
16423 if { (ac_try
="$ac_link"
16424 case "(($ac_try" in
16425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16429 $as_echo "$ac_try_echo") >&5
16430 (eval "$ac_link") 2>conftest.er1
16432 grep -v '^ *+' conftest.er1 >conftest.err
16434 cat conftest.err >&5
16435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } && {
16437 test -z "$ac_c_werror_flag" ||
16438 test ! -s conftest.err
16439 } && test -s conftest$ac_exeext && {
16440 test "$cross_compiling" = yes ||
16441 $as_test_x conftest$ac_exeext
16443 ac_cv_lib_selinux_is_selinux_enabled=yes
16445 $as_echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16448 ac_cv_lib_selinux_is_selinux_enabled=no
16451 rm -rf conftest.dSYM
16452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16453 conftest$ac_exeext conftest.$ac_ext
16454 LIBS=$ac_check_lib_save_LIBS
16456 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
16457 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
16458 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
16460 LIBSELINUX="-lselinux"
16463 cat >>confdefs.h <<\_ACEOF
16464 #define HAVE_LIBSELINUX 1
16470 if test "x$with_selinux" != xcheck; then
16471 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16473 { { $as_echo "$as_me:$LINENO: error
: --with-selinux given but unavailable
16474 See \
`config.log' for more details." >&5
16475 $as_echo "$as_me: error: --with-selinux given but unavailable
16476 See \`config.log
' for more details." >&2;}
16477 { (exit 1); exit 1; }; }; }
16487 if test "x$with_selinux" != xcheck; then
16488 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16489 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
16490 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
16491 See \`config.log
' for more details." >&5
16492 $as_echo "$as_me: error: --with-selinux given but unavailable
16493 See \`config.log' for more details.
" >&2;}
16494 { (exit 1); exit 1; }; }; }
16505 { $as_echo "$as_me:$LINENO: checking
for selinux support
" >&5
16506 $as_echo_n "checking
for selinux support...
" >&6; }
16507 { $as_echo "$as_me:$LINENO: result
: no
" >&5
16508 $as_echo "no
" >&6; }
16514 { $as_echo "$as_me:$LINENO: checking
for -Wframe-larger-than=<size
> support
" >&5
16515 $as_echo_n "checking
for -Wframe-larger-than=<size
> support...
" >&6; }
16517 saved_flags="$CFLAGS"
16518 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
16520 if test "$cross_compiling" = yes; then
16521 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
16522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16523 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16524 See \`config.log' for more details.
" >&5
16525 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
16526 See \
`config.log' for more details." >&2;}
16527 { (exit 1); exit 1; }; }; }
16529 cat >conftest.$ac_ext <<_ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16544 rm -f conftest$ac_exeext
16545 if { (ac_try="$ac_link"
16546 case "(($ac_try" in
16547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16548 *) ac_try_echo
=$ac_try;;
16550 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16551 $as_echo "$ac_try_echo") >&5
16552 (eval "$ac_link") 2>&5
16554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16556 { (case "(($ac_try" in
16557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16561 $as_echo "$ac_try_echo") >&5
16562 (eval "$ac_try") 2>&5
16564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16567 FRAME_LARGER_THAN=-Wframe-larger-than=1024
16568 { $as_echo "$as_me:$LINENO: result: yes" >&5
16569 $as_echo "yes" >&6; }
16572 $as_echo "$as_me: program exited with status $ac_status" >&5
16573 $as_echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16576 ( exit $ac_status )
16579 { $as_echo "$as_me:$LINENO: result: no" >&5
16580 $as_echo "no" >&6; }
16583 rm -rf conftest.dSYM
16584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16589 CFLAGS="$saved_flags"
16594 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
16595 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
16597 saved_CFLAGS="$CFLAGS"
16598 CFLAGS="-fstack-check"
16599 saved_LDFLAGS="$LDFLAGS"
16600 LDFLAGS="-lpthread"
16602 if test "$cross_compiling" = yes; then
16603 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16605 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
16606 See \
`config.log' for more details." >&5
16607 $as_echo "$as_me: error: cannot run test program while cross compiling
16608 See \`config.log
' for more details." >&2;}
16609 { (exit 1); exit 1; }; }; }
16611 cat >conftest.$ac_ext <<_ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16618 #include <pthread.h>
16619 #include <sys/resource.h>
16620 #include <unistd.h>
16621 #include <bits/local_lim.h>
16623 #define PAGESIZE (sysconf(_SC_PAGESIZE))
16624 #define STACK_SIZE 8192
16625 #define BUFSIZE 4096
16627 void * func(void *arg)
16637 pthread_attr_t attr;
16642 setrlimit(RLIMIT_CORE, &l);
16643 pthread_attr_init(&attr);
16644 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
16645 pthread_attr_setguardsize(&attr, PAGESIZE);
16646 pthread_create(&tid, &attr, func, NULL);
16647 pthread_join(tid, NULL);
16653 rm -f conftest$ac_exeext
16654 if { (ac_try="$ac_link"
16655 case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16660 $as_echo "$ac_try_echo") >&5
16661 (eval "$ac_link") 2>&5
16663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16665 { (case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16670 $as_echo "$ac_try_echo") >&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: no" >&5
16677 $as_echo "no" >&6; }
16680 $as_echo "$as_me: program exited with status $ac_status" >&5
16681 $as_echo "$as_me: failed program was:" >&5
16682 sed 's
/^
/|
/' conftest.$ac_ext >&5
16684 ( exit $ac_status )
16687 cat >>confdefs.h <<\_ACEOF
16688 #define NPTL_GUARD_WITHIN_STACK 1
16691 { $as_echo "$as_me:$LINENO: result: yes" >&5
16692 $as_echo "yes" >&6; }
16695 rm -rf conftest.dSYM
16696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16700 CFLAGS="$saved_CFLAGS"
16701 LDFLAGS="$saved_LDFLAGS"
16707 # Check whether --with-linux was given.
16708 if test "${with_linux+set}" = set; then
16709 withval=$with_linux; kernelsrc="$withval"
16714 # Check whether --with-linux-obj was given.
16715 if test "${with_linux_obj+set}" = set; then
16716 withval=$with_linux_obj; kernelbuild="$withval"
16720 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16721 $as_echo_n "checking kernel source directory... " >&6; }
16722 if test -z "$kernelsrc"; then
16724 if test -e "/lib/modules/$(uname -r)/source"; then
16726 headersdir="/lib/modules/$(uname -r)/source"
16727 sourcelink=$(readlink -f "$headersdir")
16729 elif test -e "/lib/modules/$(uname -r)/build"; then
16731 headersdir="/lib/modules/$(uname -r)/build"
16732 sourcelink=$(readlink -f "$headersdir")
16736 sourcelink=$(ls -1d /usr/src/kernels/* \
16738 2>/dev/null | grep -v obj | tail -1)
16743 if test -n "$sourcelink" && test -e ${sourcelink}; then
16745 kernelsrc=`readlink -f ${sourcelink}`
16749 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16750 $as_echo "Not found" >&6; }
16751 { { $as_echo "$as_me:$LINENO: error:
16752 *** Please make sure the kernel devel package for your distribution
16753 *** is installed then try again. If that fails you can specify the
16754 *** location of the kernel source with the '--with-linux=PATH
' option." >&5
16755 $as_echo "$as_me: error:
16756 *** Please make sure the kernel devel package for your distribution
16757 *** is installed then try again. If that fails you can specify the
16758 *** location of the kernel source with the '--with-linux=PATH
' option." >&2;}
16759 { (exit 1); exit 1; }; }
16766 if test "$kernelsrc" = "NONE"; then
16776 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16777 $as_echo "$kernelsrc" >&6; }
16778 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16779 $as_echo_n "checking kernel build directory... " >&6; }
16780 if test -z "$kernelbuild"; then
16782 if test -e "/lib/modules/$(uname -r)/build"; then
16784 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16786 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16788 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16790 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16792 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16794 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16796 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
16800 kernelbuild=${kernelsrc}
16807 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16808 $as_echo "$kernelbuild" >&6; }
16810 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16811 $as_echo_n "checking kernel source version... " >&6; }
16812 utsrelease1=$kernelbuild/include/linux/version.h
16813 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16814 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16815 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16817 utsrelease=linux/version.h
16819 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16821 utsrelease=linux/utsrelease.h
16823 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16825 utsrelease=generated/utsrelease.h
16830 if test "$utsrelease"; then
16832 kernsrcver=`(echo "#include <$utsrelease>";
16833 echo "kernsrcver=UTS_RELEASE") |
16834 cpp -I $kernelbuild/include |
16835 grep "^kernsrcver=" | cut -d \" -f 2`
16837 if test -z "$kernsrcver"; then
16839 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16840 $as_echo "Not found" >&6; }
16841 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16842 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16843 { (exit 1); exit 1; }; }
16850 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16851 $as_echo "Not found" >&6; }
16852 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16853 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16854 { (exit 1); exit 1; }; }
16859 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16860 $as_echo "$kernsrcver" >&6; }
16863 LINUX_OBJ=${kernelbuild}
16864 LINUX_VERSION=${kernsrcver}
16871 modpost=$LINUX/scripts/Makefile.modpost
16872 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16873 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16874 if test -f "$modpost"; then
16876 if grep -q Modules.symvers $modpost; then
16878 LINUX_SYMBOLS=Modules.symvers
16882 LINUX_SYMBOLS=Module.symvers
16887 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16889 { { $as_echo "$as_me:$LINENO: error:
16890 *** Please make sure the kernel devel package for your distribution
16891 *** is installed. If your building with a custom kernel make sure the
16892 *** kernel is configured, built, and the '--with-linux=PATH
' configure
16893 *** option refers to the location of the kernel source." >&5
16894 $as_echo "$as_me: error:
16895 *** Please make sure the kernel devel package for your distribution
16896 *** is installed. If your building with a custom kernel make sure the
16897 *** kernel is configured, built, and the '--with-linux=PATH
' configure
16898 *** option refers to the location of the kernel source." >&2;}
16899 { (exit 1); exit 1; }; }
16910 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16911 $as_echo "$LINUX_SYMBOLS" >&6; }
16917 # Check whether --with-spl was given.
16918 if test "${with_spl+set}" = set; then
16919 withval=$with_spl; splsrc="$withval"
16924 # Check whether --with-spl-obj was given.
16925 if test "${with_spl_obj+set}" = set; then
16926 withval=$with_spl_obj; splbuild="$withval"
16931 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
16932 $as_echo_n "checking spl source directory... " >&6; }
16933 if test -z "$splsrc"; then
16935 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
16936 2>/dev/null | tail -1`
16938 if test -z "$sourcelink" || test ! -e $sourcelink; then
16945 if test -e $sourcelink; then
16947 splsrc=`readlink -f ${sourcelink}`
16951 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16952 $as_echo "Not found" >&6; }
16953 { { $as_echo "$as_me:$LINENO: error:
16954 *** Please make sure the spl devel package for your distribution
16955 *** is installed then try again. If that fails you can specify the
16956 *** location of the spl source with the '--with-spl=PATH
' option." >&5
16957 $as_echo "$as_me: error:
16958 *** Please make sure the spl devel package for your distribution
16959 *** is installed then try again. If that fails you can specify the
16960 *** location of the spl source with the '--with-spl=PATH
' option." >&2;}
16961 { (exit 1); exit 1; }; }
16968 if test "$splsrc" = "NONE"; then
16979 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
16980 $as_echo "$splsrc" >&6; }
16981 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
16982 $as_echo_n "checking spl build directory... " >&6; }
16983 if test -z "$splbuild"; then
16989 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
16990 $as_echo "$splbuild" >&6; }
16992 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
16993 $as_echo_n "checking spl source version... " >&6; }
16994 if test -r $splbuild/spl_config.h &&
16995 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
16998 splsrcver=`(echo "#include <spl_config.h>";
16999 echo "splsrcver=SPL_META_VERSION") |
17001 grep "^splsrcver=" | cut -d \" -f 2`
17006 if test -z "$splsrcver"; then
17008 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17009 $as_echo "Not found" >&6; }
17010 { { $as_echo "$as_me:$LINENO: error:
17011 *** Cannot determine the version of the spl source.
17012 *** Please prepare the spl source before running this script" >&5
17013 $as_echo "$as_me: error:
17014 *** Cannot determine the version of the spl source.
17015 *** Please prepare the spl source before running this script" >&2;}
17016 { (exit 1); exit 1; }; }
17021 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
17022 $as_echo "$splsrcver" >&6; }
17025 SPL_OBJ=${splbuild}
17026 SPL_VERSION=${splsrcver}
17033 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
17034 $as_echo_n "checking spl file name for module symbols... " >&6; }
17035 if test -r $SPL_OBJ/Module.symvers; then
17037 SPL_SYMBOLS=Module.symvers
17039 elif test -r $SPL_OBJ/Modules.symvers; then
17041 SPL_SYMBOLS=Modules.symvers
17043 elif test -r $SPL_OBJ/module/Module.symvers; then
17045 SPL_SYMBOLS=Module.symvers
17047 elif test -r $SPL_OBJ/module/Modules.symvers; then
17049 SPL_SYMBOLS=Modules.symvers
17053 SPL_SYMBOLS=$LINUX_SYMBOLS
17058 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
17059 $as_echo "$SPL_SYMBOLS" >&6; }
17065 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
17066 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
17069 cat confdefs.h - <<_ACEOF >conftest.c
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17077 #include <linux/module.h>
17083 #ifndef CONFIG_PREEMPT
17084 #error CONFIG_PREEMPT not #defined
17094 rm -Rf build && mkdir -p build
17095 echo "obj-m := conftest.o" >build/Makefile
17096 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; }; then
17108 { $as_echo "$as_me:$LINENO: result: yes" >&5
17109 $as_echo "yes" >&6; }
17110 { { $as_echo "$as_me:$LINENO: error:
17111 *** Kernel built with CONFIG_PREEMPT which is not supported.
17112 *** You must rebuild your kernel without this option." >&5
17113 $as_echo "$as_me: error:
17114 *** Kernel built with CONFIG_PREEMPT which is not supported.
17115 *** You must rebuild your kernel without this option." >&2;}
17116 { (exit 1); exit 1; }; }
17119 $as_echo "$as_me: failed program was:" >&5
17120 sed 's
/^
/|
/' conftest.$ac_ext >&5
17122 { $as_echo "$as_me:$LINENO: result: no" >&5
17123 $as_echo "no" >&6; }
17135 if test "$ZFS_META_LICENSE" = CDDL; then
17137 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
17138 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
17141 cat confdefs.h - <<_ACEOF >conftest.c
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17149 #include <linux/module.h>
17155 #ifndef CONFIG_DEBUG_LOCK_ALLOC
17156 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
17166 rm -Rf build && mkdir -p build
17167 echo "obj-m := conftest.o" >build/Makefile
17168 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17180 { $as_echo "$as_me:$LINENO: result: yes" >&5
17181 $as_echo "yes" >&6; }
17182 { { $as_echo "$as_me:$LINENO: error:
17183 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
17184 *** incompatible with the CDDL license. You must rebuild
17185 *** your kernel without this option." >&5
17186 $as_echo "$as_me: error:
17187 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
17188 *** incompatible with the CDDL license. You must rebuild
17189 *** your kernel without this option." >&2;}
17190 { (exit 1); exit 1; }; }
17193 $as_echo "$as_me: failed program was:" >&5
17194 sed 's
/^
/|
/' conftest.$ac_ext >&5
17196 { $as_echo "$as_me:$LINENO: result: no" >&5
17197 $as_echo "no" >&6; }
17212 if test "$ZFS_META_LICENSE" = GPL; then
17215 cat >>confdefs.h <<\_ACEOF
17216 #define HAVE_GPL_ONLY_SYMBOLS 1
17224 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
17225 $as_echo_n "checking block device operation prototypes... " >&6; }
17228 cat confdefs.h - <<_ACEOF >conftest.c
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17236 #include <linux/blkdev.h>
17242 int (*blk_open) (struct block_device *, fmode_t) = NULL;
17243 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
17244 int (*blk_ioctl) (struct block_device *, fmode_t,
17245 unsigned, unsigned long) = NULL;
17246 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
17247 unsigned, unsigned long) = NULL;
17248 struct block_device_operations blk_ops = {
17250 .release = blk_release,
17251 .ioctl = blk_ioctl,
17252 .compat_ioctl = blk_compat_ioctl,
17255 blk_ops.open(NULL, 0);
17256 blk_ops.release(NULL, 0);
17257 blk_ops.ioctl(NULL, 0, 0, 0);
17258 blk_ops.compat_ioctl(NULL, 0, 0, 0);
17267 rm -Rf build && mkdir -p build
17268 echo "obj-m := conftest.o" >build/Makefile
17269 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276 (eval $ac_try) 2>&5
17278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; }; then
17281 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
17282 $as_echo "struct block_device" >&6; }
17284 cat >>confdefs.h <<\_ACEOF
17285 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
17290 $as_echo "$as_me: failed program was:" >&5
17291 sed 's
/^
/|
/' conftest.$ac_ext >&5
17293 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
17294 $as_echo "struct inode" >&6; }
17304 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
17305 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
17308 cat confdefs.h - <<_ACEOF >conftest.c
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17316 #include <linux/types.h>
17322 fmode_t *ptr __attribute__ ((unused));
17331 rm -Rf build && mkdir -p build
17332 echo "obj-m := conftest.o" >build/Makefile
17333 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17345 { $as_echo "$as_me:$LINENO: result: yes" >&5
17346 $as_echo "yes" >&6; }
17348 cat >>confdefs.h <<\_ACEOF
17349 #define HAVE_FMODE_T 1
17354 $as_echo "$as_me: failed program was:" >&5
17355 sed 's
/^
/|
/' conftest.$ac_ext >&5
17357 { $as_echo "$as_me:$LINENO: result: no" >&5
17358 $as_echo "no" >&6; }
17369 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
17370 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
17373 cat confdefs.h - <<_ACEOF >conftest.c
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17381 #include <linux/kobject.h>
17387 int val __attribute__ ((unused));
17388 val = KOBJ_NAME_LEN;
17397 rm -Rf build && mkdir -p build
17398 echo "obj-m := conftest.o" >build/Makefile
17399 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17411 { $as_echo "$as_me:$LINENO: result: yes" >&5
17412 $as_echo "yes" >&6; }
17414 cat >>confdefs.h <<\_ACEOF
17415 #define HAVE_KOBJ_NAME_LEN 1
17420 $as_echo "$as_me: failed program was:" >&5
17421 sed 's
/^
/|
/' conftest.$ac_ext >&5
17423 { $as_echo "$as_me:$LINENO: result: no" >&5
17424 $as_echo "no" >&6; }
17435 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
17436 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
17437 grep -q -E '[[:space
:]]blkdev_get_by_path
[[:space
:]]' \
17438 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17440 if test $rc -ne 0; then
17443 for file in fs/block_dev.c; do
17444 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
17446 if test $rc -eq 0; then
17454 if test $export -eq 0; then
17456 { $as_echo "$as_me:$LINENO: result: no" >&5
17457 $as_echo "no" >&6; }
17462 { $as_echo "$as_me:$LINENO: result: yes" >&5
17463 $as_echo "yes" >&6; }
17465 cat >>confdefs.h <<\_ACEOF
17466 #define HAVE_BLKDEV_GET_BY_PATH 1
17475 { $as_echo "$as_me:$LINENO: result: yes" >&5
17476 $as_echo "yes" >&6; }
17478 cat >>confdefs.h <<\_ACEOF
17479 #define HAVE_BLKDEV_GET_BY_PATH 1
17488 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
17489 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
17490 grep -q -E '[[:space
:]]open_bdev_exclusive
[[:space
:]]' \
17491 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17493 if test $rc -ne 0; then
17496 for file in fs/block_dev.c; do
17497 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
17499 if test $rc -eq 0; then
17507 if test $export -eq 0; then
17509 { $as_echo "$as_me:$LINENO: result: no" >&5
17510 $as_echo "no" >&6; }
17515 { $as_echo "$as_me:$LINENO: result: yes" >&5
17516 $as_echo "yes" >&6; }
17518 cat >>confdefs.h <<\_ACEOF
17519 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
17528 { $as_echo "$as_me:$LINENO: result: yes" >&5
17529 $as_echo "yes" >&6; }
17531 cat >>confdefs.h <<\_ACEOF
17532 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
17541 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
17542 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
17545 cat confdefs.h - <<_ACEOF >conftest.c
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h. */
17553 #include <linux/buffer_head.h>
17559 struct block_device *bdev = NULL;
17560 invalidate_bdev(bdev);
17569 rm -Rf build && mkdir -p build
17570 echo "obj-m := conftest.o" >build/Makefile
17571 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
17583 { $as_echo "$as_me:$LINENO: result: yes" >&5
17584 $as_echo "yes" >&6; }
17586 cat >>confdefs.h <<\_ACEOF
17587 #define HAVE_1ARG_INVALIDATE_BDEV 1
17592 $as_echo "$as_me: failed program was:" >&5
17593 sed 's
/^
/|
/' conftest.$ac_ext >&5
17595 { $as_echo "$as_me:$LINENO: result: no" >&5
17596 $as_echo "no" >&6; }
17607 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
17608 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
17611 cat confdefs.h - <<_ACEOF >conftest.c
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h. */
17619 #include <linux/blkdev.h>
17625 struct block_device *bdev = NULL;
17626 bdev_logical_block_size(bdev);
17635 rm -Rf build && mkdir -p build
17636 echo "obj-m := conftest.o" >build/Makefile
17637 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644 (eval $ac_try) 2>&5
17646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; }; then
17649 { $as_echo "$as_me:$LINENO: result: yes" >&5
17650 $as_echo "yes" >&6; }
17652 cat >>confdefs.h <<\_ACEOF
17653 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
17658 $as_echo "$as_me: failed program was:" >&5
17659 sed 's
/^
/|
/' conftest.$ac_ext >&5
17661 { $as_echo "$as_me:$LINENO: result: no" >&5
17662 $as_echo "no" >&6; }
17673 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
17674 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
17675 EXTRA_KCFLAGS="-Werror"
17678 cat confdefs.h - <<_ACEOF >conftest.c
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17686 #include <linux/bio.h>
17693 (void)bio_empty_barrier(&bio);
17702 rm -Rf build && mkdir -p build
17703 echo "obj-m := conftest.o" >build/Makefile
17704 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17716 { $as_echo "$as_me:$LINENO: result: yes" >&5
17717 $as_echo "yes" >&6; }
17719 cat >>confdefs.h <<\_ACEOF
17720 #define HAVE_BIO_EMPTY_BARRIER 1
17725 $as_echo "$as_me: failed program was:" >&5
17726 sed 's
/^
/|
/' conftest.$ac_ext >&5
17728 { $as_echo "$as_me:$LINENO: result: no" >&5
17729 $as_echo "no" >&6; }
17740 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
17741 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
17744 cat confdefs.h - <<_ACEOF >conftest.c
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17752 #include <linux/bio.h>
17758 int flags __attribute__ ((unused));
17759 flags = (1 << BIO_RW_FAILFAST);
17768 rm -Rf build && mkdir -p build
17769 echo "obj-m := conftest.o" >build/Makefile
17770 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; }; then
17782 { $as_echo "$as_me:$LINENO: result: yes" >&5
17783 $as_echo "yes" >&6; }
17785 cat >>confdefs.h <<\_ACEOF
17786 #define HAVE_BIO_RW_FAILFAST 1
17791 $as_echo "$as_me: failed program was:" >&5
17792 sed 's
/^
/|
/' conftest.$ac_ext >&5
17794 { $as_echo "$as_me:$LINENO: result: no" >&5
17795 $as_echo "no" >&6; }
17806 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
17807 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
17810 cat confdefs.h - <<_ACEOF >conftest.c
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17818 #include <linux/bio.h>
17824 int flags __attribute__ ((unused));
17825 flags = ((1 << BIO_RW_FAILFAST_DEV) |
17826 (1 << BIO_RW_FAILFAST_TRANSPORT) |
17827 (1 << BIO_RW_FAILFAST_DRIVER));
17836 rm -Rf build && mkdir -p build
17837 echo "obj-m := conftest.o" >build/Makefile
17838 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17850 { $as_echo "$as_me:$LINENO: result: yes" >&5
17851 $as_echo "yes" >&6; }
17853 cat >>confdefs.h <<\_ACEOF
17854 #define HAVE_BIO_RW_FAILFAST_DTD 1
17859 $as_echo "$as_me: failed program was:" >&5
17860 sed 's
/^
/|
/' conftest.$ac_ext >&5
17862 { $as_echo "$as_me:$LINENO: result: no" >&5
17863 $as_echo "no" >&6; }
17874 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
17875 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
17878 cat confdefs.h - <<_ACEOF >conftest.c
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17886 #include <linux/bio.h>
17892 int flags __attribute__ ((unused));
17893 flags = REQ_FAILFAST_MASK;
17902 rm -Rf build && mkdir -p build
17903 echo "obj-m := conftest.o" >build/Makefile
17904 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
17908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17916 { $as_echo "$as_me:$LINENO: result: yes" >&5
17917 $as_echo "yes" >&6; }
17919 cat >>confdefs.h <<\_ACEOF
17920 #define HAVE_BIO_REQ_FAILFAST_MASK 1
17925 $as_echo "$as_me: failed program was:" >&5
17926 sed 's
/^
/|
/' conftest.$ac_ext >&5
17928 { $as_echo "$as_me:$LINENO: result: no" >&5
17929 $as_echo "no" >&6; }
17940 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
17941 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
17942 tmp_flags="$EXTRA_KCFLAGS"
17943 EXTRA_KCFLAGS="-Werror"
17946 cat confdefs.h - <<_ACEOF >conftest.c
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17954 #include <linux/bio.h>
17960 void (*wanted_end_io)(struct bio *, int) = NULL;
17961 bio_end_io_t *local_end_io __attribute__ ((unused));
17963 local_end_io = wanted_end_io;
17972 rm -Rf build && mkdir -p build
17973 echo "obj-m := conftest.o" >build/Makefile
17974 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17986 { $as_echo "$as_me:$LINENO: result: yes" >&5
17987 $as_echo "yes" >&6; }
17989 cat >>confdefs.h <<\_ACEOF
17990 #define HAVE_2ARGS_BIO_END_IO_T 1
17995 $as_echo "$as_me: failed program was:" >&5
17996 sed 's
/^
/|
/' conftest.$ac_ext >&5
17998 { $as_echo "$as_me:$LINENO: result: no" >&5
17999 $as_echo "no" >&6; }
18008 EXTRA_KCFLAGS="$tmp_flags"
18011 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
18012 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
18015 cat confdefs.h - <<_ACEOF >conftest.c
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18023 #include <linux/bio.h>
18029 int flags __attribute__ ((unused));
18030 flags = BIO_RW_SYNC;
18039 rm -Rf build && mkdir -p build
18040 echo "obj-m := conftest.o" >build/Makefile
18041 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18053 { $as_echo "$as_me:$LINENO: result: yes" >&5
18054 $as_echo "yes" >&6; }
18056 cat >>confdefs.h <<\_ACEOF
18057 #define HAVE_BIO_RW_SYNC 1
18062 $as_echo "$as_me: failed program was:" >&5
18063 sed 's
/^
/|
/' conftest.$ac_ext >&5
18065 { $as_echo "$as_me:$LINENO: result: no" >&5
18066 $as_echo "no" >&6; }
18077 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
18078 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
18081 cat confdefs.h - <<_ACEOF >conftest.c
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h. */
18089 #include <linux/bio.h>
18095 int flags __attribute__ ((unused));
18096 flags = BIO_RW_SYNCIO;
18105 rm -Rf build && mkdir -p build
18106 echo "obj-m := conftest.o" >build/Makefile
18107 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18119 { $as_echo "$as_me:$LINENO: result: yes" >&5
18120 $as_echo "yes" >&6; }
18122 cat >>confdefs.h <<\_ACEOF
18123 #define HAVE_BIO_RW_SYNCIO 1
18128 $as_echo "$as_me: failed program was:" >&5
18129 sed 's
/^
/|
/' conftest.$ac_ext >&5
18131 { $as_echo "$as_me:$LINENO: result: no" >&5
18132 $as_echo "no" >&6; }
18143 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
18144 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
18147 cat confdefs.h - <<_ACEOF >conftest.c
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18155 #include <linux/bio.h>
18161 int flags __attribute__ ((unused));
18171 rm -Rf build && mkdir -p build
18172 echo "obj-m := conftest.o" >build/Makefile
18173 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18185 { $as_echo "$as_me:$LINENO: result: yes" >&5
18186 $as_echo "yes" >&6; }
18188 cat >>confdefs.h <<\_ACEOF
18189 #define HAVE_REQ_SYNC 1
18194 $as_echo "$as_me: failed program was:" >&5
18195 sed 's
/^
/|
/' conftest.$ac_ext >&5
18197 { $as_echo "$as_me:$LINENO: result: no" >&5
18198 $as_echo "no" >&6; }
18209 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
18210 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
18213 cat confdefs.h - <<_ACEOF >conftest.c
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h. */
18221 #include <linux/blkdev.h>
18227 struct request *req = NULL;
18228 (void) blk_end_request(req, 0, 0);
18237 rm -Rf build && mkdir -p build
18238 echo "obj-m := conftest.o" >build/Makefile
18239 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18251 { $as_echo "$as_me:$LINENO: result: yes" >&5
18252 $as_echo "yes" >&6; }
18254 cat >>confdefs.h <<\_ACEOF
18255 #define HAVE_BLK_END_REQUEST 1
18260 $as_echo "$as_me: failed program was:" >&5
18261 sed 's
/^
/|
/' conftest.$ac_ext >&5
18263 { $as_echo "$as_me:$LINENO: result: no" >&5
18264 $as_echo "no" >&6; }
18274 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
18275 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
18278 cat confdefs.h - <<_ACEOF >conftest.c
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h. */
18286 #include <linux/module.h>
18287 #include <linux/blkdev.h>
18289 MODULE_LICENSE("CDDL");
18295 struct request *req = NULL;
18296 (void) blk_end_request(req, 0, 0);
18305 rm -Rf build && mkdir -p build
18306 echo "obj-m := conftest.o" >build/Makefile
18307 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18319 { $as_echo "$as_me:$LINENO: result: no" >&5
18320 $as_echo "no" >&6; }
18323 $as_echo "$as_me: failed program was:" >&5
18324 sed 's
/^
/|
/' conftest.$ac_ext >&5
18326 { $as_echo "$as_me:$LINENO: result: yes" >&5
18327 $as_echo "yes" >&6; }
18329 cat >>confdefs.h <<\_ACEOF
18330 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
18343 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
18344 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
18347 cat confdefs.h - <<_ACEOF >conftest.c
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18355 #include <linux/blkdev.h>
18361 struct request_queue *q = NULL;
18362 (void) blk_fetch_request(q);
18371 rm -Rf build && mkdir -p build
18372 echo "obj-m := conftest.o" >build/Makefile
18373 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18385 { $as_echo "$as_me:$LINENO: result: yes" >&5
18386 $as_echo "yes" >&6; }
18388 cat >>confdefs.h <<\_ACEOF
18389 #define HAVE_BLK_FETCH_REQUEST 1
18394 $as_echo "$as_me: failed program was:" >&5
18395 sed 's
/^
/|
/' conftest.$ac_ext >&5
18397 { $as_echo "$as_me:$LINENO: result: no" >&5
18398 $as_echo "no" >&6; }
18409 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
18410 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
18413 cat confdefs.h - <<_ACEOF >conftest.c
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18421 #include <linux/blkdev.h>
18427 struct request_queue *q = NULL;
18428 struct request *req = NULL;
18429 blk_requeue_request(q, req);
18438 rm -Rf build && mkdir -p build
18439 echo "obj-m := conftest.o" >build/Makefile
18440 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442 (eval $ac_try) 2>&5
18444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18452 { $as_echo "$as_me:$LINENO: result: yes" >&5
18453 $as_echo "yes" >&6; }
18455 cat >>confdefs.h <<\_ACEOF
18456 #define HAVE_BLK_REQUEUE_REQUEST 1
18461 $as_echo "$as_me: failed program was:" >&5
18462 sed 's
/^
/|
/' conftest.$ac_ext >&5
18464 { $as_echo "$as_me:$LINENO: result: no" >&5
18465 $as_echo "no" >&6; }
18476 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
18477 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
18480 cat confdefs.h - <<_ACEOF >conftest.c
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18488 #include <linux/blkdev.h>
18494 struct request *req = NULL;
18495 (void) blk_rq_bytes(req);
18504 rm -Rf build && mkdir -p build
18505 echo "obj-m := conftest.o" >build/Makefile
18506 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18518 { $as_echo "$as_me:$LINENO: result: yes" >&5
18519 $as_echo "yes" >&6; }
18521 cat >>confdefs.h <<\_ACEOF
18522 #define HAVE_BLK_RQ_BYTES 1
18527 $as_echo "$as_me: failed program was:" >&5
18528 sed 's
/^
/|
/' conftest.$ac_ext >&5
18530 { $as_echo "$as_me:$LINENO: result: no" >&5
18531 $as_echo "no" >&6; }
18541 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
18542 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
18545 cat confdefs.h - <<_ACEOF >conftest.c
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18553 #include <linux/module.h>
18554 #include <linux/blkdev.h>
18556 MODULE_LICENSE("CDDL");
18562 struct request *req = NULL;
18563 (void) blk_rq_bytes(req);
18572 rm -Rf build && mkdir -p build
18573 echo "obj-m := conftest.o" >build/Makefile
18574 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576 (eval $ac_try) 2>&5
18578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18581 (eval $ac_try) 2>&5
18583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); }; }; then
18586 { $as_echo "$as_me:$LINENO: result: no" >&5
18587 $as_echo "no" >&6; }
18590 $as_echo "$as_me: failed program was:" >&5
18591 sed 's
/^
/|
/' conftest.$ac_ext >&5
18593 { $as_echo "$as_me:$LINENO: result: yes" >&5
18594 $as_echo "yes" >&6; }
18596 cat >>confdefs.h <<\_ACEOF
18597 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
18610 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
18611 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
18614 cat confdefs.h - <<_ACEOF >conftest.c
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h. */
18622 #include <linux/blkdev.h>
18628 struct request *req = NULL;
18629 (void) blk_rq_pos(req);
18638 rm -Rf build && mkdir -p build
18639 echo "obj-m := conftest.o" >build/Makefile
18640 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18652 { $as_echo "$as_me:$LINENO: result: yes" >&5
18653 $as_echo "yes" >&6; }
18655 cat >>confdefs.h <<\_ACEOF
18656 #define HAVE_BLK_RQ_POS 1
18661 $as_echo "$as_me: failed program was:" >&5
18662 sed 's
/^
/|
/' conftest.$ac_ext >&5
18664 { $as_echo "$as_me:$LINENO: result: no" >&5
18665 $as_echo "no" >&6; }
18676 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
18677 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
18680 cat confdefs.h - <<_ACEOF >conftest.c
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18688 #include <linux/blkdev.h>
18694 struct request *req = NULL;
18695 (void) blk_rq_sectors(req);
18704 rm -Rf build && mkdir -p build
18705 echo "obj-m := conftest.o" >build/Makefile
18706 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18718 { $as_echo "$as_me:$LINENO: result: yes" >&5
18719 $as_echo "yes" >&6; }
18721 cat >>confdefs.h <<\_ACEOF
18722 #define HAVE_BLK_RQ_SECTORS 1
18727 $as_echo "$as_me: failed program was:" >&5
18728 sed 's
/^
/|
/' conftest.$ac_ext >&5
18730 { $as_echo "$as_me:$LINENO: result: no" >&5
18731 $as_echo "no" >&6; }
18742 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
18743 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
18746 cat confdefs.h - <<_ACEOF >conftest.c
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18754 #include <linux/blkdev.h>
18760 struct gendisk *disk = NULL;
18761 (void) get_disk_ro(disk);
18770 rm -Rf build && mkdir -p build
18771 echo "obj-m := conftest.o" >build/Makefile
18772 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
18776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18784 { $as_echo "$as_me:$LINENO: result: yes" >&5
18785 $as_echo "yes" >&6; }
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE_GET_DISK_RO 1
18793 $as_echo "$as_me: failed program was:" >&5
18794 sed 's
/^
/|
/' conftest.$ac_ext >&5
18796 { $as_echo "$as_me:$LINENO: result: no" >&5
18797 $as_echo "no" >&6; }
18808 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
18809 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
18812 cat confdefs.h - <<_ACEOF >conftest.c
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18820 #include <linux/blkdev.h>
18826 struct request *req = NULL;
18827 (void) rq_is_sync(req);
18836 rm -Rf build && mkdir -p build
18837 echo "obj-m := conftest.o" >build/Makefile
18838 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840 (eval $ac_try) 2>&5
18842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845 (eval $ac_try) 2>&5
18847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; }; then
18850 { $as_echo "$as_me:$LINENO: result: yes" >&5
18851 $as_echo "yes" >&6; }
18853 cat >>confdefs.h <<\_ACEOF
18854 #define HAVE_RQ_IS_SYNC 1
18859 $as_echo "$as_me: failed program was:" >&5
18860 sed 's
/^
/|
/' conftest.$ac_ext >&5
18862 { $as_echo "$as_me:$LINENO: result: no" >&5
18863 $as_echo "no" >&6; }
18874 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
18875 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
18878 cat confdefs.h - <<_ACEOF >conftest.c
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h. */
18886 #include <linux/blkdev.h>
18892 struct bio_vec *bv;
18893 struct req_iterator iter;
18894 struct request *req = NULL;
18895 rq_for_each_segment(bv, req, iter) { }
18904 rm -Rf build && mkdir -p build
18905 echo "obj-m := conftest.o" >build/Makefile
18906 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18918 { $as_echo "$as_me:$LINENO: result: yes" >&5
18919 $as_echo "yes" >&6; }
18921 cat >>confdefs.h <<\_ACEOF
18922 #define HAVE_RQ_FOR_EACH_SEGMENT 1
18927 $as_echo "$as_me: failed program was:" >&5
18928 sed 's
/^
/|
/' conftest.$ac_ext >&5
18930 { $as_echo "$as_me:$LINENO: result: no" >&5
18931 $as_echo "no" >&6; }
18941 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
18942 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
18945 cat confdefs.h - <<_ACEOF >conftest.c
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18953 #include <linux/fs.h>
18954 #include <linux/xattr.h>
18956 const struct xattr_handler xattr_test_handler = {
18962 const struct xattr_handler *xattr_handlers[] = {
18963 &xattr_test_handler,
18970 struct super_block sb __attribute__ ((unused));
18972 sb.s_xattr = xattr_handlers;
18981 rm -Rf build && mkdir -p build
18982 echo "obj-m := conftest.o" >build/Makefile
18983 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18995 { $as_echo "$as_me:$LINENO: result: yes" >&5
18996 $as_echo "yes" >&6; }
18998 cat >>confdefs.h <<\_ACEOF
18999 #define HAVE_CONST_XATTR_HANDLER 1
19004 $as_echo "$as_me: failed program was:" >&5
19005 sed 's
/^
/|
/' conftest.$ac_ext >&5
19007 { $as_echo "$as_me:$LINENO: result: no" >&5
19008 $as_echo "no" >&6; }
19019 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
19020 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
19023 cat confdefs.h - <<_ACEOF >conftest.c
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19031 #include <linux/xattr.h>
19037 int (*get)(struct dentry *dentry, const char *name,
19038 void *buffer, size_t size, int handler_flags) = NULL;
19039 struct xattr_handler xops __attribute__ ((unused));
19050 rm -Rf build && mkdir -p build
19051 echo "obj-m := conftest.o" >build/Makefile
19052 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; }; then
19064 { $as_echo "$as_me:$LINENO: result: yes" >&5
19065 $as_echo "yes" >&6; }
19067 cat >>confdefs.h <<\_ACEOF
19068 #define HAVE_DENTRY_XATTR_GET 1
19073 $as_echo "$as_me: failed program was:" >&5
19074 sed 's
/^
/|
/' conftest.$ac_ext >&5
19076 { $as_echo "$as_me:$LINENO: result: no" >&5
19077 $as_echo "no" >&6; }
19088 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
19089 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
19092 cat confdefs.h - <<_ACEOF >conftest.c
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h. */
19100 #include <linux/xattr.h>
19106 int (*set)(struct dentry *dentry, const char *name,
19107 const void *buffer, size_t size, int flags,
19108 int handler_flags) = NULL;
19109 struct xattr_handler xops __attribute__ ((unused));
19120 rm -Rf build && mkdir -p build
19121 echo "obj-m := conftest.o" >build/Makefile
19122 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19134 { $as_echo "$as_me:$LINENO: result: yes" >&5
19135 $as_echo "yes" >&6; }
19137 cat >>confdefs.h <<\_ACEOF
19138 #define HAVE_DENTRY_XATTR_SET 1
19143 $as_echo "$as_me: failed program was:" >&5
19144 sed 's
/^
/|
/' conftest.$ac_ext >&5
19146 { $as_echo "$as_me:$LINENO: result: no" >&5
19147 $as_echo "no" >&6; }
19158 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
19159 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
19163 cat confdefs.h - <<_ACEOF >conftest.c
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19171 #include <linux/fs.h>
19177 int (*fsync) (struct file *, struct dentry *, int) = NULL;
19178 struct file_operations fops __attribute__ ((unused));
19180 fops.fsync = fsync;
19189 rm -Rf build && mkdir -p build
19190 echo "obj-m := conftest.o" >build/Makefile
19191 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
19203 { $as_echo "$as_me:$LINENO: result: dentry" >&5
19204 $as_echo "dentry" >&6; }
19206 cat >>confdefs.h <<\_ACEOF
19207 #define HAVE_FSYNC_WITH_DENTRY 1
19212 $as_echo "$as_me: failed program was:" >&5
19213 sed 's
/^
/|
/' conftest.$ac_ext >&5
19227 cat confdefs.h - <<_ACEOF >conftest.c
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h. */
19235 #include <linux/fs.h>
19241 int (*fsync) (struct file *, int) = NULL;
19242 struct file_operations fops __attribute__ ((unused));
19244 fops.fsync = fsync;
19253 rm -Rf build && mkdir -p build
19254 echo "obj-m := conftest.o" >build/Makefile
19255 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; }; then
19267 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
19268 $as_echo "no dentry" >&6; }
19270 cat >>confdefs.h <<\_ACEOF
19271 #define HAVE_FSYNC_WITHOUT_DENTRY 1
19276 $as_echo "$as_me: failed program was:" >&5
19277 sed 's
/^
/|
/' conftest.$ac_ext >&5
19291 cat confdefs.h - <<_ACEOF >conftest.c
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19299 #include <linux/fs.h>
19305 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
19306 struct file_operations fops __attribute__ ((unused));
19308 fops.fsync = fsync;
19317 rm -Rf build && mkdir -p build
19318 echo "obj-m := conftest.o" >build/Makefile
19319 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; }; then
19331 { $as_echo "$as_me:$LINENO: result: range" >&5
19332 $as_echo "range" >&6; }
19334 cat >>confdefs.h <<\_ACEOF
19335 #define HAVE_FSYNC_RANGE 1
19340 $as_echo "$as_me: failed program was:" >&5
19341 sed 's
/^
/|
/' conftest.$ac_ext >&5
19354 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
19355 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
19358 cat confdefs.h - <<_ACEOF >conftest.c
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19366 #include <linux/fs.h>
19372 void (*evict_inode) (struct inode *) = NULL;
19373 struct super_operations sops __attribute__ ((unused)) = {
19374 .evict_inode = evict_inode,
19384 rm -Rf build && mkdir -p build
19385 echo "obj-m := conftest.o" >build/Makefile
19386 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19398 { $as_echo "$as_me:$LINENO: result: yes" >&5
19399 $as_echo "yes" >&6; }
19401 cat >>confdefs.h <<\_ACEOF
19402 #define HAVE_EVICT_INODE 1
19407 $as_echo "$as_me: failed program was:" >&5
19408 sed 's
/^
/|
/' conftest.$ac_ext >&5
19410 { $as_echo "$as_me:$LINENO: result: no" >&5
19411 $as_echo "no" >&6; }
19422 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
19423 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
19424 grep -q -E '[[:space
:]]insert_inode_locked
[[:space
:]]' \
19425 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19427 if test $rc -ne 0; then
19430 for file in fs/inode.c; do
19431 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
19433 if test $rc -eq 0; then
19441 if test $export -eq 0; then
19443 { $as_echo "$as_me:$LINENO: result: no" >&5
19444 $as_echo "no" >&6; }
19449 { $as_echo "$as_me:$LINENO: result: yes" >&5
19450 $as_echo "yes" >&6; }
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE_INSERT_INODE_LOCKED 1
19462 { $as_echo "$as_me:$LINENO: result: yes" >&5
19463 $as_echo "yes" >&6; }
19465 cat >>confdefs.h <<\_ACEOF
19466 #define HAVE_INSERT_INODE_LOCKED 1
19475 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
19476 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
19477 grep -q -E '[[:space
:]]d_obtain_alias
[[:space
:]]' \
19478 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19480 if test $rc -ne 0; then
19483 for file in fs/dcache.c; do
19484 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
19486 if test $rc -eq 0; then
19494 if test $export -eq 0; then
19496 { $as_echo "$as_me:$LINENO: result: no" >&5
19497 $as_echo "no" >&6; }
19502 { $as_echo "$as_me:$LINENO: result: yes" >&5
19503 $as_echo "yes" >&6; }
19505 cat >>confdefs.h <<\_ACEOF
19506 #define HAVE_D_OBTAIN_ALIAS 1
19515 { $as_echo "$as_me:$LINENO: result: yes" >&5
19516 $as_echo "yes" >&6; }
19518 cat >>confdefs.h <<\_ACEOF
19519 #define HAVE_D_OBTAIN_ALIAS 1
19528 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
19529 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
19530 grep -q -E '[[:space
:]]check_disk_size_change
[[:space
:]]' \
19531 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19533 if test $rc -ne 0; then
19536 for file in fs/block_dev.c; do
19537 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
19539 if test $rc -eq 0; then
19547 if test $export -eq 0; then
19549 { $as_echo "$as_me:$LINENO: result: no" >&5
19550 $as_echo "no" >&6; }
19555 { $as_echo "$as_me:$LINENO: result: yes" >&5
19556 $as_echo "yes" >&6; }
19558 cat >>confdefs.h <<\_ACEOF
19559 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
19568 { $as_echo "$as_me:$LINENO: result: yes" >&5
19569 $as_echo "yes" >&6; }
19571 cat >>confdefs.h <<\_ACEOF
19572 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
19581 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
19582 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
19583 grep -q -E '[[:space
:]]truncate_setsize
[[:space
:]]' \
19584 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19586 if test $rc -ne 0; then
19589 for file in mm/truncate.c; do
19590 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
19592 if test $rc -eq 0; then
19600 if test $export -eq 0; then
19602 { $as_echo "$as_me:$LINENO: result: no" >&5
19603 $as_echo "no" >&6; }
19608 { $as_echo "$as_me:$LINENO: result: yes" >&5
19609 $as_echo "yes" >&6; }
19611 cat >>confdefs.h <<\_ACEOF
19612 #define HAVE_TRUNCATE_SETSIZE 1
19621 { $as_echo "$as_me:$LINENO: result: yes" >&5
19622 $as_echo "yes" >&6; }
19624 cat >>confdefs.h <<\_ACEOF
19625 #define HAVE_TRUNCATE_SETSIZE 1
19634 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
19635 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
19636 tmp_flags="$EXTRA_KCFLAGS"
19637 EXTRA_KCFLAGS="-Werror"
19640 cat confdefs.h - <<_ACEOF >conftest.c
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19648 #include <linux/security.h>
19654 security_inode_init_security(NULL,NULL,NULL,NULL,NULL,NULL);
19663 rm -Rf build && mkdir -p build
19664 echo "obj-m := conftest.o" >build/Makefile
19665 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 (eval $ac_try) 2>&5
19674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; }; then
19677 { $as_echo "$as_me:$LINENO: result: yes" >&5
19678 $as_echo "yes" >&6; }
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
19686 $as_echo "$as_me: failed program was:" >&5
19687 sed 's
/^
/|
/' conftest.$ac_ext >&5
19689 { $as_echo "$as_me:$LINENO: result: no" >&5
19690 $as_echo "no" >&6; }
19699 EXTRA_KCFLAGS="$tmp_flags"
19702 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
19703 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
19704 grep -q -E '[[:space
:]]mount_nodev
[[:space
:]]' \
19705 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19707 if test $rc -ne 0; then
19710 for file in fs/super.c; do
19711 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
19713 if test $rc -eq 0; then
19721 if test $export -eq 0; then
19723 { $as_echo "$as_me:$LINENO: result: no" >&5
19724 $as_echo "no" >&6; }
19729 { $as_echo "$as_me:$LINENO: result: yes" >&5
19730 $as_echo "yes" >&6; }
19732 cat >>confdefs.h <<\_ACEOF
19733 #define HAVE_MOUNT_NODEV 1
19742 { $as_echo "$as_me:$LINENO: result: yes" >&5
19743 $as_echo "yes" >&6; }
19745 cat >>confdefs.h <<\_ACEOF
19746 #define HAVE_MOUNT_NODEV 1
19755 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
19756 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
19759 cat confdefs.h - <<_ACEOF >conftest.c
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19767 #include <linux/fs.h>
19773 struct super_block sb __attribute__ ((unused));
19783 rm -Rf build && mkdir -p build
19784 echo "obj-m := conftest.o" >build/Makefile
19785 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19797 { $as_echo "$as_me:$LINENO: result: yes" >&5
19798 $as_echo "yes" >&6; }
19800 cat >>confdefs.h <<\_ACEOF
19806 $as_echo "$as_me: failed program was:" >&5
19807 sed 's
/^
/|
/' conftest.$ac_ext >&5
19809 { $as_echo "$as_me:$LINENO: result: no" >&5
19810 $as_echo "no" >&6; }
19821 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
19822 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
19823 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
19824 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19826 if test $rc -ne 0; then
19829 for file in mm/backing-dev.c; do
19830 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
19832 if test $rc -eq 0; then
19840 if test $export -eq 0; then
19842 { $as_echo "$as_me:$LINENO: result: no" >&5
19843 $as_echo "no" >&6; }
19848 { $as_echo "$as_me:$LINENO: result: yes" >&5
19849 $as_echo "yes" >&6; }
19851 cat >>confdefs.h <<\_ACEOF
19852 #define HAVE_BDI_SETUP_AND_REGISTER 1
19861 { $as_echo "$as_me:$LINENO: result: yes" >&5
19862 $as_echo "yes" >&6; }
19864 cat >>confdefs.h <<\_ACEOF
19865 #define HAVE_BDI_SETUP_AND_REGISTER 1
19874 if test "$LINUX_OBJ" != "$LINUX"; then
19876 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
19883 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
19884 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
19885 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
19892 # Check whether --with-udevdir was given.
19893 if test "${with_udevdir+set}" = set; then
19894 withval=$with_udevdir; udevdir=$withval
19896 udevdir='${exec_prefix}/lib
/udev
'
19901 # Check whether --with-udevruledir was given.
19902 if test "${with_udevruledir+set}" = set; then
19903 withval=$with_udevruledir; udevruledir=$withval
19905 udevruledir='${udevdir}/rules.d
'
19913 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
19914 $as_echo_n "checking for target asm dir... " >&6; }
19915 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
19917 case $TARGET_ARCH in
19919 TARGET_ASM_DIR=asm-${TARGET_ARCH}
19922 TARGET_ASM_DIR=asm-generic
19927 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
19928 $as_echo "$TARGET_ASM_DIR" >&6; }
19931 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
19932 $as_echo_n "checking for ioctl()... " >&6; }
19933 cat >conftest.$ac_ext <<_ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 #include <unistd.h>
19942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19943 $EGREP "ioctl" >/dev/null 2>&1; then
19950 cat >conftest.$ac_ext <<_ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19956 #include <sys/ioctl.h>
19959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19960 $EGREP "ioctl" >/dev/null 2>&1; then
19967 cat >conftest.$ac_ext <<_ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 #include <stropts.h>
19976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19977 $EGREP "ioctl" >/dev/null 2>&1; then
19985 if test $is_unistd = yes; then
19988 cat >>confdefs.h <<\_ACEOF
19989 #define HAVE_IOCTL_IN_UNISTD_H 1
19994 if test $is_sys_ioctl = yes; then
19997 cat >>confdefs.h <<\_ACEOF
19998 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
20001 elif test $is_stropts = yes; then
20003 cat >>confdefs.h <<\_ACEOF
20004 #define HAVE_IOCTL_IN_STROPTS_H 1
20012 if test $result = no; then
20013 { $as_echo "$as_me:$LINENO: result: no" >&5
20014 $as_echo "no" >&6; }
20015 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
20016 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
20017 { (exit 1); exit 1; }; }
20019 { $as_echo "$as_me:$LINENO: result: yes" >&5
20020 $as_echo "yes" >&6; }
20026 if test "${ac_cv_header_zlib_h+set}" = set; then
20027 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
20028 $as_echo_n "checking for zlib.h... " >&6; }
20029 if test "${ac_cv_header_zlib_h+set}" = set; then
20030 $as_echo_n "(cached) " >&6
20032 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20033 $as_echo "$ac_cv_header_zlib_h" >&6; }
20035 # Is the header compilable?
20036 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
20037 $as_echo_n "checking zlib.h usability... " >&6; }
20038 cat >conftest.$ac_ext <<_ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20044 $ac_includes_default
20047 rm -f conftest.$ac_objext
20048 if { (ac_try="$ac_compile"
20049 case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20054 $as_echo "$ac_try_echo") >&5
20055 (eval "$ac_compile") 2>conftest.er1
20057 grep -v '^
*+' conftest.er1 >conftest.err
20059 cat conftest.err >&5
20060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } && {
20062 test -z "$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest.$ac_objext; then
20065 ac_header_compiler=yes
20067 $as_echo "$as_me: failed program was:" >&5
20068 sed 's
/^
/|
/' conftest.$ac_ext >&5
20070 ac_header_compiler=no
20073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20074 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20075 $as_echo "$ac_header_compiler" >&6; }
20077 # Is the header present?
20078 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
20079 $as_echo_n "checking zlib.h presence... " >&6; }
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20088 if { (ac_try="$ac_cpp conftest.$ac_ext"
20089 case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20094 $as_echo "$ac_try_echo") >&5
20095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20097 grep -v '^
*+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } >/dev/null && {
20102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20103 test ! -s conftest.err
20105 ac_header_preproc=yes
20107 $as_echo "$as_me: failed program was:" >&5
20108 sed 's
/^
/|
/' conftest.$ac_ext >&5
20110 ac_header_preproc=no
20113 rm -f conftest.err conftest.$ac_ext
20114 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20115 $as_echo "$ac_header_preproc" >&6; }
20117 # So? What about this header?
20118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20120 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20121 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20122 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
20123 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
20124 ac_header_preproc=yes
20127 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20128 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20129 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20130 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20131 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20132 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20133 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20134 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20135 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
20136 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
20137 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20138 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20142 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
20143 $as_echo_n "checking for zlib.h... " >&6; }
20144 if test "${ac_cv_header_zlib_h+set}" = set; then
20145 $as_echo_n "(cached) " >&6
20147 ac_cv_header_zlib_h=$ac_header_preproc
20149 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20150 $as_echo "$ac_cv_header_zlib_h" >&6; }
20153 if test "x$ac_cv_header_zlib_h" = x""yes; then
20156 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20157 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
20158 { { $as_echo "$as_me:$LINENO: error:
20159 *** zlib.h missing, zlib-devel package required
20160 See \`config.log
' for more details." >&5
20161 $as_echo "$as_me: error:
20162 *** zlib.h missing, zlib-devel package required
20163 See \`config.log' for more details.
" >&2;}
20164 { (exit 1); exit 1; }; }; }
20170 { $as_echo "$as_me:$LINENO: checking
for compress2
in -lz" >&5
20171 $as_echo_n "checking
for compress2
in -lz...
" >&6; }
20172 if test "${ac_cv_lib_z_compress2+set}" = set; then
20173 $as_echo_n "(cached
) " >&6
20175 ac_check_lib_save_LIBS=$LIBS
20177 cat >conftest.$ac_ext <<_ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h. */
20184 /* Override any GCC internal prototype to avoid an error.
20185 Use char because int might match the return type of a GCC
20186 builtin and then its argument prototype would still apply. */
20194 return compress2 ();
20199 rm -f conftest.$ac_objext conftest$ac_exeext
20200 if { (ac_try="$ac_link"
20201 case "(($ac_try" in
20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20205 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20206 $as_echo "$ac_try_echo") >&5
20207 (eval "$ac_link") 2>conftest.er1
20209 grep -v '^ *+' conftest.er1 >conftest.err
20211 cat conftest.err >&5
20212 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20213 (exit $ac_status); } && {
20214 test -z "$ac_c_werror_flag" ||
20215 test ! -s conftest.err
20216 } && test -s conftest$ac_exeext && {
20217 test "$cross_compiling" = yes ||
20218 $as_test_x conftest$ac_exeext
20220 ac_cv_lib_z_compress2=yes
20222 $as_echo "$as_me: failed program was
:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 ac_cv_lib_z_compress2=no
20228 rm -rf conftest.dSYM
20229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20230 conftest$ac_exeext conftest.$ac_ext
20231 LIBS=$ac_check_lib_save_LIBS
20233 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_compress2" >&5
20234 $as_echo "$ac_cv_lib_z_compress2" >&6; }
20235 if test "x
$ac_cv_lib_z_compress2" = x""yes; then
20236 cat >>confdefs.h <<_ACEOF
20237 #define HAVE_LIBZ 1
20243 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
20244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20245 { { $as_echo "$as_me:$LINENO: error:
20246 *** compress2() missing, zlib-devel package required
20247 See \`config.log' for more details.
" >&5
20248 $as_echo "$as_me: error
:
20249 *** compress2
() missing
, zlib-devel package required
20250 See \
`config.log' for more details." >&2;}
20251 { (exit 1); exit 1; }; }; }
20256 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
20257 $as_echo_n "checking for uncompress in -lz... " >&6; }
20258 if test "${ac_cv_lib_z_uncompress+set}" = set; then
20259 $as_echo_n "(cached) " >&6
20261 ac_check_lib_save_LIBS=$LIBS
20263 cat >conftest.$ac_ext <<_ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20270 /* Override any GCC internal prototype to avoid an error.
20271 Use char because int might match the return type of a GCC
20272 builtin and then its argument prototype would still apply. */
20276 char uncompress ();
20280 return uncompress ();
20285 rm -f conftest.$ac_objext conftest$ac_exeext
20286 if { (ac_try="$ac_link"
20287 case "(($ac_try" in
20288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20289 *) ac_try_echo
=$ac_try;;
20291 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20292 $as_echo "$ac_try_echo") >&5
20293 (eval "$ac_link") 2>conftest.er1
20295 grep -v '^ *+' conftest.er1
>conftest.err
20297 cat conftest.err
>&5
20298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest
$ac_exeext && {
20303 test "$cross_compiling" = yes ||
20304 $as_test_x conftest
$ac_exeext
20306 ac_cv_lib_z_uncompress
=yes
20308 $as_echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.
$ac_ext >&5
20311 ac_cv_lib_z_uncompress
=no
20314 rm -rf conftest.dSYM
20315 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20316 conftest
$ac_exeext conftest.
$ac_ext
20317 LIBS
=$ac_check_lib_save_LIBS
20319 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
20320 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
20321 if test "x$ac_cv_lib_z_uncompress" = x
""yes; then
20322 cat >>confdefs.h
<<_ACEOF
20323 #define HAVE_LIBZ 1
20329 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20331 { { $as_echo "$as_me:$LINENO: error:
20332 *** uncompress() missing, zlib-devel package required
20333 See \`config.log' for more details." >&5
20334 $as_echo "$as_me: error:
20335 *** uncompress() missing, zlib-devel package required
20336 See \`config.log' for more details." >&2;}
20337 { (exit 1); exit 1; }; }; }
20342 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
20343 $as_echo_n "checking for crc32 in -lz... " >&6; }
20344 if test "${ac_cv_lib_z_crc32+set}" = set; then
20345 $as_echo_n "(cached) " >&6
20347 ac_check_lib_save_LIBS
=$LIBS
20349 cat >conftest.
$ac_ext <<_ACEOF
20352 cat confdefs.h
>>conftest.
$ac_ext
20353 cat >>conftest.
$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20356 /* Override any GCC internal prototype to avoid an error.
20357 Use char because int might match the return type of a GCC
20358 builtin and then its argument prototype would still apply. */
20371 rm -f conftest.
$ac_objext conftest
$ac_exeext
20372 if { (ac_try
="$ac_link"
20373 case "(($ac_try" in
20374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20378 $as_echo "$ac_try_echo") >&5
20379 (eval "$ac_link") 2>conftest.er1
20381 grep -v '^ *+' conftest.er1 >conftest.err
20383 cat conftest.err >&5
20384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } && {
20386 test -z "$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 } && test -s conftest$ac_exeext && {
20389 test "$cross_compiling" = yes ||
20390 $as_test_x conftest$ac_exeext
20392 ac_cv_lib_z_crc32=yes
20394 $as_echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20397 ac_cv_lib_z_crc32=no
20400 rm -rf conftest.dSYM
20401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20402 conftest$ac_exeext conftest.$ac_ext
20403 LIBS=$ac_check_lib_save_LIBS
20405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
20406 $as_echo "$ac_cv_lib_z_crc32" >&6; }
20407 if test "x$ac_cv_lib_z_crc32" = x""yes; then
20408 cat >>confdefs.h <<_ACEOF
20409 #define HAVE_LIBZ 1
20415 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20417 { { $as_echo "$as_me:$LINENO: error
:
20418 *** crc32
() missing
, zlib-devel package required
20419 See \
`config.log' for more details." >&5
20420 $as_echo "$as_me: error:
20421 *** crc32() missing, zlib-devel package required
20422 See \`config.log
' for more details." >&2;}
20423 { (exit 1); exit 1; }; }; }
20430 cat >>confdefs.h <<\_ACEOF
20431 #define HAVE_ZLIB 1
20438 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
20439 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
20440 $as_echo_n "checking for uuid/uuid.h... " >&6; }
20441 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
20442 $as_echo_n "(cached) " >&6
20444 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
20445 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
20447 # Is the header compilable?
20448 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
20449 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
20450 cat >conftest.$ac_ext <<_ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 $ac_includes_default
20457 #include <uuid/uuid.h>
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20466 $as_echo "$ac_try_echo") >&5
20467 (eval "$ac_compile") 2>conftest.er1
20469 grep -v '^
*+' conftest.er1 >conftest.err
20471 cat conftest.err >&5
20472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } && {
20474 test -z "$ac_c_werror_flag" ||
20475 test ! -s conftest.err
20476 } && test -s conftest.$ac_objext; then
20477 ac_header_compiler=yes
20479 $as_echo "$as_me: failed program was:" >&5
20480 sed 's
/^
/|
/' conftest.$ac_ext >&5
20482 ac_header_compiler=no
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20486 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20487 $as_echo "$ac_header_compiler" >&6; }
20489 # Is the header present?
20490 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
20491 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 #include <uuid/uuid.h>
20500 if { (ac_try="$ac_cpp conftest.$ac_ext"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20506 $as_echo "$ac_try_echo") >&5
20507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20509 grep -v '^
*+' conftest.er1 >conftest.err
20511 cat conftest.err >&5
20512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } >/dev/null && {
20514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20517 ac_header_preproc=yes
20519 $as_echo "$as_me: failed program was:" >&5
20520 sed 's
/^
/|
/' conftest.$ac_ext >&5
20522 ac_header_preproc=no
20525 rm -f conftest.err conftest.$ac_ext
20526 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20527 $as_echo "$ac_header_preproc" >&6; }
20529 # So? What about this header?
20530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20532 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
20533 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20534 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result
" >&5
20535 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the compiler
's result" >&2;}
20536 ac_header_preproc=yes
20539 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
20540 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
20541 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
20542 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
20543 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
20544 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
20545 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
20546 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
20547 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result
" >&5
20548 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the preprocessor
's result" >&2;}
20549 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
20550 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
20554 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
20555 $as_echo_n "checking for uuid/uuid.h... " >&6; }
20556 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
20557 $as_echo_n "(cached) " >&6
20559 ac_cv_header_uuid_uuid_h=$ac_header_preproc
20561 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
20562 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
20565 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
20568 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20569 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
20570 { { $as_echo "$as_me:$LINENO: error:
20571 *** uuid/uuid.h missing, libuuid-devel package required
20572 See \`config.log
' for more details." >&5
20573 $as_echo "$as_me: error:
20574 *** uuid/uuid.h missing, libuuid-devel package required
20575 See \`config.log' for more details.
" >&2;}
20576 { (exit 1); exit 1; }; }; }
20582 { $as_echo "$as_me:$LINENO: checking
for uuid_generate
in -luuid" >&5
20583 $as_echo_n "checking
for uuid_generate
in -luuid...
" >&6; }
20584 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
20585 $as_echo_n "(cached
) " >&6
20587 ac_check_lib_save_LIBS=$LIBS
20588 LIBS="-luuid $LIBS"
20589 cat >conftest.$ac_ext <<_ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20596 /* Override any GCC internal prototype to avoid an error.
20597 Use char because int might match the return type of a GCC
20598 builtin and then its argument prototype would still apply. */
20602 char uuid_generate ();
20606 return uuid_generate ();
20611 rm -f conftest.$ac_objext conftest$ac_exeext
20612 if { (ac_try="$ac_link"
20613 case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20617 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20618 $as_echo "$ac_try_echo") >&5
20619 (eval "$ac_link") 2>conftest.er1
20621 grep -v '^ *+' conftest.er1 >conftest.err
20623 cat conftest.err >&5
20624 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20625 (exit $ac_status); } && {
20626 test -z "$ac_c_werror_flag" ||
20627 test ! -s conftest.err
20628 } && test -s conftest$ac_exeext && {
20629 test "$cross_compiling" = yes ||
20630 $as_test_x conftest$ac_exeext
20632 ac_cv_lib_uuid_uuid_generate=yes
20634 $as_echo "$as_me: failed program was
:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20637 ac_cv_lib_uuid_uuid_generate=no
20640 rm -rf conftest.dSYM
20641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20642 conftest$ac_exeext conftest.$ac_ext
20643 LIBS=$ac_check_lib_save_LIBS
20645 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_generate" >&5
20646 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
20647 if test "x
$ac_cv_lib_uuid_uuid_generate" = x""yes; then
20648 cat >>confdefs.h <<_ACEOF
20649 #define HAVE_LIBUUID 1
20652 LIBS="-luuid $LIBS"
20655 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
20656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20657 { { $as_echo "$as_me:$LINENO: error:
20658 *** uuid_generate() missing, libuuid-devel package required
20659 See \`config.log' for more details.
" >&5
20660 $as_echo "$as_me: error
:
20661 *** uuid_generate
() missing
, libuuid-devel package required
20662 See \
`config.log' for more details." >&2;}
20663 { (exit 1); exit 1; }; }; }
20668 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
20669 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
20670 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
20671 $as_echo_n "(cached) " >&6
20673 ac_check_lib_save_LIBS=$LIBS
20674 LIBS="-luuid $LIBS"
20675 cat >conftest.$ac_ext <<_ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20682 /* Override any GCC internal prototype to avoid an error.
20683 Use char because int might match the return type of a GCC
20684 builtin and then its argument prototype would still apply. */
20688 char uuid_is_null ();
20692 return uuid_is_null ();
20697 rm -f conftest.$ac_objext conftest$ac_exeext
20698 if { (ac_try="$ac_link"
20699 case "(($ac_try" in
20700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20701 *) ac_try_echo
=$ac_try;;
20703 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20704 $as_echo "$ac_try_echo") >&5
20705 (eval "$ac_link") 2>conftest.er1
20707 grep -v '^ *+' conftest.er1
>conftest.err
20709 cat conftest.err
>&5
20710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } && {
20712 test -z "$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 } && test -s conftest
$ac_exeext && {
20715 test "$cross_compiling" = yes ||
20716 $as_test_x conftest
$ac_exeext
20718 ac_cv_lib_uuid_uuid_is_null
=yes
20720 $as_echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.
$ac_ext >&5
20723 ac_cv_lib_uuid_uuid_is_null
=no
20726 rm -rf conftest.dSYM
20727 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20728 conftest
$ac_exeext conftest.
$ac_ext
20729 LIBS
=$ac_check_lib_save_LIBS
20731 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
20732 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
20733 if test "x$ac_cv_lib_uuid_uuid_is_null" = x
""yes; then
20734 cat >>confdefs.h
<<_ACEOF
20735 #define HAVE_LIBUUID 1
20738 LIBS
="-luuid $LIBS"
20741 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20743 { { $as_echo "$as_me:$LINENO: error:
20744 *** uuid_is_null() missing, libuuid-devel package required
20745 See \`config.log' for more details." >&5
20746 $as_echo "$as_me: error:
20747 *** uuid_is_null() missing, libuuid-devel package required
20748 See \`config.log' for more details." >&2;}
20749 { (exit 1); exit 1; }; }; }
20756 cat >>confdefs.h
<<\_ACEOF
20757 #define HAVE_LIBUUID 1
20763 # Check whether --with-blkid was given.
20764 if test "${with_blkid+set}" = set; then
20765 withval
=$with_blkid;
20772 if test "x$with_blkid" != xno
; then
20774 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
20775 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
20776 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
20777 $as_echo_n "(cached) " >&6
20779 ac_check_lib_save_LIBS
=$LIBS
20780 LIBS
="-lblkid $LIBS"
20781 cat >conftest.
$ac_ext <<_ACEOF
20784 cat confdefs.h
>>conftest.
$ac_ext
20785 cat >>conftest.
$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20788 /* Override any GCC internal prototype to avoid an error.
20789 Use char because int might match the return type of a GCC
20790 builtin and then its argument prototype would still apply. */
20794 char blkid_get_cache ();
20798 return blkid_get_cache ();
20803 rm -f conftest.
$ac_objext conftest
$ac_exeext
20804 if { (ac_try
="$ac_link"
20805 case "(($ac_try" in
20806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20810 $as_echo "$ac_try_echo") >&5
20811 (eval "$ac_link") 2>conftest.er1
20813 grep -v '^ *+' conftest.er1 >conftest.err
20815 cat conftest.err >&5
20816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } && {
20818 test -z "$ac_c_werror_flag" ||
20819 test ! -s conftest.err
20820 } && test -s conftest$ac_exeext && {
20821 test "$cross_compiling" = yes ||
20822 $as_test_x conftest$ac_exeext
20824 ac_cv_lib_blkid_blkid_get_cache=yes
20826 $as_echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 ac_cv_lib_blkid_blkid_get_cache=no
20832 rm -rf conftest.dSYM
20833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20834 conftest$ac_exeext conftest.$ac_ext
20835 LIBS=$ac_check_lib_save_LIBS
20837 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
20838 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
20839 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
20841 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
20842 $as_echo_n "checking for blkid zfs support... " >&6; }
20845 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
20846 >/dev/null 2>/dev/null
20847 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
20848 dd of=$ZFS_DEV bs=1k count=8 \
20849 seek=132 conv=notrunc &>/dev/null \
20850 >/dev/null 2>/dev/null
20852 saved_LDFLAGS="$LDFLAGS"
20855 if test "$cross_compiling" = yes; then
20856 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20858 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
20859 See \
`config.log' for more details." >&5
20860 $as_echo "$as_me: error: cannot run test program while cross compiling
20861 See \`config.log
' for more details." >&2;}
20862 { (exit 1); exit 1; }; }; }
20864 cat >conftest.$ac_ext <<_ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20872 #include <blkid/blkid.h>
20881 if (blkid_get_cache(&cache, NULL) < 0)
20884 value = blkid_get_tag_value(cache, "TYPE",
20887 blkid_put_cache(cache);
20891 if (strcmp(value, "zfs")) {
20893 blkid_put_cache(cache);
20898 blkid_put_cache(cache);
20904 rm -f conftest$ac_exeext
20905 if { (ac_try="$ac_link"
20906 case "(($ac_try" in
20907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908 *) ac_try_echo=$ac_try;;
20910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20911 $as_echo "$ac_try_echo") >&5
20912 (eval "$ac_link") 2>&5
20914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
20916 { (case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20921 $as_echo "$ac_try_echo") >&5
20922 (eval "$ac_try") 2>&5
20924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; }; then
20928 { $as_echo "$as_me:$LINENO: result: yes" >&5
20929 $as_echo "yes" >&6; }
20933 cat >>confdefs.h <<\_ACEOF
20934 #define HAVE_LIBBLKID 1
20939 $as_echo "$as_me: program exited with status $ac_status" >&5
20940 $as_echo "$as_me: failed program was:" >&5
20941 sed 's
/^
/|
/' conftest.$ac_ext >&5
20943 ( exit $ac_status )
20946 { $as_echo "$as_me:$LINENO: result: no" >&5
20947 $as_echo "no" >&6; }
20948 if test "x$with_blkid" != xcheck; then
20949 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20950 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
20951 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
20952 See \`config.log
' for more details." >&5
20953 $as_echo "$as_me: error: --with-blkid given but unavailable
20954 See \`config.log' for more details.
" >&2;}
20955 { (exit 1); exit 1; }; }; }
20960 rm -rf conftest.dSYM
20961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20966 LDFLAGS="$saved_LDFLAGS"
20970 if test "x
$with_blkid" != xcheck; then
20971 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
20972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20973 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
20974 See \`config.log' for more details.
" >&5
20975 $as_echo "$as_me: error
: --with-blkid given but unavailable
20976 See \
`config.log' for more details." >&2;}
20977 { (exit 1); exit 1; }; }; }
20990 # Check whether --with-selinux was given.
20991 if test "${with_selinux+set}" = set; then
20992 withval=$with_selinux;
20999 if test "x$with_selinux" != xno; then
21001 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
21002 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
21003 $as_echo_n "checking for selinux/selinux.h... " >&6; }
21004 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
21005 $as_echo_n "(cached) " >&6
21007 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
21008 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
21010 # Is the header compilable?
21011 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
21012 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 $ac_includes_default
21020 #include <selinux/selinux.h>
21022 rm -f conftest.$ac_objext
21023 if { (ac_try="$ac_compile"
21024 case "(($ac_try" in
21025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21026 *) ac_try_echo
=$ac_try;;
21028 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21029 $as_echo "$ac_try_echo") >&5
21030 (eval "$ac_compile") 2>conftest.er1
21032 grep -v '^ *+' conftest.er1
>conftest.err
21034 cat conftest.err
>&5
21035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } && {
21037 test -z "$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 } && test -s conftest.
$ac_objext; then
21040 ac_header_compiler
=yes
21042 $as_echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.
$ac_ext >&5
21045 ac_header_compiler
=no
21048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21050 $as_echo "$ac_header_compiler" >&6; }
21052 # Is the header present?
21053 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
21054 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
21055 cat >conftest.
$ac_ext <<_ACEOF
21058 cat confdefs.h
>>conftest.
$ac_ext
21059 cat >>conftest.
$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21061 #include <selinux/selinux.h>
21063 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21064 case "(($ac_try" in
21065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21066 *) ac_try_echo=$ac_try;;
21068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21069 $as_echo "$ac_try_echo") >&5
21070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21072 grep -v '^ *+' conftest.er1 >conftest.err
21074 cat conftest.err >&5
21075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } >/dev/null && {
21077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21078 test ! -s conftest.err
21080 ac_header_preproc=yes
21082 $as_echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21085 ac_header_preproc=no
21088 rm -f conftest.err conftest.$ac_ext
21089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21090 $as_echo "$ac_header_preproc" >&6; }
21092 # So? What about this header?
21093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21095 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
21096 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21097 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
21098 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
21099 ac_header_preproc=yes
21102 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
21103 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
21104 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
21105 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
21106 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
21107 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
21108 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
21109 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
21110 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
21111 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
21112 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
21113 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
21117 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
21118 $as_echo_n "checking for selinux/selinux.h... " >&6; }
21119 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
21120 $as_echo_n "(cached) " >&6
21122 ac_cv_header_selinux_selinux_h=$ac_header_preproc
21124 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
21125 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
21128 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
21130 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
21131 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
21132 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
21133 $as_echo_n "(cached) " >&6
21135 ac_check_lib_save_LIBS=$LIBS
21136 LIBS="-lselinux $LIBS"
21137 cat >conftest.$ac_ext <<_ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21144 /* Override any GCC internal prototype to avoid an error.
21145 Use char because int might match the return type of a GCC
21146 builtin and then its argument prototype would still apply. */
21150 char is_selinux_enabled ();
21154 return is_selinux_enabled ();
21159 rm -f conftest.$ac_objext conftest$ac_exeext
21160 if { (ac_try="$ac_link"
21161 case "(($ac_try" in
21162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21163 *) ac_try_echo
=$ac_try;;
21165 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21166 $as_echo "$ac_try_echo") >&5
21167 (eval "$ac_link") 2>conftest.er1
21169 grep -v '^ *+' conftest.er1
>conftest.err
21171 cat conftest.err
>&5
21172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } && {
21174 test -z "$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21176 } && test -s conftest
$ac_exeext && {
21177 test "$cross_compiling" = yes ||
21178 $as_test_x conftest
$ac_exeext
21180 ac_cv_lib_selinux_is_selinux_enabled
=yes
21182 $as_echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.
$ac_ext >&5
21185 ac_cv_lib_selinux_is_selinux_enabled
=no
21188 rm -rf conftest.dSYM
21189 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21190 conftest
$ac_exeext conftest.
$ac_ext
21191 LIBS
=$ac_check_lib_save_LIBS
21193 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
21194 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
21195 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then
21197 LIBSELINUX
="-lselinux"
21200 cat >>confdefs.h
<<\_ACEOF
21201 #define HAVE_LIBSELINUX 1
21207 if test "x$with_selinux" != xcheck
; then
21208 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21210 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
21211 See \`config.log' for more details." >&5
21212 $as_echo "$as_me: error: --with-selinux given but unavailable
21213 See \`config.log' for more details." >&2;}
21214 { (exit 1); exit 1; }; }; }
21224 if test "x$with_selinux" != xcheck
; then
21225 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21227 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
21228 See \`config.log' for more details." >&5
21229 $as_echo "$as_me: error: --with-selinux given but unavailable
21230 See \`config.log' for more details." >&2;}
21231 { (exit 1); exit 1; }; }; }
21242 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
21243 $as_echo_n "checking for selinux support... " >&6; }
21244 { $as_echo "$as_me:$LINENO: result: no" >&5
21245 $as_echo "no" >&6; }
21251 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
21252 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
21254 saved_flags
="$CFLAGS"
21255 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
21257 if test "$cross_compiling" = yes; then
21258 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21260 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21261 See \`config.log' for more details." >&5
21262 $as_echo "$as_me: error: cannot run test program while cross compiling
21263 See \`config.log' for more details." >&2;}
21264 { (exit 1); exit 1; }; }; }
21266 cat >conftest.
$ac_ext <<_ACEOF
21269 cat confdefs.h
>>conftest.
$ac_ext
21270 cat >>conftest.
$ac_ext <<_ACEOF
21271 /* end confdefs.h. */
21281 rm -f conftest
$ac_exeext
21282 if { (ac_try
="$ac_link"
21283 case "(($ac_try" in
21284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21288 $as_echo "$ac_try_echo") >&5
21289 (eval "$ac_link") 2>&5
21291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21293 { (case "(($ac_try" in
21294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21295 *) ac_try_echo
=$ac_try;;
21297 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21298 $as_echo "$ac_try_echo") >&5
21299 (eval "$ac_try") 2>&5
21301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; }; then
21304 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
21305 { $as_echo "$as_me:$LINENO: result: yes" >&5
21306 $as_echo "yes" >&6; }
21309 $as_echo "$as_me: program exited with status $ac_status" >&5
21310 $as_echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.
$ac_ext >&5
21313 ( exit $ac_status )
21316 { $as_echo "$as_me:$LINENO: result: no" >&5
21317 $as_echo "no" >&6; }
21320 rm -rf conftest.dSYM
21321 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21326 CFLAGS
="$saved_flags"
21331 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
21332 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
21334 saved_CFLAGS
="$CFLAGS"
21335 CFLAGS
="-fstack-check"
21336 saved_LDFLAGS
="$LDFLAGS"
21337 LDFLAGS
="-lpthread"
21339 if test "$cross_compiling" = yes; then
21340 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21342 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21343 See \`config.log' for more details." >&5
21344 $as_echo "$as_me: error: cannot run test program while cross compiling
21345 See \`config.log' for more details." >&2;}
21346 { (exit 1); exit 1; }; }; }
21348 cat >conftest.
$ac_ext <<_ACEOF
21351 cat confdefs.h
>>conftest.
$ac_ext
21352 cat >>conftest.
$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21355 #include <pthread.h>
21356 #include <sys/resource.h>
21357 #include <unistd.h>
21358 #include <bits/local_lim.h>
21360 #define PAGESIZE (sysconf(_SC_PAGESIZE))
21361 #define STACK_SIZE 8192
21362 #define BUFSIZE 4096
21364 void * func(void *arg)
21374 pthread_attr_t attr;
21379 setrlimit(RLIMIT_CORE, &l);
21380 pthread_attr_init(&attr);
21381 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
21382 pthread_attr_setguardsize(&attr, PAGESIZE);
21383 pthread_create(&tid, &attr, func, NULL);
21384 pthread_join(tid, NULL);
21390 rm -f conftest
$ac_exeext
21391 if { (ac_try
="$ac_link"
21392 case "(($ac_try" in
21393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21394 *) ac_try_echo=$ac_try;;
21396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21397 $as_echo "$ac_try_echo") >&5
21398 (eval "$ac_link") 2>&5
21400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21402 { (case "(($ac_try" in
21403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21404 *) ac_try_echo
=$ac_try;;
21406 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21407 $as_echo "$ac_try_echo") >&5
21408 (eval "$ac_try") 2>&5
21410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21413 { $as_echo "$as_me:$LINENO: result: no" >&5
21414 $as_echo "no" >&6; }
21417 $as_echo "$as_me: program exited with status $ac_status" >&5
21418 $as_echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.
$ac_ext >&5
21421 ( exit $ac_status )
21424 cat >>confdefs.h
<<\_ACEOF
21425 #define NPTL_GUARD_WITHIN_STACK 1
21428 { $as_echo "$as_me:$LINENO: result: yes" >&5
21429 $as_echo "yes" >&6; }
21432 rm -rf conftest.dSYM
21433 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21437 CFLAGS
="$saved_CFLAGS"
21438 LDFLAGS
="$saved_LDFLAGS"
21443 { $as_echo "$as_me:$LINENO: result: Error!" >&5
21444 $as_echo "Error!" >&6; }
21445 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
21446 user kernel|user|all|srpm" >&5
21447 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
21448 user kernel|user|all|srpm" >&2;}
21449 { (exit 1); exit 1; }; } ;;
21452 if test "$ZFS_CONFIG" = user ||
21453 test "$ZFS_CONFIG" = all
; then
21455 CONFIG_USER_FALSE
='#'
21457 CONFIG_USER_TRUE
='#'
21461 if test "$ZFS_CONFIG" = kernel ||
21462 test "$ZFS_CONFIG" = all
; then
21463 CONFIG_KERNEL_TRUE
=
21464 CONFIG_KERNEL_FALSE
='#'
21466 CONFIG_KERNEL_TRUE
='#'
21467 CONFIG_KERNEL_FALSE
=
21472 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
21473 $as_echo_n "checking whether debugging is enabled... " >&6; }
21474 # Check whether --enable-debug was given.
21475 if test "${enable_debug+set}" = set; then
21476 enableval
=$enable_debug;
21482 if test "x$enable_debug" = xyes
; then
21484 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
21485 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
21486 DEBUG_CFLAGS
="-DDEBUG -Werror"
21487 DEBUG_STACKFLAGS
="-fstack-check"
21491 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
21492 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
21493 DEBUG_CFLAGS
="-DNDEBUG"
21494 DEBUG_STACKFLAGS
=""
21501 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
21502 $as_echo "$enable_debug" >&6; }
21505 ac_config_files
="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_id/Makefile cmd/sas_switch_id/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/zpool-layout/Makefile scripts/common.sh zfs.spec zfs-modules.spec zfs-script-config.sh"
21508 cat >confcache
<<\_ACEOF
21509 # This file is a shell script that caches the results of configure
21510 # tests run on this system so they can be shared between configure
21511 # scripts and configure runs, see configure's option --config-cache.
21512 # It is not useful on other systems. If it contains results you don't
21513 # want to keep, you may remove or edit it.
21515 # config.status only pays attention to the cache file if you give it
21516 # the --recheck option to rerun configure.
21518 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21520 # following values.
21524 # The following way of writing the cache mishandles newlines in values,
21525 # but we know of no workaround that is simple, portable, and efficient.
21526 # So, we kill variables containing newlines.
21527 # Ultrix sh set writes to stderr and can't be redirected directly,
21528 # and sets the high bit in the cache file unless we assign to the vars.
21530 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21531 eval ac_val
=\$
$ac_var
21535 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21536 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21539 _ | IFS | as_nl
) ;; #(
21540 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
21541 *) $as_unset $ac_var ;;
21547 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21548 *${as_nl}ac_space
=\
*)
21549 # `set' does not quote correctly, so add quotes (double-quote
21550 # substitution turns \\\\ into \\, and sed turns \\ into \).
21553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21556 # `set' quotes correctly as required by POSIX, so do not add quotes.
21557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21568 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21570 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
21571 if test -w "$cache_file"; then
21572 test "x$cache_file" != "x/dev/null" &&
21573 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21574 $as_echo "$as_me: updating cache $cache_file" >&6;}
21575 cat confcache
>$cache_file
21577 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21578 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21583 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21584 # Let make expand exec_prefix.
21585 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21587 DEFS
=-DHAVE_CONFIG_H
21591 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21592 # 1. Remove the extension, and $U if already installed.
21593 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
21594 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
21595 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21596 # will be set to the directory where LIBOBJS objects are built.
21597 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21598 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21600 LIBOBJS
=$ac_libobjs
21602 LTLIBOBJS
=$ac_ltlibobjs
21605 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21606 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21607 Usually this means the macro was only invoked conditionally." >&5
21608 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21609 Usually this means the macro was only invoked conditionally." >&2;}
21610 { (exit 1); exit 1; }; }
21612 if test -n "$EXEEXT"; then
21614 am__EXEEXT_FALSE
='#'
21616 am__EXEEXT_TRUE
='#'
21620 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21621 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21622 Usually this means the macro was only invoked conditionally." >&5
21623 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21624 Usually this means the macro was only invoked conditionally." >&2;}
21625 { (exit 1); exit 1; }; }
21627 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21628 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21629 Usually this means the macro was only invoked conditionally." >&5
21630 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21631 Usually this means the macro was only invoked conditionally." >&2;}
21632 { (exit 1); exit 1; }; }
21634 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
21635 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
21636 Usually this means the macro was only invoked conditionally." >&5
21637 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
21638 Usually this means the macro was only invoked conditionally." >&2;}
21639 { (exit 1); exit 1; }; }
21641 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
21642 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
21643 Usually this means the macro was only invoked conditionally." >&5
21644 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
21645 Usually this means the macro was only invoked conditionally." >&2;}
21646 { (exit 1); exit 1; }; }
21648 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
21649 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
21650 Usually this means the macro was only invoked conditionally." >&5
21651 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
21652 Usually this means the macro was only invoked conditionally." >&2;}
21653 { (exit 1); exit 1; }; }
21656 : ${CONFIG_STATUS=./config.status}
21658 ac_clean_files_save
=$ac_clean_files
21659 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21660 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21661 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21662 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21664 # Generated by $as_me.
21665 # Run this file to recreate the current configuration.
21666 # Compiler output produced by configure, useful for debugging
21667 # configure, is in config.log if it exists.
21670 ac_cs_recheck=false
21672 SHELL=\${CONFIG_SHELL-$SHELL}
21675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21676 ## --------------------- ##
21677 ## M4sh Initialization. ##
21678 ## --------------------- ##
21680 # Be more Bourne compatible
21681 DUALCASE
=1; export DUALCASE
# for MKS sh
21682 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21685 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21686 # is contrary to our usage. Disable this feature.
21687 alias -g '${1+"$@"}'='"$@"'
21688 setopt NO_GLOB_SUBST
21690 case `(set -o) 2>/dev/null` in
21691 *posix
*) set -o posix
;;
21700 # Avoid depending upon Character Ranges.
21701 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21702 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21703 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21704 as_cr_digits
='0123456789'
21705 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21710 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21711 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21714 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21715 as_echo='printf %s
\n'
21716 as_echo_n='printf %s
'
21718 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21719 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
21720 as_echo_n='/usr
/ucb
/echo -n'
21722 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21723 as_echo_n_body='eval
21727 expr "X$arg" : "X\\(.*\\)$as_nl";
21728 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21730 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
21732 export as_echo_n_body
21733 as_echo_n='sh
-c $as_echo_n_body as_echo
'
21735 export as_echo_body
21736 as_echo='sh
-c $as_echo_body as_echo
'
21739 # The user is always right.
21740 if test "${PATH_SEPARATOR+set}" != set; then
21742 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21743 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21748 # Support unset when possible.
21749 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21757 # We need space, tab and new line, in precisely that order. Quoting is
21758 # there to prevent editors from complaining about space-tab.
21759 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21760 # splitting by setting IFS to empty value.)
21763 # Find who we are. Look in the path if we contain no directory separator.
21765 *[\\/]* ) as_myself=$0 ;;
21766 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21767 for as_dir in $PATH
21770 test -z "$as_dir" && as_dir=.
21771 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21777 # We did not find ourselves, most probably we were run as `sh COMMAND'
21778 # in which case we are not to be found in the path.
21779 if test "x$as_myself" = x
; then
21782 if test ! -f "$as_myself"; then
21783 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21784 { (exit 1); exit 1; }
21787 # Work around bugs in pre-3.0 UWIN ksh.
21788 for as_var
in ENV MAIL MAILPATH
21789 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
21801 # Required to use basename.
21802 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21803 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21809 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21810 as_basename
=basename
21816 # Name of the executable.
21817 as_me
=`$as_basename -- "$0" ||
21818 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21819 X"$0" : 'X\(//\)$' \| \
21820 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21822 sed '/^.*\/\([^/][^/]*\)\/*$/{
21841 as_lineno_1
=$LINENO
21842 as_lineno_2
=$LINENO
21843 test "x$as_lineno_1" != "x$as_lineno_2" &&
21844 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
21846 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21847 # uniformly replaced by the line number. The first 'sed' inserts a
21848 # line-number line after each line using $LINENO; the second 'sed'
21849 # does the real work. The second script uses 'N' to pair each
21850 # line-number line with the line containing $LINENO, and appends
21851 # trailing '-' during substitution so that $LINENO is not a special
21852 # case at line end.
21853 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21854 # scripts with optimization help from Paolo Bonzini. Blame Lee
21855 # E. McMahon (1931-1989) for sed's syntax. :-)
21867 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21870 ' >$as_me.lineno
&&
21871 chmod +x
"$as_me.lineno" ||
21872 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21873 { (exit 1); exit 1; }; }
21875 # Don't try to exec as it changes $[0], causing all sort of problems
21876 # (the dirname of $[0] is not the place where we might find the
21877 # original and so on. Autoconf is especially sensitive to this).
21878 .
"./$as_me.lineno"
21879 # Exit status is that of the last command.
21884 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
21890 ECHO_C
= ECHO_N
= ECHO_T
=
21891 case `echo -n x` in
21893 case `echo 'x\c'` in
21894 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
21900 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21901 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21907 rm -f conf$$ conf$$.exe conf$$.
file
21908 if test -d conf$$.dir
; then
21909 rm -f conf$$.dir
/conf$$.
file
21912 mkdir conf$$.dir
2>/dev
/null
21914 if (echo >conf$$.
file) 2>/dev
/null
; then
21915 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21917 # ... but there are two gotchas:
21918 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21919 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21920 # In both cases, we have to default to `cp -p'.
21921 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
21923 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21931 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
21932 rmdir conf$$.dir
2>/dev
/null
21934 if mkdir
-p .
2>/dev
/null
; then
21937 test -d .
/-p && rmdir .
/-p
21941 if test -x / >/dev
/null
2>&1; then
21942 as_test_x
='test -x'
21944 if ls -dL / >/dev
/null
2>&1; then
21951 if test -d "$1"; then
21957 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21958 ???[sx]*):;;*)false;;esac;fi
21962 as_executable_p
=$as_test_x
21964 # Sed expression to map a string onto a valid CPP name.
21965 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21967 # Sed expression to map a string onto a valid variable name.
21968 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21973 # Save the log message, to keep $[0] and so on meaningful, and to
21974 # report actual input values of CONFIG_FILES etc. instead of their
21975 # values after options handling.
21977 This file was extended by $as_me, which was
21978 generated by GNU Autoconf 2.63. Invocation command line was
21980 CONFIG_FILES = $CONFIG_FILES
21981 CONFIG_HEADERS = $CONFIG_HEADERS
21982 CONFIG_LINKS = $CONFIG_LINKS
21983 CONFIG_COMMANDS = $CONFIG_COMMANDS
21986 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21991 case $ac_config_files in *"
21992 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
21995 case $ac_config_headers in *"
21996 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
22000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22001 # Files that config.status was made for.
22002 config_files="$ac_config_files"
22003 config_headers="$ac_config_headers"
22004 config_commands="$ac_config_commands"
22008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22010 \`$as_me' instantiates files from templates according to the
22011 current configuration.
22013 Usage: $0 [OPTION]... [FILE]...
22015 -h, --help print this help, then exit
22016 -V, --version print version number and configuration settings, then exit
22017 -q, --quiet, --silent
22018 do not print progress messages
22019 -d, --debug don't remove temporary files
22020 --recheck update $as_me by reconfiguring in the same conditions
22021 --file=FILE[:TEMPLATE]
22022 instantiate the configuration file FILE
22023 --header=FILE[:TEMPLATE]
22024 instantiate the configuration header FILE
22026 Configuration files:
22029 Configuration headers:
22032 Configuration commands:
22035 Report bugs to <bug-autoconf@gnu.org>."
22038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22041 configured by $0, generated by GNU Autoconf 2.63,
22042 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22044 Copyright (C) 2008 Free Software Foundation, Inc.
22045 This config.status script is free software; the Free Software Foundation
22046 gives unlimited permission to copy, distribute and modify it."
22053 test -n "\$AWK" || AWK=awk
22056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22057 # The default lists apply if the user does not specify any file.
22063 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
22064 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
22075 # Handling of the options.
22076 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22078 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
22079 $as_echo "$ac_cs_version"; exit ;;
22080 --debug |
--debu |
--deb |
--de |
--d |
-d )
22082 --file |
--fil |
--fi |
--f )
22085 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22087 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
22088 ac_need_defaults
=false
;;
22089 --header |
--heade |
--head |
--hea )
22092 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22094 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
22095 ac_need_defaults
=false
;;
22097 # Conflict between --help and --header
22098 { $as_echo "$as_me: error: ambiguous option: $1
22099 Try \`$0 --help' for more information." >&2
22100 { (exit 1); exit 1; }; };;
22101 --help |
--hel |
-h )
22102 $as_echo "$ac_cs_usage"; exit ;;
22103 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22104 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22107 # This is an error.
22108 -*) { $as_echo "$as_me: error: unrecognized option: $1
22109 Try \`$0 --help' for more information." >&2
22110 { (exit 1); exit 1; }; } ;;
22112 *) ac_config_targets
="$ac_config_targets $1"
22113 ac_need_defaults
=false
;;
22119 ac_configure_extra_args
=
22121 if $ac_cs_silent; then
22123 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22128 if \$ac_cs_recheck; then
22129 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22131 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22132 CONFIG_SHELL='$SHELL'
22133 export CONFIG_SHELL
22138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22142 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22143 ## Running $as_me. ##
22149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22153 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22156 # The HP-UX ksh and POSIX shell print the target directory to stdout
22157 # if CDPATH is set.
22158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22160 sed_quote_subst='$sed_quote_subst'
22161 double_quote_subst='$double_quote_subst'
22162 delay_variable_subst='$delay_variable_subst'
22163 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22164 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22165 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22166 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22167 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22168 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22169 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22170 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22171 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22172 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22173 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22174 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22175 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22176 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22177 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22178 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22179 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22180 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22181 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22182 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22183 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22184 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22185 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22186 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22187 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22188 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22189 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22190 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22191 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22192 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22193 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22194 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22195 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22196 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22197 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22198 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22199 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22200 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22201 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22202 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22203 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22204 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22205 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22206 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22207 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"`'
22208 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"`'
22209 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22210 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22211 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22212 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22213 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22214 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22215 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22216 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22217 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22218 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22219 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22220 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22221 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22222 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22223 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22224 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22225 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22226 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22227 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22228 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22229 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22230 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22231 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22232 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22233 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22234 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22235 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22236 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22237 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22238 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22239 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22240 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22241 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22242 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22243 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22244 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22245 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22246 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22247 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22248 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22249 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22250 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22251 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22252 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22253 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22254 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22255 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22256 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22257 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22258 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22259 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22260 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22261 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22262 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22263 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22264 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22265 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22266 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22267 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22268 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22269 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22270 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22271 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22272 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22273 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22274 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22275 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22276 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22277 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22278 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22279 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22280 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22283 LTCFLAGS='$LTCFLAGS'
22284 compiler='$compiler_DEFAULT'
22286 # Quote evaled strings.
22298 deplibs_check_method \
22307 lt_cv_sys_global_symbol_pipe \
22308 lt_cv_sys_global_symbol_to_cdecl \
22309 lt_cv_sys_global_symbol_to_c_name_address \
22310 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22313 lt_prog_compiler_no_builtin_flag \
22314 lt_prog_compiler_wl \
22315 lt_prog_compiler_pic \
22316 lt_prog_compiler_static \
22317 lt_cv_prog_compiler_c_o \
22325 export_dynamic_flag_spec \
22326 whole_archive_flag_spec \
22327 compiler_needs_object \
22329 allow_undefined_flag \
22330 no_undefined_flag \
22331 hardcode_libdir_flag_spec \
22332 hardcode_libdir_flag_spec_ld \
22333 hardcode_libdir_separator \
22338 variables_saved_for_relink \
22340 library_names_spec \
22345 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22346 *[\\\\\\\`\\"\\\$]*)
22347 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22350 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22355 # Double-quote double-evaled strings.
22356 for var in reload_cmds \
22357 old_postinstall_cmds \
22358 old_postuninstall_cmds \
22360 extract_expsyms_cmds \
22361 old_archive_from_new_cmds \
22362 old_archive_from_expsyms_cmds \
22364 archive_expsym_cmds \
22366 module_expsym_cmds \
22367 export_symbols_cmds \
22370 postuninstall_cmds \
22372 sys_lib_search_path_spec \
22373 sys_lib_dlsearch_path_spec; do
22374 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22375 *[\\\\\\\`\\"\\\$]*)
22376 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22379 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22384 # Fix-up fallback echo if it was mangled by the above quoting rules.
22386 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22390 ac_aux_dir='$ac_aux_dir'
22391 xsi_shell='$xsi_shell'
22392 lt_shell_append='$lt_shell_append'
22394 # See if we are running on zsh, and set the options which allow our
22395 # commands through without removal of \ escapes INIT.
22396 if test -n "\${ZSH_VERSION+set}" ; then
22397 setopt NO_GLOB_SUBST
22403 TIMESTAMP='$TIMESTAMP'
22412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22414 # Handling of arguments.
22415 for ac_config_target
in $ac_config_targets
22417 case $ac_config_target in
22418 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
22419 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
22420 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
22421 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22422 "dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/Makefile" ;;
22423 "dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/90zfs/Makefile" ;;
22424 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
22425 "udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/rules.d/Makefile" ;;
22426 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
22427 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
22428 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
22429 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
22430 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
22431 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
22432 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
22433 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
22434 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
22435 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
22436 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
22437 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
22438 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
22439 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
22440 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
22441 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
22442 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
22443 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
22444 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
22445 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
22446 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
22447 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
22448 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
22449 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
22450 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
22451 "lib/libshare/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libshare/Makefile" ;;
22452 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
22453 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
22454 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
22455 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
22456 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
22457 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
22458 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
22459 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
22460 "cmd/zpool_layout/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
22461 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
22462 "cmd/zpool_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
22463 "cmd/sas_switch_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/sas_switch_id/Makefile" ;;
22464 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
22465 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
22466 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
22467 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
22468 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
22469 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
22470 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
22471 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
22472 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
22473 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
22474 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
22475 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
22476 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
22477 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
22478 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
22479 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
22480 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
22481 "scripts/zpool-layout/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
22482 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
22483 "zfs.spec") CONFIG_FILES
="$CONFIG_FILES zfs.spec" ;;
22484 "zfs-modules.spec") CONFIG_FILES
="$CONFIG_FILES zfs-modules.spec" ;;
22485 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
22487 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22488 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22489 { (exit 1); exit 1; }; };;
22494 # If the user did not use the arguments to specify the items to instantiate,
22495 # then the envvar interface is used. Set only those that are not.
22496 # We use the long form for the default assignment because of an extremely
22497 # bizarre bug on SunOS 4.1.3.
22498 if $ac_need_defaults; then
22499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22501 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22504 # Have a temporary directory for convenience. Make it in the build tree
22505 # simply because there is no reason against having it here, and in addition,
22506 # creating and moving files from /tmp can sometimes cause problems.
22507 # Hook for its removal unless debugging.
22508 # Note that there is a small window in which the directory will not be cleaned:
22509 # after its creation but before its name has been assigned to `$tmp'.
22513 trap 'exit_status=$?
22514 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22516 trap '{ (exit 1); exit 1; }' 1 2 13 15
22518 # Create a (secure) tmp directory for tmp files.
22521 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22522 test -n "$tmp" && test -d "$tmp"
22525 tmp
=.
/conf$$
-$RANDOM
22526 (umask 077 && mkdir
"$tmp")
22529 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22530 { (exit 1); exit 1; }
22533 # Set up the scripts for CONFIG_FILES section.
22534 # No need to generate them if there are no CONFIG_FILES.
22535 # This happens for instance with `./config.status config.h'.
22536 if test -n "$CONFIG_FILES"; then
22540 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22541 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22544 ac_cs_awk_cr
=$ac_cr
22547 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22552 echo "cat >conf$$subs.awk <<_ACEOF" &&
22553 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22555 } >conf$$subs.sh ||
22556 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
22557 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
22558 { (exit 1); exit 1; }; }
22559 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22561 for ac_last_try in false false false false false :; do
22562 . ./conf$$subs.sh ||
22563 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
22564 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
22565 { (exit 1); exit 1; }; }
22567 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
22568 if test $ac_delim_n = $ac_delim_num; then
22570 elif $ac_last_try; then
22571 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
22572 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
22573 { (exit 1); exit 1; }; }
22575 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22578 rm -f conf$$subs.sh
22580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22581 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
22585 s/^/S["/; s
/!.
*/"]=/
22595 s/\(.\{148\}\).*/\1/
22597 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
22602 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22609 s/\(.\{148\}\).*/\1/
22611 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
22615 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22620 ' <conf$$subs.awk | sed '
22625 ' >>$CONFIG_STATUS || ac_write_fail=1
22626 rm -f conf$$subs.awk
22627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22629 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
22630 for (key in S) S_is_set[key] = 1
22636 nfields = split(line, field, "@
")
22638 len = length(field[1])
22639 for (i = 2; i < nfields; i++) {
22641 keylen = length(key)
22642 if (S_is_set[key]) {
22644 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22645 len += length(value) + length(field[++i])
22656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22657 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22658 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
22661 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
22662 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
22663 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
22664 { (exit 1); exit 1; }; }
22667 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22668 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
22669 # trailing colons and then remove the whole line if VPATH becomes empty
22670 # (actually we leave an empty line to preserve line numbers).
22671 if test "x
$srcdir" = x.; then
22672 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22673 s/:*\$(srcdir):*/:/
22674 s/:*\${srcdir}:*/:/
22676 s/^\([^=]*=[ ]*\):*/\1/
22682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22683 fi # test -n "$CONFIG_FILES"
22685 # Set up the scripts for CONFIG_HEADERS section.
22686 # No need to generate them if there are no CONFIG_HEADERS.
22687 # This happens for instance with `./config.status Makefile'.
22688 if test -n "$CONFIG_HEADERS"; then
22689 cat >"$tmp/defines.
awk" <<\_ACAWK ||
22693 # Transform confdefs.h into an awk script `defines.awk', embedded as
22694 # here-document in config.status, that substitutes the proper values into
22695 # config.h.in to produce config.h.
22697 # Create a delimiter string that does not exist in confdefs.h, to ease
22698 # handling of long lines.
22700 for ac_last_try in false false :; do
22701 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
22702 if test -z "$ac_t"; then
22704 elif $ac_last_try; then
22705 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
22706 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
22707 { (exit 1); exit 1; }; }
22709 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22713 # For the awk script, D is an array of macro values keyed by name,
22714 # likewise P contains macro parameters if any. Preserve backslash
22715 # newline sequences.
22717 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22719 s/.\{148\}/&'"$ac_delim"'/g
22722 s/^[ ]*#[ ]*define[ ][ ]*/ /
22729 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
22731 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
22735 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
22736 D["\
1"]=" \
3\\\\\\n
"\\/p
22738 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
22743 s/.\{148\}/&'"$ac_delim"'/g
22748 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
22751 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
22753 ' <confdefs.h | sed '
22754 s/'"$ac_delim"'/"\\\
22755 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22758 for (key in D) D_is_set[key] = 1
22761 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22763 split(line, arg, " ")
22764 if (arg[1] == "#") {
22768 defundef
= substr
(arg
[1], 2)
22771 split(mac1
, mac2
, "(") #)
22773 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
22774 if (D_is_set
[macro
]) {
22775 # Preserve the white space surrounding the "#".
22776 print prefix
"define", macro P
[macro
] D
[macro
]
22779 # Replace #undef with comments. This is necessary, for example,
22780 # in the case of _POSIX_SOURCE, which is predefined and required
22781 # on some systems where configure will not decide to define it.
22782 if (defundef
== "undef") {
22783 print
"/*", prefix defundef
, macro
, "*/"
22791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22792 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22793 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22794 { (exit 1); exit 1; }; }
22795 fi # test -n "$CONFIG_HEADERS"
22798 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22803 :[FHLC
]) ac_mode
=$ac_tag; continue;;
22805 case $ac_mode$ac_tag in
22807 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22808 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22809 { (exit 1); exit 1; }; };;
22810 :[FH
]-) ac_tag
=-:-;;
22811 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
22828 -) ac_f
="$tmp/stdin";;
22829 *) # Look for the file first in the build tree, then in the source tree
22830 # (if the path is not absolute). The absolute path cannot be DOS-style,
22831 # because $ac_f cannot contain `:'.
22835 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
22837 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22838 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22839 { (exit 1); exit 1; }; };;
22841 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22842 ac_file_inputs
="$ac_file_inputs '$ac_f'"
22845 # Let's still pretend it is `configure' which instantiates (i.e., don't
22846 # use $as_me), people would be surprised to read:
22847 # /* config.h. Generated by config.status. */
22848 configure_input
='Generated from '`
22849 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22851 if test x
"$ac_file" != x-
; then
22852 configure_input
="$ac_file. $configure_input"
22853 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22854 $as_echo "$as_me: creating $ac_file" >&6;}
22856 # Neutralize special characters interpreted by sed in replacement strings.
22857 case $configure_input in #(
22858 *\
&* |
*\|
* |
*\\* )
22859 ac_sed_conf_input
=`$as_echo "$configure_input" |
22860 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22861 *) ac_sed_conf_input
=$configure_input;;
22865 *:-:* |
*:-) cat >"$tmp/stdin" \
22866 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22867 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22868 { (exit 1); exit 1; }; } ;;
22873 ac_dir
=`$as_dirname -- "$ac_file" ||
22874 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22875 X"$ac_file" : 'X\(//\)[^/]' \| \
22876 X"$ac_file" : 'X\(//\)$' \| \
22877 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22878 $as_echo X"$ac_file" |
22879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22883 /^X\(\/\/\)[^/].*/{
22898 -*) as_dir
=.
/$as_dir;;
22900 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
22904 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22905 *) as_qdir
=$as_dir;;
22907 as_dirs
="'$as_qdir' $as_dirs"
22908 as_dir
=`$as_dirname -- "$as_dir" ||
22909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22910 X"$as_dir" : 'X\(//\)[^/]' \| \
22911 X"$as_dir" : 'X\(//\)$' \| \
22912 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22913 $as_echo X"$as_dir" |
22914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22918 /^X\(\/\/\)[^/].*/{
22931 test -d "$as_dir" && break
22933 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22934 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22935 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22936 { (exit 1); exit 1; }; }; }
22940 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22942 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22943 # A ".." for each directory in $ac_dir_suffix.
22944 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22945 case $ac_top_builddir_sub in
22946 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22947 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
22950 ac_abs_top_builddir
=$ac_pwd
22951 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
22952 # for backward compatibility:
22953 ac_top_builddir
=$ac_top_build_prefix
22956 .
) # We are building in place.
22958 ac_top_srcdir
=$ac_top_builddir_sub
22959 ac_abs_top_srcdir
=$ac_pwd ;;
22960 [\\/]* | ?
:[\\/]* ) # Absolute name.
22961 ac_srcdir
=$srcdir$ac_dir_suffix;
22962 ac_top_srcdir
=$srcdir
22963 ac_abs_top_srcdir
=$srcdir ;;
22964 *) # Relative name.
22965 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
22966 ac_top_srcdir
=$ac_top_build_prefix$srcdir
22967 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
22969 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
22979 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22980 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
22982 ac_MKDIR_P
=$MKDIR_P
22984 [\\/$
]* | ?
:[\\/]* ) ;;
22985 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
22989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22990 # If the template does not know about datarootdir, expand it.
22991 # FIXME: This hack should be removed a few years after 2.60.
22992 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23005 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23006 *datarootdir
*) ac_datarootdir_seen
=yes;;
23007 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23008 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23009 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23012 ac_datarootdir_hack='
23013 s&@datadir@&$datadir&g
23014 s&@docdir@&$docdir&g
23015 s&@infodir@&$infodir&g
23016 s&@localedir@&$localedir&g
23017 s&@mandir@&$mandir&g
23018 s&\\\${datarootdir}&$datarootdir&g' ;;
23022 # Neutralize VPATH when `$srcdir' = `.'.
23023 # Shell code in configure.ac might set extrasub.
23024 # FIXME: do we really want to maintain this feature?
23025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23026 ac_sed_extra="$ac_vpsub
23029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23031 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23032 s|@configure_input@|
$ac_sed_conf_input|
;t t
23033 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23034 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23035 s
&@srcdir@
&$ac_srcdir&;t t
23036 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23037 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23038 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23039 s
&@builddir@
&$ac_builddir&;t t
23040 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23041 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23042 s
&@INSTALL@
&$ac_INSTALL&;t t
23043 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23044 $ac_datarootdir_hack
23046 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
23047 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
23048 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
23049 { (exit 1); exit 1; }; }
23051 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23052 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23053 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23054 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23055 which seems to be undefined. Please make sure it is defined." >&5
23056 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23057 which seems to be undefined. Please make sure it is defined." >&2;}
23061 -) cat "$tmp/out" && rm -f "$tmp/out";;
23062 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23064 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23065 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23066 { (exit 1); exit 1; }; }
23072 if test x"$ac_file" != x-; then
23074 $as_echo "/* $configure_input */" \
23075 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23076 } >"$tmp/config.h" \
23077 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23078 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23079 { (exit 1); exit 1; }; }
23080 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23081 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23082 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23085 mv "$tmp/config.h" "$ac_file" \
23086 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23087 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23088 { (exit 1); exit 1; }; }
23091 $as_echo "/* $configure_input */" \
23092 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23093 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23094 $as_echo "$as_me: error: could not create -" >&2;}
23095 { (exit 1); exit 1; }; }
23097 # Compute "$ac_file"'s index
in $config_headers.
23100 for _am_header
in $config_headers :; do
23101 case $_am_header in
23102 $_am_arg |
$_am_arg:* )
23105 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23108 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23109 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23110 X"$_am_arg" : 'X\(//\)[^/]' \| \
23111 X"$_am_arg" : 'X\(//\)$' \| \
23112 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23113 $as_echo X"$_am_arg" |
23114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23118 /^X\(\/\/\)[^/].*/{
23130 s/.*/./; q'`/stamp-h
$_am_stamp_count
23133 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23134 $as_echo "$as_me: executing $ac_file commands" >&6;}
23139 case $ac_file$ac_mode in
23141 (mv zfs_config.h zfs_config.h.tmp
&&
23142 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
23143 rm zfs_config.h.tmp
) ||
exit 1 ;;
23144 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
23145 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23146 # are listed without --file. Let's play safe and only enable the eval
23147 # if we detect the quoting.
23148 case $CONFIG_FILES in
23149 *\'*) eval set x
"$CONFIG_FILES" ;;
23150 *) set x
$CONFIG_FILES ;;
23155 # Strip MF so we end up with the name of the file.
23156 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23157 # Check whether this is an Automake generated Makefile or not.
23158 # We used to match only the files named `Makefile.in', but
23159 # some people rename them; so instead we look at the file content.
23160 # Grep'ing the first line is not enough: some people post-process
23161 # each Makefile.in and add a new line on top of each file to say so.
23162 # Grep'ing the whole file is not good either: AIX grep has a line
23163 # limit of 2048, but all sed's we know have understand at least 4000.
23164 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
23165 dirpart
=`$as_dirname -- "$mf" ||
23166 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23167 X"$mf" : 'X\(//\)[^/]' \| \
23168 X"$mf" : 'X\(//\)$' \| \
23169 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23175 /^X\(\/\/\)[^/].*/{
23191 # Extract the definition of DEPDIR, am__include, and am__quote
23192 # from the Makefile without running `make'.
23193 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
23194 test -z "$DEPDIR" && continue
23195 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
23196 test -z "am__include" && continue
23197 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
23198 # When using ansi2knr, U may be empty or an underscore; expand it
23199 U
=`sed -n 's/^U = //p' < "$mf"`
23200 # Find all dependency output files, they are included files with
23201 # $(DEPDIR) in their names. We invoke sed twice because it is the
23202 # simplest approach to changing $(DEPDIR) to its actual value in the
23204 for file in `sed -n "
23205 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23206 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23207 # Make sure the directory exists.
23208 test -f "$dirpart/$file" && continue
23209 fdir
=`$as_dirname -- "$file" ||
23210 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23211 X"$file" : 'X\(//\)[^/]' \| \
23212 X"$file" : 'X\(//\)$' \| \
23213 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23214 $as_echo X"$file" |
23215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23219 /^X\(\/\/\)[^/].*/{
23232 { as_dir
=$dirpart/$fdir
23234 -*) as_dir
=.
/$as_dir;;
23236 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23240 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23241 *) as_qdir
=$as_dir;;
23243 as_dirs
="'$as_qdir' $as_dirs"
23244 as_dir
=`$as_dirname -- "$as_dir" ||
23245 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23246 X"$as_dir" : 'X\(//\)[^/]' \| \
23247 X"$as_dir" : 'X\(//\)$' \| \
23248 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23249 $as_echo X"$as_dir" |
23250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23254 /^X\(\/\/\)[^/].*/{
23267 test -d "$as_dir" && break
23269 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23270 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23271 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23272 { (exit 1); exit 1; }; }; }
23273 # echo "creating $dirpart/$file"
23274 echo '# dummy' > "$dirpart/$file"
23281 # See if we are running on zsh, and set the options which allow our
23282 # commands through without removal of \ escapes.
23283 if test -n "${ZSH_VERSION+set}" ; then
23284 setopt NO_GLOB_SUBST
23287 cfgfile
="${ofile}T"
23288 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23291 cat <<_LT_EOF >> "$cfgfile"
23294 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23295 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23297 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23299 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23300 # 2006, 2007, 2008 Free Software Foundation, Inc.
23301 # Written by Gordon Matzigkeit, 1996
23303 # This file is part of GNU Libtool.
23305 # GNU Libtool is free software; you can redistribute it and/or
23306 # modify it under the terms of the GNU General Public License as
23307 # published by the Free Software Foundation; either version 2 of
23308 # the License, or (at your option) any later version.
23310 # As a special exception to the GNU General Public License,
23311 # if you distribute this file as part of a program or library that
23312 # is built using GNU Libtool, you may include this file under the
23313 # same distribution terms that you use for the rest of that program.
23315 # GNU Libtool is distributed in the hope that it will be useful,
23316 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23317 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23318 # GNU General Public License for more details.
23320 # You should have received a copy of the GNU General Public License
23321 # along with GNU Libtool; see the file COPYING. If not, a copy
23322 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23323 # obtained by writing to the Free Software Foundation, Inc.,
23324 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23327 # The names of the tagged configurations supported by this script.
23330 # ### BEGIN LIBTOOL CONFIG
23332 # Which release of libtool.m4 was used?
23333 macro_version=$macro_version
23334 macro_revision=$macro_revision
23336 # Whether or not to build shared libraries.
23337 build_libtool_libs=$enable_shared
23339 # Whether or not to build static libraries.
23340 build_old_libs=$enable_static
23342 # What type of objects to build.
23345 # Whether or not to optimize for fast installation.
23346 fast_install=$enable_fast_install
23349 host_alias=$host_alias
23353 # The build system.
23354 build_alias=$build_alias
23358 # A sed program that does not truncate output.
23361 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23362 Xsed="\$SED -e 1s/^X//"
23364 # A grep program that handles long lines.
23370 # A literal string matcher.
23373 # A BSD- or MS-compatible name lister.
23376 # Whether we need soft or hard links.
23379 # What is the maximum length of a command?
23380 max_cmd_len=$max_cmd_len
23382 # Object file suffix (normally "o").
23385 # Executable file suffix (normally "").
23388 # whether the shell understands "unset".
23391 # turn spaces into newlines.
23394 # turn newlines into spaces.
23397 # How to create reloadable object files.
23398 reload_flag=$lt_reload_flag
23399 reload_cmds=$lt_reload_cmds
23401 # An object symbol dumper.
23402 OBJDUMP=$lt_OBJDUMP
23404 # Method to check whether dependent libraries are shared objects.
23405 deplibs_check_method=$lt_deplibs_check_method
23407 # Command to use when deplibs_check_method == "file_magic".
23408 file_magic_cmd=$lt_file_magic_cmd
23412 AR_FLAGS=$lt_AR_FLAGS
23414 # A symbol stripping program.
23417 # Commands used to install an old-style archive.
23419 old_postinstall_cmds=$lt_old_postinstall_cmds
23420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23425 # LTCC compiler flags.
23426 LTCFLAGS=$lt_CFLAGS
23428 # Take the output of nm and produce a listing of raw symbols and C names.
23429 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23431 # Transform the output of nm in a proper C declaration.
23432 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23434 # Transform the output of nm in a C name address pair.
23435 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23437 # Transform the output of nm in a C name address pair when lib prefix is needed.
23438 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23440 # The name of the directory that contains temporary libtool files.
23443 # Shell to use when invoking shell scripts.
23446 # An echo program that does not interpret backslashes.
23449 # Used to examine libraries when file_magic_cmd begins with "file".
23450 MAGIC_CMD=$MAGIC_CMD
23452 # Must we lock files when doing compilation?
23453 need_locks=$lt_need_locks
23455 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23456 DSYMUTIL=$lt_DSYMUTIL
23458 # Tool to change global to local symbols on Mac OS X.
23461 # Tool to manipulate fat objects and archives on Mac OS X.
23464 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23467 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23468 OTOOL64=$lt_OTOOL64
23470 # Old archive suffix (normally "a").
23473 # Shared library suffix (normally ".so").
23474 shrext_cmds=$lt_shrext_cmds
23476 # The commands to extract the exported symbol list from a shared archive.
23477 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23479 # Variables whose values should be saved in libtool wrapper scripts and
23480 # restored at link time.
23481 variables_saved_for_relink=$lt_variables_saved_for_relink
23483 # Do we need the "lib" prefix for modules?
23484 need_lib_prefix=$need_lib_prefix
23486 # Do we need a version for libraries?
23487 need_version=$need_version
23489 # Library versioning type.
23490 version_type=$version_type
23492 # Shared library runtime path variable.
23493 runpath_var=$runpath_var
23495 # Shared library path variable.
23496 shlibpath_var=$shlibpath_var
23498 # Is shlibpath searched before the hard-coded library search path?
23499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23501 # Format of library name prefix.
23502 libname_spec=$lt_libname_spec
23504 # List of archive names. First name is the real one, the rest are links.
23505 # The last name is the one that the linker finds with -lNAME
23506 library_names_spec=$lt_library_names_spec
23508 # The coded name of the library, if different from the real name.
23509 soname_spec=$lt_soname_spec
23511 # Command to use after installation of a shared archive.
23512 postinstall_cmds=$lt_postinstall_cmds
23514 # Command to use after uninstallation of a shared archive.
23515 postuninstall_cmds=$lt_postuninstall_cmds
23517 # Commands used to finish a libtool library installation in a directory.
23518 finish_cmds=$lt_finish_cmds
23520 # As "finish_cmds", except a single script fragment to be evaled but
23522 finish_eval=$lt_finish_eval
23524 # Whether we should hardcode library paths into libraries.
23525 hardcode_into_libs=$hardcode_into_libs
23527 # Compile-time system search path for libraries.
23528 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23530 # Run-time system search path for libraries.
23531 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23533 # Whether dlopen is supported.
23534 dlopen_support=$enable_dlopen
23536 # Whether dlopen of programs is supported.
23537 dlopen_self=$enable_dlopen_self
23539 # Whether dlopen of statically linked programs is supported.
23540 dlopen_self_static=$enable_dlopen_self_static
23542 # Commands to strip libraries.
23543 old_striplib=$lt_old_striplib
23544 striplib=$lt_striplib
23547 # The linker used to build libraries.
23550 # Commands used to build an old-style archive.
23551 old_archive_cmds=$lt_old_archive_cmds
23553 # A language specific compiler.
23556 # Is the compiler the GNU compiler?
23559 # Compiler flag to turn off builtin functions.
23560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23562 # How to pass a linker flag through the compiler.
23563 wl=$lt_lt_prog_compiler_wl
23565 # Additional compiler flags for building library objects.
23566 pic_flag=$lt_lt_prog_compiler_pic
23568 # Compiler flag to prevent dynamic linking.
23569 link_static_flag=$lt_lt_prog_compiler_static
23571 # Does compiler simultaneously support -c and -o options?
23572 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23574 # Whether or not to add -lc for building shared libraries.
23575 build_libtool_need_lc=$archive_cmds_need_lc
23577 # Whether or not to disallow shared libs when runtime libs are static.
23578 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23580 # Compiler flag to allow reflexive dlopens.
23581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23583 # Compiler flag to generate shared objects directly from archives.
23584 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23586 # Whether the compiler copes with passing no objects directly.
23587 compiler_needs_object=$lt_compiler_needs_object
23589 # Create an old-style archive from a shared archive.
23590 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23592 # Create a temporary old-style archive to link instead of a shared archive.
23593 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23595 # Commands used to build a shared archive.
23596 archive_cmds=$lt_archive_cmds
23597 archive_expsym_cmds=$lt_archive_expsym_cmds
23599 # Commands used to build a loadable module if different from building
23600 # a shared archive.
23601 module_cmds=$lt_module_cmds
23602 module_expsym_cmds=$lt_module_expsym_cmds
23604 # Whether we are building with GNU ld or not.
23605 with_gnu_ld=$lt_with_gnu_ld
23607 # Flag that allows shared libraries with undefined symbols to be built.
23608 allow_undefined_flag=$lt_allow_undefined_flag
23610 # Flag that enforces no undefined symbols.
23611 no_undefined_flag=$lt_no_undefined_flag
23613 # Flag to hardcode \$libdir into a binary during linking.
23614 # This must work even if \$libdir does not exist
23615 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23617 # If ld is used when linking, flag to hardcode \$libdir into a binary
23618 # during linking. This must work even if \$libdir does not exist.
23619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23621 # Whether we need a single "-rpath" flag with a separated argument.
23622 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23624 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23625 # DIR into the resulting binary.
23626 hardcode_direct=$hardcode_direct
23628 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23629 # DIR into the resulting binary and the resulting library dependency is
23630 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23631 # library is relocated.
23632 hardcode_direct_absolute=$hardcode_direct_absolute
23634 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23635 # into the resulting binary.
23636 hardcode_minus_L=$hardcode_minus_L
23638 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23639 # into the resulting binary.
23640 hardcode_shlibpath_var=$hardcode_shlibpath_var
23642 # Set to "yes" if building a shared library automatically hardcodes DIR
23643 # into the library and all subsequent libraries and executables linked
23645 hardcode_automatic=$hardcode_automatic
23647 # Set to yes if linker adds runtime paths of dependent libraries
23648 # to runtime path list.
23649 inherit_rpath=$inherit_rpath
23651 # Whether libtool must link a program against all its dependency libraries.
23652 link_all_deplibs=$link_all_deplibs
23654 # Fix the shell variable \$srcfile for the compiler.
23655 fix_srcfile_path=$lt_fix_srcfile_path
23657 # Set to "yes" if exported symbols are required.
23658 always_export_symbols=$always_export_symbols
23660 # The commands to list exported symbols.
23661 export_symbols_cmds=$lt_export_symbols_cmds
23663 # Symbols that should not be listed in the preloaded symbols.
23664 exclude_expsyms=$lt_exclude_expsyms
23666 # Symbols that must always be exported.
23667 include_expsyms=$lt_include_expsyms
23669 # Commands necessary for linking programs (against libraries) with templates.
23670 prelink_cmds=$lt_prelink_cmds
23672 # Specify filename containing input files.
23673 file_list_spec=$lt_file_list_spec
23675 # How to hardcode a shared library path into an executable.
23676 hardcode_action=$hardcode_action
23678 # ### END LIBTOOL CONFIG
23684 cat <<\_LT_EOF
>> "$cfgfile"
23685 # AIX sometimes has problems with the GCC collect2 program. For some
23686 # reason, if we set the COLLECT_NAMES environment variable, the problems
23687 # vanish in a puff of smoke.
23688 if test "X${COLLECT_NAMES+set}" != Xset
; then
23690 export COLLECT_NAMES
23697 ltmain
="$ac_aux_dir/ltmain.sh"
23700 # We use sed instead of cat because bash on DJGPP gets confused if
23701 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23702 # text mode, it properly converts lines to CR/LF. This bash problem
23703 # is reportedly fixed, but why not run on old versions too?
23704 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23705 ||
(rm -f "$cfgfile"; exit 1)
23709 cat << \_LT_EOF
>> "$cfgfile"
23711 # func_dirname file append nondir_replacement
23712 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23713 # otherwise set result to NONDIR_REPLACEMENT.
23717 */*) func_dirname_result
="${1%/*}${2}" ;;
23718 * ) func_dirname_result
="${3}" ;;
23722 # func_basename file
23725 func_basename_result
="${1##*/}"
23728 # func_dirname_and_basename file append nondir_replacement
23729 # perform func_basename and func_dirname in a single function
23731 # dirname: Compute the dirname of FILE. If nonempty,
23732 # add APPEND to the result, otherwise set result
23733 # to NONDIR_REPLACEMENT.
23734 # value returned in "$func_dirname_result"
23735 # basename: Compute filename of FILE.
23736 # value retuned in "$func_basename_result"
23737 # Implementation must be kept synchronized with func_dirname
23738 # and func_basename. For efficiency, we do not delegate to
23739 # those functions but instead duplicate the functionality here.
23740 func_dirname_and_basename
()
23743 */*) func_dirname_result
="${1%/*}${2}" ;;
23744 * ) func_dirname_result
="${3}" ;;
23746 func_basename_result
="${1##*/}"
23749 # func_stripname prefix suffix name
23750 # strip PREFIX and SUFFIX off of NAME.
23751 # PREFIX and SUFFIX must not contain globbing or regex special
23752 # characters, hashes, percent signs, but SUFFIX may contain a leading
23753 # dot (in which case that matches only a dot).
23756 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23757 # positional parameters, so assign one to ordinary parameter first.
23758 func_stripname_result
=${3}
23759 func_stripname_result
=${func_stripname_result#"${1}"}
23760 func_stripname_result
=${func_stripname_result%"${2}"}
23766 func_opt_split_opt
=${1%%=*}
23767 func_opt_split_arg
=${1#*=}
23774 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
23775 *) func_lo2o_result
=${1} ;;
23779 # func_xform libobj-or-source
23782 func_xform_result
=${1%.*}.lo
23785 # func_arith arithmetic-term...
23788 func_arith_result
=$
(( $
* ))
23792 # STRING may not start with a hyphen.
23795 func_len_result
=${#1}
23800 *) # Bourne compatible functions.
23801 cat << \_LT_EOF
>> "$cfgfile"
23803 # func_dirname file append nondir_replacement
23804 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23805 # otherwise set result to NONDIR_REPLACEMENT.
23808 # Extract subdirectory from the argument.
23809 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23810 if test "X$func_dirname_result" = "X${1}"; then
23811 func_dirname_result
="${3}"
23813 func_dirname_result
="$func_dirname_result${2}"
23817 # func_basename file
23820 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
23824 # func_stripname prefix suffix name
23825 # strip PREFIX and SUFFIX off of NAME.
23826 # PREFIX and SUFFIX must not contain globbing or regex special
23827 # characters, hashes, percent signs, but SUFFIX may contain a leading
23828 # dot (in which case that matches only a dot).
23829 # func_strip_suffix prefix name
23833 .
*) func_stripname_result
=`$ECHO "X${3}" \
23834 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23835 *) func_stripname_result
=`$ECHO "X${3}" \
23836 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23841 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
23842 my_sed_long_arg
='1s/^-[^=]*=//'
23847 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23848 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23854 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23857 # func_xform libobj-or-source
23860 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23863 # func_arith arithmetic-term...
23866 func_arith_result
=`expr "$@"`
23870 # STRING may not start with a hyphen.
23873 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23879 case $lt_shell_append in
23881 cat << \_LT_EOF
>> "$cfgfile"
23883 # func_append var value
23884 # Append VALUE to the end of shell variable VAR.
23892 cat << \_LT_EOF
>> "$cfgfile"
23894 # func_append var value
23895 # Append VALUE to the end of shell variable VAR.
23906 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23907 ||
(rm -f "$cfgfile"; exit 1)
23909 mv -f "$cfgfile" "$ofile" ||
23910 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23919 { (exit 0); exit 0; }
23921 chmod +x
$CONFIG_STATUS
23922 ac_clean_files
=$ac_clean_files_save
23924 test $ac_write_fail = 0 ||
23925 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23926 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23927 { (exit 1); exit 1; }; }
23930 # configure is writing to config.log, and then calls config.status.
23931 # config.status does its own redirection, appending to config.log.
23932 # Unfortunately, on DOS this fails, as config.log is still kept open
23933 # by configure, so config.status won't be able to write to it; its
23934 # output is simply discarded. So we exec the FD to /dev/null,
23935 # effectively closing config.log, so it can be properly (re)opened and
23936 # appended to by config.status. When coming back to configure, we
23937 # need to make the FD available again.
23938 if test "$no_create" != yes; then
23940 ac_config_status_args
=
23941 test "$silent" = yes &&
23942 ac_config_status_args
="$ac_config_status_args --quiet"
23944 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23946 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23947 # would make configure fail if this is the last instruction.
23948 $ac_cs_success ||
{ (exit 1); exit 1; }
23950 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
23951 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23952 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}