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
831 am__fastdepCCAS_FALSE
880 INSTALL_STRIP_PROGRAM
898 MAINTAINER_MODE_FALSE
949 program_transform_name
961 enable_option_checking
962 enable_maintainer_mode
964 enable_dependency_tracking
980 ac_precious_vars
='build_alias
993 # Initialize some variables set by options.
995 ac_init_version
=false
996 ac_unrecognized_opts
=
998 # The variables have the same names as the options, with
999 # dashes changed to underlines.
1000 cache_file
=/dev
/null
1007 program_transform_name
=s
,x
,x
,
1015 # Installation directory options.
1016 # These are left unexpanded so users can "make install exec_prefix=/foo"
1017 # and all the variables that are supposed to be based on exec_prefix
1018 # by default will actually change.
1019 # Use braces instead of parens because sh, perl, etc. also accept them.
1020 # (The list follows the same order as the GNU Coding Standards.)
1021 bindir
='${exec_prefix}/bin'
1022 sbindir
='${exec_prefix}/sbin'
1023 libexecdir
='${exec_prefix}/libexec'
1024 datarootdir
='${prefix}/share'
1025 datadir
='${datarootdir}'
1026 sysconfdir
='${prefix}/etc'
1027 sharedstatedir
='${prefix}/com'
1028 localstatedir
='${prefix}/var'
1029 includedir
='${prefix}/include'
1030 oldincludedir
='/usr/include'
1031 docdir
='${datarootdir}/doc/${PACKAGE}'
1032 infodir
='${datarootdir}/info'
1037 libdir
='${exec_prefix}/lib'
1038 localedir
='${datarootdir}/locale'
1039 mandir
='${datarootdir}/man'
1045 # If the previous option needs an argument, assign it.
1046 if test -n "$ac_prev"; then
1047 eval $ac_prev=\
$ac_option
1053 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1057 # Accept the important Cygnus configure options, so we can diagnose typos.
1059 case $ac_dashdash$ac_option in
1063 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1065 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1066 bindir
=$ac_optarg ;;
1068 -build |
--build |
--buil |
--bui |
--bu)
1069 ac_prev
=build_alias
;;
1070 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1071 build_alias
=$ac_optarg ;;
1073 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1074 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1075 ac_prev
=cache_file
;;
1076 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1077 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1078 cache_file
=$ac_optarg ;;
1080 --config-cache |
-C)
1081 cache_file
=config.cache
;;
1083 -datadir |
--datadir |
--datadi |
--datad)
1085 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1086 datadir
=$ac_optarg ;;
1088 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1089 |
--dataroo |
--dataro |
--datar)
1090 ac_prev
=datarootdir
;;
1091 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1092 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1093 datarootdir
=$ac_optarg ;;
1095 -disable-* |
--disable-*)
1096 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1099 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_useropt_orig
=$ac_useropt
1102 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_
$ac_useropt"
1107 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108 ac_unrecognized_sep
=', ';;
1110 eval enable_
$ac_useropt=no
;;
1112 -docdir |
--docdir |
--docdi |
--doc |
--do)
1114 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1115 docdir
=$ac_optarg ;;
1117 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1119 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1120 dvidir
=$ac_optarg ;;
1122 -enable-* |
--enable-*)
1123 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1126 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1127 { (exit 1); exit 1; }; }
1128 ac_useropt_orig
=$ac_useropt
1129 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1132 "enable_
$ac_useropt"
1134 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1135 ac_unrecognized_sep
=', ';;
1137 eval enable_
$ac_useropt=\
$ac_optarg ;;
1139 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1140 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1141 |
--exec |
--exe |
--ex)
1142 ac_prev
=exec_prefix
;;
1143 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1144 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1145 |
--exec=* |
--exe=* |
--ex=*)
1146 exec_prefix
=$ac_optarg ;;
1148 -gas |
--gas |
--ga |
--g)
1149 # Obsolete; use --with-gas.
1152 -help |
--help |
--hel |
--he |
-h)
1153 ac_init_help
=long
;;
1154 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1155 ac_init_help
=recursive
;;
1156 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1157 ac_init_help
=short
;;
1159 -host |
--host |
--hos |
--ho)
1160 ac_prev
=host_alias
;;
1161 -host=* |
--host=* |
--hos=* |
--ho=*)
1162 host_alias
=$ac_optarg ;;
1164 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1166 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1168 htmldir
=$ac_optarg ;;
1170 -includedir |
--includedir |
--includedi |
--included |
--include \
1171 |
--includ |
--inclu |
--incl |
--inc)
1172 ac_prev
=includedir
;;
1173 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1174 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1175 includedir
=$ac_optarg ;;
1177 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1179 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1180 infodir
=$ac_optarg ;;
1182 -libdir |
--libdir |
--libdi |
--libd)
1184 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1185 libdir
=$ac_optarg ;;
1187 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1188 |
--libexe |
--libex |
--libe)
1189 ac_prev
=libexecdir
;;
1190 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1191 |
--libexe=* |
--libex=* |
--libe=*)
1192 libexecdir
=$ac_optarg ;;
1194 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1195 ac_prev
=localedir
;;
1196 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1197 localedir
=$ac_optarg ;;
1199 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1200 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1201 ac_prev
=localstatedir
;;
1202 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1203 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1204 localstatedir
=$ac_optarg ;;
1206 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1208 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1209 mandir
=$ac_optarg ;;
1211 -nfp |
--nfp |
--nf)
1212 # Obsolete; use --without-fp.
1215 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1216 |
--no-cr |
--no-c |
-n)
1219 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1220 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1223 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1224 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1225 |
--oldin |
--oldi |
--old |
--ol |
--o)
1226 ac_prev
=oldincludedir
;;
1227 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1228 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1229 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1230 oldincludedir
=$ac_optarg ;;
1232 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1234 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1235 prefix
=$ac_optarg ;;
1237 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1238 |
--program-pre |
--program-pr |
--program-p)
1239 ac_prev
=program_prefix
;;
1240 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1241 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1242 program_prefix
=$ac_optarg ;;
1244 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1245 |
--program-suf |
--program-su |
--program-s)
1246 ac_prev
=program_suffix
;;
1247 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1248 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1249 program_suffix
=$ac_optarg ;;
1251 -program-transform-name |
--program-transform-name \
1252 |
--program-transform-nam |
--program-transform-na \
1253 |
--program-transform-n |
--program-transform- \
1254 |
--program-transform |
--program-transfor \
1255 |
--program-transfo |
--program-transf \
1256 |
--program-trans |
--program-tran \
1257 |
--progr-tra |
--program-tr |
--program-t)
1258 ac_prev
=program_transform_name
;;
1259 -program-transform-name=* |
--program-transform-name=* \
1260 |
--program-transform-nam=* |
--program-transform-na=* \
1261 |
--program-transform-n=* |
--program-transform-=* \
1262 |
--program-transform=* |
--program-transfor=* \
1263 |
--program-transfo=* |
--program-transf=* \
1264 |
--program-trans=* |
--program-tran=* \
1265 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1266 program_transform_name
=$ac_optarg ;;
1268 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1270 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1271 pdfdir
=$ac_optarg ;;
1273 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1275 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1278 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1279 |
-silent |
--silent |
--silen |
--sile |
--sil)
1282 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1284 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1286 sbindir
=$ac_optarg ;;
1288 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1289 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1290 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1292 ac_prev
=sharedstatedir
;;
1293 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1294 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1295 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1297 sharedstatedir
=$ac_optarg ;;
1299 -site |
--site |
--sit)
1301 -site=* |
--site=* |
--sit=*)
1304 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1306 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1307 srcdir
=$ac_optarg ;;
1309 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1310 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1311 ac_prev
=sysconfdir
;;
1312 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1313 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1314 sysconfdir
=$ac_optarg ;;
1316 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1317 ac_prev
=target_alias
;;
1318 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1319 target_alias
=$ac_optarg ;;
1321 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1324 -version |
--version |
--versio |
--versi |
--vers |
-V)
1325 ac_init_version
=: ;;
1328 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1331 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1332 { (exit 1); exit 1; }; }
1333 ac_useropt_orig
=$ac_useropt
1334 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1339 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1340 ac_unrecognized_sep
=', ';;
1342 eval with_
$ac_useropt=\
$ac_optarg ;;
1344 -without-* |
--without-*)
1345 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1348 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1349 { (exit 1); exit 1; }; }
1350 ac_useropt_orig
=$ac_useropt
1351 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1356 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1357 ac_unrecognized_sep
=', ';;
1359 eval with_
$ac_useropt=no
;;
1362 # Obsolete; use --with-x.
1365 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1366 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1367 ac_prev
=x_includes
;;
1368 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1369 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1370 x_includes
=$ac_optarg ;;
1372 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1373 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1374 ac_prev
=x_libraries
;;
1375 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1376 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1377 x_libraries
=$ac_optarg ;;
1379 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1380 Try \`$0 --help' for more information." >&2
1381 { (exit 1); exit 1; }; }
1385 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1388 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1389 { (exit 1); exit 1; }; }
1390 eval $ac_envvar=\
$ac_optarg
1391 export $ac_envvar ;;
1394 # FIXME: should be removed in autoconf 3.0.
1395 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1396 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1397 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1398 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1404 if test -n "$ac_prev"; then
1405 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1406 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1407 { (exit 1); exit 1; }; }
1410 if test -n "$ac_unrecognized_opts"; then
1411 case $enable_option_checking in
1413 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1414 { (exit 1); exit 1; }; } ;;
1415 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1419 # Check all directory arguments for consistency.
1420 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1421 datadir sysconfdir sharedstatedir localstatedir includedir \
1422 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1423 libdir localedir mandir
1425 eval ac_val
=\$
$ac_var
1426 # Remove trailing slashes.
1429 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1430 eval $ac_var=\
$ac_val;;
1432 # Be sure to have absolute directory names.
1434 [\\/$
]* | ?
:[\\/]* ) continue;;
1435 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1437 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1438 { (exit 1); exit 1; }; }
1441 # There might be people who depend on the old broken behavior: `$host'
1442 # used to hold the argument of --host etc.
1443 # FIXME: To remove some day.
1446 target
=$target_alias
1448 # FIXME: To remove some day.
1449 if test "x$host_alias" != x
; then
1450 if test "x$build_alias" = x
; then
1451 cross_compiling
=maybe
1452 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1453 If a cross compiler is detected then cross compile mode will be used." >&2
1454 elif test "x$build_alias" != "x$host_alias"; then
1460 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1462 test "$silent" = yes && exec 6>/dev
/null
1465 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1466 ac_ls_di
=`ls -di .` &&
1467 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1468 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1469 { (exit 1); exit 1; }; }
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1472 { (exit 1); exit 1; }; }
1475 # Find the source files, if location was not specified.
1476 if test -z "$srcdir"; then
1477 ac_srcdir_defaulted
=yes
1478 # Try the directory containing this script, then the parent directory.
1479 ac_confdir
=`$as_dirname -- "$as_myself" ||
1480 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1481 X"$as_myself" : 'X\(//\)[^/]' \| \
1482 X"$as_myself" : 'X\(//\)$' \| \
1483 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1484 $as_echo X"$as_myself" |
1485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1503 if test ! -r "$srcdir/$ac_unique_file"; then
1507 ac_srcdir_defaulted
=no
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1510 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1511 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1512 { (exit 1); exit 1; }; }
1514 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1516 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1517 { (exit 1); exit 1; }; }
1519 # When building in place, set srcdir=.
1520 if test "$ac_abs_confdir" = "$ac_pwd"; then
1523 # Remove unnecessary trailing slashes from srcdir.
1524 # Double slashes in file names in object file debugging info
1525 # mess up M-x gdb in Emacs.
1527 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 for ac_var
in $ac_precious_vars; do
1530 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1531 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1532 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1533 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1537 # Report the --help message.
1539 if test "$ac_init_help" = "long"; then
1540 # Omit some internal or obsolete options to make the list less imposing.
1541 # This message is too long to be a string in the A/UX 3.1 sh.
1543 \`configure' configures this package to adapt to many kinds of systems.
1545 Usage: $0 [OPTION]... [VAR=VALUE]...
1547 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548 VAR=VALUE. See below for descriptions of some of the useful variables.
1550 Defaults for the options are specified in brackets.
1553 -h, --help display this help and exit
1554 --help=short display options specific to this package
1555 --help=recursive display the short help of all the included packages
1556 -V, --version display version information and exit
1557 -q, --quiet, --silent do not print \`checking...' messages
1558 --cache-file=FILE cache test results in FILE [disabled]
1559 -C, --config-cache alias for \`--cache-file=config.cache'
1560 -n, --no-create do not create output files
1561 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1563 Installation directories:
1564 --prefix=PREFIX install architecture-independent files in PREFIX
1565 [$ac_default_prefix]
1566 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1569 By default, \`make install' will install all the files in
1570 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1571 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572 for instance \`--prefix=\$HOME'.
1574 For better control, use the options below.
1576 Fine tuning of the installation directories:
1577 --bindir=DIR user executables [EPREFIX/bin]
1578 --sbindir=DIR system admin executables [EPREFIX/sbin]
1579 --libexecdir=DIR program executables [EPREFIX/libexec]
1580 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1581 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1582 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1583 --libdir=DIR object code libraries [EPREFIX/lib]
1584 --includedir=DIR C header files [PREFIX/include]
1585 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1586 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1587 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1588 --infodir=DIR info documentation [DATAROOTDIR/info]
1589 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1590 --mandir=DIR man documentation [DATAROOTDIR/man]
1591 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1592 --htmldir=DIR html documentation [DOCDIR]
1593 --dvidir=DIR dvi documentation [DOCDIR]
1594 --pdfdir=DIR pdf documentation [DOCDIR]
1595 --psdir=DIR ps documentation [DOCDIR]
1601 --program-prefix=PREFIX prepend PREFIX to installed program names
1602 --program-suffix=SUFFIX append SUFFIX to installed program names
1603 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1606 --build=BUILD configure
for building on BUILD
[guessed
]
1607 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1608 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1612 if test -n "$ac_init_help"; then
1617 --disable-option-checking ignore unrecognized
--enable/--with options
1618 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1619 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1620 --enable-maintainer-mode enable make rules and dependencies not useful
1621 (and sometimes confusing
) to the casual installer
1622 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1623 --disable-silent-rules verbose build output (undo: `make V
=0')
1624 --disable-dependency-tracking speeds up one-time build
1625 --enable-dependency-tracking do not reject slow dependency extractors
1626 --enable-shared[=PKGS] build shared libraries [default=yes]
1627 --enable-static[=PKGS] build static libraries [default=yes]
1628 --enable-fast-install[=PKGS]
1629 optimize for fast installation [default=yes]
1630 --disable-libtool-lock avoid locking (might break parallel builds)
1631 --enable-debug Enable generic debug support [default=no]
1634 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1635 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1636 --with-pic try to use only PIC/non-PIC objects [default=use
1638 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1639 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1640 --with-linux=PATH Path to kernel source
1641 --with-linux-obj=PATH Path to kernel build objects
1642 --with-spl=PATH Path to spl source
1643 --with-spl-obj=PATH Path to spl build objects
1644 --with-blkid support blkid caching [default=check]
1645 --with-selinux support selinux [default=check]
1647 Some influential environment variables:
1648 CC C compiler command
1649 CFLAGS C compiler flags
1650 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1651 nonstandard directory <lib dir>
1652 LIBS libraries to pass to the linker, e.g. -l<library>
1653 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1654 you have headers in a nonstandard directory <include dir>
1656 CCAS assembler compiler command (defaults to CC)
1657 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1659 Use these variables to override the choices made by `configure' or to
help
1660 it to
find libraries and programs with nonstandard names
/locations.
1666 if test "$ac_init_help" = "recursive"; then
1667 # If there are subdirs, report their specific --help.
1668 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1669 test -d "$ac_dir" ||
1670 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1675 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1677 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1678 # A ".." for each directory in $ac_dir_suffix.
1679 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1680 case $ac_top_builddir_sub in
1681 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1682 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1685 ac_abs_top_builddir
=$ac_pwd
1686 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1687 # for backward compatibility:
1688 ac_top_builddir
=$ac_top_build_prefix
1691 .
) # We are building in place.
1693 ac_top_srcdir
=$ac_top_builddir_sub
1694 ac_abs_top_srcdir
=$ac_pwd ;;
1695 [\\/]* | ?
:[\\/]* ) # Absolute name.
1696 ac_srcdir
=$srcdir$ac_dir_suffix;
1697 ac_top_srcdir
=$srcdir
1698 ac_abs_top_srcdir
=$srcdir ;;
1700 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1701 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1702 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1704 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1706 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1707 # Check for guested configure.
1708 if test -f "$ac_srcdir/configure.gnu"; then
1710 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1711 elif test -f "$ac_srcdir/configure"; then
1713 $SHELL "$ac_srcdir/configure" --help=recursive
1715 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1717 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1721 test -n "$ac_init_help" && exit $ac_status
1722 if $ac_init_version; then
1725 generated by GNU Autoconf
2.63
1727 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1728 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1729 This configure
script is free software
; the Free Software Foundation
1730 gives unlimited permission to copy
, distribute and modify it.
1734 cat >config.log
<<_ACEOF
1735 This file contains any messages produced by compilers while
1736 running configure, to aid debugging if configure makes a mistake.
1738 It was created by $as_me, which was
1739 generated by GNU Autoconf 2.63. Invocation command line was
1751 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1752 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1753 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1754 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1755 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1757 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1758 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1760 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1761 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1762 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1763 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1764 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1765 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1766 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1774 test -z "$as_dir" && as_dir
=.
1775 $as_echo "PATH: $as_dir"
1791 # Keep a trace of the command line.
1792 # Strip out --no-create and --no-recursion so they do not pile up.
1793 # Strip out --silent because we don't want to record it for future runs.
1794 # Also quote any args containing shell meta-characters.
1795 # Make two passes to allow for proper duplicate-argument suppression.
1799 ac_must_keep_next
=false
1805 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1806 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1807 |
-silent |
--silent |
--silen |
--sile |
--sil)
1810 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1813 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1815 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1816 if test $ac_must_keep_next = true
; then
1817 ac_must_keep_next
=false
# Got value, back to normal.
1820 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1821 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1822 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1823 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1824 case "$ac_configure_args0 " in
1825 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1828 -* ) ac_must_keep_next
=true
;;
1831 ac_configure_args
="$ac_configure_args '$ac_arg'"
1836 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1837 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1839 # When interrupted or exit'd, cleanup temporary files, and complete
1840 # config.log. We remove comments because anyway the quotes in there
1841 # would cause problems or look ugly.
1842 # WARNING: Use '\'' to represent an apostrophe within the trap.
1843 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1844 trap 'exit_status=$?
1845 # Save into config.log some information that might help in debugging.
1850 ## ---------------- ##
1851 ## Cache variables. ##
1852 ## ---------------- ##
1855 # The following way of writing the cache mishandles newlines in values,
1857 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1858 eval ac_val=\$$ac_var
1862 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1866 _ | IFS | as_nl) ;; #(
1867 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1868 *) $as_unset $ac_var ;;
1873 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1874 *${as_nl}ac_space=\ *)
1876 "s/'\''/'\''\\\\'\'''\''/g;
1877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1888 ## ----------------- ##
1889 ## Output variables. ##
1890 ## ----------------- ##
1893 for ac_var in $ac_subst_vars
1895 eval ac_val=\$$ac_var
1897 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899 $as_echo "$ac_var='\''$ac_val'\''"
1903 if test -n "$ac_subst_files"; then
1905 ## ------------------- ##
1906 ## File substitutions. ##
1907 ## ------------------- ##
1910 for ac_var
in $ac_subst_files
1912 eval ac_val
=\$
$ac_var
1914 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916 $as_echo "$ac_var='\''$ac_val'\''"
1921 if test -s confdefs.h; then
1931 test "$ac_signal" != 0 &&
1932 $as_echo "$as_me: caught signal $ac_signal"
1933 $as_echo "$as_me: exit $exit_status"
1935 rm -f core *.core core.conftest.* &&
1936 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1939 for ac_signal
in 1 2 13 15; do
1940 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1944 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1945 rm -f -r conftest
* confdefs.h
1947 # Predefined preprocessor variables.
1949 cat >>confdefs.h
<<_ACEOF
1950 #define PACKAGE_NAME "$PACKAGE_NAME"
1954 cat >>confdefs.h
<<_ACEOF
1955 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1959 cat >>confdefs.h
<<_ACEOF
1960 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1964 cat >>confdefs.h
<<_ACEOF
1965 #define PACKAGE_STRING "$PACKAGE_STRING"
1969 cat >>confdefs.h
<<_ACEOF
1970 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1974 # Let the site file select an alternate cache file if it wants to.
1975 # Prefer an explicitly selected file to automatically selected ones.
1978 if test -n "$CONFIG_SITE"; then
1979 ac_site_file1
=$CONFIG_SITE
1980 elif test "x$prefix" != xNONE
; then
1981 ac_site_file1
=$prefix/share
/config.site
1982 ac_site_file2
=$prefix/etc
/config.site
1984 ac_site_file1
=$ac_default_prefix/share
/config.site
1985 ac_site_file2
=$ac_default_prefix/etc
/config.site
1987 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1989 test "x$ac_site_file" = xNONE
&& continue
1990 if test -r "$ac_site_file"; then
1991 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1992 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1993 sed 's/^/| /' "$ac_site_file" >&5
1998 if test -r "$cache_file"; then
1999 # Some versions of bash will fail to source /dev/null (special
2000 # files actually), so we avoid doing that.
2001 if test -f "$cache_file"; then
2002 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2003 $as_echo "$as_me: loading cache $cache_file" >&6;}
2005 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2006 *) .
"./$cache_file";;
2010 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2011 $as_echo "$as_me: creating cache $cache_file" >&6;}
2015 # Check that the precious variables saved in the cache have kept the same
2017 ac_cache_corrupted
=false
2018 for ac_var
in $ac_precious_vars; do
2019 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2020 eval ac_new_set
=\
$ac_env_${ac_var}_set
2021 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2022 eval ac_new_val
=\
$ac_env_${ac_var}_value
2023 case $ac_old_set,$ac_new_set in
2025 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2026 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2027 ac_cache_corrupted
=: ;;
2029 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2030 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2031 ac_cache_corrupted
=: ;;
2034 if test "x$ac_old_val" != "x$ac_new_val"; then
2035 # differences in whitespace do not lead to failure.
2036 ac_old_val_w
=`echo x $ac_old_val`
2037 ac_new_val_w
=`echo x $ac_new_val`
2038 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2039 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2040 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2041 ac_cache_corrupted
=:
2043 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2044 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2045 eval $ac_var=\
$ac_old_val
2047 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2048 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2049 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2050 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2053 # Pass precious variables to config.status.
2054 if test "$ac_new_set" = set; then
2056 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 *) ac_arg
=$ac_var=$ac_new_val ;;
2059 case " $ac_configure_args " in
2060 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2061 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2065 if $ac_cache_corrupted; then
2066 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2069 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2070 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2071 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2072 { (exit 1); exit 1; }; }
2092 ac_cpp
='$CPP $CPPFLAGS'
2093 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2094 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2095 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2099 ac_cpp
='$CPP $CPPFLAGS'
2100 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2109 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2110 $as_echo_n "checking metadata... " >&6; }
2113 _zfs_ac_meta_got_file
=no
2114 if test -f "$META"; then
2115 _zfs_ac_meta_got_file
=yes
2117 ZFS_META_NAME
=`perl -n\
2118 -e "BEGIN { \\$key=shift @ARGV; }"\
2119 -e "next unless s/^\s*\\$key[:=]//i;"\
2120 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2123 -e "s/^(['\"])(.*)\1/\\$2/;"\
2125 -e "END { print \\$val if defined \\$val; }"\
2126 '(?:NAME|PROJECT|PACKAGE)' $META`;
2127 if test -n "$ZFS_META_NAME"; then
2129 cat >>confdefs.h
<<_ACEOF
2130 #define ZFS_META_NAME "$ZFS_META_NAME"
2136 ZFS_META_VERSION
=`perl -n\
2137 -e "BEGIN { \\$key=shift @ARGV; }"\
2138 -e "next unless s/^\s*\\$key[:=]//i;"\
2139 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2142 -e "s/^(['\"])(.*)\1/\\$2/;"\
2144 -e "END { print \\$val if defined \\$val; }"\
2146 if test -n "$ZFS_META_VERSION"; then
2148 cat >>confdefs.h
<<_ACEOF
2149 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2155 ZFS_META_RELEASE
=`perl -n\
2156 -e "BEGIN { \\$key=shift @ARGV; }"\
2157 -e "next unless s/^\s*\\$key[:=]//i;"\
2158 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2161 -e "s/^(['\"])(.*)\1/\\$2/;"\
2163 -e "END { print \\$val if defined \\$val; }"\
2165 if test -n "$ZFS_META_RELEASE"; then
2167 cat >>confdefs.h
<<_ACEOF
2168 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2174 ZFS_META_LICENSE
=`perl -n\
2175 -e "BEGIN { \\$key=shift @ARGV; }"\
2176 -e "next unless s/^\s*\\$key[:=]//i;"\
2177 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2180 -e "s/^(['\"])(.*)\1/\\$2/;"\
2182 -e "END { print \\$val if defined \\$val; }"\
2184 if test -n "$ZFS_META_LICENSE"; then
2186 cat >>confdefs.h
<<_ACEOF
2187 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2193 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2194 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2195 test -n "$ZFS_META_RELEASE" &&
2196 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2198 cat >>confdefs.h
<<_ACEOF
2199 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2205 ZFS_META_DATA
=`perl -n\
2206 -e "BEGIN { \\$key=shift @ARGV; }"\
2207 -e "next unless s/^\s*\\$key[:=]//i;"\
2208 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2211 -e "s/^(['\"])(.*)\1/\\$2/;"\
2213 -e "END { print \\$val if defined \\$val; }"\
2215 if test -n "$ZFS_META_DATA"; then
2217 cat >>confdefs.h
<<_ACEOF
2218 #define ZFS_META_DATA "$ZFS_META_DATA"
2224 ZFS_META_AUTHOR
=`perl -n\
2225 -e "BEGIN { \\$key=shift @ARGV; }"\
2226 -e "next unless s/^\s*\\$key[:=]//i;"\
2227 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2230 -e "s/^(['\"])(.*)\1/\\$2/;"\
2232 -e "END { print \\$val if defined \\$val; }"\
2234 if test -n "$ZFS_META_AUTHOR"; then
2236 cat >>confdefs.h
<<_ACEOF
2237 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2244 ZFS_META_LT_CURRENT
=`perl -n\
2245 -e "BEGIN { \\$key=shift @ARGV; }"\
2246 -e "next unless s/^\s*\\$key[:=]//i;"\
2247 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2250 -e "s/^(['\"])(.*)\1/\\$2/;"\
2252 -e "END { print \\$val if defined \\$val; }"\
2253 'LT_CURRENT' $META`;
2254 ZFS_META_LT_REVISION
=`perl -n\
2255 -e "BEGIN { \\$key=shift @ARGV; }"\
2256 -e "next unless s/^\s*\\$key[:=]//i;"\
2257 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2260 -e "s/^(['\"])(.*)\1/\\$2/;"\
2262 -e "END { print \\$val if defined \\$val; }"\
2263 'LT_REVISION' $META`;
2264 ZFS_META_LT_AGE
=`perl -n\
2265 -e "BEGIN { \\$key=shift @ARGV; }"\
2266 -e "next unless s/^\s*\\$key[:=]//i;"\
2267 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2270 -e "s/^(['\"])(.*)\1/\\$2/;"\
2272 -e "END { print \\$val if defined \\$val; }"\
2274 if test -n "$ZFS_META_LT_CURRENT" \
2275 -o -n "$ZFS_META_LT_REVISION" \
2276 -o -n "$ZFS_META_LT_AGE"; then
2277 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2278 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2279 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2281 cat >>confdefs.h
<<_ACEOF
2282 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2286 cat >>confdefs.h
<<_ACEOF
2287 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2291 cat >>confdefs.h
<<_ACEOF
2292 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2301 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2302 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2306 for ac_dir
in config
"$srcdir"/config
; do
2307 if test -f "$ac_dir/install-sh"; then
2309 ac_install_sh
="$ac_aux_dir/install-sh -c"
2311 elif test -f "$ac_dir/install.sh"; then
2313 ac_install_sh
="$ac_aux_dir/install.sh -c"
2315 elif test -f "$ac_dir/shtool"; then
2317 ac_install_sh
="$ac_aux_dir/shtool install -c"
2321 if test -z "$ac_aux_dir"; then
2322 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2323 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2324 { (exit 1); exit 1; }; }
2327 # These three variables are undocumented and unsupported,
2328 # and are intended to be withdrawn in a future Autoconf release.
2329 # They can cause serious problems if a builder's source tree is in a directory
2330 # whose full name contains unusual characters.
2331 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2332 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2333 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2336 # Make sure we can run config.sub.
2337 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2338 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2339 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2340 { (exit 1); exit 1; }; }
2342 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2343 $as_echo_n "checking build system type... " >&6; }
2344 if test "${ac_cv_build+set}" = set; then
2345 $as_echo_n "(cached) " >&6
2347 ac_build_alias
=$build_alias
2348 test "x$ac_build_alias" = x
&&
2349 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2350 test "x$ac_build_alias" = x
&&
2351 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2352 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2353 { (exit 1); exit 1; }; }
2354 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2356 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2357 { (exit 1); exit 1; }; }
2360 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2361 $as_echo "$ac_cv_build" >&6; }
2362 case $ac_cv_build in
2364 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2365 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2366 { (exit 1); exit 1; }; };;
2369 ac_save_IFS
=$IFS; IFS
='-'
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2379 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2382 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2383 $as_echo_n "checking host system type... " >&6; }
2384 if test "${ac_cv_host+set}" = set; then
2385 $as_echo_n "(cached) " >&6
2387 if test "x$host_alias" = x
; then
2388 ac_cv_host
=$ac_cv_build
2390 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2391 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2392 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2393 { (exit 1); exit 1; }; }
2397 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2398 $as_echo "$ac_cv_host" >&6; }
2401 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2402 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2403 { (exit 1); exit 1; }; };;
2406 ac_save_IFS
=$IFS; IFS
='-'
2412 # Remember, the first character of IFS is used to create $*,
2413 # except with old shells:
2416 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2419 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2420 $as_echo_n "checking target system type... " >&6; }
2421 if test "${ac_cv_target+set}" = set; then
2422 $as_echo_n "(cached) " >&6
2424 if test "x$target_alias" = x
; then
2425 ac_cv_target
=$ac_cv_host
2427 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2428 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2429 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2430 { (exit 1); exit 1; }; }
2434 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2435 $as_echo "$ac_cv_target" >&6; }
2436 case $ac_cv_target in
2438 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2439 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2440 { (exit 1); exit 1; }; };;
2442 target
=$ac_cv_target
2443 ac_save_IFS
=$IFS; IFS
='-'
2449 # Remember, the first character of IFS is used to create $*,
2450 # except with old shells:
2453 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2456 # The aliases save the names the user supplied, while $host etc.
2457 # will get canonicalized.
2458 test -n "$target_alias" &&
2459 test "$program_prefix$program_suffix$program_transform_name" = \
2461 program_prefix
=${target_alias}-
2463 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2464 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2465 # Check whether --enable-maintainer-mode was given.
2466 if test "${enable_maintainer_mode+set}" = set; then
2467 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2469 USE_MAINTAINER_MODE
=no
2472 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2473 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2474 if test $USE_MAINTAINER_MODE = yes; then
2475 MAINTAINER_MODE_TRUE
=
2476 MAINTAINER_MODE_FALSE
='#'
2478 MAINTAINER_MODE_TRUE
='#'
2479 MAINTAINER_MODE_FALSE
=
2482 MAINT
=$MAINTAINER_MODE_TRUE
2485 # Check whether --enable-silent-rules was given.
2486 if test "${enable_silent_rules+set}" = set; then
2487 enableval
=$enable_silent_rules;
2490 case $enable_silent_rules in
2491 yes) AM_DEFAULT_VERBOSITY
=0;;
2492 no
) AM_DEFAULT_VERBOSITY
=1;;
2493 *) AM_DEFAULT_VERBOSITY
=1;;
2497 am__api_version='1.11'
2499 # Find a good install program. We prefer a C program (faster),
2500 # so one script is as good as another. But avoid the broken or
2501 # incompatible versions:
2502 # SysV /etc/install, /usr/sbin/install
2503 # SunOS /usr/etc/install
2504 # IRIX /sbin/install
2506 # AmigaOS /C/install, which installs bootblocks on floppy discs
2507 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2510 # OS/2's system install, which has a completely different semantic
2511 # ./install, which can be erroneously created by make from ./install.sh.
2512 # Reject install programs that cannot install multiple files.
2513 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2514 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2515 if test -z "$INSTALL"; then
2516 if test "${ac_cv_path_install+set}" = set; then
2517 $as_echo_n "(cached) " >&6
2519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2523 test -z "$as_dir" && as_dir
=.
2524 # Account for people who put trailing slashes in PATH elements.
2526 .
/ | .
// |
/cC
/* | \
2527 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2528 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2531 # OSF1 and SCO ODT 3.0 have their own names for install.
2532 # Don't use installbsd from OSF since it installs stuff as root
2534 for ac_prog
in ginstall scoinst
install; do
2535 for ac_exec_ext
in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2537 if test $ac_prog = install &&
2538 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2539 # AIX install. It has an incompatible calling convention.
2541 elif test $ac_prog = install &&
2542 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2543 # program-specific install script used by HP pwplus--don't use.
2546 rm -rf conftest.one conftest.two conftest.dir
2547 echo one
> conftest.one
2548 echo two
> conftest.two
2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2551 test -s conftest.one
&& test -s conftest.two
&&
2552 test -s conftest.dir
/conftest.one
&&
2553 test -s conftest.dir
/conftest.two
2555 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2568 rm -rf conftest.one conftest.two conftest.dir
2571 if test "${ac_cv_path_install+set}" = set; then
2572 INSTALL
=$ac_cv_path_install
2574 # As a last resort, use the slow shell script. Don't cache a
2575 # value for INSTALL within a source directory, because that will
2576 # break other packages using the cache if that directory is
2577 # removed, or if the value is a relative name.
2578 INSTALL
=$ac_install_sh
2581 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2582 $as_echo "$INSTALL" >&6; }
2584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585 # It thinks the first close brace ends the variable substitution.
2586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2590 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2592 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2593 $as_echo_n "checking whether build environment is sane... " >&6; }
2596 echo timestamp
> conftest.
file
2597 # Reject unsafe characters in $srcdir or the absolute working directory
2598 # name. Accept space and tab only in the latter.
2602 *[\\\"\
#\$\&\'\`$am_lf]*)
2603 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2604 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2605 { (exit 1); exit 1; }; };;
2608 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2609 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2610 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2611 { (exit 1); exit 1; }; };;
2614 # Do `set' in a subshell so we don't clobber the current shell's
2615 # arguments. Must try -L first in case configure is actually a
2616 # symlink; some systems play weird games with the mod time of symlinks
2617 # (eg FreeBSD returns the mod time of the symlink's containing
2620 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2621 if test "$*" = "X"; then
2623 set X
`ls -t "$srcdir/configure" conftest.file`
2626 if test "$*" != "X $srcdir/configure conftest.file" \
2627 && test "$*" != "X conftest.file $srcdir/configure"; then
2629 # If neither matched, then we have a broken ls. This can happen
2630 # if, for instance, CONFIG_SHELL is bash and it inherits a
2631 # broken ls alias from the environment. This has actually
2632 # happened. Such a system could not be considered "sane".
2633 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2634 alias in your environment" >&5
2635 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2636 alias in your environment" >&2;}
2637 { (exit 1); exit 1; }; }
2640 test "$2" = conftest.
file
2646 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2647 Check your system clock" >&5
2648 $as_echo "$as_me: error: newly created file is older than distributed files!
2649 Check your system clock" >&2;}
2650 { (exit 1); exit 1; }; }
2652 { $as_echo "$as_me:$LINENO: result: yes" >&5
2653 $as_echo "yes" >&6; }
2654 test "$program_prefix" != NONE
&&
2655 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2656 # Use a double $ so make ignores it.
2657 test "$program_suffix" != NONE
&&
2658 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2659 # Double any \ or $.
2660 # By default was `s,x,x', remove it if useless.
2661 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2662 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2664 # expand $ac_aux_dir to an absolute path
2665 am_aux_dir
=`cd $ac_aux_dir && pwd`
2667 if test x
"${MISSING+set}" != xset
; then
2670 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2672 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2675 # Use eval to expand $SHELL
2676 if eval "$MISSING --run true"; then
2677 am_missing_run
="$MISSING --run "
2680 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2681 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2684 if test x
"${install_sh}" != xset
; then
2687 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2689 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2693 # Installed binaries are usually stripped using `strip' when the user
2694 # run `make install-strip'. However `strip' might not be the right
2695 # tool to use in cross-compilation environments, therefore Automake
2696 # will honor the `STRIP' environment variable to overrule this program.
2697 if test "$cross_compiling" != no
; then
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2700 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if test "${ac_cv_prog_STRIP+set}" = set; then
2704 $as_echo_n "(cached) " >&6
2706 if test -n "$STRIP"; then
2707 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir
=.
2714 for ac_exec_ext
in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 STRIP
=$ac_cv_prog_STRIP
2727 if test -n "$STRIP"; then
2728 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2729 $as_echo "$STRIP" >&6; }
2731 { $as_echo "$as_me:$LINENO: result: no" >&5
2732 $as_echo "no" >&6; }
2737 if test -z "$ac_cv_prog_STRIP"; then
2739 # Extract the first word of "strip", so it can be a program name with args.
2740 set dummy strip
; ac_word
=$2
2741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2744 $as_echo_n "(cached) " >&6
2746 if test -n "$ac_ct_STRIP"; then
2747 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2753 test -z "$as_dir" && as_dir
=.
2754 for ac_exec_ext
in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_ac_ct_STRIP
="strip"
2757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2767 if test -n "$ac_ct_STRIP"; then
2768 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2769 $as_echo "$ac_ct_STRIP" >&6; }
2771 { $as_echo "$as_me:$LINENO: result: no" >&5
2772 $as_echo "no" >&6; }
2775 if test "x$ac_ct_STRIP" = x
; then
2778 case $cross_compiling:$ac_tool_warned in
2780 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782 ac_tool_warned
=yes ;;
2787 STRIP
="$ac_cv_prog_STRIP"
2791 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2793 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2794 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2795 if test -z "$MKDIR_P"; then
2796 if test "${ac_cv_path_mkdir+set}" = set; then
2797 $as_echo_n "(cached) " >&6
2799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2800 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2803 test -z "$as_dir" && as_dir
=.
2804 for ac_prog
in mkdir gmkdir
; do
2805 for ac_exec_ext
in '' $ac_executable_extensions; do
2806 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2807 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2808 'mkdir (GNU coreutils) '* | \
2809 'mkdir (coreutils) '* | \
2810 'mkdir (fileutils) '4.1*)
2811 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2821 if test "${ac_cv_path_mkdir+set}" = set; then
2822 MKDIR_P
="$ac_cv_path_mkdir -p"
2824 # As a last resort, use the slow shell script. Don't cache a
2825 # value for MKDIR_P within a source directory, because that will
2826 # break other packages using the cache if that directory is
2827 # removed, or if the value is a relative name.
2828 test -d .
/--version && rmdir .
/--version
2829 MKDIR_P
="$ac_install_sh -d"
2832 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2833 $as_echo "$MKDIR_P" >&6; }
2837 [\\/$
]* | ?
:[\\/]*) ;;
2838 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2841 for ac_prog
in gawk mawk nawk
awk
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy
$ac_prog; ac_word
=$2
2845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if test "${ac_cv_prog_AWK+set}" = set; then
2848 $as_echo_n "(cached) " >&6
2850 if test -n "$AWK"; then
2851 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir
=.
2858 for ac_exec_ext
in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_AWK
="$ac_prog"
2861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 if test -n "$AWK"; then
2872 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2873 $as_echo "$AWK" >&6; }
2875 { $as_echo "$as_me:$LINENO: result: no" >&5
2876 $as_echo "no" >&6; }
2880 test -n "$AWK" && break
2883 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2884 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2886 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2887 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2888 $as_echo_n "(cached) " >&6
2890 cat >conftest.
make <<\_ACEOF
2893 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2895 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2896 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2898 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2900 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2904 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2905 { $as_echo "$as_me:$LINENO: result: yes" >&5
2906 $as_echo "yes" >&6; }
2909 { $as_echo "$as_me:$LINENO: result: no" >&5
2910 $as_echo "no" >&6; }
2911 SET_MAKE
="MAKE=${MAKE-make}"
2914 rm -rf .tst
2>/dev
/null
2915 mkdir .tst
2>/dev
/null
2916 if test -d .tst
; then
2921 rmdir .tst
2>/dev
/null
2923 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2924 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2925 # is not polluted with repeated "-I."
2926 am__isrc
=' -I$(srcdir)'
2927 # test to see if srcdir already configured
2928 if test -f $srcdir/config.status
; then
2929 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2930 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2931 { (exit 1); exit 1; }; }
2935 # test whether we have cygpath
2936 if test -z "$CYGPATH_W"; then
2937 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2938 CYGPATH_W
='cygpath -w'
2945 # Define the identity of the package.
2946 PACKAGE
=$ZFS_META_NAME
2947 VERSION
=$ZFS_META_VERSION
2950 cat >>confdefs.h
<<_ACEOF
2951 #define PACKAGE "$PACKAGE"
2955 cat >>confdefs.h
<<_ACEOF
2956 #define VERSION "$VERSION"
2959 # Some tools Automake needs.
2961 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2964 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2967 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2970 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2973 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2975 # We need awk for the "check" target. The system "awk" is bad on
2977 # Always define AMTAR for backward compatibility.
2979 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2981 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2987 ac_config_headers
="$ac_config_headers zfs_config.h"
2990 # Find a good install program. We prefer a C program (faster),
2991 # so one script is as good as another. But avoid the broken or
2992 # incompatible versions:
2993 # SysV /etc/install, /usr/sbin/install
2994 # SunOS /usr/etc/install
2995 # IRIX /sbin/install
2997 # AmigaOS /C/install, which installs bootblocks on floppy discs
2998 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3001 # OS/2's system install, which has a completely different semantic
3002 # ./install, which can be erroneously created by make from ./install.sh.
3003 # Reject install programs that cannot install multiple files.
3004 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3005 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3006 if test -z "$INSTALL"; then
3007 if test "${ac_cv_path_install+set}" = set; then
3008 $as_echo_n "(cached) " >&6
3010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir
=.
3015 # Account for people who put trailing slashes in PATH elements.
3017 .
/ | .
// |
/cC
/* | \
3018 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3019 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3022 # OSF1 and SCO ODT 3.0 have their own names for install.
3023 # Don't use installbsd from OSF since it installs stuff as root
3025 for ac_prog
in ginstall scoinst
install; do
3026 for ac_exec_ext
in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3028 if test $ac_prog = install &&
3029 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3030 # AIX install. It has an incompatible calling convention.
3032 elif test $ac_prog = install &&
3033 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3034 # program-specific install script used by HP pwplus--don't use.
3037 rm -rf conftest.one conftest.two conftest.dir
3038 echo one
> conftest.one
3039 echo two
> conftest.two
3041 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3042 test -s conftest.one
&& test -s conftest.two
&&
3043 test -s conftest.dir
/conftest.one
&&
3044 test -s conftest.dir
/conftest.two
3046 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3059 rm -rf conftest.one conftest.two conftest.dir
3062 if test "${ac_cv_path_install+set}" = set; then
3063 INSTALL
=$ac_cv_path_install
3065 # As a last resort, use the slow shell script. Don't cache a
3066 # value for INSTALL within a source directory, because that will
3067 # break other packages using the cache if that directory is
3068 # removed, or if the value is a relative name.
3069 INSTALL
=$ac_install_sh
3072 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3073 $as_echo "$INSTALL" >&6; }
3075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3076 # It thinks the first close brace ends the variable substitution.
3077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3081 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3084 ac_cpp
='$CPP $CPPFLAGS'
3085 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3090 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if test "${ac_cv_prog_CC+set}" = set; then
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC
="$CC" # Let the user override the test.
3099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir
=.
3104 for ac_exec_ext
in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3121 { $as_echo "$as_me:$LINENO: result: no" >&5
3122 $as_echo "no" >&6; }
3127 if test -z "$ac_cv_prog_CC"; then
3129 # Extract the first word of "gcc", so it can be a program name with args.
3130 set dummy gcc
; ac_word
=$2
3131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3134 $as_echo_n "(cached) " >&6
3136 if test -n "$ac_ct_CC"; then
3137 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3143 test -z "$as_dir" && as_dir
=.
3144 for ac_exec_ext
in '' $ac_executable_extensions; do
3145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146 ac_cv_prog_ac_ct_CC
="gcc"
3147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3157 if test -n "$ac_ct_CC"; then
3158 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3159 $as_echo "$ac_ct_CC" >&6; }
3161 { $as_echo "$as_me:$LINENO: result: no" >&5
3162 $as_echo "no" >&6; }
3165 if test "x$ac_ct_CC" = x
; then
3168 case $cross_compiling:$ac_tool_warned in
3170 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3172 ac_tool_warned
=yes ;;
3180 if test -z "$CC"; then
3181 if test -n "$ac_tool_prefix"; then
3182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3183 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_CC+set}" = set; then
3187 $as_echo_n "(cached) " >&6
3189 if test -n "$CC"; then
3190 ac_cv_prog_CC
="$CC" # Let the user override the test.
3192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir
=.
3197 for ac_exec_ext
in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 if test -n "$CC"; then
3211 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3212 $as_echo "$CC" >&6; }
3214 { $as_echo "$as_me:$LINENO: result: no" >&5
3215 $as_echo "no" >&6; }
3221 if test -z "$CC"; then
3222 # Extract the first word of "cc", so it can be a program name with args.
3223 set dummy cc
; ac_word
=$2
3224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if test "${ac_cv_prog_CC+set}" = set; then
3227 $as_echo_n "(cached) " >&6
3229 if test -n "$CC"; then
3230 ac_cv_prog_CC
="$CC" # Let the user override the test.
3233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir
=.
3238 for ac_exec_ext
in '' $ac_executable_extensions; do
3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3241 ac_prog_rejected
=yes
3245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 if test $ac_prog_rejected = yes; then
3253 # We found a bogon in the path, so make sure we never use it.
3254 set dummy
$ac_cv_prog_CC
3256 if test $# != 0; then
3257 # We chose a different compiler from the bogus one.
3258 # However, it has the same basename, so the bogon will be chosen
3259 # first if we set CC to just the basename; use the full file name.
3261 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3267 if test -n "$CC"; then
3268 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3269 $as_echo "$CC" >&6; }
3271 { $as_echo "$as_me:$LINENO: result: no" >&5
3272 $as_echo "no" >&6; }
3277 if test -z "$CC"; then
3278 if test -n "$ac_tool_prefix"; then
3279 for ac_prog
in cl.exe
3281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_CC+set}" = set; then
3286 $as_echo_n "(cached) " >&6
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC
="$CC" # Let the user override the test.
3291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir
=.
3296 for ac_exec_ext
in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 if test -n "$CC"; then
3310 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3311 $as_echo "$CC" >&6; }
3313 { $as_echo "$as_me:$LINENO: result: no" >&5
3314 $as_echo "no" >&6; }
3318 test -n "$CC" && break
3321 if test -z "$CC"; then
3323 for ac_prog
in cl.exe
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy
$ac_prog; ac_word
=$2
3327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3330 $as_echo_n "(cached) " >&6
3332 if test -n "$ac_ct_CC"; then
3333 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir
=.
3340 for ac_exec_ext
in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_prog_ac_ct_CC
="$ac_prog"
3343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3353 if test -n "$ac_ct_CC"; then
3354 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3355 $as_echo "$ac_ct_CC" >&6; }
3357 { $as_echo "$as_me:$LINENO: result: no" >&5
3358 $as_echo "no" >&6; }
3362 test -n "$ac_ct_CC" && break
3365 if test "x$ac_ct_CC" = x
; then
3368 case $cross_compiling:$ac_tool_warned in
3370 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3372 ac_tool_warned
=yes ;;
3381 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3384 See \`config.log' for more details." >&5
3385 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3386 See \`config.log' for more details." >&2;}
3387 { (exit 1); exit 1; }; }; }
3389 # Provide some information about the compiler.
3390 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3393 { (ac_try
="$ac_compiler --version >&5"
3395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3399 $as_echo "$ac_try_echo") >&5
3400 (eval "$ac_compiler --version >&5") 2>&5
3402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }
3404 { (ac_try="$ac_compiler -v >&5"
3406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3407 *) ac_try_echo
=$ac_try;;
3409 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3410 $as_echo "$ac_try_echo") >&5
3411 (eval "$ac_compiler -v >&5") 2>&5
3413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }
3415 { (ac_try
="$ac_compiler -V >&5"
3417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3421 $as_echo "$ac_try_echo") >&5
3422 (eval "$ac_compiler -V >&5") 2>&5
3424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3442 ac_clean_files_save=$ac_clean_files
3443 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3444 # Try to create an executable without -o first, disregard a.out.
3445 # It will help us diagnose broken compilers, and finding out an intuition
3447 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3448 $as_echo_n "checking for C compiler default output file name... " >&6; }
3449 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3451 # The possible output files:
3452 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3455 for ac_file in $ac_files
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3459 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3464 if { (ac_try="$ac_link_default"
3466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3467 *) ac_try_echo
=$ac_try;;
3469 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3470 $as_echo "$ac_try_echo") >&5
3471 (eval "$ac_link_default") 2>&5
3473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; then
3475 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3476 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3477 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3478 # so that the user can short-circuit this test for compilers unknown to
3480 for ac_file
in $ac_files ''
3482 test -f "$ac_file" ||
continue
3484 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3487 # We found the default executable, but exeext='' is most
3491 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3493 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495 # We set ac_cv_exeext here because the later test for it is not
3496 # safe: cross compilers may not add the suffix if given an `-o'
3497 # argument, so we may need to know it at that point already.
3498 # Even if this section looks crufty: it has the advantage of
3505 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3511 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3512 $as_echo "$ac_file" >&6; }
3513 if test -z "$ac_file"; then
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.
$ac_ext >&5
3517 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3520 See \`config.log' for more details." >&5
3521 $as_echo "$as_me: error: C compiler cannot create executables
3522 See \`config.log' for more details." >&2;}
3523 { (exit 77); exit 77; }; }; }
3526 ac_exeext
=$ac_cv_exeext
3528 # Check that the compiler produces executables we can run. If not, either
3529 # the compiler is broken, or we cross compile.
3530 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3531 $as_echo_n "checking whether the C compiler works... " >&6; }
3532 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3533 # If not cross compiling, check that we can run a simple program.
3534 if test "$cross_compiling" != yes; then
3535 if { ac_try
='./$ac_file'
3536 { (case "(($ac_try" in
3537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3541 $as_echo "$ac_try_echo") >&5
3542 (eval "$ac_try") 2>&5
3544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; }; then
3548 if test "$cross_compiling" = maybe; then
3551 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3554 If you meant to cross compile
, use \
`--host'.
3555 See \`config.log
' for more details." >&5
3556 $as_echo "$as_me: error: cannot run C compiled programs.
3557 If you meant to cross compile, use \`--host'.
3558 See \
`config.log' for more details." >&2;}
3559 { (exit 1); exit 1; }; }; }
3563 { $as_echo "$as_me:$LINENO: result: yes" >&5
3564 $as_echo "yes" >&6; }
3566 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3567 ac_clean_files=$ac_clean_files_save
3568 # Check that the compiler produces executables we can run. If not, either
3569 # the compiler is broken, or we cross compile.
3570 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3571 $as_echo_n "checking whether we are cross compiling... " >&6; }
3572 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3573 $as_echo "$cross_compiling" >&6; }
3575 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3576 $as_echo_n "checking for suffix of executables... " >&6; }
3577 if { (ac_try="$ac_link"
3579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3580 *) ac_try_echo
=$ac_try;;
3582 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3583 $as_echo "$ac_try_echo") >&5
3584 (eval "$ac_link") 2>&5
3586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; then
3588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3589 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3590 # work properly (i.e., refer to `conftest.exe'), while it won't with
3592 for ac_file
in conftest.exe conftest conftest.
*; do
3593 test -f "$ac_file" ||
continue
3595 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3596 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3602 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3605 See \`config.log' for more details." >&5
3606 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3607 See \`config.log' for more details." >&2;}
3608 { (exit 1); exit 1; }; }; }
3611 rm -f conftest
$ac_cv_exeext
3612 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3613 $as_echo "$ac_cv_exeext" >&6; }
3615 rm -f conftest.
$ac_ext
3616 EXEEXT
=$ac_cv_exeext
3618 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3619 $as_echo_n "checking for suffix of object files... " >&6; }
3620 if test "${ac_cv_objext+set}" = set; then
3621 $as_echo_n "(cached) " >&6
3623 cat >conftest.
$ac_ext <<_ACEOF
3626 cat confdefs.h
>>conftest.
$ac_ext
3627 cat >>conftest.
$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3638 rm -f conftest.o conftest.obj
3639 if { (ac_try
="$ac_compile"
3641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>&5
3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; then
3650 for ac_file in conftest.o conftest.obj conftest.*; do
3651 test -f "$ac_file" || continue;
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3654 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3659 $as_echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3665 See \
`config.log' for more details." >&5
3666 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3667 See \`config.log
' for more details." >&2;}
3668 { (exit 1); exit 1; }; }; }
3671 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3673 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3674 $as_echo "$ac_cv_objext" >&6; }
3675 OBJEXT=$ac_cv_objext
3677 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3678 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3679 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3680 $as_echo_n "(cached) " >&6
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3700 rm -f conftest.$ac_objext
3701 if { (ac_try="$ac_compile"
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3707 $as_echo "$ac_try_echo") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3710 grep -v '^
*+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && {
3715 test -z "$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 } && test -s conftest.$ac_objext; then
3720 $as_echo "$as_me: failed program was:" >&5
3721 sed 's
/^
/|
/' conftest.$ac_ext >&5
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3730 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3731 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3732 if test $ac_compiler_gnu = yes; then
3737 ac_test_CFLAGS=${CFLAGS+set}
3738 ac_save_CFLAGS=$CFLAGS
3739 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3740 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3741 if test "${ac_cv_prog_cc_g+set}" = set; then
3742 $as_echo_n "(cached) " >&6
3744 ac_save_c_werror_flag=$ac_c_werror_flag
3745 ac_c_werror_flag=yes
3748 cat >conftest.$ac_ext <<_ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3763 rm -f conftest.$ac_objext
3764 if { (ac_try="$ac_compile"
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3770 $as_echo "$ac_try_echo") >&5
3771 (eval "$ac_compile") 2>conftest.er1
3773 grep -v '^
*+' conftest.er1 >conftest.err
3775 cat conftest.err >&5
3776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } && {
3778 test -z "$ac_c_werror_flag" ||
3779 test ! -s conftest.err
3780 } && test -s conftest.$ac_objext; then
3783 $as_echo "$as_me: failed program was:" >&5
3784 sed 's
/^
/|
/' conftest.$ac_ext >&5
3787 cat >conftest.$ac_ext <<_ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3802 rm -f conftest.$ac_objext
3803 if { (ac_try="$ac_compile"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3809 $as_echo "$ac_try_echo") >&5
3810 (eval "$ac_compile") 2>conftest.er1
3812 grep -v '^
*+' conftest.er1 >conftest.err
3814 cat conftest.err >&5
3815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } && {
3817 test -z "$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3819 } && test -s conftest.$ac_objext; then
3822 $as_echo "$as_me: failed program was:" >&5
3823 sed 's
/^
/|
/' conftest.$ac_ext >&5
3825 ac_c_werror_flag=$ac_save_c_werror_flag
3827 cat >conftest.$ac_ext <<_ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3842 rm -f conftest.$ac_objext
3843 if { (ac_try="$ac_compile"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3849 $as_echo "$ac_try_echo") >&5
3850 (eval "$ac_compile") 2>conftest.er1
3852 grep -v '^
*+' conftest.er1 >conftest.err
3854 cat conftest.err >&5
3855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && {
3857 test -z "$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3859 } && test -s conftest.$ac_objext; then
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's
/^
/|
/' conftest.$ac_ext >&5
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_c_werror_flag=$ac_save_c_werror_flag
3877 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3878 $as_echo "$ac_cv_prog_cc_g" >&6; }
3879 if test "$ac_test_CFLAGS" = set; then
3880 CFLAGS=$ac_save_CFLAGS
3881 elif test $ac_cv_prog_cc_g = yes; then
3882 if test "$GCC" = yes; then
3888 if test "$GCC" = yes; then
3894 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3895 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3896 if test "${ac_cv_prog_cc_c89+set}" = set; then
3897 $as_echo_n "(cached) " >&6
3899 ac_cv_prog_cc_c89=no
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3909 #include <sys/types.h>
3910 #include <sys/stat.h>
3911 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3912 struct buf
{ int x
; };
3913 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3914 static char
*e
(p
, i
)
3920 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3925 s
= g
(p
, va_arg
(v
,int
));
3930 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3931 function prototypes and stuff
, but not
'\xHH' hex character constants.
3932 These don
't provoke an error unfortunately, instead are silently treated
3933 as 'x
'. The following induces an error, until -std is added to get
3934 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3935 array size at least. It's necessary to
write '\x00'==0 to get something
3936 that
's true only with -std. */
3937 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3939 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3940 inside strings and character constants. */
3942 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3944 int test (int i, double x);
3945 struct s1 {int (*f) (int a);};
3946 struct s2 {int (*f) (double a);};
3947 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3953 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3958 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3959 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3961 CC="$ac_save_CC $ac_arg"
3962 rm -f conftest.$ac_objext
3963 if { (ac_try="$ac_compile"
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3969 $as_echo "$ac_try_echo") >&5
3970 (eval "$ac_compile") 2>conftest.er1
3972 grep -v '^
*+' conftest.er1 >conftest.err
3974 cat conftest.err >&5
3975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && {
3977 test -z "$ac_c_werror_flag" ||
3978 test ! -s conftest.err
3979 } && test -s conftest.$ac_objext; then
3980 ac_cv_prog_cc_c89=$ac_arg
3982 $as_echo "$as_me: failed program was:" >&5
3983 sed 's
/^
/|
/' conftest.$ac_ext >&5
3988 rm -f core conftest.err conftest.$ac_objext
3989 test "x$ac_cv_prog_cc_c89" != "xno" && break
3991 rm -f conftest.$ac_ext
3996 case "x$ac_cv_prog_cc_c89" in
3998 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3999 $as_echo "none needed" >&6; } ;;
4001 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4002 $as_echo "unsupported" >&6; } ;;
4004 CC="$CC $ac_cv_prog_cc_c89"
4005 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4006 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4013 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015 DEPDIR="${am__leading_dot}deps"
4017 ac_config_commands="$ac_config_commands depfiles"
4020 am_make=${MAKE-make}
4021 cat > confinc << 'END
'
4023 @echo this is the am__doit target
4026 # If we don't
find an include directive
, just comment out the code.
4027 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4028 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4032 # First try GNU make style include.
4033 echo "include confinc" > confmf
4034 # Ignore all kinds of additional output from `make'.
4035 case `$am_make -s -f confmf 2> /dev/null` in #(
4036 *the\ am__doit\ target
*)
4042 # Now try BSD make style include.
4043 if test "$am__include" = "#"; then
4044 echo '.include "confinc"' > confmf
4045 case `$am_make -s -f confmf 2> /dev/null` in #(
4046 *the\ am__doit\ target
*)
4047 am__include
=.include
4055 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4056 $as_echo "$_am_result" >&6; }
4057 rm -f confinc confmf
4059 # Check whether --enable-dependency-tracking was given.
4060 if test "${enable_dependency_tracking+set}" = set; then
4061 enableval
=$enable_dependency_tracking;
4064 if test "x$enable_dependency_tracking" != xno
; then
4065 am_depcomp
="$ac_aux_dir/depcomp"
4068 if test "x$enable_dependency_tracking" != xno; then
4078 depcc
="$CC" am_compiler_list
=
4080 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4081 $as_echo_n "checking dependency style of $depcc... " >&6; }
4082 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4083 $as_echo_n "(cached) " >&6
4085 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4086 # We make a subdir and do the tests there. Otherwise we can end up
4087 # making bogus files that we don't know about and never remove. For
4088 # instance it was reported that on HP-UX the gcc test will end up
4089 # making a dummy file named `D' -- because `-MD' means `put the output
4092 # Copy depcomp to subdir because otherwise we won't find it if we're
4093 # using a relative directory.
4094 cp "$am_depcomp" conftest.dir
4096 # We will build objects and dependencies in a subdirectory because
4097 # it helps to detect inapplicable dependency modes. For instance
4098 # both Tru64's cc and ICC support -MD to output dependencies as a
4099 # side effect of compilation, but ICC will put the dependencies in
4100 # the current directory while Tru64 will put them in the object
4104 am_cv_CC_dependencies_compiler_type
=none
4105 if test "$am_compiler_list" = ""; then
4106 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4109 case " $depcc " in #(
4110 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4113 for depmode
in $am_compiler_list; do
4114 # Setup a source with many dependencies, because some compilers
4115 # like to wrap large dependency lists on column 80 (with \), and
4116 # we should not choose a depcomp mode which is confused by this.
4118 # We need to recreate these files for each test, as the compiler may
4119 # overwrite some of them when testing with obscure command lines.
4120 # This happens at least with the AIX C compiler.
4122 for i
in 1 2 3 4 5 6; do
4123 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4124 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4125 # Solaris 8's {/usr,}/bin/sh.
4126 touch sub
/conftst
$i.h
4128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4130 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4131 # mode. It turns out that the SunPro C++ compiler does not properly
4132 # handle `-M -o', and we need to detect this. Also, some Intel
4133 # versions had trouble with output in subdirs
4134 am__obj
=sub
/conftest.
${OBJEXT-o}
4135 am__minus_obj
="-o $am__obj"
4138 # This depmode causes a compiler race in universal mode.
4139 test "$am__universal" = false ||
continue
4142 # after this tag, mechanisms are not by side-effect, so they'll
4143 # only be used when explicitly requested
4144 if test "x$enable_dependency_tracking" = xyes
; then
4150 msvisualcpp | msvcmsys
)
4151 # This compiler won't grok `-c -o', but also, the minuso test has
4152 # not run yet. These depmodes are late enough in the game, and
4153 # so weak that their functioning should not be impacted.
4154 am__obj
=conftest.
${OBJEXT-o}
4159 if depmode
=$depmode \
4160 source=sub
/conftest.c object
=$am__obj \
4161 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4162 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4163 >/dev
/null
2>conftest.err
&&
4164 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4165 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4166 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4167 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4168 # icc doesn't choke on unknown options, it will just issue warnings
4169 # or remarks (even with -Werror). So we grep stderr for any message
4170 # that says an option was ignored or not supported.
4171 # When given -MP, icc 7.0 and 7.1 complain thusly:
4172 # icc: Command line warning: ignoring option '-M'; no argument required
4173 # The diagnosis changed in icc 8.0:
4174 # icc: Command line remark: option '-MP' not supported
4175 if (grep 'ignoring option' conftest.err ||
4176 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4177 am_cv_CC_dependencies_compiler_type
=$depmode
4186 am_cv_CC_dependencies_compiler_type
=none
4190 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4191 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4192 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4195 test "x$enable_dependency_tracking" != xno \
4196 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4198 am__fastdepCC_FALSE
='#'
4200 am__fastdepCC_TRUE
='#'
4201 am__fastdepCC_FALSE
=
4207 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4208 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4213 macro_version
='2.2.6b'
4214 macro_revision
='1.3017'
4228 ltmain
="$ac_aux_dir/ltmain.sh"
4230 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4231 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4232 if test "${ac_cv_path_SED+set}" = set; then
4233 $as_echo_n "(cached) " >&6
4235 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4236 for ac_i
in 1 2 3 4 5 6 7; do
4237 ac_script
="$ac_script$as_nl$ac_script"
4239 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4240 $as_unset ac_script || ac_script
=
4241 if test -z "$SED"; then
4242 ac_path_SED_found
=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir
=.
4249 for ac_prog
in sed gsed
; do
4250 for ac_exec_ext
in '' $ac_executable_extensions; do
4251 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4252 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4253 # Check for GNU ac_path_SED and select it if it is found.
4254 # Check for GNU $ac_path_SED
4255 case `"$ac_path_SED" --version 2>&1` in
4257 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4260 $as_echo_n 0123456789 >"conftest.in"
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 $as_echo '' >> "conftest.nl"
4267 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4268 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4269 ac_count
=`expr $ac_count + 1`
4270 if test $ac_count -gt ${ac_path_SED_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_SED
="$ac_path_SED"
4273 ac_path_SED_max
=$ac_count
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4278 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4281 $ac_path_SED_found && break 3
4286 if test -z "$ac_cv_path_SED"; then
4287 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4288 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4289 { (exit 1); exit 1; }; }
4296 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4297 $as_echo "$ac_cv_path_SED" >&6; }
4298 SED
="$ac_cv_path_SED"
4301 test -z "$SED" && SED
=sed
4302 Xsed
="$SED -e 1s/^X//"
4314 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4315 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4316 if test "${ac_cv_path_GREP+set}" = set; then
4317 $as_echo_n "(cached) " >&6
4319 if test -z "$GREP"; then
4320 ac_path_GREP_found
=false
4321 # Loop through the user's path and test for each of PROGNAME-LIST
4322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4323 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4326 test -z "$as_dir" && as_dir
=.
4327 for ac_prog
in grep ggrep
; do
4328 for ac_exec_ext
in '' $ac_executable_extensions; do
4329 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4330 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4331 # Check for GNU ac_path_GREP and select it if it is found.
4332 # Check for GNU $ac_path_GREP
4333 case `"$ac_path_GREP" --version 2>&1` in
4335 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4338 $as_echo_n 0123456789 >"conftest.in"
4341 cat "conftest.in" "conftest.in" >"conftest.tmp"
4342 mv "conftest.tmp" "conftest.in"
4343 cp "conftest.in" "conftest.nl"
4344 $as_echo 'GREP' >> "conftest.nl"
4345 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4346 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4347 ac_count
=`expr $ac_count + 1`
4348 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4349 # Best one so far, save it but keep looking for a better one
4350 ac_cv_path_GREP
="$ac_path_GREP"
4351 ac_path_GREP_max
=$ac_count
4353 # 10*(2^10) chars as input seems more than enough
4354 test $ac_count -gt 10 && break
4356 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4359 $ac_path_GREP_found && break 3
4364 if test -z "$ac_cv_path_GREP"; then
4365 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4366 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4367 { (exit 1); exit 1; }; }
4370 ac_cv_path_GREP
=$GREP
4374 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4375 $as_echo "$ac_cv_path_GREP" >&6; }
4376 GREP
="$ac_cv_path_GREP"
4379 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4380 $as_echo_n "checking for egrep... " >&6; }
4381 if test "${ac_cv_path_EGREP+set}" = set; then
4382 $as_echo_n "(cached) " >&6
4384 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4385 then ac_cv_path_EGREP
="$GREP -E"
4387 if test -z "$EGREP"; then
4388 ac_path_EGREP_found
=false
4389 # Loop through the user's path and test for each of PROGNAME-LIST
4390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4391 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4394 test -z "$as_dir" && as_dir
=.
4395 for ac_prog
in egrep; do
4396 for ac_exec_ext
in '' $ac_executable_extensions; do
4397 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4398 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4399 # Check for GNU ac_path_EGREP and select it if it is found.
4400 # Check for GNU $ac_path_EGREP
4401 case `"$ac_path_EGREP" --version 2>&1` in
4403 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4406 $as_echo_n 0123456789 >"conftest.in"
4409 cat "conftest.in" "conftest.in" >"conftest.tmp"
4410 mv "conftest.tmp" "conftest.in"
4411 cp "conftest.in" "conftest.nl"
4412 $as_echo 'EGREP' >> "conftest.nl"
4413 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4414 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4415 ac_count
=`expr $ac_count + 1`
4416 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4417 # Best one so far, save it but keep looking for a better one
4418 ac_cv_path_EGREP
="$ac_path_EGREP"
4419 ac_path_EGREP_max
=$ac_count
4421 # 10*(2^10) chars as input seems more than enough
4422 test $ac_count -gt 10 && break
4424 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4427 $ac_path_EGREP_found && break 3
4432 if test -z "$ac_cv_path_EGREP"; then
4433 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4434 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4435 { (exit 1); exit 1; }; }
4438 ac_cv_path_EGREP
=$EGREP
4443 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4444 $as_echo "$ac_cv_path_EGREP" >&6; }
4445 EGREP
="$ac_cv_path_EGREP"
4448 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4449 $as_echo_n "checking for fgrep... " >&6; }
4450 if test "${ac_cv_path_FGREP+set}" = set; then
4451 $as_echo_n "(cached) " >&6
4453 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4454 then ac_cv_path_FGREP
="$GREP -F"
4456 if test -z "$FGREP"; then
4457 ac_path_FGREP_found
=false
4458 # Loop through the user's path and test for each of PROGNAME-LIST
4459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4460 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4463 test -z "$as_dir" && as_dir
=.
4464 for ac_prog
in fgrep
; do
4465 for ac_exec_ext
in '' $ac_executable_extensions; do
4466 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4467 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4468 # Check for GNU ac_path_FGREP and select it if it is found.
4469 # Check for GNU $ac_path_FGREP
4470 case `"$ac_path_FGREP" --version 2>&1` in
4472 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4475 $as_echo_n 0123456789 >"conftest.in"
4478 cat "conftest.in" "conftest.in" >"conftest.tmp"
4479 mv "conftest.tmp" "conftest.in"
4480 cp "conftest.in" "conftest.nl"
4481 $as_echo 'FGREP' >> "conftest.nl"
4482 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4483 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4484 ac_count
=`expr $ac_count + 1`
4485 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4486 # Best one so far, save it but keep looking for a better one
4487 ac_cv_path_FGREP
="$ac_path_FGREP"
4488 ac_path_FGREP_max
=$ac_count
4490 # 10*(2^10) chars as input seems more than enough
4491 test $ac_count -gt 10 && break
4493 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4496 $ac_path_FGREP_found && break 3
4501 if test -z "$ac_cv_path_FGREP"; then
4502 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4503 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4504 { (exit 1); exit 1; }; }
4507 ac_cv_path_FGREP
=$FGREP
4512 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4513 $as_echo "$ac_cv_path_FGREP" >&6; }
4514 FGREP
="$ac_cv_path_FGREP"
4517 test -z "$GREP" && GREP
=grep
4537 # Check whether --with-gnu-ld was given.
4538 if test "${with_gnu_ld+set}" = set; then
4539 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4545 if test "$GCC" = yes; then
4546 # Check if gcc -print-prog-name=ld gives a path.
4547 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4548 $as_echo_n "checking for ld used by $CC... " >&6; }
4551 # gcc leaves a trailing carriage return which upsets mingw
4552 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4554 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4557 # Accept absolute paths.
4559 re_direlt
='/[^/][^/]*/\.\./'
4560 # Canonicalize the pathname of ld
4561 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4562 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4563 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4565 test -z "$LD" && LD
="$ac_prog"
4568 # If it fails, then pretend we aren't using GCC.
4572 # If it is relative, then search for the first ld in PATH.
4576 elif test "$with_gnu_ld" = yes; then
4577 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4578 $as_echo_n "checking for GNU ld... " >&6; }
4580 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4581 $as_echo_n "checking for non-GNU ld... " >&6; }
4583 if test "${lt_cv_path_LD+set}" = set; then
4584 $as_echo_n "(cached) " >&6
4586 if test -z "$LD"; then
4587 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4588 for ac_dir
in $PATH; do
4590 test -z "$ac_dir" && ac_dir
=.
4591 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4592 lt_cv_path_LD
="$ac_dir/$ac_prog"
4593 # Check to see if the program is GNU ld. I'd rather use --version,
4594 # but apparently some variants of GNU ld only accept -v.
4595 # Break only if it was the GNU/non-GNU ld that we prefer.
4596 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4597 *GNU
* |
*'with BFD'*)
4598 test "$with_gnu_ld" != no
&& break
4601 test "$with_gnu_ld" != yes && break
4608 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4613 if test -n "$LD"; then
4614 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4615 $as_echo "$LD" >&6; }
4617 { $as_echo "$as_me:$LINENO: result: no" >&5
4618 $as_echo "no" >&6; }
4620 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4621 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4622 { (exit 1); exit 1; }; }
4623 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4624 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4625 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4626 $as_echo_n "(cached) " >&6
4628 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4629 case `$LD -v 2>&1 </dev/null` in
4630 *GNU
* |
*'with BFD'*)
4631 lt_cv_prog_gnu_ld
=yes
4634 lt_cv_prog_gnu_ld
=no
4638 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4639 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4640 with_gnu_ld
=$lt_cv_prog_gnu_ld
4650 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4651 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4652 if test "${lt_cv_path_NM+set}" = set; then
4653 $as_echo_n "(cached) " >&6
4655 if test -n "$NM"; then
4656 # Let the user override the test.
4659 lt_nm_to_check
="${ac_tool_prefix}nm"
4660 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4661 lt_nm_to_check
="$lt_nm_to_check nm"
4663 for lt_tmp_nm
in $lt_nm_to_check; do
4664 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4665 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4667 test -z "$ac_dir" && ac_dir
=.
4668 tmp_nm
="$ac_dir/$lt_tmp_nm"
4669 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4670 # Check to see if the nm accepts a BSD-compat flag.
4671 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4672 # nm: unknown option "B" ignored
4673 # Tru64's nm complains that /dev/null is an invalid object file
4674 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4675 */dev
/null
* |
*'Invalid file or object type'*)
4676 lt_cv_path_NM
="$tmp_nm -B"
4680 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4682 lt_cv_path_NM
="$tmp_nm -p"
4686 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4687 continue # so that we can try to find one that supports BSD flags
4696 : ${lt_cv_path_NM=no}
4699 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4700 $as_echo "$lt_cv_path_NM" >&6; }
4701 if test "$lt_cv_path_NM" != "no"; then
4704 # Didn't find any BSD compatible name lister, look for dumpbin.
4705 if test -n "$ac_tool_prefix"; then
4706 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4709 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4713 $as_echo_n "(cached) " >&6
4715 if test -n "$DUMPBIN"; then
4716 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4722 test -z "$as_dir" && as_dir
=.
4723 for ac_exec_ext
in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 DUMPBIN
=$ac_cv_prog_DUMPBIN
4736 if test -n "$DUMPBIN"; then
4737 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4738 $as_echo "$DUMPBIN" >&6; }
4740 { $as_echo "$as_me:$LINENO: result: no" >&5
4741 $as_echo "no" >&6; }
4745 test -n "$DUMPBIN" && break
4748 if test -z "$DUMPBIN"; then
4749 ac_ct_DUMPBIN
=$DUMPBIN
4750 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4752 # Extract the first word of "$ac_prog", so it can be a program name with args.
4753 set dummy
$ac_prog; ac_word
=$2
4754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4757 $as_echo_n "(cached) " >&6
4759 if test -n "$ac_ct_DUMPBIN"; then
4760 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir
=.
4767 for ac_exec_ext
in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4780 if test -n "$ac_ct_DUMPBIN"; then
4781 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4782 $as_echo "$ac_ct_DUMPBIN" >&6; }
4784 { $as_echo "$as_me:$LINENO: result: no" >&5
4785 $as_echo "no" >&6; }
4789 test -n "$ac_ct_DUMPBIN" && break
4792 if test "x$ac_ct_DUMPBIN" = x
; then
4795 case $cross_compiling:$ac_tool_warned in
4797 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799 ac_tool_warned
=yes ;;
4801 DUMPBIN
=$ac_ct_DUMPBIN
4806 if test "$DUMPBIN" != ":"; then
4810 test -z "$NM" && NM
=nm
4817 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4818 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4819 if test "${lt_cv_nm_interface+set}" = set; then
4820 $as_echo_n "(cached) " >&6
4822 lt_cv_nm_interface
="BSD nm"
4823 echo "int some_variable = 0;" > conftest.
$ac_ext
4824 (eval echo "\"\$as_me:4824: $ac_compile\"" >&5)
4825 (eval "$ac_compile" 2>conftest.err
)
4826 cat conftest.err
>&5
4827 (eval echo "\"\$as_me:4827: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4828 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4829 cat conftest.err
>&5
4830 (eval echo "\"\$as_me:4830: output\"" >&5)
4831 cat conftest.out
>&5
4832 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4833 lt_cv_nm_interface
="MS dumpbin"
4837 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4838 $as_echo "$lt_cv_nm_interface" >&6; }
4840 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4841 $as_echo_n "checking whether ln -s works... " >&6; }
4843 if test "$LN_S" = "ln -s"; then
4844 { $as_echo "$as_me:$LINENO: result: yes" >&5
4845 $as_echo "yes" >&6; }
4847 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4848 $as_echo "no, using $LN_S" >&6; }
4851 # find the maximum length of command line arguments
4852 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4853 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4854 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4855 $as_echo_n "(cached) " >&6
4862 # On DJGPP, this test can blow up pretty badly due to problems in libc
4863 # (any single argument exceeding 2000 bytes causes a buffer overrun
4864 # during glob expansion). Even if it were fixed, the result of this
4865 # check would be larger than it should be.
4866 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4870 # Under GNU Hurd, this test is not required because there is
4871 # no limit to the length of command line arguments.
4872 # Libtool will interpret -1 as no limit whatsoever
4873 lt_cv_sys_max_cmd_len
=-1;
4876 cygwin
* | mingw
* | cegcc
*)
4877 # On Win9x/ME, this test blows up -- it succeeds, but takes
4878 # about 5 minutes as the teststring grows exponentially.
4879 # Worse, since 9x/ME are not pre-emptively multitasking,
4880 # you end up with a "frozen" computer, even though with patience
4881 # the test eventually succeeds (with a max line length of 256k).
4882 # Instead, let's just punt: use the minimum linelength reported by
4883 # all of the supported platforms: 8192 (on NT/2K/XP).
4884 lt_cv_sys_max_cmd_len
=8192;
4888 # On AmigaOS with pdksh, this test takes hours, literally.
4889 # So we just punt and use a minimum line length of 8192.
4890 lt_cv_sys_max_cmd_len
=8192;
4893 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4894 # This has been around since 386BSD, at least. Likely further.
4895 if test -x /sbin
/sysctl
; then
4896 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4897 elif test -x /usr
/sbin
/sysctl
; then
4898 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4900 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4902 # And add a safety zone
4903 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4904 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4908 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4909 lt_cv_sys_max_cmd_len
=196608
4913 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4914 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4915 # nice to cause kernel panics so lets avoid the loop below.
4916 # First set a reasonable default.
4917 lt_cv_sys_max_cmd_len
=16384
4919 if test -x /sbin
/sysconfig
; then
4920 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4921 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4926 lt_cv_sys_max_cmd_len
=102400
4928 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4929 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4930 if test -n "$kargmax"; then
4931 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4933 lt_cv_sys_max_cmd_len
=32768
4937 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4938 if test -n "$lt_cv_sys_max_cmd_len"; then
4939 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4940 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4942 # Make teststring a little bigger before we do anything with it.
4943 # a 1K string should be a reasonable start.
4944 for i
in 1 2 3 4 5 6 7 8 ; do
4945 teststring
=$teststring$teststring
4947 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4948 # If test is not a shell built-in, we'll probably end up computing a
4949 # maximum length that is only half of the actual maximum length, but
4951 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4952 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4953 test $i != 17 # 1/2 MB should be enough
4956 teststring
=$teststring$teststring
4958 # Only check the string length outside the loop.
4959 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4961 # Add a significant safety factor because C++ compilers can tack on
4962 # massive amounts of additional arguments before passing them to the
4963 # linker. It appears as though 1/2 is a usable value.
4964 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4971 if test -n $lt_cv_sys_max_cmd_len ; then
4972 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4973 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4975 { $as_echo "$as_me:$LINENO: result: none" >&5
4976 $as_echo "none" >&6; }
4978 max_cmd_len
=$lt_cv_sys_max_cmd_len
4989 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4990 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4991 # Try some XSI features
4994 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4996 && eval 'test $(( 1 + 1 )) -eq 2 \
4997 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4999 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
5000 $as_echo "$xsi_shell" >&6; }
5003 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
5004 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5006 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5008 && lt_shell_append=yes
5009 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
5010 $as_echo "$lt_shell_append" >&6; }
5013 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5023 # test EBCDIC or ASCII
5024 case `echo X|tr X '\101'` in
5025 A) # ASCII based system
5026 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5027 lt_SP2NL='tr \040 \012'
5028 lt_NL2SP='tr \015\012 \040\040'
5030 *) # EBCDIC based system
5031 lt_SP2NL='tr \100 \n'
5032 lt_NL2SP='tr \r\n \100\100'
5044 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
5045 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5046 if test "${lt_cv_ld_reload_flag+set}" = set; then
5047 $as_echo_n "(cached
) " >&6
5049 lt_cv_ld_reload_flag='-r'
5051 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
5052 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5053 reload_flag=$lt_cv_ld_reload_flag
5054 case $reload_flag in
5056 *) reload_flag=" $reload_flag" ;;
5058 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5061 if test "$GCC" = yes; then
5062 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5077 if test -n "$ac_tool_prefix"; then
5078 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5079 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5080 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5081 $as_echo_n "checking
for $ac_word...
" >&6; }
5082 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5083 $as_echo_n "(cached
) " >&6
5085 if test -n "$OBJDUMP"; then
5086 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5096 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5105 OBJDUMP=$ac_cv_prog_OBJDUMP
5106 if test -n "$OBJDUMP"; then
5107 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5108 $as_echo "$OBJDUMP" >&6; }
5110 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5111 $as_echo "no
" >&6; }
5116 if test -z "$ac_cv_prog_OBJDUMP"; then
5117 ac_ct_OBJDUMP=$OBJDUMP
5118 # Extract the first word of "objdump
", so it can be a program name with args.
5119 set dummy objdump; ac_word=$2
5120 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5121 $as_echo_n "checking
for $ac_word...
" >&6; }
5122 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5123 $as_echo_n "(cached
) " >&6
5125 if test -n "$ac_ct_OBJDUMP"; then
5126 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5136 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5145 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5146 if test -n "$ac_ct_OBJDUMP"; then
5147 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5148 $as_echo "$ac_ct_OBJDUMP" >&6; }
5150 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5151 $as_echo "no
" >&6; }
5154 if test "x
$ac_ct_OBJDUMP" = x; then
5157 case $cross_compiling:$ac_tool_warned in
5159 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5160 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5161 ac_tool_warned=yes ;;
5163 OBJDUMP=$ac_ct_OBJDUMP
5166 OBJDUMP="$ac_cv_prog_OBJDUMP"
5169 test -z "$OBJDUMP" && OBJDUMP=objdump
5179 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5180 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5181 if test "${lt_cv_deplibs_check_method+set}" = set; then
5182 $as_echo_n "(cached
) " >&6
5184 lt_cv_file_magic_cmd='$MAGIC_CMD'
5185 lt_cv_file_magic_test_file=
5186 lt_cv_deplibs_check_method='unknown'
5187 # Need to set the preceding variable on all platforms that support
5188 # interlibrary dependencies.
5189 # 'none' -- dependencies not supported.
5190 # `unknown' -- same as none, but documents that we really don't know.
5191 # 'pass_all' -- all dependencies passed with no checks.
5192 # 'test_compile' -- check by making test program.
5193 # 'file_magic [[regex]]' -- check by looking for files in library path
5194 # which responds to the $file_magic_cmd with a given extended regex.
5195 # If you have `file' or equivalent on your system and you're not sure
5196 # whether `pass_all' will *always* work, you probably want this one.
5200 lt_cv_deplibs_check_method=pass_all
5204 lt_cv_deplibs_check_method=pass_all
5208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5209 lt_cv_file_magic_cmd='/usr/bin/file -L'
5210 lt_cv_file_magic_test_file=/shlib/libc.so
5214 # func_win32_libid is a shell function defined in ltmain.sh
5215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5216 lt_cv_file_magic_cmd='func_win32_libid'
5220 # Base MSYS/MinGW do not provide the 'file' command needed by
5221 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5222 # unless we find 'file', for example because we are cross-compiling.
5223 if ( file / ) >/dev/null 2>&1; then
5224 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5225 lt_cv_file_magic_cmd='func_win32_libid'
5227 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5228 lt_cv_file_magic_cmd='$OBJDUMP -f'
5233 # use the weaker test based on 'objdump'. See mingw*.
5234 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5235 lt_cv_file_magic_cmd='$OBJDUMP -f'
5238 darwin* | rhapsody*)
5239 lt_cv_deplibs_check_method=pass_all
5242 freebsd* | dragonfly*)
5243 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5246 # Not sure whether the presence of OpenBSD here was a mistake.
5247 # Let's accept both of them until this is cleared up.
5248 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5249 lt_cv_file_magic_cmd=/usr/bin/file
5250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5254 lt_cv_deplibs_check_method=pass_all
5259 lt_cv_deplibs_check_method=pass_all
5262 hpux10.20* | hpux11*)
5263 lt_cv_file_magic_cmd=/usr/bin/file
5266 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5267 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5270 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]'
5271 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5274 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5275 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5281 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5285 irix5* | irix6* | nonstopux*)
5287 *-32|*"-32 ") libmagic=32-bit;;
5288 *-n32|*"-n32 ") libmagic=N32;;
5289 *-64|*"-64 ") libmagic=64-bit;;
5290 *) libmagic=never-match;;
5292 lt_cv_deplibs_check_method=pass_all
5295 # This must be Linux ELF.
5296 linux* | k*bsd*-gnu)
5297 lt_cv_deplibs_check_method=pass_all
5301 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5310 lt_cv_file_magic_cmd=/usr/bin/file
5311 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5315 lt_cv_deplibs_check_method=pass_all
5319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5326 osf3* | osf4* | osf5*)
5327 lt_cv_deplibs_check_method=pass_all
5331 lt_cv_deplibs_check_method=pass_all
5335 lt_cv_deplibs_check_method=pass_all
5338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5339 lt_cv_deplibs_check_method=pass_all
5343 case $host_vendor in
5345 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]'
5346 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5349 lt_cv_deplibs_check_method=pass_all
5352 lt_cv_file_magic_cmd='/bin/file'
5353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5356 lt_cv_file_magic_cmd='/bin/file'
5357 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5358 lt_cv_file_magic_test_file=/lib/libc.so
5361 lt_cv_deplibs_check_method=pass_all
5364 lt_cv_deplibs_check_method=pass_all
5370 lt_cv_deplibs_check_method=pass_all
5375 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5376 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5377 file_magic_cmd=$lt_cv_file_magic_cmd
5378 deplibs_check_method=$lt_cv_deplibs_check_method
5379 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5392 if test -n "$ac_tool_prefix"; then
5393 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5394 set dummy ${ac_tool_prefix}ar; ac_word=$2
5395 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5396 $as_echo_n "checking
for $ac_word...
" >&6; }
5397 if test "${ac_cv_prog_AR+set}" = set; then
5398 $as_echo_n "(cached
) " >&6
5400 if test -n "$AR"; then
5401 ac_cv_prog_AR="$AR" # Let the user override the test.
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_prog_AR="${ac_tool_prefix}ar"
5411 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5421 if test -n "$AR"; then
5422 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5423 $as_echo "$AR" >&6; }
5425 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5426 $as_echo "no
" >&6; }
5431 if test -z "$ac_cv_prog_AR"; then
5433 # Extract the first word of "ar", so it can be a program name with args.
5434 set dummy ar; ac_word=$2
5435 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5436 $as_echo_n "checking
for $ac_word...
" >&6; }
5437 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5438 $as_echo_n "(cached
) " >&6
5440 if test -n "$ac_ct_AR"; then
5441 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_prog_ac_ct_AR="ar"
5451 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5460 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5461 if test -n "$ac_ct_AR"; then
5462 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5463 $as_echo "$ac_ct_AR" >&6; }
5465 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5466 $as_echo "no
" >&6; }
5469 if test "x
$ac_ct_AR" = x; then
5472 case $cross_compiling:$ac_tool_warned in
5474 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5475 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5476 ac_tool_warned=yes ;;
5484 test -z "$AR" && AR=ar
5485 test -z "$AR_FLAGS" && AR_FLAGS=cru
5497 if test -n "$ac_tool_prefix"; then
5498 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}strip; ac_word=$2
5500 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5501 $as_echo_n "checking
for $ac_word...
" >&6; }
5502 if test "${ac_cv_prog_STRIP+set}" = set; then
5503 $as_echo_n "(cached
) " >&6
5505 if test -n "$STRIP"; then
5506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5516 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5525 STRIP=$ac_cv_prog_STRIP
5526 if test -n "$STRIP"; then
5527 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5528 $as_echo "$STRIP" >&6; }
5530 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5531 $as_echo "no
" >&6; }
5536 if test -z "$ac_cv_prog_STRIP"; then
5538 # Extract the first word of "strip
", so it can be a program name with args.
5539 set dummy strip; ac_word=$2
5540 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5541 $as_echo_n "checking
for $ac_word...
" >&6; }
5542 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5543 $as_echo_n "(cached
) " >&6
5545 if test -n "$ac_ct_STRIP"; then
5546 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_prog_ac_ct_STRIP="strip
"
5556 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5565 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5566 if test -n "$ac_ct_STRIP"; then
5567 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5568 $as_echo "$ac_ct_STRIP" >&6; }
5570 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5571 $as_echo "no
" >&6; }
5574 if test "x
$ac_ct_STRIP" = x; then
5577 case $cross_compiling:$ac_tool_warned in
5579 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5580 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5581 ac_tool_warned=yes ;;
5586 STRIP="$ac_cv_prog_STRIP"
5589 test -z "$STRIP" && STRIP=:
5596 if test -n "$ac_tool_prefix"; then
5597 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5598 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5599 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5600 $as_echo_n "checking
for $ac_word...
" >&6; }
5601 if test "${ac_cv_prog_RANLIB+set}" = set; then
5602 $as_echo_n "(cached
) " >&6
5604 if test -n "$RANLIB"; then
5605 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5615 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5624 RANLIB=$ac_cv_prog_RANLIB
5625 if test -n "$RANLIB"; then
5626 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5627 $as_echo "$RANLIB" >&6; }
5629 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5630 $as_echo "no
" >&6; }
5635 if test -z "$ac_cv_prog_RANLIB"; then
5636 ac_ct_RANLIB=$RANLIB
5637 # Extract the first word of "ranlib
", so it can be a program name with args.
5638 set dummy ranlib; ac_word=$2
5639 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5640 $as_echo_n "checking
for $ac_word...
" >&6; }
5641 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5642 $as_echo_n "(cached
) " >&6
5644 if test -n "$ac_ct_RANLIB"; then
5645 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5655 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5664 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5665 if test -n "$ac_ct_RANLIB"; then
5666 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5667 $as_echo "$ac_ct_RANLIB" >&6; }
5669 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5670 $as_echo "no
" >&6; }
5673 if test "x
$ac_ct_RANLIB" = x; then
5676 case $cross_compiling:$ac_tool_warned in
5678 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5679 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5680 ac_tool_warned=yes ;;
5682 RANLIB=$ac_ct_RANLIB
5685 RANLIB="$ac_cv_prog_RANLIB"
5688 test -z "$RANLIB" && RANLIB=:
5695 # Determine commands to create old-style static archives.
5696 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5697 old_postinstall_cmds='chmod 644 $oldlib'
5698 old_postuninstall_cmds=
5700 if test -n "$RANLIB"; then
5703 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5706 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5709 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5745 # If no C compiler was specified, use CC.
5748 # If no C compiler flags were specified, use CFLAGS.
5749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5751 # Allow CC to be a program name with arguments.
5755 # Check for command to grab the raw symbol name followed by C symbol from nm.
5756 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5757 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5758 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5759 $as_echo_n "(cached
) " >&6
5762 # These are sane defaults that work on at least a few old systems.
5763 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5765 # Character class describing NM global symbol codes.
5766 symcode='[BCDEGRST]'
5768 # Regexp to match symbols that can be accessed directly from C.
5769 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5771 # Define system-specific variables.
5776 cygwin* | mingw* | pw32* | cegcc*)
5777 symcode='[ABCDGISTW]'
5780 if test "$host_cpu" = ia64; then
5781 symcode='[ABCDEGRST]'
5785 symcode='[BCDEGRST]'
5788 symcode='[BCDEGQRST]'
5799 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5807 # If we're using GNU nm, then use its standard symbol codes.
5808 case `$NM -V 2>&1` in
5809 *GNU* | *'with BFD'*)
5810 symcode='[ABCDGIRSTW]' ;;
5813 # Transform an extracted symbol line into a proper C declaration.
5814 # Some systems (esp. on ia64) link data and code symbols differently,
5815 # so use this general approach.
5816 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5818 # Transform an extracted symbol line into symbol name and symbol address
5819 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5820 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'"
5822 # Handle CRLF in mingw tool chain
5826 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5830 # Try without a prefix underscore, then with it.
5831 for ac_symprfx in "" "_
"; do
5833 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5834 symxfrm="\\1 $ac_symprfx\\2 \\2"
5836 # Write the raw and C identifiers.
5837 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5838 # Fake it for dumpbin and say T for any non-static function
5839 # and D for any global variable.
5840 # Also find C++ and __fastcall symbols from MSVC++,
5841 # which start with @ or ?.
5842 lt_cv_sys_global_symbol_pipe="$AWK '"\
5843 " {last_section=section; section=\$ 3};"\
5844 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5845 " \$ 0!~/External *\|/{next};"\
5846 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5847 " {if(hide[section]) next};"\
5848 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5849 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5850 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5851 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5852 " ' prfx
=^
$ac_symprfx"
5854 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5857 # Check to see that the pipe works correctly.
5861 cat > conftest.$ac_ext <<_LT_EOF
5866 void nm_test_func(void);
5867 void nm_test_func(void){}
5871 int main(){nm_test_var='a';nm_test_func();return(0);}
5874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875 (eval $ac_compile) 2>&5
5877 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5878 (exit $ac_status); }; then
5879 # Now try to grab the symbols.
5881 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5882 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5884 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5885 (exit $ac_status); } && test -s "$nlist"; then
5886 # Try sorting and uniquifying the output.
5887 if sort "$nlist" | uniq > "$nlist"T; then
5888 mv -f "$nlist"T "$nlist"
5893 # Make sure that we snagged all the symbols we need.
5894 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5895 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5896 cat <<_LT_EOF > conftest.$ac_ext
5902 # Now generate the symbol file.
5903 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5905 cat <<_LT_EOF >> conftest.$ac_ext
5907 /* The mapping between symbol names and symbols. */
5912 lt__PROGRAM__LTX_preloaded_symbols[] =
5914 { "@PROGRAM@
", (void *) 0 },
5916 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5917 cat <<\_LT_EOF >> conftest.$ac_ext
5921 /* This works around a problem in FreeBSD linker */
5922 #ifdef FREEBSD_WORKAROUND
5923 static const void *lt_preloaded_setup() {
5924 return lt__PROGRAM__LTX_preloaded_symbols;
5932 # Now try linking the two files.
5933 mv conftest.$ac_objext conftstm.$ac_objext
5934 lt_save_LIBS="$LIBS"
5935 lt_save_CFLAGS="$CFLAGS"
5936 LIBS="conftstm.
$ac_objext"
5937 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5939 (eval $ac_link) 2>&5
5941 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5942 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5945 LIBS="$lt_save_LIBS"
5946 CFLAGS="$lt_save_CFLAGS"
5948 echo "cannot
find nm_test_func
in $nlist" >&5
5951 echo "cannot
find nm_test_var
in $nlist" >&5
5954 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5957 echo "$progname: failed program was
:" >&5
5958 cat conftest.$ac_ext >&5
5960 rm -rf conftest* conftst*
5962 # Do not use the global_symbol_pipe unless it works.
5963 if test "$pipe_works" = yes; then
5966 lt_cv_sys_global_symbol_pipe=
5972 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5973 lt_cv_sys_global_symbol_to_cdecl=
5975 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5976 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
5977 $as_echo "failed
" >&6; }
5979 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
5980 $as_echo "ok
" >&6; }
6005 # Check whether --enable-libtool-lock was given.
6006 if test "${enable_libtool_lock+set}" = set; then
6007 enableval=$enable_libtool_lock;
6010 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6012 # Some flags need to be propagated to the compiler or linker for good
6016 # Find out which ABI we are using.
6017 echo 'int i;' > conftest.$ac_ext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>&5
6021 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6022 (exit $ac_status); }; then
6023 case `/usr/bin/file conftest.$ac_objext` in
6035 # Find out which ABI we are using.
6036 echo '#line 6036 "configure
"' > conftest.$ac_ext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038 (eval $ac_compile) 2>&5
6040 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6041 (exit $ac_status); }; then
6042 if test "$lt_cv_prog_gnu_ld" = yes; then
6043 case `/usr/bin/file conftest.$ac_objext` in
6045 LD="${LD-ld} -melf32bsmip"
6048 LD="${LD-ld} -melf32bmipn32"
6051 LD="${LD-ld} -melf64bmip"
6055 case `/usr/bin/file conftest.$ac_objext` in
6071 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6072 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6073 # Find out which ABI we are using.
6074 echo 'int i;' > conftest.$ac_ext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>&5
6078 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6079 (exit $ac_status); }; then
6080 case `/usr/bin/file conftest.o` in
6083 x86_64-*kfreebsd*-gnu)
6084 LD="${LD-ld} -m elf_i386_fbsd
"
6087 LD="${LD-ld} -m elf_i386
"
6089 ppc64-*linux*|powerpc64-*linux*)
6090 LD="${LD-ld} -m elf32ppclinux
"
6093 LD="${LD-ld} -m elf_s390
"
6096 LD="${LD-ld} -m elf32_sparc
"
6102 x86_64-*kfreebsd*-gnu)
6103 LD="${LD-ld} -m elf_x86_64_fbsd
"
6106 LD="${LD-ld} -m elf_x86_64
"
6108 ppc*-*linux*|powerpc*-*linux*)
6109 LD="${LD-ld} -m elf64ppc
"
6111 s390*-*linux*|s390*-*tpf*)
6112 LD="${LD-ld} -m elf64_s390
"
6115 LD="${LD-ld} -m elf64_sparc
"
6125 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6126 SAVE_CFLAGS="$CFLAGS"
6127 CFLAGS="$CFLAGS -belf"
6128 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6129 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6130 if test "${lt_cv_cc_needs_belf+set}" = set; then
6131 $as_echo_n "(cached
) " >&6
6134 ac_cpp='$CPP $CPPFLAGS'
6135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139 cat >conftest.$ac_ext <<_ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (ac_try="$ac_link"
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6160 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6161 $as_echo "$ac_try_echo") >&5
6162 (eval "$ac_link") 2>conftest.er1
6164 grep -v '^ *+' conftest.er1 >conftest.err
6166 cat conftest.err >&5
6167 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6168 (exit $ac_status); } && {
6169 test -z "$ac_c_werror_flag" ||
6170 test ! -s conftest.err
6171 } && test -s conftest$ac_exeext && {
6172 test "$cross_compiling" = yes ||
6173 $as_test_x conftest$ac_exeext
6175 lt_cv_cc_needs_belf=yes
6177 $as_echo "$as_me: failed program was
:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 lt_cv_cc_needs_belf=no
6183 rm -rf conftest.dSYM
6184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6185 conftest$ac_exeext conftest.$ac_ext
6187 ac_cpp='$CPP $CPPFLAGS'
6188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6194 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6195 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6196 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6197 CFLAGS="$SAVE_CFLAGS"
6201 # Find out which ABI we are using.
6202 echo 'int i;' > conftest.$ac_ext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>&5
6206 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6207 (exit $ac_status); }; then
6208 case `/usr/bin/file conftest.o` in
6210 case $lt_cv_prog_gnu_ld in
6211 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6213 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6225 need_locks="$enable_libtool_lock"
6229 rhapsody* | darwin*)
6230 if test -n "$ac_tool_prefix"; then
6231 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6232 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6233 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6234 $as_echo_n "checking
for $ac_word...
" >&6; }
6235 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6236 $as_echo_n "(cached
) " >&6
6238 if test -n "$DSYMUTIL"; then
6239 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6249 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6258 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6259 if test -n "$DSYMUTIL"; then
6260 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6261 $as_echo "$DSYMUTIL" >&6; }
6263 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6264 $as_echo "no
" >&6; }
6269 if test -z "$ac_cv_prog_DSYMUTIL"; then
6270 ac_ct_DSYMUTIL=$DSYMUTIL
6271 # Extract the first word of "dsymutil
", so it can be a program name with args.
6272 set dummy dsymutil; ac_word=$2
6273 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6274 $as_echo_n "checking
for $ac_word...
" >&6; }
6275 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6276 $as_echo_n "(cached
) " >&6
6278 if test -n "$ac_ct_DSYMUTIL"; then
6279 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6289 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6298 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6299 if test -n "$ac_ct_DSYMUTIL"; then
6300 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6301 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6303 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6304 $as_echo "no
" >&6; }
6307 if test "x
$ac_ct_DSYMUTIL" = x; then
6310 case $cross_compiling:$ac_tool_warned in
6312 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6313 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6314 ac_tool_warned=yes ;;
6316 DSYMUTIL=$ac_ct_DSYMUTIL
6319 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6322 if test -n "$ac_tool_prefix"; then
6323 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6324 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6325 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6326 $as_echo_n "checking
for $ac_word...
" >&6; }
6327 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6328 $as_echo_n "(cached
) " >&6
6330 if test -n "$NMEDIT"; then
6331 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6341 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6350 NMEDIT=$ac_cv_prog_NMEDIT
6351 if test -n "$NMEDIT"; then
6352 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6353 $as_echo "$NMEDIT" >&6; }
6355 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6356 $as_echo "no
" >&6; }
6361 if test -z "$ac_cv_prog_NMEDIT"; then
6362 ac_ct_NMEDIT=$NMEDIT
6363 # Extract the first word of "nmedit
", so it can be a program name with args.
6364 set dummy nmedit; ac_word=$2
6365 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6366 $as_echo_n "checking
for $ac_word...
" >&6; }
6367 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6368 $as_echo_n "(cached
) " >&6
6370 if test -n "$ac_ct_NMEDIT"; then
6371 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6381 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6390 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6391 if test -n "$ac_ct_NMEDIT"; then
6392 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6393 $as_echo "$ac_ct_NMEDIT" >&6; }
6395 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6396 $as_echo "no
" >&6; }
6399 if test "x
$ac_ct_NMEDIT" = x; then
6402 case $cross_compiling:$ac_tool_warned in
6404 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6405 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6406 ac_tool_warned=yes ;;
6408 NMEDIT=$ac_ct_NMEDIT
6411 NMEDIT="$ac_cv_prog_NMEDIT"
6414 if test -n "$ac_tool_prefix"; then
6415 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6417 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6418 $as_echo_n "checking
for $ac_word...
" >&6; }
6419 if test "${ac_cv_prog_LIPO+set}" = set; then
6420 $as_echo_n "(cached
) " >&6
6422 if test -n "$LIPO"; then
6423 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6433 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6442 LIPO=$ac_cv_prog_LIPO
6443 if test -n "$LIPO"; then
6444 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6445 $as_echo "$LIPO" >&6; }
6447 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6448 $as_echo "no
" >&6; }
6453 if test -z "$ac_cv_prog_LIPO"; then
6455 # Extract the first word of "lipo
", so it can be a program name with args.
6456 set dummy lipo; ac_word=$2
6457 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6458 $as_echo_n "checking
for $ac_word...
" >&6; }
6459 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6460 $as_echo_n "(cached
) " >&6
6462 if test -n "$ac_ct_LIPO"; then
6463 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_ac_ct_LIPO="lipo
"
6473 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6482 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6483 if test -n "$ac_ct_LIPO"; then
6484 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6485 $as_echo "$ac_ct_LIPO" >&6; }
6487 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6488 $as_echo "no
" >&6; }
6491 if test "x
$ac_ct_LIPO" = x; then
6494 case $cross_compiling:$ac_tool_warned in
6496 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6497 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6498 ac_tool_warned=yes ;;
6503 LIPO="$ac_cv_prog_LIPO"
6506 if test -n "$ac_tool_prefix"; then
6507 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}otool; ac_word=$2
6509 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6510 $as_echo_n "checking
for $ac_word...
" >&6; }
6511 if test "${ac_cv_prog_OTOOL+set}" = set; then
6512 $as_echo_n "(cached
) " >&6
6514 if test -n "$OTOOL"; then
6515 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6525 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6534 OTOOL=$ac_cv_prog_OTOOL
6535 if test -n "$OTOOL"; then
6536 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6537 $as_echo "$OTOOL" >&6; }
6539 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6540 $as_echo "no
" >&6; }
6545 if test -z "$ac_cv_prog_OTOOL"; then
6547 # Extract the first word of "otool
", so it can be a program name with args.
6548 set dummy otool; ac_word=$2
6549 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6550 $as_echo_n "checking
for $ac_word...
" >&6; }
6551 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6552 $as_echo_n "(cached
) " >&6
6554 if test -n "$ac_ct_OTOOL"; then
6555 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564 ac_cv_prog_ac_ct_OTOOL="otool
"
6565 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6574 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6575 if test -n "$ac_ct_OTOOL"; then
6576 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6577 $as_echo "$ac_ct_OTOOL" >&6; }
6579 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6580 $as_echo "no
" >&6; }
6583 if test "x
$ac_ct_OTOOL" = x; then
6586 case $cross_compiling:$ac_tool_warned in
6588 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6589 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6590 ac_tool_warned=yes ;;
6595 OTOOL="$ac_cv_prog_OTOOL"
6598 if test -n "$ac_tool_prefix"; then
6599 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6600 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6601 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6602 $as_echo_n "checking
for $ac_word...
" >&6; }
6603 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6604 $as_echo_n "(cached
) " >&6
6606 if test -n "$OTOOL64"; then
6607 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6617 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6626 OTOOL64=$ac_cv_prog_OTOOL64
6627 if test -n "$OTOOL64"; then
6628 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6629 $as_echo "$OTOOL64" >&6; }
6631 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6632 $as_echo "no
" >&6; }
6637 if test -z "$ac_cv_prog_OTOOL64"; then
6638 ac_ct_OTOOL64=$OTOOL64
6639 # Extract the first word of "otool64
", so it can be a program name with args.
6640 set dummy otool64; ac_word=$2
6641 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6642 $as_echo_n "checking
for $ac_word...
" >&6; }
6643 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6644 $as_echo_n "(cached
) " >&6
6646 if test -n "$ac_ct_OTOOL64"; then
6647 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6657 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6666 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6667 if test -n "$ac_ct_OTOOL64"; then
6668 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6669 $as_echo "$ac_ct_OTOOL64" >&6; }
6671 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6672 $as_echo "no
" >&6; }
6675 if test "x
$ac_ct_OTOOL64" = x; then
6678 case $cross_compiling:$ac_tool_warned in
6680 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6681 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6682 ac_tool_warned=yes ;;
6684 OTOOL64=$ac_ct_OTOOL64
6687 OTOOL64="$ac_cv_prog_OTOOL64"
6716 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6717 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6718 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6719 $as_echo_n "(cached
) " >&6
6721 lt_cv_apple_cc_single_mod=no
6722 if test -z "${LT_MULTI_MODULE}"; then
6723 # By default we will add the -single_module flag. You can override
6724 # by either setting the environment variable LT_MULTI_MODULE
6725 # non-empty at configure time, or by adding -multi_module to the
6727 rm -rf libconftest.dylib*
6728 echo "int foo
(void
){return 1;}" > conftest.c
6729 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6730 -dynamiclib -Wl,-single_module conftest.c
" >&5
6731 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6732 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6734 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6735 lt_cv_apple_cc_single_mod=yes
6737 cat conftest.err >&5
6739 rm -rf libconftest.dylib*
6743 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6744 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6745 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6746 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6747 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6748 $as_echo_n "(cached
) " >&6
6750 lt_cv_ld_exported_symbols_list=no
6751 save_LDFLAGS=$LDFLAGS
6752 echo "_main
" > conftest.sym
6753 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (ac_try="$ac_link"
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6775 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6776 $as_echo "$ac_try_echo") >&5
6777 (eval "$ac_link") 2>conftest.er1
6779 grep -v '^ *+' conftest.er1 >conftest.err
6781 cat conftest.err >&5
6782 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest$ac_exeext && {
6787 test "$cross_compiling" = yes ||
6788 $as_test_x conftest$ac_exeext
6790 lt_cv_ld_exported_symbols_list=yes
6792 $as_echo "$as_me: failed program was
:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6795 lt_cv_ld_exported_symbols_list=no
6798 rm -rf conftest.dSYM
6799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6800 conftest$ac_exeext conftest.$ac_ext
6801 LDFLAGS="$save_LDFLAGS"
6804 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6805 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6807 rhapsody* | darwin1.[012])
6808 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6810 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6811 darwin*) # darwin 5.x on
6812 # if running on 10.5 or later, the deployment target defaults
6813 # to the OS version, if on x86, and 10.4, the deployment
6814 # target defaults to 10.4. Don't you love it?
6815 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6816 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6817 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6819 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6821 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6825 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6826 _lt_dar_single_mod='$single_module'
6828 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6829 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6831 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6833 if test "$DSYMUTIL" != ":"; then
6834 _lt_dsymutil='~$DSYMUTIL $lib || :'
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6847 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6848 # On Suns, sometimes $CPP names a directory.
6849 if test -n "$CPP" && test -d "$CPP"; then
6852 if test -z "$CPP"; then
6853 if test "${ac_cv_prog_CPP+set}" = set; then
6854 $as_echo_n "(cached
) " >&6
6856 # Double quotes because CPP needs to be expanded
6857 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6860 for ac_c_preproc_warn_flag in '' yes
6862 # Use a header file that comes with gcc, so configuring glibc
6863 # with a fresh cross-compiler works.
6864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6865 # <limits.h> exists even on freestanding compilers.
6866 # On the NeXT, cc -E runs the code through the compiler's parser,
6867 # not just through cpp. "Syntax error
" is here to catch this case.
6868 cat >conftest.$ac_ext <<_ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6875 # include <limits.h>
6877 # include <assert.h>
6881 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884 *) ac_try_echo=$ac_try;;
6886 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6887 $as_echo "$ac_try_echo") >&5
6888 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6890 grep -v '^ *+' conftest.er1 >conftest.err
6892 cat conftest.err >&5
6893 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6894 (exit $ac_status); } >/dev/null && {
6895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6900 $as_echo "$as_me: failed program was
:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 # Broken: fails on valid input.
6907 rm -f conftest.err conftest.$ac_ext
6909 # OK, works on sane cases. Now check whether nonexistent headers
6910 # can be detected and how.
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <ac_nonexistent.h>
6919 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6924 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6925 $as_echo "$ac_try_echo") >&5
6926 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6928 grep -v '^ *+' conftest.er1 >conftest.err
6930 cat conftest.err >&5
6931 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6932 (exit $ac_status); } >/dev/null && {
6933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6934 test ! -s conftest.err
6936 # Broken: success on invalid input.
6939 $as_echo "$as_me: failed program was
:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 # Passes both tests.
6947 rm -f conftest.err conftest.$ac_ext
6950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6951 rm -f conftest.err conftest.$ac_ext
6952 if $ac_preproc_ok; then
6964 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
6965 $as_echo "$CPP" >&6; }
6967 for ac_c_preproc_warn_flag in '' yes
6969 # Use a header file that comes with gcc, so configuring glibc
6970 # with a fresh cross-compiler works.
6971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6972 # <limits.h> exists even on freestanding compilers.
6973 # On the NeXT, cc -E runs the code through the compiler's parser,
6974 # not just through cpp. "Syntax error
" is here to catch this case.
6975 cat >conftest.$ac_ext <<_ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6982 # include <limits.h>
6984 # include <assert.h>
6988 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6993 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6994 $as_echo "$ac_try_echo") >&5
6995 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6997 grep -v '^ *+' conftest.er1 >conftest.err
6999 cat conftest.err >&5
7000 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7001 (exit $ac_status); } >/dev/null && {
7002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7007 $as_echo "$as_me: failed program was
:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7010 # Broken: fails on valid input.
7014 rm -f conftest.err conftest.$ac_ext
7016 # OK, works on sane cases. Now check whether nonexistent headers
7017 # can be detected and how.
7018 cat >conftest.$ac_ext <<_ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 #include <ac_nonexistent.h>
7026 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7031 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7032 $as_echo "$ac_try_echo") >&5
7033 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7035 grep -v '^ *+' conftest.er1 >conftest.err
7037 cat conftest.err >&5
7038 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7039 (exit $ac_status); } >/dev/null && {
7040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7041 test ! -s conftest.err
7043 # Broken: success on invalid input.
7046 $as_echo "$as_me: failed program was
:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7049 # Passes both tests.
7054 rm -f conftest.err conftest.$ac_ext
7057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7058 rm -f conftest.err conftest.$ac_ext
7059 if $ac_preproc_ok; then
7062 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7064 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7065 See \`config.log' for more details.
" >&5
7066 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7067 See \
`config.log' for more details." >&2;}
7068 { (exit 1); exit 1; }; }; }
7072 ac_cpp='$CPP $CPPFLAGS'
7073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7078 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7079 $as_echo_n "checking for ANSI C header files... " >&6; }
7080 if test "${ac_cv_header_stdc+set}" = set; then
7081 $as_echo_n "(cached) " >&6
7083 cat >conftest.$ac_ext <<_ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7102 rm -f conftest.$ac_objext
7103 if { (ac_try="$ac_compile"
7105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7106 *) ac_try_echo
=$ac_try;;
7108 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7109 $as_echo "$ac_try_echo") >&5
7110 (eval "$ac_compile") 2>conftest.er1
7112 grep -v '^ *+' conftest.er1
>conftest.err
7114 cat conftest.err
>&5
7115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } && {
7117 test -z "$ac_c_werror_flag" ||
7118 test ! -s conftest.err
7119 } && test -s conftest.
$ac_objext; then
7120 ac_cv_header_stdc
=yes
7122 $as_echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.
$ac_ext >&5
7125 ac_cv_header_stdc
=no
7128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7130 if test $ac_cv_header_stdc = yes; then
7131 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7132 cat >conftest.
$ac_ext <<_ACEOF
7135 cat confdefs.h
>>conftest.
$ac_ext
7136 cat >>conftest.
$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7142 $EGREP "memchr" >/dev
/null
2>&1; then
7145 ac_cv_header_stdc
=no
7151 if test $ac_cv_header_stdc = yes; then
7152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7153 cat >conftest.
$ac_ext <<_ACEOF
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7163 $EGREP "free" >/dev
/null
2>&1; then
7166 ac_cv_header_stdc
=no
7172 if test $ac_cv_header_stdc = yes; then
7173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7174 if test "$cross_compiling" = yes; then
7177 cat >conftest.
$ac_ext <<_ACEOF
7180 cat confdefs.h
>>conftest.
$ac_ext
7181 cat >>conftest.
$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7185 #if ((' ' & 0x0FF) == 0x020)
7186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7189 # define ISLOWER(c) \
7190 (('a' <= (c) && (c) <= 'i') \
7191 || ('j' <= (c) && (c) <= 'r') \
7192 || ('s' <= (c) && (c) <= 'z'))
7193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7201 for (i = 0; i < 256; i++)
7202 if (XOR (islower (i), ISLOWER (i))
7203 || toupper (i) != TOUPPER (i))
7208 rm -f conftest
$ac_exeext
7209 if { (ac_try
="$ac_link"
7211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7212 *) ac_try_echo=$ac_try;;
7214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7215 $as_echo "$ac_try_echo") >&5
7216 (eval "$ac_link") 2>&5
7218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7220 { (case "(($ac_try" in
7221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7222 *) ac_try_echo
=$ac_try;;
7224 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7225 $as_echo "$ac_try_echo") >&5
7226 (eval "$ac_try") 2>&5
7228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7232 $as_echo "$as_me: program exited with status $ac_status" >&5
7233 $as_echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.
$ac_ext >&5
7237 ac_cv_header_stdc
=no
7239 rm -rf conftest.dSYM
7240 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7246 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7247 $as_echo "$ac_cv_header_stdc" >&6; }
7248 if test $ac_cv_header_stdc = yes; then
7250 cat >>confdefs.h
<<\_ACEOF
7251 #define STDC_HEADERS 1
7256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7266 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7267 inttypes.h stdint.h unistd.h
7269 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7270 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7271 $as_echo_n "checking for $ac_header... " >&6; }
7272 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7273 $as_echo_n "(cached) " >&6
7275 cat >conftest.
$ac_ext <<_ACEOF
7278 cat confdefs.h
>>conftest.
$ac_ext
7279 cat >>conftest.
$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 $ac_includes_default
7283 #include <$ac_header>
7285 rm -f conftest.
$ac_objext
7286 if { (ac_try
="$ac_compile"
7288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7292 $as_echo "$ac_try_echo") >&5
7293 (eval "$ac_compile") 2>conftest.er1
7295 grep -v '^ *+' conftest.er1 >conftest.err
7297 cat conftest.err >&5
7298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && {
7300 test -z "$ac_c_werror_flag" ||
7301 test ! -s conftest.err
7302 } && test -s conftest.$ac_objext; then
7303 eval "$as_ac_Header=yes"
7305 $as_echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 eval "$as_ac_Header=no"
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 ac_res=`eval 'as_val=${'$as_ac_Header'}
7314 $as_echo "$as_val"'`
7315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7316 $as_echo "$ac_res" >&6; }
7317 as_val=`eval 'as_val=${'$as_ac_Header'}
7318 $as_echo "$as_val"'`
7319 if test "x$as_val" = x""yes; then
7320 cat >>confdefs.h <<_ACEOF
7321 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7330 for ac_header in dlfcn.h
7332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7333 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7334 $as_echo_n "checking for $ac_header... " >&6; }
7335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7336 $as_echo_n "(cached) " >&6
7338 cat >conftest.$ac_ext <<_ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 $ac_includes_default
7346 #include <$ac_header>
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7352 *) ac_try_echo
=$ac_try;;
7354 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7355 $as_echo "$ac_try_echo") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7358 grep -v '^ *+' conftest.er1
>conftest.err
7360 cat conftest.err
>&5
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.
$ac_objext; then
7366 eval "$as_ac_Header=yes"
7368 $as_echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.
$ac_ext >&5
7371 eval "$as_ac_Header=no"
7374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7376 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7377 $as_echo "$as_val"'`
7378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7379 $as_echo "$ac_res" >&6; }
7380 as_val
=`eval 'as_val=${'$as_ac_Header'}
7381 $as_echo "$as_val"'`
7382 if test "x$as_val" = x
""yes; then
7383 cat >>confdefs.h
<<_ACEOF
7384 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7403 # Check whether --enable-shared was given.
7404 if test "${enable_shared+set}" = set; then
7405 enableval
=$enable_shared; p
=${PACKAGE-default}
7407 yes) enable_shared
=yes ;;
7408 no
) enable_shared
=no
;;
7411 # Look at the argument we got. We use all the common list separators.
7412 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7413 for pkg
in $enableval; do
7415 if test "X$pkg" = "X$p"; then
7434 # Check whether --enable-static was given.
7435 if test "${enable_static+set}" = set; then
7436 enableval
=$enable_static; p
=${PACKAGE-default}
7438 yes) enable_static
=yes ;;
7439 no
) enable_static
=no
;;
7442 # Look at the argument we got. We use all the common list separators.
7443 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7444 for pkg
in $enableval; do
7446 if test "X$pkg" = "X$p"; then
7466 # Check whether --with-pic was given.
7467 if test "${with_pic+set}" = set; then
7468 withval
=$with_pic; pic_mode
="$withval"
7474 test -z "$pic_mode" && pic_mode
=default
7482 # Check whether --enable-fast-install was given.
7483 if test "${enable_fast_install+set}" = set; then
7484 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7486 yes) enable_fast_install
=yes ;;
7487 no
) enable_fast_install
=no
;;
7489 enable_fast_install
=no
7490 # Look at the argument we got. We use all the common list separators.
7491 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7492 for pkg
in $enableval; do
7494 if test "X$pkg" = "X$p"; then
7495 enable_fast_install
=yes
7502 enable_fast_install
=yes
7515 # This can be used to rebuild libtool when needed
7516 LIBTOOL_DEPS
="$ltmain"
7518 # Always use our own libtool.
7519 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7545 test -z "$LN_S" && LN_S
="ln -s"
7560 if test -n "${ZSH_VERSION+set}" ; then
7561 setopt NO_GLOB_SUBST
7564 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7565 $as_echo_n "checking for objdir... " >&6; }
7566 if test "${lt_cv_objdir+set}" = set; then
7567 $as_echo_n "(cached) " >&6
7569 rm -f .libs
2>/dev
/null
7570 mkdir .libs
2>/dev
/null
7571 if test -d .libs
; then
7574 # MS-DOS does not allow filenames that begin with a dot.
7577 rmdir .libs
2>/dev
/null
7579 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7580 $as_echo "$lt_cv_objdir" >&6; }
7581 objdir
=$lt_cv_objdir
7587 cat >>confdefs.h
<<_ACEOF
7588 #define LT_OBJDIR "$lt_cv_objdir/"
7609 # AIX sometimes has problems with the GCC collect2 program. For some
7610 # reason, if we set the COLLECT_NAMES environment variable, the problems
7611 # vanish in a puff of smoke.
7612 if test "X${COLLECT_NAMES+set}" != Xset
; then
7614 export COLLECT_NAMES
7619 # Sed substitution that helps us do robust quoting. It backslashifies
7620 # metacharacters that are still active within double-quoted strings.
7621 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7623 # Same as above, but do not quote variable references.
7624 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7626 # Sed substitution to delay expansion of an escaped shell variable in a
7627 # double_quote_subst'ed string.
7628 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7630 # Sed substitution to delay expansion of an escaped single quote.
7631 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7633 # Sed substitution to avoid accidental globbing in evaled expressions
7634 no_glob_subst
='s/\*/\\\*/g'
7638 can_build_shared
=yes
7640 # All known linkers require a `.a' archive for static linking (except MSVC,
7641 # which needs '.lib').
7644 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7647 old_CFLAGS
="$CFLAGS"
7649 # Set sane defaults for various variables
7650 test -z "$CC" && CC
=cc
7651 test -z "$LTCC" && LTCC
=$CC
7652 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7653 test -z "$LD" && LD
=ld
7654 test -z "$ac_objext" && ac_objext
=o
7656 for cc_temp
in $compiler""; do
7658 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7659 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7664 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7667 # Only perform the check for file, if the check method requires it
7668 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7669 case $deplibs_check_method in
7671 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7672 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7673 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7674 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7675 $as_echo_n "(cached) " >&6
7679 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7682 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7683 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7684 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7685 for ac_dir
in $ac_dummy; do
7687 test -z "$ac_dir" && ac_dir
=.
7688 if test -f $ac_dir/${ac_tool_prefix}file; then
7689 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7690 if test -n "$file_magic_test_file"; then
7691 case $deplibs_check_method in
7693 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7694 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7695 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7696 $EGREP "$file_magic_regex" > /dev
/null
; then
7701 *** Warning: the command libtool uses to detect shared libraries,
7702 *** $file_magic_cmd, produces output that libtool cannot recognize.
7703 *** The result is that libtool may fail to recognize shared libraries
7704 *** as such. This will affect the creation of libtool libraries that
7705 *** depend on shared libraries, but programs linked with such libtool
7706 *** libraries will work regardless of this problem. Nevertheless, you
7707 *** may want to report the problem to your system manager and/or to
7708 *** bug-libtool@gnu.org
7718 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7723 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7724 if test -n "$MAGIC_CMD"; then
7725 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7726 $as_echo "$MAGIC_CMD" >&6; }
7728 { $as_echo "$as_me:$LINENO: result: no" >&5
7729 $as_echo "no" >&6; }
7736 if test -z "$lt_cv_path_MAGIC_CMD"; then
7737 if test -n "$ac_tool_prefix"; then
7738 { $as_echo "$as_me:$LINENO: checking for file" >&5
7739 $as_echo_n "checking for file... " >&6; }
7740 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7741 $as_echo_n "(cached) " >&6
7745 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7748 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7749 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7750 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7751 for ac_dir
in $ac_dummy; do
7753 test -z "$ac_dir" && ac_dir
=.
7754 if test -f $ac_dir/file; then
7755 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7756 if test -n "$file_magic_test_file"; then
7757 case $deplibs_check_method in
7759 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7760 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7761 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7762 $EGREP "$file_magic_regex" > /dev
/null
; then
7767 *** Warning: the command libtool uses to detect shared libraries,
7768 *** $file_magic_cmd, produces output that libtool cannot recognize.
7769 *** The result is that libtool may fail to recognize shared libraries
7770 *** as such. This will affect the creation of libtool libraries that
7771 *** depend on shared libraries, but programs linked with such libtool
7772 *** libraries will work regardless of this problem. Nevertheless, you
7773 *** may want to report the problem to your system manager and/or to
7774 *** bug-libtool@gnu.org
7784 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7789 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7790 if test -n "$MAGIC_CMD"; then
7791 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7792 $as_echo "$MAGIC_CMD" >&6; }
7794 { $as_echo "$as_me:$LINENO: result: no" >&5
7795 $as_echo "no" >&6; }
7808 # Use C for the default configuration in the libtool script
7812 ac_cpp
='$CPP $CPPFLAGS'
7813 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7814 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7815 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7818 # Source file extension for C test sources.
7821 # Object file extension for compiled C test sources.
7825 # Code to be used in simple compile tests
7826 lt_simple_compile_test_code
="int some_variable = 0;"
7828 # Code to be used in simple link tests
7829 lt_simple_link_test_code
='int main(){return(0);}'
7837 # If no C compiler was specified, use CC.
7840 # If no C compiler flags were specified, use CFLAGS.
7841 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7843 # Allow CC to be a program name with arguments.
7846 # Save the default compiler, since it gets overwritten when the other
7847 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7848 compiler_DEFAULT
=$CC
7850 # save warnings/boilerplate of simple test code
7851 ac_outfile
=conftest.
$ac_objext
7852 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7853 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7854 _lt_compiler_boilerplate
=`cat conftest.err`
7857 ac_outfile
=conftest.
$ac_objext
7858 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7859 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7860 _lt_linker_boilerplate
=`cat conftest.err`
7864 if test -n "$compiler"; then
7866 lt_prog_compiler_no_builtin_flag
=
7868 if test "$GCC" = yes; then
7869 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7871 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7872 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7873 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7874 $as_echo_n "(cached) " >&6
7876 lt_cv_prog_compiler_rtti_exceptions
=no
7877 ac_outfile
=conftest.
$ac_objext
7878 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7879 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7880 # Insert the option either (1) after the last *FLAGS variable, or
7881 # (2) before a word containing "conftest.", or (3) at the end.
7882 # Note that $ac_compile itself does not contain backslashes and begins
7883 # with a dollar sign (not a hyphen), so the echo should work correctly.
7884 # The option is referenced via a variable to avoid confusing sed.
7885 lt_compile
=`echo "$ac_compile" | $SED \
7886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7888 -e 's:$: $lt_compiler_flag:'`
7889 (eval echo "\"\$as_me:7889: $lt_compile\"" >&5)
7890 (eval "$lt_compile" 2>conftest.err
)
7892 cat conftest.err
>&5
7893 echo "$as_me:7893: \$? = $ac_status" >&5
7894 if (exit $ac_status) && test -s "$ac_outfile"; then
7895 # The compiler can only warn and ignore the option if not recognized
7896 # So say no if there are warnings other than the usual output.
7897 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7898 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7899 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7900 lt_cv_prog_compiler_rtti_exceptions
=yes
7906 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7907 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7909 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7910 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7922 lt_prog_compiler_wl
=
7923 lt_prog_compiler_pic
=
7924 lt_prog_compiler_static
=
7926 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7927 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7929 if test "$GCC" = yes; then
7930 lt_prog_compiler_wl
='-Wl,'
7931 lt_prog_compiler_static
='-static'
7935 # All AIX code is PIC.
7936 if test "$host_cpu" = ia64
; then
7937 # AIX 5 now supports IA64 processor
7938 lt_prog_compiler_static
='-Bstatic'
7945 # see comment about AmigaOS4 .so support
7946 lt_prog_compiler_pic
='-fPIC'
7949 # FIXME: we need at least 68020 code to build shared libraries, but
7950 # adding the `-m68020' flag to GCC prevents building anything better,
7952 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7957 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7958 # PIC is the default for these OSes.
7961 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7962 # This hack is so that the source file can tell whether it is being
7963 # built for inclusion in a dll (and should export symbols for example).
7964 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7965 # (--disable-auto-import) libraries
7966 lt_prog_compiler_pic
='-DDLL_EXPORT'
7969 darwin
* | rhapsody
*)
7970 # PIC is the default on this platform
7971 # Common symbols not allowed in MH_DYLIB files
7972 lt_prog_compiler_pic
='-fno-common'
7976 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7977 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7978 # sets the default TLS model and affects inlining.
7984 lt_prog_compiler_pic
='-fPIC'
7990 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7991 # Instead, we relocate shared libraries at runtime.
7995 # Just because we use GCC doesn't mean we suddenly get shared libraries
7996 # on systems that don't support them.
7997 lt_prog_compiler_can_build_shared
=no
8002 # QNX uses GNU C++, but need to define -shared option too, otherwise
8004 lt_prog_compiler_pic
='-fPIC -shared'
8008 if test -d /usr
/nec
; then
8009 lt_prog_compiler_pic
=-Kconform_pic
8014 lt_prog_compiler_pic
='-fPIC'
8018 # PORTME Check for flag to pass linker flags through the system compiler.
8021 lt_prog_compiler_wl
='-Wl,'
8022 if test "$host_cpu" = ia64
; then
8023 # AIX 5 now supports IA64 processor
8024 lt_prog_compiler_static
='-Bstatic'
8026 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8030 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8031 # This hack is so that the source file can tell whether it is being
8032 # built for inclusion in a dll (and should export symbols for example).
8033 lt_prog_compiler_pic
='-DDLL_EXPORT'
8036 hpux9
* | hpux10
* | hpux11
*)
8037 lt_prog_compiler_wl
='-Wl,'
8038 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8045 lt_prog_compiler_pic
='+Z'
8048 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8049 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8052 irix5
* | irix6
* | nonstopux
*)
8053 lt_prog_compiler_wl
='-Wl,'
8054 # PIC (with -KPIC) is the default.
8055 lt_prog_compiler_static
='-non_shared'
8058 linux
* | k
*bsd
*-gnu)
8059 case $cc_basename in
8060 # old Intel for x86_64 which still supported -KPIC.
8062 lt_prog_compiler_wl
='-Wl,'
8063 lt_prog_compiler_pic
='-KPIC'
8064 lt_prog_compiler_static
='-static'
8066 # icc used to be incompatible with GCC.
8067 # ICC 10 doesn't accept -KPIC any more.
8069 lt_prog_compiler_wl
='-Wl,'
8070 lt_prog_compiler_pic
='-fPIC'
8071 lt_prog_compiler_static
='-static'
8073 # Lahey Fortran 8.1.
8075 lt_prog_compiler_wl
='-Wl,'
8076 lt_prog_compiler_pic
='--shared'
8077 lt_prog_compiler_static
='--static'
8079 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8080 # Portland Group compilers (*not* the Pentium gcc compiler,
8081 # which looks to be a dead project)
8082 lt_prog_compiler_wl
='-Wl,'
8083 lt_prog_compiler_pic
='-fpic'
8084 lt_prog_compiler_static
='-Bstatic'
8087 lt_prog_compiler_wl
='-Wl,'
8088 # All Alpha code is PIC.
8089 lt_prog_compiler_static
='-non_shared'
8092 # IBM XL C 8.0/Fortran 10.1 on PPC
8093 lt_prog_compiler_wl
='-Wl,'
8094 lt_prog_compiler_pic
='-qpic'
8095 lt_prog_compiler_static
='-qstaticlink'
8098 case `$CC -V 2>&1 | sed 5q` in
8101 lt_prog_compiler_pic
='-KPIC'
8102 lt_prog_compiler_static
='-Bstatic'
8103 lt_prog_compiler_wl
='-Wl,'
8106 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8107 lt_prog_compiler_pic
='-KPIC'
8108 lt_prog_compiler_static
='-Bstatic'
8109 lt_prog_compiler_wl
=''
8117 lt_prog_compiler_pic
='-KPIC'
8118 lt_prog_compiler_static
='-Bstatic'
8122 # QNX uses GNU C++, but need to define -shared option too, otherwise
8124 lt_prog_compiler_pic
='-fPIC -shared'
8127 osf3
* | osf4
* | osf5
*)
8128 lt_prog_compiler_wl
='-Wl,'
8129 # All OSF/1 code is PIC.
8130 lt_prog_compiler_static
='-non_shared'
8134 lt_prog_compiler_static
='-non_shared'
8138 lt_prog_compiler_pic
='-KPIC'
8139 lt_prog_compiler_static
='-Bstatic'
8140 case $cc_basename in
8142 lt_prog_compiler_wl
='-Qoption ld ';;
8144 lt_prog_compiler_wl
='-Wl,';;
8149 lt_prog_compiler_wl
='-Qoption ld '
8150 lt_prog_compiler_pic
='-PIC'
8151 lt_prog_compiler_static
='-Bstatic'
8154 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8155 lt_prog_compiler_wl
='-Wl,'
8156 lt_prog_compiler_pic
='-KPIC'
8157 lt_prog_compiler_static
='-Bstatic'
8161 if test -d /usr
/nec
;then
8162 lt_prog_compiler_pic
='-Kconform_pic'
8163 lt_prog_compiler_static
='-Bstatic'
8167 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8168 lt_prog_compiler_wl
='-Wl,'
8169 lt_prog_compiler_pic
='-KPIC'
8170 lt_prog_compiler_static
='-Bstatic'
8174 lt_prog_compiler_wl
='-Wl,'
8175 lt_prog_compiler_can_build_shared
=no
8179 lt_prog_compiler_pic
='-pic'
8180 lt_prog_compiler_static
='-Bstatic'
8184 lt_prog_compiler_can_build_shared
=no
8190 # For platforms which do not support PIC, -DPIC is meaningless:
8192 lt_prog_compiler_pic
=
8195 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8198 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8199 $as_echo "$lt_prog_compiler_pic" >&6; }
8207 # Check to make sure the PIC flag actually works.
8209 if test -n "$lt_prog_compiler_pic"; then
8210 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8211 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8212 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8213 $as_echo_n "(cached) " >&6
8215 lt_cv_prog_compiler_pic_works
=no
8216 ac_outfile
=conftest.
$ac_objext
8217 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8218 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8219 # Insert the option either (1) after the last *FLAGS variable, or
8220 # (2) before a word containing "conftest.", or (3) at the end.
8221 # Note that $ac_compile itself does not contain backslashes and begins
8222 # with a dollar sign (not a hyphen), so the echo should work correctly.
8223 # The option is referenced via a variable to avoid confusing sed.
8224 lt_compile
=`echo "$ac_compile" | $SED \
8225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8227 -e 's:$: $lt_compiler_flag:'`
8228 (eval echo "\"\$as_me:8228: $lt_compile\"" >&5)
8229 (eval "$lt_compile" 2>conftest.err
)
8231 cat conftest.err
>&5
8232 echo "$as_me:8232: \$? = $ac_status" >&5
8233 if (exit $ac_status) && test -s "$ac_outfile"; then
8234 # The compiler can only warn and ignore the option if not recognized
8235 # So say no if there are warnings other than the usual output.
8236 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8237 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8238 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8239 lt_cv_prog_compiler_pic_works
=yes
8245 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8246 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8248 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8249 case $lt_prog_compiler_pic in
8251 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8254 lt_prog_compiler_pic
=
8255 lt_prog_compiler_can_build_shared
=no
8266 # Check to make sure the static flag actually works.
8268 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8269 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8270 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8271 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8272 $as_echo_n "(cached) " >&6
8274 lt_cv_prog_compiler_static_works
=no
8275 save_LDFLAGS
="$LDFLAGS"
8276 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8277 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8278 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8279 # The linker can only warn and ignore the option if not recognized
8280 # So say no if there are warnings
8281 if test -s conftest.err
; then
8282 # Append any errors to the config.log.
8283 cat conftest.err
1>&5
8284 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8285 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8286 if diff conftest.exp conftest.er2
>/dev
/null
; then
8287 lt_cv_prog_compiler_static_works
=yes
8290 lt_cv_prog_compiler_static_works
=yes
8294 LDFLAGS
="$save_LDFLAGS"
8297 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8298 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8300 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8303 lt_prog_compiler_static
=
8312 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8313 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8314 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8315 $as_echo_n "(cached) " >&6
8317 lt_cv_prog_compiler_c_o
=no
8318 $RM -r conftest
2>/dev
/null
8322 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8324 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8325 # Insert the option either (1) after the last *FLAGS variable, or
8326 # (2) before a word containing "conftest.", or (3) at the end.
8327 # Note that $ac_compile itself does not contain backslashes and begins
8328 # with a dollar sign (not a hyphen), so the echo should work correctly.
8329 lt_compile
=`echo "$ac_compile" | $SED \
8330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332 -e 's:$: $lt_compiler_flag:'`
8333 (eval echo "\"\$as_me:8333: $lt_compile\"" >&5)
8334 (eval "$lt_compile" 2>out
/conftest.err
)
8336 cat out
/conftest.err
>&5
8337 echo "$as_me:8337: \$? = $ac_status" >&5
8338 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8340 # The compiler can only warn and ignore the option if not recognized
8341 # So say no if there are warnings
8342 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8343 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8344 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8345 lt_cv_prog_compiler_c_o
=yes
8350 # SGI C++ compiler will create directory out/ii_files/ for
8351 # template instantiation
8352 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8353 $RM out
/* && rmdir out
8359 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8360 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8367 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8368 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8369 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8370 $as_echo_n "(cached) " >&6
8372 lt_cv_prog_compiler_c_o
=no
8373 $RM -r conftest
2>/dev
/null
8377 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8379 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8380 # Insert the option either (1) after the last *FLAGS variable, or
8381 # (2) before a word containing "conftest.", or (3) at the end.
8382 # Note that $ac_compile itself does not contain backslashes and begins
8383 # with a dollar sign (not a hyphen), so the echo should work correctly.
8384 lt_compile
=`echo "$ac_compile" | $SED \
8385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387 -e 's:$: $lt_compiler_flag:'`
8388 (eval echo "\"\$as_me:8388: $lt_compile\"" >&5)
8389 (eval "$lt_compile" 2>out
/conftest.err
)
8391 cat out
/conftest.err
>&5
8392 echo "$as_me:8392: \$? = $ac_status" >&5
8393 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8395 # The compiler can only warn and ignore the option if not recognized
8396 # So say no if there are warnings
8397 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8398 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8399 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8400 lt_cv_prog_compiler_c_o
=yes
8405 # SGI C++ compiler will create directory out/ii_files/ for
8406 # template instantiation
8407 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8408 $RM out
/* && rmdir out
8414 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8415 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8420 hard_links
="nottested"
8421 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8422 # do not overwrite the value of need_locks provided by the user
8423 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8424 $as_echo_n "checking if we can lock with hard links... " >&6; }
8427 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8429 ln conftest.a conftest.b
2>&5 || hard_links
=no
8430 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8431 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8432 $as_echo "$hard_links" >&6; }
8433 if test "$hard_links" = no
; then
8434 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8435 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8447 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8448 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8451 allow_undefined_flag
=
8452 always_export_symbols
=no
8454 archive_expsym_cmds
=
8455 compiler_needs_object
=no
8456 enable_shared_with_static_runtimes
=no
8457 export_dynamic_flag_spec
=
8458 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8459 hardcode_automatic
=no
8461 hardcode_direct_absolute
=no
8462 hardcode_libdir_flag_spec
=
8463 hardcode_libdir_flag_spec_ld
=
8464 hardcode_libdir_separator
=
8466 hardcode_shlibpath_var
=unsupported
8468 link_all_deplibs
=unknown
8471 old_archive_from_new_cmds
=
8472 old_archive_from_expsyms_cmds
=
8473 thread_safe_flag_spec
=
8474 whole_archive_flag_spec
=
8475 # include_expsyms should be a list of space-separated symbols to be *always*
8476 # included in the symbol list
8478 # exclude_expsyms can be an extended regexp of symbols to exclude
8479 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8480 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8481 # as well as any symbol that contains `d'.
8482 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8483 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8484 # platforms (ab)use it in PIC code, but their linkers get confused if
8485 # the symbol is explicitly referenced. Since portable code cannot
8486 # rely on this symbol name, it's probably fine to never include it in
8487 # preloaded symbol tables.
8488 # Exclude shared library initialization/finalization symbols.
8489 extract_expsyms_cmds
=
8492 cygwin
* | mingw
* | pw32
* | cegcc
*)
8493 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8494 # When not using gcc, we currently assume that we are using
8495 # Microsoft Visual C++.
8496 if test "$GCC" != yes; then
8501 # we just hope/assume this is gcc and not c89 (= MSVC++)
8510 if test "$with_gnu_ld" = yes; then
8511 # If archive_cmds runs LD, not CC, wlarc should be empty
8514 # Set some defaults for GNU ld with shared library support. These
8515 # are reset later if shared libraries are not supported. Putting them
8516 # here allows them to be overridden if necessary.
8517 runpath_var
=LD_RUN_PATH
8518 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8519 export_dynamic_flag_spec
='${wl}--export-dynamic'
8520 # ancient GNU ld didn't support --whole-archive et. al.
8521 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8522 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8524 whole_archive_flag_spec
=
8526 supports_anon_versioning
=no
8527 case `$LD -v 2>&1` in
8528 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8529 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8530 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8531 *\
2.11.
*) ;; # other 2.11 versions
8532 *) supports_anon_versioning
=yes ;;
8535 # See if GNU ld supports shared libraries.
8538 # On AIX/PPC, the GNU linker is very broken
8539 if test "$host_cpu" != ia64
; then
8543 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8544 *** to be unable to reliably create shared libraries on AIX.
8545 *** Therefore, libtool is disabling shared libraries support. If you
8546 *** really care for shared libraries, you may want to modify your PATH
8547 *** so that a non-GNU linker is found, and then restart.
8556 # see comment about AmigaOS4 .so support
8557 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558 archive_expsym_cmds
=''
8561 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)'
8562 hardcode_libdir_flag_spec
='-L$libdir'
8563 hardcode_minus_L
=yes
8569 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8570 allow_undefined_flag
=unsupported
8571 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8572 # support --undefined. This deserves some investigation. FIXME
8573 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579 cygwin
* | mingw
* | pw32
* | cegcc
*)
8580 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8581 # as there is no search path for DLLs.
8582 hardcode_libdir_flag_spec
='-L$libdir'
8583 allow_undefined_flag
=unsupported
8584 always_export_symbols
=no
8585 enable_shared_with_static_runtimes
=yes
8586 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8588 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8589 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8590 # If the export-symbols file already is a .def file (1st line
8591 # is EXPORTS), use it as is; otherwise, prepend...
8592 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8593 cp $export_symbols $output_objdir/$soname.def;
8595 echo EXPORTS > $output_objdir/$soname.def;
8596 cat $export_symbols >> $output_objdir/$soname.def;
8598 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8606 hardcode_shlibpath_var
=no
8607 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8608 export_dynamic_flag_spec
='${wl}-E'
8609 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8610 # Instead, shared libraries are loaded at an image base (0x10000000 by
8611 # default) and relocated if they conflict, which is a slow very memory
8612 # consuming and fragmenting process. To avoid this, we pick a random,
8613 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8614 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8615 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8616 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'
8619 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8621 if test "$host_os" = linux-dietlibc
; then
8622 case $cc_basename in
8623 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8626 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8627 && test "$tmp_diet" = no
8630 tmp_sharedflag
='-shared'
8631 case $cc_basename,$host_cpu in
8632 pgcc
*) # Portland Group C compiler
8633 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'
8634 tmp_addflag
=' $pic_flag'
8636 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8637 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'
8638 tmp_addflag
=' $pic_flag -Mnomain' ;;
8639 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8640 tmp_addflag
=' -i_dynamic' ;;
8641 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8642 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8643 ifc
* | ifort
*) # Intel Fortran compiler
8644 tmp_addflag
=' -nofor_main' ;;
8645 lf95
*) # Lahey Fortran 8.1
8646 whole_archive_flag_spec
=
8647 tmp_sharedflag
='--shared' ;;
8648 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8649 tmp_sharedflag
='-qmkshrobj'
8652 case `$CC -V 2>&1 | sed 5q` in
8653 *Sun\ C
*) # Sun C 5.9
8654 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'
8655 compiler_needs_object
=yes
8656 tmp_sharedflag
='-G' ;;
8657 *Sun\ F
*) # Sun Fortran 8.3
8658 tmp_sharedflag
='-G' ;;
8660 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662 if test "x$supports_anon_versioning" = xyes
; then
8663 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8664 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8665 echo "local: *; };" >> $output_objdir/$libname.ver~
8666 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8669 case $cc_basename in
8671 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8672 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8673 hardcode_libdir_flag_spec
=
8674 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8675 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8676 if test "x$supports_anon_versioning" = xyes
; then
8677 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8679 echo "local: *; };" >> $output_objdir/$libname.ver~
8680 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8690 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8691 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8694 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8700 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8704 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8705 *** create shared libraries on Solaris systems. Therefore, libtool
8706 *** is disabling shared libraries support. We urge you to upgrade GNU
8707 *** binutils to release 2.9.1 or newer. Another option is to modify
8708 *** your PATH or compiler configuration so that the native linker is
8709 *** used, and then restart.
8712 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8713 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8720 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8721 case `$LD -v 2>&1` in
8722 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8726 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8727 *** reliably create shared libraries on SCO systems. Therefore, libtool
8728 *** is disabling shared libraries support. We urge you to upgrade GNU
8729 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8730 *** your PATH or compiler configuration so that the native linker is
8731 *** used, and then restart.
8736 # For security reasons, it is highly recommended that you always
8737 # use absolute paths for naming shared libraries, and exclude the
8738 # DT_RUNPATH tag from executables and libraries. But doing so
8739 # requires that you compile everything twice, which is a pain.
8740 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8741 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8742 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8755 hardcode_shlibpath_var
=no
8759 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8760 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8768 if test "$ld_shlibs" = no
; then
8770 hardcode_libdir_flag_spec
=
8771 export_dynamic_flag_spec
=
8772 whole_archive_flag_spec
=
8775 # PORTME fill in a description of your system's linker (not GNU ld)
8778 allow_undefined_flag
=unsupported
8779 always_export_symbols
=yes
8780 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'
8781 # Note: this linker hardcodes the directories in LIBPATH if there
8782 # are no directories specified by -L.
8783 hardcode_minus_L
=yes
8784 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8785 # Neither direct hardcoding nor static linking is supported with a
8787 hardcode_direct
=unsupported
8792 if test "$host_cpu" = ia64
; then
8793 # On IA64, the linker does run time linking by default, so we don't
8794 # have to do anything special.
8795 aix_use_runtimelinking
=no
8796 exp_sym_flag
='-Bexport'
8799 # If we're using GNU nm, then we don't want the "-C" option.
8800 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8801 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8802 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'
8804 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'
8806 aix_use_runtimelinking
=no
8808 # Test if we are trying to use run time linking or normal
8809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8810 # need to do runtime linking.
8811 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8812 for ld_flag
in $LDFLAGS; do
8813 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8814 aix_use_runtimelinking
=yes
8821 exp_sym_flag
='-bexport'
8822 no_entry_flag
='-bnoentry'
8825 # When large executables or shared objects are built, AIX ld can
8826 # have problems creating the table of contents. If linking a library
8827 # or program results in "error TOC overflow" add -mminimal-toc to
8828 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8829 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8833 hardcode_direct_absolute
=yes
8834 hardcode_libdir_separator
=':'
8835 link_all_deplibs
=yes
8836 file_list_spec
='${wl}-f,'
8838 if test "$GCC" = yes; then
8839 case $host_os in aix4.
[012]|aix4.
[012].
*)
8840 # We only want to do this on AIX 4.2 and lower, the check
8841 # below for broken collect2 doesn't work under 4.3+
8842 collect2name
=`${CC} -print-prog-name=collect2`
8843 if test -f "$collect2name" &&
8844 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8846 # We have reworked collect2
8849 # We have old collect2
8850 hardcode_direct
=unsupported
8851 # It fails to find uninstalled libraries when the uninstalled
8852 # path is not listed in the libpath. Setting hardcode_minus_L
8853 # to unsupported forces relinking
8854 hardcode_minus_L
=yes
8855 hardcode_libdir_flag_spec
='-L$libdir'
8856 hardcode_libdir_separator
=
8860 shared_flag
='-shared'
8861 if test "$aix_use_runtimelinking" = yes; then
8862 shared_flag
="$shared_flag "'${wl}-G'
8866 if test "$host_cpu" = ia64
; then
8867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8868 # chokes on -Wl,-G. The following line is correct:
8871 if test "$aix_use_runtimelinking" = yes; then
8872 shared_flag
='${wl}-G'
8874 shared_flag
='${wl}-bM:SRE'
8879 export_dynamic_flag_spec
='${wl}-bexpall'
8880 # It seems that -bexpall does not export symbols beginning with
8881 # underscore (_), so it is better to generate a list of symbols to export.
8882 always_export_symbols
=yes
8883 if test "$aix_use_runtimelinking" = yes; then
8884 # Warning - without using the other runtime loading flags (-brtl),
8885 # -berok will link without error, but may produce a broken library.
8886 allow_undefined_flag
='-berok'
8887 # Determine the default libpath from the value encoded in an
8889 cat >conftest.
$ac_ext <<_ACEOF
8892 cat confdefs.h
>>conftest.
$ac_ext
8893 cat >>conftest.
$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8904 rm -f conftest.
$ac_objext conftest
$ac_exeext
8905 if { (ac_try
="$ac_link"
8907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8911 $as_echo "$ac_try_echo") >&5
8912 (eval "$ac_link") 2>conftest.er1
8914 grep -v '^ *+' conftest.er1 >conftest.err
8916 cat conftest.err >&5
8917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } && {
8919 test -z "$ac_c_werror_flag" ||
8920 test ! -s conftest.err
8921 } && test -s conftest$ac_exeext && {
8922 test "$cross_compiling" = yes ||
8923 $as_test_x conftest$ac_exeext
8926 lt_aix_libpath_sed='
8927 /Import File Strings/,/^$/ {
8933 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8934 # Check for a 64-bit object if we didn't find anything.
8935 if test -z "$aix_libpath"; then
8936 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8939 $as_echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8945 rm -rf conftest.dSYM
8946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8947 conftest$ac_exeext conftest.$ac_ext
8948 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8950 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8951 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"
8953 if test "$host_cpu" = ia64; then
8954 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8955 allow_undefined_flag="-z nodefs"
8956 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"
8958 # Determine the default libpath from the value encoded in an
8960 cat >conftest.$ac_ext <<_ACEOF
8963 cat confdefs.h >>conftest.$ac_ext
8964 cat >>conftest.$ac_ext <<_ACEOF
8965 /* end confdefs.h. */
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (ac_try="$ac_link"
8978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8979 *) ac_try_echo
=$ac_try;;
8981 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8982 $as_echo "$ac_try_echo") >&5
8983 (eval "$ac_link") 2>conftest.er1
8985 grep -v '^ *+' conftest.er1
>conftest.err
8987 cat conftest.err
>&5
8988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest
$ac_exeext && {
8993 test "$cross_compiling" = yes ||
8994 $as_test_x conftest
$ac_exeext
8997 lt_aix_libpath_sed
='
8998 /Import File Strings/,/^$/ {
9004 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9005 # Check for a 64-bit object if we didn't find anything.
9006 if test -z "$aix_libpath"; then
9007 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9010 $as_echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.
$ac_ext >&5
9016 rm -rf conftest.dSYM
9017 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9018 conftest
$ac_exeext conftest.
$ac_ext
9019 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9021 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9022 # Warning - without using the other run time loading flags,
9023 # -berok will link without error, but may produce a broken library.
9024 no_undefined_flag
=' ${wl}-bernotok'
9025 allow_undefined_flag
=' ${wl}-berok'
9026 # Exported symbols can be pulled into shared objects from archives
9027 whole_archive_flag_spec
='$convenience'
9028 archive_cmds_need_lc
=yes
9029 # This is similar to how AIX traditionally builds its shared libraries.
9030 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'
9038 # see comment about AmigaOS4 .so support
9039 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040 archive_expsym_cmds
=''
9043 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)'
9044 hardcode_libdir_flag_spec
='-L$libdir'
9045 hardcode_minus_L
=yes
9051 export_dynamic_flag_spec
=-rdynamic
9054 cygwin
* | mingw
* | pw32
* | cegcc
*)
9055 # When not using gcc, we currently assume that we are using
9056 # Microsoft Visual C++.
9057 # hardcode_libdir_flag_spec is actually meaningless, as there is
9058 # no search path for DLLs.
9059 hardcode_libdir_flag_spec
=' '
9060 allow_undefined_flag
=unsupported
9061 # Tell ltmain to make .lib files, not .a files.
9063 # Tell ltmain to make .dll files, not .so files.
9065 # FIXME: Setting linknames here is a bad hack.
9066 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9067 # The linker will automatically build a .lib file if we build a DLL.
9068 old_archive_from_new_cmds
='true'
9069 # FIXME: Should let the user specify the lib program.
9070 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9071 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9072 enable_shared_with_static_runtimes
=yes
9075 darwin
* | rhapsody
*)
9078 archive_cmds_need_lc
=no
9080 hardcode_automatic
=yes
9081 hardcode_shlibpath_var
=unsupported
9082 whole_archive_flag_spec
=''
9083 link_all_deplibs
=yes
9084 allow_undefined_flag
="$_lt_dar_allow_undefined"
9085 case $cc_basename in
9086 ifort
*) _lt_dar_can_shared
=yes ;;
9087 *) _lt_dar_can_shared
=$GCC ;;
9089 if test "$_lt_dar_can_shared" = "yes"; then
9090 output_verbose_link_cmd
=echo
9091 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9092 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9093 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}"
9094 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}"
9103 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104 hardcode_libdir_flag_spec
='-L$libdir'
9105 hardcode_shlibpath_var
=no
9112 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9113 # support. Future versions do this automatically, but an explicit c++rt0.o
9114 # does not break anything, and helps significantly (at the cost of a little
9117 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9118 hardcode_libdir_flag_spec
='-R$libdir'
9120 hardcode_shlibpath_var
=no
9123 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9125 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_minus_L
=yes
9128 hardcode_shlibpath_var
=no
9131 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9132 freebsd
* | dragonfly
*)
9133 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9134 hardcode_libdir_flag_spec
='-R$libdir'
9136 hardcode_shlibpath_var
=no
9140 if test "$GCC" = yes; then
9141 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'
9143 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'
9145 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9146 hardcode_libdir_separator
=:
9149 # hardcode_minus_L: Not really in the search PATH,
9150 # but as the default location of the library.
9151 hardcode_minus_L
=yes
9152 export_dynamic_flag_spec
='${wl}-E'
9156 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9157 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9159 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9161 if test "$with_gnu_ld" = no
; then
9162 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9163 hardcode_libdir_flag_spec_ld
='+b $libdir'
9164 hardcode_libdir_separator
=:
9166 hardcode_direct_absolute
=yes
9167 export_dynamic_flag_spec
='${wl}-E'
9168 # hardcode_minus_L: Not really in the search PATH,
9169 # but as the default location of the library.
9170 hardcode_minus_L
=yes
9175 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9178 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9181 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9184 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9190 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9193 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9196 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9200 if test "$with_gnu_ld" = no
; then
9201 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9202 hardcode_libdir_separator
=:
9207 hardcode_shlibpath_var
=no
9211 hardcode_direct_absolute
=yes
9212 export_dynamic_flag_spec
='${wl}-E'
9214 # hardcode_minus_L: Not really in the search PATH,
9215 # but as the default location of the library.
9216 hardcode_minus_L
=yes
9222 irix5
* | irix6
* | nonstopux
*)
9223 if test "$GCC" = yes; then
9224 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'
9225 # Try to use the -exported_symbol ld option, if it does not
9226 # work, assume that -exports_file does not work either and
9227 # implicitly export all symbols.
9228 save_LDFLAGS
="$LDFLAGS"
9229 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9230 cat >conftest.
$ac_ext <<_ACEOF
9233 rm -f conftest.
$ac_objext conftest
$ac_exeext
9234 if { (ac_try
="$ac_link"
9236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9240 $as_echo "$ac_try_echo") >&5
9241 (eval "$ac_link") 2>conftest.er1
9243 grep -v '^ *+' conftest.er1 >conftest.err
9245 cat conftest.err >&5
9246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } && {
9248 test -z "$ac_c_werror_flag" ||
9249 test ! -s conftest.err
9250 } && test -s conftest$ac_exeext && {
9251 test "$cross_compiling" = yes ||
9252 $as_test_x conftest$ac_exeext
9254 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'
9257 $as_echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9263 rm -rf conftest.dSYM
9264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9265 conftest$ac_exeext conftest.$ac_ext
9266 LDFLAGS="$save_LDFLAGS"
9268 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'
9269 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'
9271 archive_cmds_need_lc='no'
9272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9273 hardcode_libdir_separator=:
9275 link_all_deplibs=yes
9279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9282 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9284 hardcode_libdir_flag_spec='-R$libdir'
9286 hardcode_shlibpath_var=no
9290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293 hardcode_libdir_separator=:
9294 hardcode_shlibpath_var=no
9301 if test -f /usr/libexec/ld.so; then
9303 hardcode_shlibpath_var=no
9304 hardcode_direct_absolute=yes
9305 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9307 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9308 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9309 export_dynamic_flag_spec='${wl}-E'
9312 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9314 hardcode_libdir_flag_spec='-R$libdir'
9317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9318 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9328 hardcode_libdir_flag_spec='-L$libdir'
9329 hardcode_minus_L=yes
9330 allow_undefined_flag=unsupported
9331 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'
9332 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9336 if test "$GCC" = yes; then
9337 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9338 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'
9340 allow_undefined_flag=' -expect_unresolved \*'
9341 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'
9343 archive_cmds_need_lc='no'
9344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9345 hardcode_libdir_separator=:
9348 osf4* | osf5*) # as osf3* with the addition of -msym flag
9349 if test "$GCC" = yes; then
9350 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9351 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'
9352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354 allow_undefined_flag=' -expect_unresolved \*'
9355 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'
9356 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~
9357 $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'
9359 # Both c and cxx compiler support -rpath directly
9360 hardcode_libdir_flag_spec='-rpath $libdir'
9362 archive_cmds_need_lc='no'
9363 hardcode_libdir_separator=:
9367 no_undefined_flag=' -z defs'
9368 if test "$GCC" = yes; then
9370 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9371 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9372 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9374 case `$CC -V 2>&1` in
9377 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9379 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9383 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9385 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9389 hardcode_libdir_flag_spec='-R$libdir'
9390 hardcode_shlibpath_var=no
9392 solaris2.[0-5] | solaris2.[0-5].*) ;;
9394 # The compiler driver will combine and reorder linker options,
9395 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9396 # but is careful enough not to reorder.
9397 # Supported since Solaris 2.6 (maybe 2.5.1?)
9398 if test "$GCC" = yes; then
9399 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9401 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9405 link_all_deplibs
=yes
9409 if test "x$host_vendor" = xsequent
; then
9410 # Use $CC to link under sequent, because it throws in some extra .o
9411 # files that make .init and .fini sections work.
9412 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9416 hardcode_libdir_flag_spec
='-L$libdir'
9418 hardcode_minus_L
=yes
9419 hardcode_shlibpath_var
=no
9423 case $host_vendor in
9425 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9426 hardcode_direct
=yes # is this really true???
9429 ## LD is ld it makes a PLAMLIB
9430 ## CC just makes a GrossModule.
9431 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9432 reload_cmds
='$CC -r -o $output$reload_objs'
9436 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9437 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9440 runpath_var
='LD_RUN_PATH'
9441 hardcode_shlibpath_var
=no
9445 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_shlibpath_var
=no
9447 export_dynamic_flag_spec
='-Bexport'
9451 if test -d /usr
/nec
; then
9452 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453 hardcode_shlibpath_var
=no
9454 runpath_var
=LD_RUN_PATH
9455 hardcode_runpath_var
=yes
9460 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9461 no_undefined_flag
='${wl}-z,text'
9462 archive_cmds_need_lc
=no
9463 hardcode_shlibpath_var
=no
9464 runpath_var
='LD_RUN_PATH'
9466 if test "$GCC" = yes; then
9467 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9470 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9475 sysv5
* | sco3.2v5
* | sco5v6
*)
9476 # Note: We can NOT use -z defs as we might desire, because we do not
9477 # link with -lc, and that would cause any symbols used from libc to
9478 # always be unresolved, which means just about no library would
9479 # ever link correctly. If we're not using GNU ld we use -z text
9480 # though, which does catch some bad symbols but isn't as heavy-handed
9482 no_undefined_flag
='${wl}-z,text'
9483 allow_undefined_flag
='${wl}-z,nodefs'
9484 archive_cmds_need_lc
=no
9485 hardcode_shlibpath_var
=no
9486 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9487 hardcode_libdir_separator
=':'
9488 link_all_deplibs
=yes
9489 export_dynamic_flag_spec
='${wl}-Bexport'
9490 runpath_var
='LD_RUN_PATH'
9492 if test "$GCC" = yes; then
9493 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503 hardcode_libdir_flag_spec
='-L$libdir'
9504 hardcode_shlibpath_var
=no
9512 if test x
$host_vendor = xsni
; then
9514 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9515 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9521 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9522 $as_echo "$ld_shlibs" >&6; }
9523 test "$ld_shlibs" = no
&& can_build_shared
=no
9525 with_gnu_ld
=$with_gnu_ld
9542 # Do we need to explicitly link libc?
9544 case "x$archive_cmds_need_lc" in
9546 # Assume -lc should be added
9547 archive_cmds_need_lc
=yes
9549 if test "$enable_shared" = yes && test "$GCC" = yes; then
9550 case $archive_cmds in
9552 # FIXME: we may have to deal with multi-command sequences.
9555 # Test whether the compiler implicitly links with -lc since on some
9556 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9557 # to ld, don't add -lc before -lgcc.
9558 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9559 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9561 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564 (eval $ac_compile) 2>&5
9566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } 2>conftest.err
; then
9570 libobjs
=conftest.
$ac_objext
9572 wl
=$lt_prog_compiler_wl
9573 pic_flag
=$lt_prog_compiler_pic
9579 lt_save_allow_undefined_flag
=$allow_undefined_flag
9580 allow_undefined_flag
=
9581 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9582 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }
9587 archive_cmds_need_lc
=no
9589 archive_cmds_need_lc
=yes
9591 allow_undefined_flag
=$lt_save_allow_undefined_flag
9593 cat conftest.err
1>&5
9596 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9597 $as_echo "$archive_cmds_need_lc" >&6; }
9760 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9761 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9763 if test "$GCC" = yes; then
9765 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9766 *) lt_awk_arg
="/^libraries:/" ;;
9768 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9769 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9770 # if the path contains ";" then we assume it to be the separator
9771 # otherwise default to the standard path separator (i.e. ":") - it is
9772 # assumed that no part of a normal pathname contains ";" but that should
9773 # okay in the real world where ";" in dirpaths is itself problematic.
9774 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9776 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9778 # Ok, now we have the path, separated by spaces, we can step through it
9779 # and add multilib dir if necessary.
9780 lt_tmp_lt_search_path_spec
=
9781 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9782 for lt_sys_path
in $lt_search_path_spec; do
9783 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9784 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9786 test -d "$lt_sys_path" && \
9787 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9790 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9791 BEGIN {RS=" "; FS="/|\n";} {
9794 for (lt_i = NF; lt_i > 0; lt_i--) {
9795 if ($lt_i != "" && $lt_i != ".") {
9796 if ($lt_i == "..") {
9799 if (lt_count == 0) {
9800 lt_foo="/" $lt_i lt_foo;
9807 if (lt_foo != "") { lt_freq[lt_foo]++; }
9808 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9810 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9812 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9815 libname_spec
='lib$name'
9823 shlibpath_overrides_runpath
=unknown
9825 dynamic_linker
="$host_os ld.so"
9826 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9827 need_lib_prefix
=unknown
9828 hardcode_into_libs
=no
9830 # when you set need_version to no, make sure it does not cause -set_version
9831 # flags to be left without arguments
9832 need_version
=unknown
9837 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9838 shlibpath_var
=LIBPATH
9840 # AIX 3 has no versioning support, so we append a major version to the name.
9841 soname_spec
='${libname}${release}${shared_ext}$major'
9848 hardcode_into_libs
=yes
9849 if test "$host_cpu" = ia64
; then
9850 # AIX 5 supports IA64
9851 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9852 shlibpath_var
=LD_LIBRARY_PATH
9854 # With GCC up to 2.95.x, collect2 would create an import file
9855 # for dependence libraries. The import file would start with
9856 # the line `#! .'. This would cause the generated library to
9857 # depend on `.', always an invalid library. This was fixed in
9858 # development snapshots of GCC prior to 3.0.
9860 aix4 | aix4.
[01] | aix4.
[01].
*)
9861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9863 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9870 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9871 # soname into executable. Probably we can add versioning support to
9872 # collect2, so additional links can be useful in future.
9873 if test "$aix_use_runtimelinking" = yes; then
9874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9875 # instead of lib<name>.a to let people know that these are not
9876 # typical AIX shared libraries.
9877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879 # We preserve .a as extension for shared libraries through AIX4.2
9880 # and later when we are not doing run time linking.
9881 library_names_spec
='${libname}${release}.a $libname.a'
9882 soname_spec
='${libname}${release}${shared_ext}$major'
9884 shlibpath_var
=LIBPATH
9891 # Since July 2007 AmigaOS4 officially supports .so libraries.
9892 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 library_names_spec
='$libname.ixlibrary $libname.a'
9897 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9898 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'
9904 library_names_spec
='${libname}${shared_ext}'
9905 dynamic_linker
="$host_os ld.so"
9906 shlibpath_var
=LIBRARY_PATH
9912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913 soname_spec
='${libname}${release}${shared_ext}$major'
9914 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9915 shlibpath_var
=LD_LIBRARY_PATH
9916 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9917 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9918 # the default ld.so.conf also contains /usr/contrib/lib and
9919 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9920 # libtool to hard-code these into programs
9923 cygwin
* | mingw
* | pw32
* | cegcc
*)
9924 version_type
=windows
9929 case $GCC,$host_os in
9930 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9931 library_names_spec
='$libname.dll.a'
9932 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9933 postinstall_cmds
='base_file=`basename \${file}`~
9934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9935 dldir=$destdir/`dirname \$dlpath`~
9936 test -d \$dldir || mkdir -p \$dldir~
9937 $install_prog $dir/$dlname \$dldir/$dlname~
9938 chmod a+x \$dldir/$dlname~
9939 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9940 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9942 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9943 dlpath=$dir/\$dldll~
9945 shlibpath_overrides_runpath
=yes
9949 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9950 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9951 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9954 # MinGW DLLs use traditional 'lib' prefix
9955 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9956 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9957 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9958 # It is most probably a Windows format PATH printed by
9959 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9960 # path with ; separators, and with drive letters. We can handle the
9961 # drive letters (cygwin fileutils understands them), so leave them,
9962 # especially as we might pass files found there to a mingw objdump,
9963 # which wouldn't understand a cygwinified path. Ahh.
9964 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9966 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9970 # pw32 DLLs use 'pw' prefix rather than 'lib'
9971 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9977 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9980 dynamic_linker
='Win32 ld.exe'
9981 # FIXME: first we should search . and the directory the executable is in
9985 darwin
* | rhapsody
*)
9986 dynamic_linker
="$host_os dyld"
9990 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9991 soname_spec
='${libname}${release}${major}$shared_ext'
9992 shlibpath_overrides_runpath
=yes
9993 shlibpath_var
=DYLD_LIBRARY_PATH
9994 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9996 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9997 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10005 soname_spec
='${libname}${release}${shared_ext}$major'
10006 shlibpath_var
=LD_LIBRARY_PATH
10013 freebsd
* | dragonfly
*)
10014 # DragonFly does not have aout. When/if they implement a new
10015 # versioning mechanism, adjust this.
10016 if test -x /usr
/bin
/objformat
; then
10017 objformat
=`/usr/bin/objformat`
10020 freebsd
[123]*) objformat
=aout
;;
10021 *) objformat
=elf
;;
10024 version_type
=freebsd-
$objformat
10025 case $version_type in
10027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10032 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10036 shlibpath_var
=LD_LIBRARY_PATH
10039 shlibpath_overrides_runpath
=yes
10041 freebsd3.
[01]* | freebsdelf3.
[01]*)
10042 shlibpath_overrides_runpath
=yes
10043 hardcode_into_libs
=yes
10045 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10046 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10047 shlibpath_overrides_runpath
=no
10048 hardcode_into_libs
=yes
10050 *) # from 4.6 on, and DragonFly
10051 shlibpath_overrides_runpath
=yes
10052 hardcode_into_libs
=yes
10061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10062 soname_spec
='${libname}${release}${shared_ext}$major'
10063 shlibpath_var
=LD_LIBRARY_PATH
10064 hardcode_into_libs
=yes
10067 hpux9
* | hpux10
* | hpux11
*)
10068 # Give a soname corresponding to the major version so that dld.sl refuses to
10069 # link against other versions.
10076 hardcode_into_libs
=yes
10077 dynamic_linker
="$host_os dld.so"
10078 shlibpath_var
=LD_LIBRARY_PATH
10079 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081 soname_spec
='${libname}${release}${shared_ext}$major'
10082 if test "X$HPUX_IA64_MODE" = X32
; then
10083 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10085 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10087 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10091 hardcode_into_libs
=yes
10092 dynamic_linker
="$host_os dld.sl"
10093 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10094 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10095 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096 soname_spec
='${libname}${release}${shared_ext}$major'
10097 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10098 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10102 dynamic_linker
="$host_os dld.sl"
10103 shlibpath_var
=SHLIB_PATH
10104 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 soname_spec
='${libname}${release}${shared_ext}$major'
10109 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10110 postinstall_cmds
='chmod 555 $lib'
10117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10118 soname_spec
='${libname}${release}${shared_ext}$major'
10119 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10120 shlibpath_var
=LD_LIBRARY_PATH
10121 shlibpath_overrides_runpath
=no
10122 hardcode_into_libs
=yes
10125 irix5
* | irix6
* | nonstopux
*)
10127 nonstopux
*) version_type
=nonstopux
;;
10129 if test "$lt_cv_prog_gnu_ld" = yes; then
10137 soname_spec
='${libname}${release}${shared_ext}$major'
10138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10140 irix5
* | nonstopux
*)
10141 libsuff
= shlibsuff
=
10144 case $LD in # libtool.m4 will add one of these switches to LD
10145 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10146 libsuff
= shlibsuff
= libmagic
=32-bit;;
10147 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10148 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10149 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10150 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10151 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10155 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10156 shlibpath_overrides_runpath
=no
10157 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10158 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10159 hardcode_into_libs
=yes
10162 # No shared lib support for Linux oldld, aout, or coff.
10163 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10167 # This must be Linux ELF.
10168 linux
* | k
*bsd
*-gnu)
10172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 soname_spec
='${libname}${release}${shared_ext}$major'
10174 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10175 shlibpath_var
=LD_LIBRARY_PATH
10176 shlibpath_overrides_runpath
=no
10177 # Some binutils ld are patched to set DT_RUNPATH
10178 save_LDFLAGS
=$LDFLAGS
10179 save_libdir
=$libdir
10180 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10181 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10182 cat >conftest.
$ac_ext <<_ACEOF
10185 cat confdefs.h
>>conftest.
$ac_ext
10186 cat >>conftest.
$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10197 rm -f conftest.
$ac_objext conftest
$ac_exeext
10198 if { (ac_try
="$ac_link"
10199 case "(($ac_try" in
10200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10204 $as_echo "$ac_try_echo") >&5
10205 (eval "$ac_link") 2>conftest.er1
10207 grep -v '^ *+' conftest.er1 >conftest.err
10209 cat conftest.err >&5
10210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && {
10212 test -z "$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10214 } && test -s conftest$ac_exeext && {
10215 test "$cross_compiling" = yes ||
10216 $as_test_x conftest$ac_exeext
10218 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10219 shlibpath_overrides_runpath=yes
10223 $as_echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10229 rm -rf conftest.dSYM
10230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10231 conftest$ac_exeext conftest.$ac_ext
10232 LDFLAGS=$save_LDFLAGS
10233 libdir=$save_libdir
10235 # This implies no fast_install, which is unacceptable.
10236 # Some rework will be needed to allow for fast_install
10237 # before this can be enabled.
10238 hardcode_into_libs=yes
10240 # Add ABI-specific directories to the system library path.
10241 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10243 # Append ld.so.conf contents to the search path
10244 if test -f /etc/ld.so.conf; then
10245 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' ' '`
10246 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10249 # We used to test for /lib/ld.so.1 and disable shared libraries on
10250 # powerpc, because MkLinux only supported shared libraries with the
10251 # GNU dynamic linker. Since this was broken with cross compilers,
10252 # most powerpc-linux boxes support dynamic linking these days and
10253 # people can always --disable-shared, the test was removed, and we
10254 # assume the GNU/Linux dynamic linker is in use.
10255 dynamic_linker='GNU/Linux ld.so'
10262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10265 dynamic_linker='NetBSD (a.out) ld.so'
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 dynamic_linker='NetBSD ld.elf_so'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=yes
10273 hardcode_into_libs=yes
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=no
10291 hardcode_into_libs=yes
10292 dynamic_linker='ldqnx.so'
10297 sys_lib_dlsearch_path_spec="/usr/lib"
10299 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10301 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10302 *) need_version=no ;;
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10309 openbsd2.[89] | openbsd2.[89].*)
10310 shlibpath_overrides_runpath=no
10313 shlibpath_overrides_runpath=yes
10317 shlibpath_overrides_runpath=yes
10322 libname_spec='$name'
10325 library_names_spec='$libname${shared_ext} $libname.a'
10326 dynamic_linker='OS/2 ld.exe'
10327 shlibpath_var=LIBPATH
10330 osf3* | osf4* | osf5*)
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10338 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 hardcode_into_libs=yes
10354 # ldd complains unless libraries are executable
10355 postinstall_cmds='chmod +x $lib'
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 if test "$with_gnu_ld" = yes; then
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 case $host_vendor in
10377 shlibpath_overrides_runpath=no
10379 runpath_var=LD_RUN_PATH
10387 shlibpath_overrides_runpath=no
10388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10394 if test -d /usr/nec ;then
10396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10397 soname_spec='$libname${shared_ext}.$major'
10398 shlibpath_var=LD_LIBRARY_PATH
10402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10403 version_type=freebsd-elf
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 shlibpath_overrides_runpath=yes
10410 hardcode_into_libs=yes
10411 if test "$with_gnu_ld" = yes; then
10412 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10414 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10421 sys_lib_dlsearch_path_spec='/usr/lib'
10425 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430 shlibpath_var=LD_LIBRARY_PATH
10431 shlibpath_overrides_runpath=no
10432 hardcode_into_libs=yes
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 shlibpath_var=LD_LIBRARY_PATH
10446 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10447 $as_echo "$dynamic_linker" >&6; }
10448 test "$dynamic_linker" = no && can_build_shared=no
10450 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10451 if test "$GCC" = yes; then
10452 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10455 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10456 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10458 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10459 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10548 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10549 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10551 if test -n "$hardcode_libdir_flag_spec" ||
10552 test -n "$runpath_var" ||
10553 test "X$hardcode_automatic" = "Xyes" ; then
10555 # We can hardcode non-existent directories.
10556 if test "$hardcode_direct" != no &&
10557 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10558 # have to relink, otherwise we might link with an installed library
10559 # when we should be linking with a yet-to-be-installed one
10560 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10561 test "$hardcode_minus_L" != no; then
10562 # Linking always hardcodes the temporary library directory.
10563 hardcode_action=relink
10565 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10566 hardcode_action=immediate
10569 # We cannot hardcode anything, or else we can only hardcode existing
10571 hardcode_action=unsupported
10573 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10574 $as_echo "$hardcode_action" >&6; }
10576 if test "$hardcode_action" = relink ||
10577 test "$inherit_rpath" = yes; then
10578 # Fast installation is not supported
10579 enable_fast_install=no
10580 elif test "$shlibpath_overrides_runpath" = yes ||
10581 test "$enable_shared" = no; then
10582 # Fast installation is not necessary
10583 enable_fast_install=needless
10591 if test "x$enable_dlopen" != xyes; then
10592 enable_dlopen=unknown
10593 enable_dlopen_self=unknown
10594 enable_dlopen_self_static=unknown
10601 lt_cv_dlopen="load_add_on"
10603 lt_cv_dlopen_self=yes
10606 mingw* | pw32* | cegcc*)
10607 lt_cv_dlopen="LoadLibrary"
10612 lt_cv_dlopen="dlopen"
10617 # if libdl is installed we need to link against it
10618 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10619 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10621 $as_echo_n "(cached) " >&6
10623 ac_check_lib_save_LIBS=$LIBS
10625 cat >conftest.$ac_ext <<_ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10632 /* Override any GCC internal prototype to avoid an error.
10633 Use char because int might match the return type of a GCC
10634 builtin and then its argument prototype would still apply. */
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (ac_try="$ac_link"
10649 case "(($ac_try" in
10650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10651 *) ac_try_echo
=$ac_try;;
10653 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10654 $as_echo "$ac_try_echo") >&5
10655 (eval "$ac_link") 2>conftest.er1
10657 grep -v '^ *+' conftest.er1
>conftest.err
10659 cat conftest.err
>&5
10660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest
$ac_exeext && {
10665 test "$cross_compiling" = yes ||
10666 $as_test_x conftest
$ac_exeext
10668 ac_cv_lib_dl_dlopen
=yes
10670 $as_echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.
$ac_ext >&5
10673 ac_cv_lib_dl_dlopen
=no
10676 rm -rf conftest.dSYM
10677 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10678 conftest
$ac_exeext conftest.
$ac_ext
10679 LIBS
=$ac_check_lib_save_LIBS
10681 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10682 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10683 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10684 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10687 lt_cv_dlopen
="dyld"
10689 lt_cv_dlopen_self
=yes
10696 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10697 $as_echo_n "checking for shl_load... " >&6; }
10698 if test "${ac_cv_func_shl_load+set}" = set; then
10699 $as_echo_n "(cached) " >&6
10701 cat >conftest.
$ac_ext <<_ACEOF
10704 cat confdefs.h
>>conftest.
$ac_ext
10705 cat >>conftest.
$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10709 #define shl_load innocuous_shl_load
10711 /* System header to define __stub macros and hopefully few prototypes,
10712 which can conflict with char shl_load (); below.
10713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10714 <limits.h> exists even on freestanding compilers. */
10717 # include <limits.h>
10719 # include <assert.h>
10724 /* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
10731 /* The GNU C library defines this for functions which it implements
10732 to always fail with ENOSYS. Some functions are actually named
10733 something starting with __ and the normal name is an alias. */
10734 #if defined __stub_shl_load || defined __stub___shl_load
10741 return shl_load ();
10746 rm -f conftest.
$ac_objext conftest
$ac_exeext
10747 if { (ac_try
="$ac_link"
10748 case "(($ac_try" in
10749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10753 $as_echo "$ac_try_echo") >&5
10754 (eval "$ac_link") 2>conftest.er1
10756 grep -v '^ *+' conftest.er1 >conftest.err
10758 cat conftest.err >&5
10759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest$ac_exeext && {
10764 test "$cross_compiling" = yes ||
10765 $as_test_x conftest$ac_exeext
10767 ac_cv_func_shl_load=yes
10769 $as_echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 ac_cv_func_shl_load=no
10775 rm -rf conftest.dSYM
10776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10777 conftest$ac_exeext conftest.$ac_ext
10779 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10780 $as_echo "$ac_cv_func_shl_load" >&6; }
10781 if test "x$ac_cv_func_shl_load" = x""yes; then
10782 lt_cv_dlopen="shl_load"
10784 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10785 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10786 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10787 $as_echo_n "(cached) " >&6
10789 ac_check_lib_save_LIBS=$LIBS
10791 cat >conftest.$ac_ext <<_ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10798 /* Override any GCC internal prototype to avoid an error.
10799 Use char because int might match the return type of a GCC
10800 builtin and then its argument prototype would still apply. */
10808 return shl_load ();
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (ac_try="$ac_link"
10815 case "(($ac_try" in
10816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10817 *) ac_try_echo
=$ac_try;;
10819 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10820 $as_echo "$ac_try_echo") >&5
10821 (eval "$ac_link") 2>conftest.er1
10823 grep -v '^ *+' conftest.er1
>conftest.err
10825 cat conftest.err
>&5
10826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } && {
10828 test -z "$ac_c_werror_flag" ||
10829 test ! -s conftest.err
10830 } && test -s conftest
$ac_exeext && {
10831 test "$cross_compiling" = yes ||
10832 $as_test_x conftest
$ac_exeext
10834 ac_cv_lib_dld_shl_load
=yes
10836 $as_echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.
$ac_ext >&5
10839 ac_cv_lib_dld_shl_load
=no
10842 rm -rf conftest.dSYM
10843 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10844 conftest
$ac_exeext conftest.
$ac_ext
10845 LIBS
=$ac_check_lib_save_LIBS
10847 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10848 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10849 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10850 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10852 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10853 $as_echo_n "checking for dlopen... " >&6; }
10854 if test "${ac_cv_func_dlopen+set}" = set; then
10855 $as_echo_n "(cached) " >&6
10857 cat >conftest.
$ac_ext <<_ACEOF
10860 cat confdefs.h
>>conftest.
$ac_ext
10861 cat >>conftest.
$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10865 #define dlopen innocuous_dlopen
10867 /* System header to define __stub macros and hopefully few prototypes,
10868 which can conflict with char dlopen (); below.
10869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10870 <limits.h> exists even on freestanding compilers. */
10873 # include <limits.h>
10875 # include <assert.h>
10880 /* Override any GCC internal prototype to avoid an error.
10881 Use char because int might match the return type of a GCC
10882 builtin and then its argument prototype would still apply. */
10887 /* The GNU C library defines this for functions which it implements
10888 to always fail with ENOSYS. Some functions are actually named
10889 something starting with __ and the normal name is an alias. */
10890 #if defined __stub_dlopen || defined __stub___dlopen
10902 rm -f conftest.
$ac_objext conftest
$ac_exeext
10903 if { (ac_try
="$ac_link"
10904 case "(($ac_try" in
10905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10909 $as_echo "$ac_try_echo") >&5
10910 (eval "$ac_link") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest$ac_exeext && {
10920 test "$cross_compiling" = yes ||
10921 $as_test_x conftest$ac_exeext
10923 ac_cv_func_dlopen=yes
10925 $as_echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10928 ac_cv_func_dlopen=no
10931 rm -rf conftest.dSYM
10932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10933 conftest$ac_exeext conftest.$ac_ext
10935 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10936 $as_echo "$ac_cv_func_dlopen" >&6; }
10937 if test "x$ac_cv_func_dlopen" = x""yes; then
10938 lt_cv_dlopen="dlopen"
10940 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10943 $as_echo_n "(cached) " >&6
10945 ac_check_lib_save_LIBS=$LIBS
10947 cat >conftest.$ac_ext <<_ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (ac_try="$ac_link"
10971 case "(($ac_try" in
10972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10973 *) ac_try_echo
=$ac_try;;
10975 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10976 $as_echo "$ac_try_echo") >&5
10977 (eval "$ac_link") 2>conftest.er1
10979 grep -v '^ *+' conftest.er1
>conftest.err
10981 cat conftest.err
>&5
10982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } && {
10984 test -z "$ac_c_werror_flag" ||
10985 test ! -s conftest.err
10986 } && test -s conftest
$ac_exeext && {
10987 test "$cross_compiling" = yes ||
10988 $as_test_x conftest
$ac_exeext
10990 ac_cv_lib_dl_dlopen
=yes
10992 $as_echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.
$ac_ext >&5
10995 ac_cv_lib_dl_dlopen
=no
10998 rm -rf conftest.dSYM
10999 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11000 conftest
$ac_exeext conftest.
$ac_ext
11001 LIBS
=$ac_check_lib_save_LIBS
11003 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11005 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
11006 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11008 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11009 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11011 $as_echo_n "(cached) " >&6
11013 ac_check_lib_save_LIBS
=$LIBS
11014 LIBS
="-lsvld $LIBS"
11015 cat >conftest.
$ac_ext <<_ACEOF
11018 cat confdefs.h
>>conftest.
$ac_ext
11019 cat >>conftest.
$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11022 /* Override any GCC internal prototype to avoid an error.
11023 Use char because int might match the return type of a GCC
11024 builtin and then its argument prototype would still apply. */
11037 rm -f conftest.
$ac_objext conftest
$ac_exeext
11038 if { (ac_try
="$ac_link"
11039 case "(($ac_try" in
11040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11044 $as_echo "$ac_try_echo") >&5
11045 (eval "$ac_link") 2>conftest.er1
11047 grep -v '^ *+' conftest.er1 >conftest.err
11049 cat conftest.err >&5
11050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && {
11052 test -z "$ac_c_werror_flag" ||
11053 test ! -s conftest.err
11054 } && test -s conftest$ac_exeext && {
11055 test "$cross_compiling" = yes ||
11056 $as_test_x conftest$ac_exeext
11058 ac_cv_lib_svld_dlopen=yes
11060 $as_echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 ac_cv_lib_svld_dlopen=no
11066 rm -rf conftest.dSYM
11067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11068 conftest$ac_exeext conftest.$ac_ext
11069 LIBS=$ac_check_lib_save_LIBS
11071 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11072 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11073 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11076 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11077 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11078 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11079 $as_echo_n "(cached) " >&6
11081 ac_check_lib_save_LIBS=$LIBS
11083 cat >conftest.$ac_ext <<_ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11090 /* Override any GCC internal prototype to avoid an error.
11091 Use char because int might match the return type of a GCC
11092 builtin and then its argument prototype would still apply. */
11100 return dld_link ();
11105 rm -f conftest.$ac_objext conftest$ac_exeext
11106 if { (ac_try="$ac_link"
11107 case "(($ac_try" in
11108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11109 *) ac_try_echo
=$ac_try;;
11111 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11112 $as_echo "$ac_try_echo") >&5
11113 (eval "$ac_link") 2>conftest.er1
11115 grep -v '^ *+' conftest.er1
>conftest.err
11117 cat conftest.err
>&5
11118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } && {
11120 test -z "$ac_c_werror_flag" ||
11121 test ! -s conftest.err
11122 } && test -s conftest
$ac_exeext && {
11123 test "$cross_compiling" = yes ||
11124 $as_test_x conftest
$ac_exeext
11126 ac_cv_lib_dld_dld_link
=yes
11128 $as_echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.
$ac_ext >&5
11131 ac_cv_lib_dld_dld_link
=no
11134 rm -rf conftest.dSYM
11135 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11136 conftest
$ac_exeext conftest.
$ac_ext
11137 LIBS
=$ac_check_lib_save_LIBS
11139 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11140 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11141 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11142 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11163 if test "x$lt_cv_dlopen" != xno
; then
11169 case $lt_cv_dlopen in
11171 save_CPPFLAGS
="$CPPFLAGS"
11172 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11174 save_LDFLAGS
="$LDFLAGS"
11175 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11178 LIBS
="$lt_cv_dlopen_libs $LIBS"
11180 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11181 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11182 if test "${lt_cv_dlopen_self+set}" = set; then
11183 $as_echo_n "(cached) " >&6
11185 if test "$cross_compiling" = yes; then :
11186 lt_cv_dlopen_self
=cross
11188 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11189 lt_status
=$lt_dlunknown
11190 cat > conftest.
$ac_ext <<_LT_EOF
11191 #line 11191 "configure"
11192 #include "confdefs.h"
11201 # define LT_DLGLOBAL RTLD_GLOBAL
11204 # define LT_DLGLOBAL DL_GLOBAL
11206 # define LT_DLGLOBAL 0
11210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211 find out it does not work in some platform. */
11212 #ifndef LT_DLLAZY_OR_NOW
11214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11217 # define LT_DLLAZY_OR_NOW DL_LAZY
11220 # define LT_DLLAZY_OR_NOW RTLD_NOW
11223 # define LT_DLLAZY_OR_NOW DL_NOW
11225 # define LT_DLLAZY_OR_NOW 0
11232 void fnord() { int i=42;}
11235 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11236 int status = $lt_dlunknown;
11240 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11241 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11242 /* dlclose (self); */
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251 (eval $ac_link) 2>&5
11253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11255 (.
/conftest
; exit; ) >&5 2>/dev
/null
11257 case x
$lt_status in
11258 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11259 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11260 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11263 # compilation failed
11264 lt_cv_dlopen_self
=no
11271 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11272 $as_echo "$lt_cv_dlopen_self" >&6; }
11274 if test "x$lt_cv_dlopen_self" = xyes
; then
11275 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11276 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11277 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11278 if test "${lt_cv_dlopen_self_static+set}" = set; then
11279 $as_echo_n "(cached) " >&6
11281 if test "$cross_compiling" = yes; then :
11282 lt_cv_dlopen_self_static
=cross
11284 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11285 lt_status
=$lt_dlunknown
11286 cat > conftest.
$ac_ext <<_LT_EOF
11287 #line 11287 "configure"
11288 #include "confdefs.h"
11297 # define LT_DLGLOBAL RTLD_GLOBAL
11300 # define LT_DLGLOBAL DL_GLOBAL
11302 # define LT_DLGLOBAL 0
11306 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11307 find out it does not work in some platform. */
11308 #ifndef LT_DLLAZY_OR_NOW
11310 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11313 # define LT_DLLAZY_OR_NOW DL_LAZY
11316 # define LT_DLLAZY_OR_NOW RTLD_NOW
11319 # define LT_DLLAZY_OR_NOW DL_NOW
11321 # define LT_DLLAZY_OR_NOW 0
11328 void fnord() { int i=42;}
11331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11332 int status = $lt_dlunknown;
11336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11337 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11338 /* dlclose (self); */
11346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347 (eval $ac_link) 2>&5
11349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11351 (.
/conftest
; exit; ) >&5 2>/dev
/null
11353 case x
$lt_status in
11354 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11355 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11356 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11359 # compilation failed
11360 lt_cv_dlopen_self_static
=no
11367 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11368 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11371 CPPFLAGS
="$save_CPPFLAGS"
11372 LDFLAGS
="$save_LDFLAGS"
11377 case $lt_cv_dlopen_self in
11378 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11379 *) enable_dlopen_self
=unknown
;;
11382 case $lt_cv_dlopen_self_static in
11383 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11384 *) enable_dlopen_self_static
=unknown
;;
11406 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11407 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11408 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11409 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11410 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11411 { $as_echo "$as_me:$LINENO: result: yes" >&5
11412 $as_echo "yes" >&6; }
11414 # FIXME - insert some real tests, host_os isn't really good enough
11417 if test -n "$STRIP" ; then
11418 striplib
="$STRIP -x"
11419 old_striplib
="$STRIP -S"
11420 { $as_echo "$as_me:$LINENO: result: yes" >&5
11421 $as_echo "yes" >&6; }
11423 { $as_echo "$as_me:$LINENO: result: no" >&5
11424 $as_echo "no" >&6; }
11428 { $as_echo "$as_me:$LINENO: result: no" >&5
11429 $as_echo "no" >&6; }
11445 # Report which library types will actually be built
11446 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11447 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11448 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11449 $as_echo "$can_build_shared" >&6; }
11451 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11452 $as_echo_n "checking whether to build shared libraries... " >&6; }
11453 test "$can_build_shared" = "no" && enable_shared
=no
11455 # On AIX, shared libraries and static libraries use the same namespace, and
11456 # are all built from PIC.
11459 test "$enable_shared" = yes && enable_static
=no
11460 if test -n "$RANLIB"; then
11461 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11462 postinstall_cmds
='$RANLIB $lib'
11467 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11468 test "$enable_shared" = yes && enable_static
=no
11472 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11473 $as_echo "$enable_shared" >&6; }
11475 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11476 $as_echo_n "checking whether to build static libraries... " >&6; }
11477 # Make sure either enable_shared or enable_static is yes.
11478 test "$enable_shared" = yes || enable_static
=yes
11479 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11480 $as_echo "$enable_static" >&6; }
11487 ac_cpp
='$CPP $CPPFLAGS'
11488 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11489 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11490 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11506 ac_config_commands
="$ac_config_commands libtool"
11511 # Only expand once:
11514 # By default we simply use the C compiler to build assembly code.
11516 test "${CCAS+set}" = set || CCAS
=$CC
11517 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11521 depcc
="$CCAS" am_compiler_list
=
11523 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11524 $as_echo_n "checking dependency style of $depcc... " >&6; }
11525 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11526 $as_echo_n "(cached) " >&6
11528 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11529 # We make a subdir and do the tests there. Otherwise we can end up
11530 # making bogus files that we don't know about and never remove. For
11531 # instance it was reported that on HP-UX the gcc test will end up
11532 # making a dummy file named `D' -- because `-MD' means `put the output
11535 # Copy depcomp to subdir because otherwise we won't find it if we're
11536 # using a relative directory.
11537 cp "$am_depcomp" conftest.dir
11539 # We will build objects and dependencies in a subdirectory because
11540 # it helps to detect inapplicable dependency modes. For instance
11541 # both Tru64's cc and ICC support -MD to output dependencies as a
11542 # side effect of compilation, but ICC will put the dependencies in
11543 # the current directory while Tru64 will put them in the object
11547 am_cv_CCAS_dependencies_compiler_type
=none
11548 if test "$am_compiler_list" = ""; then
11549 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11551 am__universal
=false
11554 for depmode
in $am_compiler_list; do
11555 # Setup a source with many dependencies, because some compilers
11556 # like to wrap large dependency lists on column 80 (with \), and
11557 # we should not choose a depcomp mode which is confused by this.
11559 # We need to recreate these files for each test, as the compiler may
11560 # overwrite some of them when testing with obscure command lines.
11561 # This happens at least with the AIX C compiler.
11563 for i
in 1 2 3 4 5 6; do
11564 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11565 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11566 # Solaris 8's {/usr,}/bin/sh.
11567 touch sub
/conftst
$i.h
11569 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11571 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11572 # mode. It turns out that the SunPro C++ compiler does not properly
11573 # handle `-M -o', and we need to detect this. Also, some Intel
11574 # versions had trouble with output in subdirs
11575 am__obj
=sub
/conftest.
${OBJEXT-o}
11576 am__minus_obj
="-o $am__obj"
11579 # This depmode causes a compiler race in universal mode.
11580 test "$am__universal" = false ||
continue
11583 # after this tag, mechanisms are not by side-effect, so they'll
11584 # only be used when explicitly requested
11585 if test "x$enable_dependency_tracking" = xyes
; then
11591 msvisualcpp | msvcmsys
)
11592 # This compiler won't grok `-c -o', but also, the minuso test has
11593 # not run yet. These depmodes are late enough in the game, and
11594 # so weak that their functioning should not be impacted.
11595 am__obj
=conftest.
${OBJEXT-o}
11600 if depmode
=$depmode \
11601 source=sub
/conftest.c object
=$am__obj \
11602 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11603 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11604 >/dev
/null
2>conftest.err
&&
11605 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11606 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11607 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11608 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11609 # icc doesn't choke on unknown options, it will just issue warnings
11610 # or remarks (even with -Werror). So we grep stderr for any message
11611 # that says an option was ignored or not supported.
11612 # When given -MP, icc 7.0 and 7.1 complain thusly:
11613 # icc: Command line warning: ignoring option '-M'; no argument required
11614 # The diagnosis changed in icc 8.0:
11615 # icc: Command line remark: option '-MP' not supported
11616 if (grep 'ignoring option' conftest.err ||
11617 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11618 am_cv_CCAS_dependencies_compiler_type
=$depmode
11625 rm -rf conftest.dir
11627 am_cv_CCAS_dependencies_compiler_type
=none
11631 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11632 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11633 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11636 test "x$enable_dependency_tracking" != xno \
11637 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11638 am__fastdepCCAS_TRUE
=
11639 am__fastdepCCAS_FALSE
='#'
11641 am__fastdepCCAS_TRUE
='#'
11642 am__fastdepCCAS_FALSE
=
11648 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11649 $as_echo_n "checking zfs author... " >&6; }
11650 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11651 $as_echo "$ZFS_META_AUTHOR" >&6; }
11653 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11654 $as_echo_n "checking zfs license... " >&6; }
11655 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11656 $as_echo "$ZFS_META_LICENSE" >&6; }
11663 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11664 $as_echo_n "checking whether $RPM is available... " >&6; }
11665 if tmp
=$
($RPM --version 2>/dev
/null
); then
11667 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11669 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11670 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11675 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11676 $as_echo "$HAVE_RPM" >&6; }
11681 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11682 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11683 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then
11685 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11687 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11688 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11693 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11694 $as_echo "$HAVE_RPMBUILD" >&6; }
11709 DPKGBUILD
=dpkg-buildpackage
11711 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11712 $as_echo_n "checking whether $DPKG is available... " >&6; }
11713 if tmp
=$
($DPKG --version 2>/dev
/null
); then
11715 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11717 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11718 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11723 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11724 $as_echo "$HAVE_DPKG" >&6; }
11729 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11730 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11731 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then
11733 DPKGBUILD_VERSION
=$
(echo $tmp | \
11734 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11736 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11737 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11742 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11743 $as_echo "$HAVE_DPKGBUILD" >&6; }
11759 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11760 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11761 if tmp
=$
($ALIEN --version 2>/dev
/null
); then
11763 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11765 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11766 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11771 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11772 $as_echo "$HAVE_ALIEN" >&6; }
11782 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11783 $as_echo_n "checking linux distribution... " >&6; }
11784 if test -f /etc
/redhat-release
; then
11786 elif test -f /etc
/fedora-release
; then
11788 elif test -f /etc
/lsb-release
; then
11790 elif test -f /etc
/debian_version
; then
11792 elif test -f /etc
/SuSE-release
; then
11794 elif test -f /etc
/slackware-version
; then
11796 elif test -f /etc
/gentoo-release
; then
11801 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11802 $as_echo "$VENDOR" >&6; }
11805 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11806 $as_echo_n "checking default package type... " >&6; }
11808 fedora
) DEFAULT_PACKAGE
=rpm
;;
11809 redhat
) DEFAULT_PACKAGE
=rpm
;;
11810 sles
) DEFAULT_PACKAGE
=rpm
;;
11811 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11812 debian
) DEFAULT_PACKAGE
=deb
;;
11813 slackware
) DEFAULT_PACKAGE
=tgz
;;
11814 *) DEFAULT_PACKAGE
=rpm
;;
11817 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11818 $as_echo "$DEFAULT_PACKAGE" >&6; }
11821 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11822 $as_echo_n "checking default init script type... " >&6; }
11824 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
11825 redhat
) DEFAULT_INIT_SCRIPT
=fedora
;;
11826 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
11827 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
11828 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
11829 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
11830 *) DEFAULT_INIT_SCRIPT
=lsb
;;
11833 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11834 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11839 TARGET_ASM_DIR
=asm-generic
11844 # Check whether --with-config was given.
11845 if test "${with_config+set}" = set; then
11846 withval
=$with_config; ZFS_CONFIG
="$withval"
11850 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11851 $as_echo_n "checking zfs config... " >&6; }
11852 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11853 $as_echo "$ZFS_CONFIG" >&6; };
11856 case "$ZFS_CONFIG" in
11860 # Check whether --with-linux was given.
11861 if test "${with_linux+set}" = set; then
11862 withval
=$with_linux; kernelsrc
="$withval"
11867 # Check whether --with-linux-obj was given.
11868 if test "${with_linux_obj+set}" = set; then
11869 withval
=$with_linux_obj; kernelbuild
="$withval"
11873 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11874 $as_echo_n "checking kernel source directory... " >&6; }
11875 if test -z "$kernelsrc"; then
11876 if test -e "/lib/modules/$(uname -r)/source"; then
11877 headersdir
="/lib/modules/$(uname -r)/source"
11878 sourcelink
=$
(readlink
-f "$headersdir")
11879 elif test -e "/lib/modules/$(uname -r)/build"; then
11880 headersdir
="/lib/modules/$(uname -r)/build"
11881 sourcelink
=$
(readlink
-f "$headersdir")
11883 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
11885 2>/dev
/null |
grep -v obj |
tail -1)
11888 if test -n "$sourcelink" && test -e ${sourcelink}; then
11889 kernelsrc
=`readlink -f ${sourcelink}`
11891 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11892 $as_echo "Not found" >&6; }
11893 { { $as_echo "$as_me:$LINENO: error:
11894 *** Please make sure the kernel devel package for your distribution
11895 *** is installed then try again. If that fails you can specify the
11896 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11897 $as_echo "$as_me: error:
11898 *** Please make sure the kernel devel package for your distribution
11899 *** is installed then try again. If that fails you can specify the
11900 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11901 { (exit 1); exit 1; }; }
11904 if test "$kernelsrc" = "NONE"; then
11909 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11910 $as_echo "$kernelsrc" >&6; }
11911 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11912 $as_echo_n "checking kernel build directory... " >&6; }
11913 if test -z "$kernelbuild"; then
11914 if test -e "/lib/modules/$(uname -r)/build"; then
11915 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
11916 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11917 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11918 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
11919 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
11920 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
11921 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
11923 kernelbuild
=${kernelsrc}
11926 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11927 $as_echo "$kernelbuild" >&6; }
11929 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11930 $as_echo_n "checking kernel source version... " >&6; }
11931 utsrelease1
=$kernelbuild/include
/linux
/version.h
11932 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
11933 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
11934 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
11935 utsrelease
=linux
/version.h
11936 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
11937 utsrelease
=linux
/utsrelease.h
11938 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
11939 utsrelease
=generated
/utsrelease.h
11942 if test "$utsrelease"; then
11943 kernsrcver
=`(echo "#include <$utsrelease>";
11944 echo "kernsrcver=UTS_RELEASE") |
11945 cpp -I $kernelbuild/include |
11946 grep "^kernsrcver=" | cut -d \" -f 2`
11948 if test -z "$kernsrcver"; then
11949 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11950 $as_echo "Not found" >&6; }
11951 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11952 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11953 { (exit 1); exit 1; }; }
11956 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11957 $as_echo "Not found" >&6; }
11958 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11959 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11960 { (exit 1); exit 1; }; }
11963 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11964 $as_echo "$kernsrcver" >&6; }
11967 LINUX_OBJ
=${kernelbuild}
11968 LINUX_VERSION
=${kernsrcver}
11975 modpost
=$LINUX/scripts
/Makefile.modpost
11976 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11977 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11978 if test -f "$modpost"; then
11979 if grep -q Modules.symvers
$modpost; then
11980 LINUX_SYMBOLS
=Modules.symvers
11982 LINUX_SYMBOLS
=Module.symvers
11985 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11986 { { $as_echo "$as_me:$LINENO: error:
11987 *** Please make sure the kernel devel package for your distribution
11988 *** is installed. If your building with a custom kernel make sure the
11989 *** kernel is configured, built, and the '--with-linux=PATH' configure
11990 *** option refers to the location of the kernel source." >&5
11991 $as_echo "$as_me: error:
11992 *** Please make sure the kernel devel package for your distribution
11993 *** is installed. If your building with a custom kernel make sure the
11994 *** kernel is configured, built, and the '--with-linux=PATH' configure
11995 *** option refers to the location of the kernel source." >&2;}
11996 { (exit 1); exit 1; }; }
12001 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12002 $as_echo "$LINUX_SYMBOLS" >&6; }
12008 # Check whether --with-spl was given.
12009 if test "${with_spl+set}" = set; then
12010 withval
=$with_spl; splsrc
="$withval"
12015 # Check whether --with-spl-obj was given.
12016 if test "${with_spl_obj+set}" = set; then
12017 withval
=$with_spl_obj; splbuild
="$withval"
12022 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12023 $as_echo_n "checking spl source directory... " >&6; }
12024 if test -z "$splsrc"; then
12025 sourcelink
=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12026 2>/dev/null | tail -1`
12028 if test -z "$sourcelink" ||
test ! -e $sourcelink; then
12032 if test -e $sourcelink; then
12033 splsrc
=`readlink -f ${sourcelink}`
12035 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12036 $as_echo "Not found" >&6; }
12037 { { $as_echo "$as_me:$LINENO: error:
12038 *** Please make sure the spl devel package for your distribution
12039 *** is installed then try again. If that fails you can specify the
12040 *** location of the spl source with the '--with-spl=PATH' option." >&5
12041 $as_echo "$as_me: error:
12042 *** Please make sure the spl devel package for your distribution
12043 *** is installed then try again. If that fails you can specify the
12044 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12045 { (exit 1); exit 1; }; }
12048 if test "$splsrc" = "NONE"; then
12054 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12055 $as_echo "$splsrc" >&6; }
12056 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12057 $as_echo_n "checking spl build directory... " >&6; }
12058 if test -z "$splbuild"; then
12061 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12062 $as_echo "$splbuild" >&6; }
12064 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12065 $as_echo_n "checking spl source version... " >&6; }
12066 if test -r $splbuild/spl_config.h
&&
12067 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then
12069 splsrcver
=`(echo "#include <spl_config.h>";
12070 echo "splsrcver=SPL_META_VERSION") |
12072 grep "^splsrcver=" | cut -d \" -f 2`
12075 if test -z "$splsrcver"; then
12076 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12077 $as_echo "Not found" >&6; }
12078 { { $as_echo "$as_me:$LINENO: error:
12079 *** Cannot determine the version of the spl source.
12080 *** Please prepare the spl source before running this script" >&5
12081 $as_echo "$as_me: error:
12082 *** Cannot determine the version of the spl source.
12083 *** Please prepare the spl source before running this script" >&2;}
12084 { (exit 1); exit 1; }; }
12087 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12088 $as_echo "$splsrcver" >&6; }
12091 SPL_OBJ
=${splbuild}
12092 SPL_VERSION
=${splsrcver}
12099 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12100 $as_echo_n "checking spl file name for module symbols... " >&6; }
12101 if test -r $SPL_OBJ/Module.symvers
; then
12102 SPL_SYMBOLS
=Module.symvers
12103 elif test -r $SPL_OBJ/Modules.symvers
; then
12104 SPL_SYMBOLS
=Modules.symvers
12105 elif test -r $SPL_OBJ/module
/Module.symvers
; then
12106 SPL_SYMBOLS
=Module.symvers
12107 elif test -r $SPL_OBJ/module
/Modules.symvers
; then
12108 SPL_SYMBOLS
=Modules.symvers
12110 SPL_SYMBOLS
=$LINUX_SYMBOLS
12113 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12114 $as_echo "$SPL_SYMBOLS" >&6; }
12120 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12121 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12124 cat confdefs.h
- <<_ACEOF >conftest.c
12127 cat confdefs.h
>>conftest.
$ac_ext
12128 cat >>conftest.
$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12132 #ifndef AUTOCONF_INCLUDED
12133 #include <linux/config.h>
12140 #ifndef CONFIG_PREEMPT
12141 #error CONFIG_PREEMPT not #defined
12151 rm -Rf build
&& mkdir
-p build
12152 echo "obj-m := conftest.o" >build
/Makefile
12153 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; }; then
12165 { $as_echo "$as_me:$LINENO: result: yes" >&5
12166 $as_echo "yes" >&6; }
12167 { { $as_echo "$as_me:$LINENO: error:
12168 *** Kernel built with CONFIG_PREEMPT which is not supported.
12169 ** You must rebuild your kernel without this option." >&5
12170 $as_echo "$as_me: error:
12171 *** Kernel built with CONFIG_PREEMPT which is not supported.
12172 ** You must rebuild your kernel without this option." >&2;}
12173 { (exit 1); exit 1; }; }
12176 $as_echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.
$ac_ext >&5
12179 { $as_echo "$as_me:$LINENO: result: no" >&5
12180 $as_echo "no" >&6; }
12192 if test "$ZFS_META_LICENSE" = CDDL
; then
12193 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12194 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12197 cat confdefs.h
- <<_ACEOF >conftest.c
12200 cat confdefs.h
>>conftest.
$ac_ext
12201 cat >>conftest.
$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12205 #ifndef AUTOCONF_INCLUDED
12206 #include <linux/config.h>
12213 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12214 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12224 rm -Rf build
&& mkdir
-p build
12225 echo "obj-m := conftest.o" >build
/Makefile
12226 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; }; then
12238 { $as_echo "$as_me:$LINENO: result: yes" >&5
12239 $as_echo "yes" >&6; }
12240 { { $as_echo "$as_me:$LINENO: error:
12241 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12242 *** incompatible with the CDDL license. You must rebuild
12243 *** your kernel without this option." >&5
12244 $as_echo "$as_me: error:
12245 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12246 *** incompatible with the CDDL license. You must rebuild
12247 *** your kernel without this option." >&2;}
12248 { (exit 1); exit 1; }; }
12251 $as_echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.
$ac_ext >&5
12254 { $as_echo "$as_me:$LINENO: result: no" >&5
12255 $as_echo "no" >&6; }
12268 if test "$ZFS_META_LICENSE" = GPL
; then
12270 cat >>confdefs.h
<<\_ACEOF
12271 #define HAVE_GPL_ONLY_SYMBOLS 1
12277 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12278 $as_echo_n "checking block device operation prototypes... " >&6; }
12281 cat confdefs.h
- <<_ACEOF >conftest.c
12284 cat confdefs.h
>>conftest.
$ac_ext
12285 cat >>conftest.
$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12289 #include <linux/blkdev.h>
12295 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12296 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12297 int (*blk_ioctl) (struct block_device *, fmode_t,
12298 unsigned, unsigned long) = NULL;
12299 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12300 unsigned, unsigned long) = NULL;
12301 struct block_device_operations blk_ops = {
12303 .release = blk_release,
12304 .ioctl = blk_ioctl,
12305 .compat_ioctl = blk_compat_ioctl,
12308 blk_ops.open(NULL, 0);
12309 blk_ops.release(NULL, 0);
12310 blk_ops.ioctl(NULL, 0, 0, 0);
12311 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12320 rm -Rf build
&& mkdir
-p build
12321 echo "obj-m := conftest.o" >build
/Makefile
12322 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; }; then
12334 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12335 $as_echo "struct block_device" >&6; }
12337 cat >>confdefs.h
<<\_ACEOF
12338 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12343 $as_echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.
$ac_ext >&5
12346 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12347 $as_echo "struct inode" >&6; }
12357 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12358 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12361 cat confdefs.h
- <<_ACEOF >conftest.c
12364 cat confdefs.h
>>conftest.
$ac_ext
12365 cat >>conftest.
$ac_ext <<_ACEOF
12366 /* end confdefs.h. */
12369 #include <linux/types.h>
12375 fmode_t *ptr __attribute__ ((unused));
12384 rm -Rf build
&& mkdir
-p build
12385 echo "obj-m := conftest.o" >build
/Makefile
12386 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12398 { $as_echo "$as_me:$LINENO: result: yes" >&5
12399 $as_echo "yes" >&6; }
12401 cat >>confdefs.h
<<\_ACEOF
12402 #define HAVE_FMODE_T 1
12407 $as_echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.
$ac_ext >&5
12410 { $as_echo "$as_me:$LINENO: result: no" >&5
12411 $as_echo "no" >&6; }
12422 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12423 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12426 cat confdefs.h
- <<_ACEOF >conftest.c
12429 cat confdefs.h
>>conftest.
$ac_ext
12430 cat >>conftest.
$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12434 #include <linux/kobject.h>
12440 int val __attribute__ ((unused));
12441 val = KOBJ_NAME_LEN;
12450 rm -Rf build
&& mkdir
-p build
12451 echo "obj-m := conftest.o" >build
/Makefile
12452 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12464 { $as_echo "$as_me:$LINENO: result: yes" >&5
12465 $as_echo "yes" >&6; }
12467 cat >>confdefs.h
<<\_ACEOF
12468 #define HAVE_KOBJ_NAME_LEN 1
12473 $as_echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.
$ac_ext >&5
12476 { $as_echo "$as_me:$LINENO: result: no" >&5
12477 $as_echo "no" >&6; }
12488 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12489 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12490 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12491 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12493 if test $rc -ne 0; then
12495 for file in fs
/block_dev.c
; do
12496 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev
/null
12498 if test $rc -eq 0; then
12503 if test $export -eq 0; then
12504 { $as_echo "$as_me:$LINENO: result: no" >&5
12505 $as_echo "no" >&6; }
12508 { $as_echo "$as_me:$LINENO: result: yes" >&5
12509 $as_echo "yes" >&6; }
12511 cat >>confdefs.h
<<\_ACEOF
12512 #define HAVE_BLKDEV_GET_BY_PATH 1
12517 { $as_echo "$as_me:$LINENO: result: yes" >&5
12518 $as_echo "yes" >&6; }
12520 cat >>confdefs.h
<<\_ACEOF
12521 #define HAVE_BLKDEV_GET_BY_PATH 1
12528 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12529 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12530 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12531 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12533 if test $rc -ne 0; then
12535 for file in fs
/block_dev.c
; do
12536 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev
/null
12538 if test $rc -eq 0; then
12543 if test $export -eq 0; then
12544 { $as_echo "$as_me:$LINENO: result: no" >&5
12545 $as_echo "no" >&6; }
12548 { $as_echo "$as_me:$LINENO: result: yes" >&5
12549 $as_echo "yes" >&6; }
12551 cat >>confdefs.h
<<\_ACEOF
12552 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12557 { $as_echo "$as_me:$LINENO: result: yes" >&5
12558 $as_echo "yes" >&6; }
12560 cat >>confdefs.h
<<\_ACEOF
12561 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12568 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12569 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12572 cat confdefs.h
- <<_ACEOF >conftest.c
12575 cat confdefs.h
>>conftest.
$ac_ext
12576 cat >>conftest.
$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12580 #include <linux/buffer_head.h>
12586 struct block_device *bdev = NULL;
12587 invalidate_bdev(bdev);
12596 rm -Rf build
&& mkdir
-p build
12597 echo "obj-m := conftest.o" >build
/Makefile
12598 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12610 { $as_echo "$as_me:$LINENO: result: yes" >&5
12611 $as_echo "yes" >&6; }
12613 cat >>confdefs.h
<<\_ACEOF
12614 #define HAVE_1ARG_INVALIDATE_BDEV 1
12619 $as_echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.
$ac_ext >&5
12622 { $as_echo "$as_me:$LINENO: result: no" >&5
12623 $as_echo "no" >&6; }
12634 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12635 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12638 cat confdefs.h
- <<_ACEOF >conftest.c
12641 cat confdefs.h
>>conftest.
$ac_ext
12642 cat >>conftest.
$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12646 #include <linux/blkdev.h>
12652 struct block_device *bdev = NULL;
12653 bdev_logical_block_size(bdev);
12662 rm -Rf build
&& mkdir
-p build
12663 echo "obj-m := conftest.o" >build
/Makefile
12664 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12676 { $as_echo "$as_me:$LINENO: result: yes" >&5
12677 $as_echo "yes" >&6; }
12679 cat >>confdefs.h
<<\_ACEOF
12680 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12685 $as_echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.
$ac_ext >&5
12688 { $as_echo "$as_me:$LINENO: result: no" >&5
12689 $as_echo "no" >&6; }
12700 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12701 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12702 EXTRA_KCFLAGS
="-Werror"
12705 cat confdefs.h
- <<_ACEOF >conftest.c
12708 cat confdefs.h
>>conftest.
$ac_ext
12709 cat >>conftest.
$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12713 #include <linux/bio.h>
12720 (void)bio_empty_barrier(&bio);
12729 rm -Rf build
&& mkdir
-p build
12730 echo "obj-m := conftest.o" >build
/Makefile
12731 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12743 { $as_echo "$as_me:$LINENO: result: yes" >&5
12744 $as_echo "yes" >&6; }
12746 cat >>confdefs.h
<<\_ACEOF
12747 #define HAVE_BIO_EMPTY_BARRIER 1
12752 $as_echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.
$ac_ext >&5
12755 { $as_echo "$as_me:$LINENO: result: no" >&5
12756 $as_echo "no" >&6; }
12767 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
12768 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
12771 cat confdefs.h
- <<_ACEOF >conftest.c
12774 cat confdefs.h
>>conftest.
$ac_ext
12775 cat >>conftest.
$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12779 #include <linux/bio.h>
12785 int flags __attribute__ ((unused));
12786 flags = (1 << BIO_RW_FAILFAST);
12795 rm -Rf build
&& mkdir
-p build
12796 echo "obj-m := conftest.o" >build
/Makefile
12797 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12809 { $as_echo "$as_me:$LINENO: result: yes" >&5
12810 $as_echo "yes" >&6; }
12812 cat >>confdefs.h
<<\_ACEOF
12813 #define HAVE_BIO_RW_FAILFAST 1
12818 $as_echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.
$ac_ext >&5
12821 { $as_echo "$as_me:$LINENO: result: no" >&5
12822 $as_echo "no" >&6; }
12833 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
12834 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
12837 cat confdefs.h
- <<_ACEOF >conftest.c
12840 cat confdefs.h
>>conftest.
$ac_ext
12841 cat >>conftest.
$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12845 #include <linux/bio.h>
12851 int flags __attribute__ ((unused));
12852 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12853 (1 << BIO_RW_FAILFAST_TRANSPORT) |
12854 (1 << BIO_RW_FAILFAST_DRIVER));
12863 rm -Rf build
&& mkdir
-p build
12864 echo "obj-m := conftest.o" >build
/Makefile
12865 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12877 { $as_echo "$as_me:$LINENO: result: yes" >&5
12878 $as_echo "yes" >&6; }
12880 cat >>confdefs.h
<<\_ACEOF
12881 #define HAVE_BIO_RW_FAILFAST_DTD 1
12886 $as_echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.
$ac_ext >&5
12889 { $as_echo "$as_me:$LINENO: result: no" >&5
12890 $as_echo "no" >&6; }
12901 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
12902 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
12905 cat confdefs.h
- <<_ACEOF >conftest.c
12908 cat confdefs.h
>>conftest.
$ac_ext
12909 cat >>conftest.
$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12913 #include <linux/bio.h>
12919 int flags __attribute__ ((unused));
12920 flags = REQ_FAILFAST_MASK;
12929 rm -Rf build
&& mkdir
-p build
12930 echo "obj-m := conftest.o" >build
/Makefile
12931 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; }; then
12943 { $as_echo "$as_me:$LINENO: result: yes" >&5
12944 $as_echo "yes" >&6; }
12946 cat >>confdefs.h
<<\_ACEOF
12947 #define HAVE_BIO_REQ_FAILFAST_MASK 1
12952 $as_echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.
$ac_ext >&5
12955 { $as_echo "$as_me:$LINENO: result: no" >&5
12956 $as_echo "no" >&6; }
12967 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
12968 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12969 tmp_flags
="$EXTRA_KCFLAGS"
12970 EXTRA_KCFLAGS
="-Werror"
12973 cat confdefs.h
- <<_ACEOF >conftest.c
12976 cat confdefs.h
>>conftest.
$ac_ext
12977 cat >>conftest.
$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12981 #include <linux/bio.h>
12987 void (*wanted_end_io)(struct bio *, int) = NULL;
12988 bio_end_io_t *local_end_io __attribute__ ((unused));
12990 local_end_io = wanted_end_io;
12999 rm -Rf build
&& mkdir
-p build
13000 echo "obj-m := conftest.o" >build
/Makefile
13001 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13013 { $as_echo "$as_me:$LINENO: result: yes" >&5
13014 $as_echo "yes" >&6; }
13016 cat >>confdefs.h
<<\_ACEOF
13017 #define HAVE_2ARGS_BIO_END_IO_T 1
13022 $as_echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.
$ac_ext >&5
13025 { $as_echo "$as_me:$LINENO: result: no" >&5
13026 $as_echo "no" >&6; }
13035 EXTRA_KCFLAGS
="$tmp_flags"
13038 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13039 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13042 cat confdefs.h
- <<_ACEOF >conftest.c
13045 cat confdefs.h
>>conftest.
$ac_ext
13046 cat >>conftest.
$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13050 #include <linux/bio.h>
13056 int flags __attribute__ ((unused));
13057 flags = BIO_RW_SYNC;
13066 rm -Rf build
&& mkdir
-p build
13067 echo "obj-m := conftest.o" >build
/Makefile
13068 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13080 { $as_echo "$as_me:$LINENO: result: yes" >&5
13081 $as_echo "yes" >&6; }
13083 cat >>confdefs.h
<<\_ACEOF
13084 #define HAVE_BIO_RW_SYNC 1
13089 $as_echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.
$ac_ext >&5
13092 { $as_echo "$as_me:$LINENO: result: no" >&5
13093 $as_echo "no" >&6; }
13104 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13105 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13108 cat confdefs.h
- <<_ACEOF >conftest.c
13111 cat confdefs.h
>>conftest.
$ac_ext
13112 cat >>conftest.
$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13116 #include <linux/bio.h>
13122 int flags __attribute__ ((unused));
13123 flags = BIO_RW_SYNCIO;
13132 rm -Rf build
&& mkdir
-p build
13133 echo "obj-m := conftest.o" >build
/Makefile
13134 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13146 { $as_echo "$as_me:$LINENO: result: yes" >&5
13147 $as_echo "yes" >&6; }
13149 cat >>confdefs.h
<<\_ACEOF
13150 #define HAVE_BIO_RW_SYNCIO 1
13155 $as_echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.
$ac_ext >&5
13158 { $as_echo "$as_me:$LINENO: result: no" >&5
13159 $as_echo "no" >&6; }
13170 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13171 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13174 cat confdefs.h
- <<_ACEOF >conftest.c
13177 cat confdefs.h
>>conftest.
$ac_ext
13178 cat >>conftest.
$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13182 #include <linux/bio.h>
13188 int flags __attribute__ ((unused));
13198 rm -Rf build
&& mkdir
-p build
13199 echo "obj-m := conftest.o" >build
/Makefile
13200 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13212 { $as_echo "$as_me:$LINENO: result: yes" >&5
13213 $as_echo "yes" >&6; }
13215 cat >>confdefs.h
<<\_ACEOF
13216 #define HAVE_REQ_SYNC 1
13221 $as_echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.
$ac_ext >&5
13224 { $as_echo "$as_me:$LINENO: result: no" >&5
13225 $as_echo "no" >&6; }
13236 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13237 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13240 cat confdefs.h
- <<_ACEOF >conftest.c
13243 cat confdefs.h
>>conftest.
$ac_ext
13244 cat >>conftest.
$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13248 #include <linux/blkdev.h>
13254 struct request *req = NULL;
13255 (void) blk_end_request(req, 0, 0);
13264 rm -Rf build
&& mkdir
-p build
13265 echo "obj-m := conftest.o" >build
/Makefile
13266 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; }; then
13278 { $as_echo "$as_me:$LINENO: result: yes" >&5
13279 $as_echo "yes" >&6; }
13281 cat >>confdefs.h
<<\_ACEOF
13282 #define HAVE_BLK_END_REQUEST 1
13287 $as_echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.
$ac_ext >&5
13290 { $as_echo "$as_me:$LINENO: result: no" >&5
13291 $as_echo "no" >&6; }
13301 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13302 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13305 cat confdefs.h
- <<_ACEOF >conftest.c
13308 cat confdefs.h
>>conftest.
$ac_ext
13309 cat >>conftest.
$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13313 #include <linux/module.h>
13314 #include <linux/blkdev.h>
13316 MODULE_LICENSE("CDDL");
13322 struct request *req = NULL;
13323 (void) blk_end_request(req, 0, 0);
13332 rm -Rf build
&& mkdir
-p build
13333 echo "obj-m := conftest.o" >build
/Makefile
13334 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13346 { $as_echo "$as_me:$LINENO: result: no" >&5
13347 $as_echo "no" >&6; }
13350 $as_echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.
$ac_ext >&5
13353 { $as_echo "$as_me:$LINENO: result: yes" >&5
13354 $as_echo "yes" >&6; }
13356 cat >>confdefs.h
<<\_ACEOF
13357 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13370 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
13371 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13374 cat confdefs.h
- <<_ACEOF >conftest.c
13377 cat confdefs.h
>>conftest.
$ac_ext
13378 cat >>conftest.
$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13382 #include <linux/blkdev.h>
13388 struct request_queue *q = NULL;
13389 (void) blk_fetch_request(q);
13398 rm -Rf build
&& mkdir
-p build
13399 echo "obj-m := conftest.o" >build
/Makefile
13400 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }; then
13412 { $as_echo "$as_me:$LINENO: result: yes" >&5
13413 $as_echo "yes" >&6; }
13415 cat >>confdefs.h
<<\_ACEOF
13416 #define HAVE_BLK_FETCH_REQUEST 1
13421 $as_echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.
$ac_ext >&5
13424 { $as_echo "$as_me:$LINENO: result: no" >&5
13425 $as_echo "no" >&6; }
13436 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13437 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13440 cat confdefs.h
- <<_ACEOF >conftest.c
13443 cat confdefs.h
>>conftest.
$ac_ext
13444 cat >>conftest.
$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13448 #include <linux/blkdev.h>
13454 struct request_queue *q = NULL;
13455 struct request *req = NULL;
13456 blk_requeue_request(q, req);
13465 rm -Rf build
&& mkdir
-p build
13466 echo "obj-m := conftest.o" >build
/Makefile
13467 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13479 { $as_echo "$as_me:$LINENO: result: yes" >&5
13480 $as_echo "yes" >&6; }
13482 cat >>confdefs.h
<<\_ACEOF
13483 #define HAVE_BLK_REQUEUE_REQUEST 1
13488 $as_echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.
$ac_ext >&5
13491 { $as_echo "$as_me:$LINENO: result: no" >&5
13492 $as_echo "no" >&6; }
13503 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13504 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13507 cat confdefs.h
- <<_ACEOF >conftest.c
13510 cat confdefs.h
>>conftest.
$ac_ext
13511 cat >>conftest.
$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13515 #include <linux/blkdev.h>
13521 struct request *req = NULL;
13522 (void) blk_rq_bytes(req);
13531 rm -Rf build
&& mkdir
-p build
13532 echo "obj-m := conftest.o" >build
/Makefile
13533 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13545 { $as_echo "$as_me:$LINENO: result: yes" >&5
13546 $as_echo "yes" >&6; }
13548 cat >>confdefs.h
<<\_ACEOF
13549 #define HAVE_BLK_RQ_BYTES 1
13554 $as_echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.
$ac_ext >&5
13557 { $as_echo "$as_me:$LINENO: result: no" >&5
13558 $as_echo "no" >&6; }
13568 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13569 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13572 cat confdefs.h
- <<_ACEOF >conftest.c
13575 cat confdefs.h
>>conftest.
$ac_ext
13576 cat >>conftest.
$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13580 #include <linux/module.h>
13581 #include <linux/blkdev.h>
13583 MODULE_LICENSE("CDDL");
13589 struct request *req = NULL;
13590 (void) blk_rq_bytes(req);
13599 rm -Rf build
&& mkdir
-p build
13600 echo "obj-m := conftest.o" >build
/Makefile
13601 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; }; then
13613 { $as_echo "$as_me:$LINENO: result: no" >&5
13614 $as_echo "no" >&6; }
13617 $as_echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.
$ac_ext >&5
13620 { $as_echo "$as_me:$LINENO: result: yes" >&5
13621 $as_echo "yes" >&6; }
13623 cat >>confdefs.h
<<\_ACEOF
13624 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13637 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13638 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13641 cat confdefs.h
- <<_ACEOF >conftest.c
13644 cat confdefs.h
>>conftest.
$ac_ext
13645 cat >>conftest.
$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13649 #include <linux/blkdev.h>
13655 struct request *req = NULL;
13656 (void) blk_rq_pos(req);
13665 rm -Rf build
&& mkdir
-p build
13666 echo "obj-m := conftest.o" >build
/Makefile
13667 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
13679 { $as_echo "$as_me:$LINENO: result: yes" >&5
13680 $as_echo "yes" >&6; }
13682 cat >>confdefs.h
<<\_ACEOF
13683 #define HAVE_BLK_RQ_POS 1
13688 $as_echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.
$ac_ext >&5
13691 { $as_echo "$as_me:$LINENO: result: no" >&5
13692 $as_echo "no" >&6; }
13703 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13704 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13707 cat confdefs.h
- <<_ACEOF >conftest.c
13710 cat confdefs.h
>>conftest.
$ac_ext
13711 cat >>conftest.
$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13715 #include <linux/blkdev.h>
13721 struct request *req = NULL;
13722 (void) blk_rq_sectors(req);
13731 rm -Rf build
&& mkdir
-p build
13732 echo "obj-m := conftest.o" >build
/Makefile
13733 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13745 { $as_echo "$as_me:$LINENO: result: yes" >&5
13746 $as_echo "yes" >&6; }
13748 cat >>confdefs.h
<<\_ACEOF
13749 #define HAVE_BLK_RQ_SECTORS 1
13754 $as_echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.
$ac_ext >&5
13757 { $as_echo "$as_me:$LINENO: result: no" >&5
13758 $as_echo "no" >&6; }
13769 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
13770 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
13773 cat confdefs.h
- <<_ACEOF >conftest.c
13776 cat confdefs.h
>>conftest.
$ac_ext
13777 cat >>conftest.
$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13781 #include <linux/blkdev.h>
13787 struct gendisk *disk = NULL;
13788 (void) get_disk_ro(disk);
13797 rm -Rf build
&& mkdir
-p build
13798 echo "obj-m := conftest.o" >build
/Makefile
13799 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13811 { $as_echo "$as_me:$LINENO: result: yes" >&5
13812 $as_echo "yes" >&6; }
13814 cat >>confdefs.h
<<\_ACEOF
13815 #define HAVE_GET_DISK_RO 1
13820 $as_echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.
$ac_ext >&5
13823 { $as_echo "$as_me:$LINENO: result: no" >&5
13824 $as_echo "no" >&6; }
13835 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
13836 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
13839 cat confdefs.h
- <<_ACEOF >conftest.c
13842 cat confdefs.h
>>conftest.
$ac_ext
13843 cat >>conftest.
$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13847 #include <linux/blkdev.h>
13853 struct request *req = NULL;
13854 (void) rq_is_sync(req);
13863 rm -Rf build
&& mkdir
-p build
13864 echo "obj-m := conftest.o" >build
/Makefile
13865 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }; then
13877 { $as_echo "$as_me:$LINENO: result: yes" >&5
13878 $as_echo "yes" >&6; }
13880 cat >>confdefs.h
<<\_ACEOF
13881 #define HAVE_RQ_IS_SYNC 1
13886 $as_echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.
$ac_ext >&5
13889 { $as_echo "$as_me:$LINENO: result: no" >&5
13890 $as_echo "no" >&6; }
13901 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
13902 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
13905 cat confdefs.h
- <<_ACEOF >conftest.c
13908 cat confdefs.h
>>conftest.
$ac_ext
13909 cat >>conftest.
$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13913 #include <linux/blkdev.h>
13919 struct bio_vec *bv;
13920 struct req_iterator iter;
13921 struct request *req = NULL;
13922 rq_for_each_segment(bv, req, iter) { }
13931 rm -Rf build
&& mkdir
-p build
13932 echo "obj-m := conftest.o" >build
/Makefile
13933 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; }; then
13945 { $as_echo "$as_me:$LINENO: result: yes" >&5
13946 $as_echo "yes" >&6; }
13948 cat >>confdefs.h
<<\_ACEOF
13949 #define HAVE_RQ_FOR_EACH_SEGMENT 1
13954 $as_echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.
$ac_ext >&5
13957 { $as_echo "$as_me:$LINENO: result: no" >&5
13958 $as_echo "no" >&6; }
13968 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
13969 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
13972 cat confdefs.h
- <<_ACEOF >conftest.c
13975 cat confdefs.h
>>conftest.
$ac_ext
13976 cat >>conftest.
$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13980 #include <linux/fs.h>
13981 #include <linux/xattr.h>
13983 const struct xattr_handler xattr_test_handler = {
13989 const struct xattr_handler *xattr_handlers[] = {
13990 &xattr_test_handler,
13997 struct super_block sb __attribute__ ((unused));
13999 sb.s_xattr = xattr_handlers;
14008 rm -Rf build
&& mkdir
-p build
14009 echo "obj-m := conftest.o" >build
/Makefile
14010 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14022 { $as_echo "$as_me:$LINENO: result: yes" >&5
14023 $as_echo "yes" >&6; }
14025 cat >>confdefs.h
<<\_ACEOF
14026 #define HAVE_CONST_XATTR_HANDLER 1
14031 $as_echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.
$ac_ext >&5
14034 { $as_echo "$as_me:$LINENO: result: no" >&5
14035 $as_echo "no" >&6; }
14046 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14047 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14050 cat confdefs.h
- <<_ACEOF >conftest.c
14053 cat confdefs.h
>>conftest.
$ac_ext
14054 cat >>conftest.
$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14058 #include <linux/xattr.h>
14064 int (*get)(struct dentry *dentry, const char *name,
14065 void *buffer, size_t size, int handler_flags) = NULL;
14066 struct xattr_handler xops __attribute__ ((unused));
14077 rm -Rf build
&& mkdir
-p build
14078 echo "obj-m := conftest.o" >build
/Makefile
14079 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14091 { $as_echo "$as_me:$LINENO: result: yes" >&5
14092 $as_echo "yes" >&6; }
14094 cat >>confdefs.h
<<\_ACEOF
14095 #define HAVE_DENTRY_XATTR_GET 1
14100 $as_echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.
$ac_ext >&5
14103 { $as_echo "$as_me:$LINENO: result: no" >&5
14104 $as_echo "no" >&6; }
14115 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
14116 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14119 cat confdefs.h
- <<_ACEOF >conftest.c
14122 cat confdefs.h
>>conftest.
$ac_ext
14123 cat >>conftest.
$ac_ext <<_ACEOF
14124 /* end confdefs.h. */
14127 #include <linux/xattr.h>
14133 int (*set)(struct dentry *dentry, const char *name,
14134 const void *buffer, size_t size, int flags,
14135 int handler_flags) = NULL;
14136 struct xattr_handler xops __attribute__ ((unused));
14147 rm -Rf build
&& mkdir
-p build
14148 echo "obj-m := conftest.o" >build
/Makefile
14149 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
14161 { $as_echo "$as_me:$LINENO: result: yes" >&5
14162 $as_echo "yes" >&6; }
14164 cat >>confdefs.h
<<\_ACEOF
14165 #define HAVE_DENTRY_XATTR_SET 1
14170 $as_echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.
$ac_ext >&5
14173 { $as_echo "$as_me:$LINENO: result: no" >&5
14174 $as_echo "no" >&6; }
14185 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
14186 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
14189 cat confdefs.h
- <<_ACEOF >conftest.c
14192 cat confdefs.h
>>conftest.
$ac_ext
14193 cat >>conftest.
$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14197 #include <linux/fs.h>
14203 int (*fsync) (struct file *, int datasync) = NULL;
14204 struct file_operations fops __attribute__ ((unused));
14206 fops.fsync = fsync;
14215 rm -Rf build
&& mkdir
-p build
14216 echo "obj-m := conftest.o" >build
/Makefile
14217 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14229 { $as_echo "$as_me:$LINENO: result: yes" >&5
14230 $as_echo "yes" >&6; }
14232 cat >>confdefs.h
<<\_ACEOF
14233 #define HAVE_2ARGS_FSYNC 1
14238 $as_echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.
$ac_ext >&5
14241 { $as_echo "$as_me:$LINENO: result: no" >&5
14242 $as_echo "no" >&6; }
14253 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
14254 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14257 cat confdefs.h
- <<_ACEOF >conftest.c
14260 cat confdefs.h
>>conftest.
$ac_ext
14261 cat >>conftest.
$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14265 #include <linux/fs.h>
14271 void (*evict_inode) (struct inode *) = NULL;
14272 struct super_operations sops __attribute__ ((unused));
14274 sops.evict_inode = evict_inode;
14283 rm -Rf build
&& mkdir
-p build
14284 echo "obj-m := conftest.o" >build
/Makefile
14285 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
14297 { $as_echo "$as_me:$LINENO: result: yes" >&5
14298 $as_echo "yes" >&6; }
14300 cat >>confdefs.h
<<\_ACEOF
14301 #define HAVE_EVICT_INODE 1
14306 $as_echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.
$ac_ext >&5
14309 { $as_echo "$as_me:$LINENO: result: no" >&5
14310 $as_echo "no" >&6; }
14321 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
14322 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
14323 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
14324 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14326 if test $rc -ne 0; then
14328 for file in fs
/inode.c
; do
14329 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev
/null
14331 if test $rc -eq 0; then
14336 if test $export -eq 0; then
14337 { $as_echo "$as_me:$LINENO: result: no" >&5
14338 $as_echo "no" >&6; }
14341 { $as_echo "$as_me:$LINENO: result: yes" >&5
14342 $as_echo "yes" >&6; }
14344 cat >>confdefs.h
<<\_ACEOF
14345 #define HAVE_INSERT_INODE_LOCKED 1
14350 { $as_echo "$as_me:$LINENO: result: yes" >&5
14351 $as_echo "yes" >&6; }
14353 cat >>confdefs.h
<<\_ACEOF
14354 #define HAVE_INSERT_INODE_LOCKED 1
14361 if test "$LINUX_OBJ" != "$LINUX"; then
14362 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
14367 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wno-unused-but-set-variable"
14368 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
14369 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
14375 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
14376 $as_echo_n "checking for target asm dir... " >&6; }
14377 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
14379 case $TARGET_ARCH in
14381 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
14384 TARGET_ASM_DIR
=asm-generic
14389 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
14390 $as_echo "$TARGET_ASM_DIR" >&6; }
14393 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
14394 $as_echo_n "checking for ioctl()... " >&6; }
14395 cat >conftest.
$ac_ext <<_ACEOF
14398 cat confdefs.h
>>conftest.
$ac_ext
14399 cat >>conftest.
$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 #include <unistd.h>
14404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14405 $EGREP "ioctl" >/dev
/null
2>&1; then
14412 cat >conftest.
$ac_ext <<_ACEOF
14415 cat confdefs.h
>>conftest.
$ac_ext
14416 cat >>conftest.
$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 #include <sys/ioctl.h>
14421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14422 $EGREP "ioctl" >/dev
/null
2>&1; then
14429 cat >conftest.
$ac_ext <<_ACEOF
14432 cat confdefs.h
>>conftest.
$ac_ext
14433 cat >>conftest.
$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 #include <stropts.h>
14438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14439 $EGREP "ioctl" >/dev
/null
2>&1; then
14447 if test $is_unistd = yes; then
14450 cat >>confdefs.h
<<\_ACEOF
14451 #define HAVE_IOCTL_IN_UNISTD_H 1
14456 if test $is_sys_ioctl = yes; then
14459 cat >>confdefs.h
<<\_ACEOF
14460 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
14463 elif test $is_stropts = yes; then
14465 cat >>confdefs.h
<<\_ACEOF
14466 #define HAVE_IOCTL_IN_STROPTS_H 1
14474 if test $result = no
; then
14475 { $as_echo "$as_me:$LINENO: result: no" >&5
14476 $as_echo "no" >&6; }
14477 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
14478 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
14479 { (exit 1); exit 1; }; }
14481 { $as_echo "$as_me:$LINENO: result: yes" >&5
14482 $as_echo "yes" >&6; }
14488 if test "${ac_cv_header_zlib_h+set}" = set; then
14489 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14490 $as_echo_n "checking for zlib.h... " >&6; }
14491 if test "${ac_cv_header_zlib_h+set}" = set; then
14492 $as_echo_n "(cached) " >&6
14494 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14495 $as_echo "$ac_cv_header_zlib_h" >&6; }
14497 # Is the header compilable?
14498 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
14499 $as_echo_n "checking zlib.h usability... " >&6; }
14500 cat >conftest.
$ac_ext <<_ACEOF
14503 cat confdefs.h
>>conftest.
$ac_ext
14504 cat >>conftest.
$ac_ext <<_ACEOF
14505 /* end confdefs.h. */
14506 $ac_includes_default
14509 rm -f conftest.
$ac_objext
14510 if { (ac_try
="$ac_compile"
14511 case "(($ac_try" in
14512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14513 *) ac_try_echo=$ac_try;;
14515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14516 $as_echo "$ac_try_echo") >&5
14517 (eval "$ac_compile") 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest.$ac_objext; then
14527 ac_header_compiler=yes
14529 $as_echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14532 ac_header_compiler=no
14535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14537 $as_echo "$ac_header_compiler" >&6; }
14539 # Is the header present?
14540 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
14541 $as_echo_n "checking zlib.h presence... " >&6; }
14542 cat >conftest.$ac_ext <<_ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14550 if { (ac_try="$ac_cpp conftest.$ac_ext"
14551 case "(($ac_try" in
14552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14553 *) ac_try_echo
=$ac_try;;
14555 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14556 $as_echo "$ac_try_echo") >&5
14557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14559 grep -v '^ *+' conftest.er1
>conftest.err
14561 cat conftest.err
>&5
14562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } >/dev
/null
&& {
14564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14565 test ! -s conftest.err
14567 ac_header_preproc
=yes
14569 $as_echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.
$ac_ext >&5
14572 ac_header_preproc
=no
14575 rm -f conftest.err conftest.
$ac_ext
14576 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14577 $as_echo "$ac_header_preproc" >&6; }
14579 # So? What about this header?
14580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14582 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14583 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14584 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
14585 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
14586 ac_header_preproc
=yes
14589 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
14590 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
14591 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
14592 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
14593 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
14594 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
14595 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
14596 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14597 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
14598 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
14599 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
14600 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
14604 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14605 $as_echo_n "checking for zlib.h... " >&6; }
14606 if test "${ac_cv_header_zlib_h+set}" = set; then
14607 $as_echo_n "(cached) " >&6
14609 ac_cv_header_zlib_h
=$ac_header_preproc
14611 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14612 $as_echo "$ac_cv_header_zlib_h" >&6; }
14615 if test "x$ac_cv_header_zlib_h" = x
""yes; then
14618 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14620 { { $as_echo "$as_me:$LINENO: error:
14621 *** zlib.h missing, zlib-devel package required
14622 See \`config.log' for more details." >&5
14623 $as_echo "$as_me: error:
14624 *** zlib.h missing, zlib-devel package required
14625 See \`config.log' for more details." >&2;}
14626 { (exit 1); exit 1; }; }; }
14632 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
14633 $as_echo_n "checking for compress2 in -lz... " >&6; }
14634 if test "${ac_cv_lib_z_compress2+set}" = set; then
14635 $as_echo_n "(cached) " >&6
14637 ac_check_lib_save_LIBS
=$LIBS
14639 cat >conftest.
$ac_ext <<_ACEOF
14642 cat confdefs.h
>>conftest.
$ac_ext
14643 cat >>conftest.
$ac_ext <<_ACEOF
14644 /* end confdefs.h. */
14646 /* Override any GCC internal prototype to avoid an error.
14647 Use char because int might match the return type of a GCC
14648 builtin and then its argument prototype would still apply. */
14656 return compress2 ();
14661 rm -f conftest.
$ac_objext conftest
$ac_exeext
14662 if { (ac_try
="$ac_link"
14663 case "(($ac_try" in
14664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14668 $as_echo "$ac_try_echo") >&5
14669 (eval "$ac_link") 2>conftest.er1
14671 grep -v '^ *+' conftest.er1 >conftest.err
14673 cat conftest.err >&5
14674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } && {
14676 test -z "$ac_c_werror_flag" ||
14677 test ! -s conftest.err
14678 } && test -s conftest$ac_exeext && {
14679 test "$cross_compiling" = yes ||
14680 $as_test_x conftest$ac_exeext
14682 ac_cv_lib_z_compress2=yes
14684 $as_echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14687 ac_cv_lib_z_compress2=no
14690 rm -rf conftest.dSYM
14691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14692 conftest$ac_exeext conftest.$ac_ext
14693 LIBS=$ac_check_lib_save_LIBS
14695 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
14696 $as_echo "$ac_cv_lib_z_compress2" >&6; }
14697 if test "x$ac_cv_lib_z_compress2" = x""yes; then
14698 cat >>confdefs.h <<_ACEOF
14699 #define HAVE_LIBZ 1
14705 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14707 { { $as_echo "$as_me:$LINENO: error
:
14708 *** compress2
() missing
, zlib-devel package required
14709 See \
`config.log' for more details." >&5
14710 $as_echo "$as_me: error:
14711 *** compress2() missing, zlib-devel package required
14712 See \`config.log
' for more details." >&2;}
14713 { (exit 1); exit 1; }; }; }
14718 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
14719 $as_echo_n "checking for uncompress in -lz... " >&6; }
14720 if test "${ac_cv_lib_z_uncompress+set}" = set; then
14721 $as_echo_n "(cached) " >&6
14723 ac_check_lib_save_LIBS=$LIBS
14725 cat >conftest.$ac_ext <<_ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14732 /* Override any GCC internal prototype to avoid an error.
14733 Use char because int might match the return type of a GCC
14734 builtin and then its argument prototype would still apply. */
14738 char uncompress ();
14742 return uncompress ();
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14754 $as_echo "$ac_try_echo") >&5
14755 (eval "$ac_link") 2>conftest.er1
14757 grep -v '^
*+' conftest.er1 >conftest.err
14759 cat conftest.err >&5
14760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } && {
14762 test -z "$ac_c_werror_flag" ||
14763 test ! -s conftest.err
14764 } && test -s conftest$ac_exeext && {
14765 test "$cross_compiling" = yes ||
14766 $as_test_x conftest$ac_exeext
14768 ac_cv_lib_z_uncompress=yes
14770 $as_echo "$as_me: failed program was:" >&5
14771 sed 's
/^
/|
/' conftest.$ac_ext >&5
14773 ac_cv_lib_z_uncompress=no
14776 rm -rf conftest.dSYM
14777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14778 conftest$ac_exeext conftest.$ac_ext
14779 LIBS=$ac_check_lib_save_LIBS
14781 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
14782 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
14783 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
14784 cat >>confdefs.h <<_ACEOF
14785 #define HAVE_LIBZ 1
14791 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14792 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
14793 { { $as_echo "$as_me:$LINENO: error:
14794 *** uncompress() missing, zlib-devel package required
14795 See \`config.log
' for more details." >&5
14796 $as_echo "$as_me: error:
14797 *** uncompress() missing, zlib-devel package required
14798 See \`config.log' for more details.
" >&2;}
14799 { (exit 1); exit 1; }; }; }
14804 { $as_echo "$as_me:$LINENO: checking
for crc32
in -lz" >&5
14805 $as_echo_n "checking
for crc32
in -lz...
" >&6; }
14806 if test "${ac_cv_lib_z_crc32+set}" = set; then
14807 $as_echo_n "(cached
) " >&6
14809 ac_check_lib_save_LIBS=$LIBS
14811 cat >conftest.$ac_ext <<_ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14818 /* Override any GCC internal prototype to avoid an error.
14819 Use char because int might match the return type of a GCC
14820 builtin and then its argument prototype would still apply. */
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (ac_try="$ac_link"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14840 $as_echo "$ac_try_echo") >&5
14841 (eval "$ac_link") 2>conftest.er1
14843 grep -v '^ *+' conftest.er1 >conftest.err
14845 cat conftest.err >&5
14846 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14847 (exit $ac_status); } && {
14848 test -z "$ac_c_werror_flag" ||
14849 test ! -s conftest.err
14850 } && test -s conftest$ac_exeext && {
14851 test "$cross_compiling" = yes ||
14852 $as_test_x conftest$ac_exeext
14854 ac_cv_lib_z_crc32=yes
14856 $as_echo "$as_me: failed program was
:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 ac_cv_lib_z_crc32=no
14862 rm -rf conftest.dSYM
14863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14864 conftest$ac_exeext conftest.$ac_ext
14865 LIBS=$ac_check_lib_save_LIBS
14867 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_crc32" >&5
14868 $as_echo "$ac_cv_lib_z_crc32" >&6; }
14869 if test "x
$ac_cv_lib_z_crc32" = x""yes; then
14870 cat >>confdefs.h <<_ACEOF
14871 #define HAVE_LIBZ 1
14877 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
14878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14879 { { $as_echo "$as_me:$LINENO: error:
14880 *** crc32() missing, zlib-devel package required
14881 See \`config.log' for more details.
" >&5
14882 $as_echo "$as_me: error
:
14883 *** crc32
() missing
, zlib-devel package required
14884 See \
`config.log' for more details." >&2;}
14885 { (exit 1); exit 1; }; }; }
14892 cat >>confdefs.h <<\_ACEOF
14893 #define HAVE_ZLIB 1
14900 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14901 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14902 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14903 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14904 $as_echo_n "(cached) " >&6
14906 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14907 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14909 # Is the header compilable?
14910 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
14911 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 $ac_includes_default
14919 #include <uuid/uuid.h>
14921 rm -f conftest.$ac_objext
14922 if { (ac_try="$ac_compile"
14923 case "(($ac_try" in
14924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14925 *) ac_try_echo
=$ac_try;;
14927 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14928 $as_echo "$ac_try_echo") >&5
14929 (eval "$ac_compile") 2>conftest.er1
14931 grep -v '^ *+' conftest.er1
>conftest.err
14933 cat conftest.err
>&5
14934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } && {
14936 test -z "$ac_c_werror_flag" ||
14937 test ! -s conftest.err
14938 } && test -s conftest.
$ac_objext; then
14939 ac_header_compiler
=yes
14941 $as_echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.
$ac_ext >&5
14944 ac_header_compiler
=no
14947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14948 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14949 $as_echo "$ac_header_compiler" >&6; }
14951 # Is the header present?
14952 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
14953 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
14954 cat >conftest.
$ac_ext <<_ACEOF
14957 cat confdefs.h
>>conftest.
$ac_ext
14958 cat >>conftest.
$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 #include <uuid/uuid.h>
14962 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14963 case "(($ac_try" in
14964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14968 $as_echo "$ac_try_echo") >&5
14969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14971 grep -v '^ *+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } >/dev/null && {
14976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14979 ac_header_preproc=yes
14981 $as_echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14984 ac_header_preproc=no
14987 rm -f conftest.err conftest.$ac_ext
14988 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14989 $as_echo "$ac_header_preproc" >&6; }
14991 # So? What about this header?
14992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14994 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
14995 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14996 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
14997 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
14998 ac_header_preproc=yes
15001 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
15002 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
15003 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
15004 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
15005 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
15006 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
15007 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
15008 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
15009 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
15010 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
15011 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
15012 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
15016 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
15017 $as_echo_n "checking for uuid/uuid.h... " >&6; }
15018 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15019 $as_echo_n "(cached) " >&6
15021 ac_cv_header_uuid_uuid_h=$ac_header_preproc
15023 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
15024 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
15027 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
15030 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15032 { { $as_echo "$as_me:$LINENO: error
:
15033 *** uuid
/uuid.h missing
, libuuid-devel package required
15034 See \
`config.log' for more details." >&5
15035 $as_echo "$as_me: error:
15036 *** uuid/uuid.h missing, libuuid-devel package required
15037 See \`config.log
' for more details." >&2;}
15038 { (exit 1); exit 1; }; }; }
15044 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
15045 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
15046 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
15047 $as_echo_n "(cached) " >&6
15049 ac_check_lib_save_LIBS=$LIBS
15050 LIBS="-luuid $LIBS"
15051 cat >conftest.$ac_ext <<_ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15058 /* Override any GCC internal prototype to avoid an error.
15059 Use char because int might match the return type of a GCC
15060 builtin and then its argument prototype would still apply. */
15064 char uuid_generate ();
15068 return uuid_generate ();
15073 rm -f conftest.$ac_objext conftest$ac_exeext
15074 if { (ac_try="$ac_link"
15075 case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15080 $as_echo "$ac_try_echo") >&5
15081 (eval "$ac_link") 2>conftest.er1
15083 grep -v '^
*+' conftest.er1 >conftest.err
15085 cat conftest.err >&5
15086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } && {
15088 test -z "$ac_c_werror_flag" ||
15089 test ! -s conftest.err
15090 } && test -s conftest$ac_exeext && {
15091 test "$cross_compiling" = yes ||
15092 $as_test_x conftest$ac_exeext
15094 ac_cv_lib_uuid_uuid_generate=yes
15096 $as_echo "$as_me: failed program was:" >&5
15097 sed 's
/^
/|
/' conftest.$ac_ext >&5
15099 ac_cv_lib_uuid_uuid_generate=no
15102 rm -rf conftest.dSYM
15103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15104 conftest$ac_exeext conftest.$ac_ext
15105 LIBS=$ac_check_lib_save_LIBS
15107 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
15108 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
15109 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
15110 cat >>confdefs.h <<_ACEOF
15111 #define HAVE_LIBUUID 1
15114 LIBS="-luuid $LIBS"
15117 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15118 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
15119 { { $as_echo "$as_me:$LINENO: error:
15120 *** uuid_generate() missing, libuuid-devel package required
15121 See \`config.log
' for more details." >&5
15122 $as_echo "$as_me: error:
15123 *** uuid_generate() missing, libuuid-devel package required
15124 See \`config.log' for more details.
" >&2;}
15125 { (exit 1); exit 1; }; }; }
15130 { $as_echo "$as_me:$LINENO: checking
for uuid_is_null
in -luuid" >&5
15131 $as_echo_n "checking
for uuid_is_null
in -luuid...
" >&6; }
15132 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
15133 $as_echo_n "(cached
) " >&6
15135 ac_check_lib_save_LIBS=$LIBS
15136 LIBS="-luuid $LIBS"
15137 cat >conftest.$ac_ext <<_ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15144 /* Override any GCC internal prototype to avoid an error.
15145 Use char because int might match the return type of a GCC
15146 builtin and then its argument prototype would still apply. */
15150 char uuid_is_null ();
15154 return uuid_is_null ();
15159 rm -f conftest.$ac_objext conftest$ac_exeext
15160 if { (ac_try="$ac_link"
15161 case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15165 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15166 $as_echo "$ac_try_echo") >&5
15167 (eval "$ac_link") 2>conftest.er1
15169 grep -v '^ *+' conftest.er1 >conftest.err
15171 cat conftest.err >&5
15172 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15173 (exit $ac_status); } && {
15174 test -z "$ac_c_werror_flag" ||
15175 test ! -s conftest.err
15176 } && test -s conftest$ac_exeext && {
15177 test "$cross_compiling" = yes ||
15178 $as_test_x conftest$ac_exeext
15180 ac_cv_lib_uuid_uuid_is_null=yes
15182 $as_echo "$as_me: failed program was
:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15185 ac_cv_lib_uuid_uuid_is_null=no
15188 rm -rf conftest.dSYM
15189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15190 conftest$ac_exeext conftest.$ac_ext
15191 LIBS=$ac_check_lib_save_LIBS
15193 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_is_null" >&5
15194 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
15195 if test "x
$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
15196 cat >>confdefs.h <<_ACEOF
15197 #define HAVE_LIBUUID 1
15200 LIBS="-luuid $LIBS"
15203 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
15204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15205 { { $as_echo "$as_me:$LINENO: error:
15206 *** uuid_is_null() missing, libuuid-devel package required
15207 See \`config.log' for more details.
" >&5
15208 $as_echo "$as_me: error
:
15209 *** uuid_is_null
() missing
, libuuid-devel package required
15210 See \
`config.log' for more details." >&2;}
15211 { (exit 1); exit 1; }; }; }
15218 cat >>confdefs.h <<\_ACEOF
15219 #define HAVE_LIBUUID 1
15225 # Check whether --with-blkid was given.
15226 if test "${with_blkid+set}" = set; then
15227 withval=$with_blkid;
15234 if test "x$with_blkid" != xno; then
15236 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
15237 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
15238 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
15239 $as_echo_n "(cached) " >&6
15241 ac_check_lib_save_LIBS=$LIBS
15242 LIBS="-lblkid $LIBS"
15243 cat >conftest.$ac_ext <<_ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h. */
15250 /* Override any GCC internal prototype to avoid an error.
15251 Use char because int might match the return type of a GCC
15252 builtin and then its argument prototype would still apply. */
15256 char blkid_get_cache ();
15260 return blkid_get_cache ();
15265 rm -f conftest.$ac_objext conftest$ac_exeext
15266 if { (ac_try="$ac_link"
15267 case "(($ac_try" in
15268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15269 *) ac_try_echo
=$ac_try;;
15271 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15272 $as_echo "$ac_try_echo") >&5
15273 (eval "$ac_link") 2>conftest.er1
15275 grep -v '^ *+' conftest.er1
>conftest.err
15277 cat conftest.err
>&5
15278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } && {
15280 test -z "$ac_c_werror_flag" ||
15281 test ! -s conftest.err
15282 } && test -s conftest
$ac_exeext && {
15283 test "$cross_compiling" = yes ||
15284 $as_test_x conftest
$ac_exeext
15286 ac_cv_lib_blkid_blkid_get_cache
=yes
15288 $as_echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.
$ac_ext >&5
15291 ac_cv_lib_blkid_blkid_get_cache
=no
15294 rm -rf conftest.dSYM
15295 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15296 conftest
$ac_exeext conftest.
$ac_ext
15297 LIBS
=$ac_check_lib_save_LIBS
15299 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
15300 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
15301 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x
""yes; then
15303 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
15304 $as_echo_n "checking for blkid zfs support... " >&6; }
15307 dd if=/dev
/zero of
=$ZFS_DEV bs
=1024k count
=8 \
15308 >/dev
/null
2>/dev
/null
15309 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
15310 dd of
=$ZFS_DEV bs
=1k count
=8 \
15311 seek
=132 conv
=notrunc
&>/dev
/null \
15312 >/dev
/null
2>/dev
/null
15314 saved_LDFLAGS
="$LDFLAGS"
15317 if test "$cross_compiling" = yes; then
15318 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15320 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15321 See \`config.log' for more details." >&5
15322 $as_echo "$as_me: error: cannot run test program while cross compiling
15323 See \`config.log' for more details." >&2;}
15324 { (exit 1); exit 1; }; }; }
15326 cat >conftest.
$ac_ext <<_ACEOF
15329 cat confdefs.h
>>conftest.
$ac_ext
15330 cat >>conftest.
$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15334 #include <blkid/blkid.h>
15343 if (blkid_get_cache(&cache, NULL) < 0)
15346 value = blkid_get_tag_value(cache, "TYPE",
15349 blkid_put_cache(cache);
15353 if (strcmp(value, "zfs")) {
15355 blkid_put_cache(cache);
15360 blkid_put_cache(cache);
15366 rm -f conftest
$ac_exeext
15367 if { (ac_try
="$ac_link"
15368 case "(($ac_try" in
15369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15373 $as_echo "$ac_try_echo") >&5
15374 (eval "$ac_link") 2>&5
15376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15378 { (case "(($ac_try" in
15379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15380 *) ac_try_echo
=$ac_try;;
15382 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15383 $as_echo "$ac_try_echo") >&5
15384 (eval "$ac_try") 2>&5
15386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15390 { $as_echo "$as_me:$LINENO: result: yes" >&5
15391 $as_echo "yes" >&6; }
15395 cat >>confdefs.h
<<\_ACEOF
15396 #define HAVE_LIBBLKID 1
15401 $as_echo "$as_me: program exited with status $ac_status" >&5
15402 $as_echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.
$ac_ext >&5
15405 ( exit $ac_status )
15408 { $as_echo "$as_me:$LINENO: result: no" >&5
15409 $as_echo "no" >&6; }
15410 if test "x$with_blkid" != xcheck
; then
15411 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15413 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15414 See \`config.log' for more details." >&5
15415 $as_echo "$as_me: error: --with-blkid given but unavailable
15416 See \`config.log' for more details." >&2;}
15417 { (exit 1); exit 1; }; }; }
15422 rm -rf conftest.dSYM
15423 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15428 LDFLAGS
="$saved_LDFLAGS"
15432 if test "x$with_blkid" != xcheck
; then
15433 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15435 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15436 See \`config.log' for more details." >&5
15437 $as_echo "$as_me: error: --with-blkid given but unavailable
15438 See \`config.log' for more details." >&2;}
15439 { (exit 1); exit 1; }; }; }
15452 # Check whether --with-selinux was given.
15453 if test "${with_selinux+set}" = set; then
15454 withval
=$with_selinux;
15461 if test "x$with_selinux" != xno
; then
15463 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15464 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15465 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15466 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15467 $as_echo_n "(cached) " >&6
15469 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15470 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15472 # Is the header compilable?
15473 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
15474 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
15475 cat >conftest.
$ac_ext <<_ACEOF
15478 cat confdefs.h
>>conftest.
$ac_ext
15479 cat >>conftest.
$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15481 $ac_includes_default
15482 #include <selinux/selinux.h>
15484 rm -f conftest.
$ac_objext
15485 if { (ac_try
="$ac_compile"
15486 case "(($ac_try" in
15487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15491 $as_echo "$ac_try_echo") >&5
15492 (eval "$ac_compile") 2>conftest.er1
15494 grep -v '^ *+' conftest.er1 >conftest.err
15496 cat conftest.err >&5
15497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } && {
15499 test -z "$ac_c_werror_flag" ||
15500 test ! -s conftest.err
15501 } && test -s conftest.$ac_objext; then
15502 ac_header_compiler=yes
15504 $as_echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15507 ac_header_compiler=no
15510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15512 $as_echo "$ac_header_compiler" >&6; }
15514 # Is the header present?
15515 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
15516 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
15517 cat >conftest.$ac_ext <<_ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 #include <selinux/selinux.h>
15525 if { (ac_try="$ac_cpp conftest.$ac_ext"
15526 case "(($ac_try" in
15527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15528 *) ac_try_echo
=$ac_try;;
15530 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15531 $as_echo "$ac_try_echo") >&5
15532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15534 grep -v '^ *+' conftest.er1
>conftest.err
15536 cat conftest.err
>&5
15537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } >/dev
/null
&& {
15539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15540 test ! -s conftest.err
15542 ac_header_preproc
=yes
15544 $as_echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.
$ac_ext >&5
15547 ac_header_preproc
=no
15550 rm -f conftest.err conftest.
$ac_ext
15551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15552 $as_echo "$ac_header_preproc" >&6; }
15554 # So? What about this header?
15555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15557 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
15558 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15559 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
15560 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
15561 ac_header_preproc
=yes
15564 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
15565 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
15566 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
15567 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
15568 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
15569 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
15570 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
15571 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
15572 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
15573 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
15574 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
15575 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
15579 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15580 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15581 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15582 $as_echo_n "(cached) " >&6
15584 ac_cv_header_selinux_selinux_h
=$ac_header_preproc
15586 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15587 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15590 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then
15592 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15593 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
15594 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
15595 $as_echo_n "(cached) " >&6
15597 ac_check_lib_save_LIBS
=$LIBS
15598 LIBS
="-lselinux $LIBS"
15599 cat >conftest.
$ac_ext <<_ACEOF
15602 cat confdefs.h
>>conftest.
$ac_ext
15603 cat >>conftest.
$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15606 /* Override any GCC internal prototype to avoid an error.
15607 Use char because int might match the return type of a GCC
15608 builtin and then its argument prototype would still apply. */
15612 char is_selinux_enabled ();
15616 return is_selinux_enabled ();
15621 rm -f conftest.
$ac_objext conftest
$ac_exeext
15622 if { (ac_try
="$ac_link"
15623 case "(($ac_try" in
15624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15628 $as_echo "$ac_try_echo") >&5
15629 (eval "$ac_link") 2>conftest.er1
15631 grep -v '^ *+' conftest.er1 >conftest.err
15633 cat conftest.err >&5
15634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } && {
15636 test -z "$ac_c_werror_flag" ||
15637 test ! -s conftest.err
15638 } && test -s conftest$ac_exeext && {
15639 test "$cross_compiling" = yes ||
15640 $as_test_x conftest$ac_exeext
15642 ac_cv_lib_selinux_is_selinux_enabled=yes
15644 $as_echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 ac_cv_lib_selinux_is_selinux_enabled=no
15650 rm -rf conftest.dSYM
15651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15652 conftest$ac_exeext conftest.$ac_ext
15653 LIBS=$ac_check_lib_save_LIBS
15655 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15656 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15657 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
15659 LIBSELINUX="-lselinux"
15662 cat >>confdefs.h <<\_ACEOF
15663 #define HAVE_LIBSELINUX 1
15669 if test "x$with_selinux" != xcheck; then
15670 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15672 { { $as_echo "$as_me:$LINENO: error
: --with-selinux given but unavailable
15673 See \
`config.log' for more details." >&5
15674 $as_echo "$as_me: error: --with-selinux given but unavailable
15675 See \`config.log
' for more details." >&2;}
15676 { (exit 1); exit 1; }; }; }
15686 if test "x$with_selinux" != xcheck; then
15687 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15688 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
15689 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
15690 See \`config.log
' for more details." >&5
15691 $as_echo "$as_me: error: --with-selinux given but unavailable
15692 See \`config.log' for more details.
" >&2;}
15693 { (exit 1); exit 1; }; }; }
15704 { $as_echo "$as_me:$LINENO: checking
for selinux support
" >&5
15705 $as_echo_n "checking
for selinux support...
" >&6; }
15706 { $as_echo "$as_me:$LINENO: result
: no
" >&5
15707 $as_echo "no
" >&6; }
15713 { $as_echo "$as_me:$LINENO: checking
for -Wframe-larger-than=<size
> support
" >&5
15714 $as_echo_n "checking
for -Wframe-larger-than=<size
> support...
" >&6; }
15716 saved_flags="$CFLAGS"
15717 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
15719 if test "$cross_compiling" = yes; then
15720 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
15721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15722 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15723 See \`config.log' for more details.
" >&5
15724 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
15725 See \
`config.log' for more details." >&2;}
15726 { (exit 1); exit 1; }; }; }
15728 cat >conftest.$ac_ext <<_ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15743 rm -f conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15747 *) ac_try_echo
=$ac_try;;
15749 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15750 $as_echo "$ac_try_echo") >&5
15751 (eval "$ac_link") 2>&5
15753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15755 { (case "(($ac_try" in
15756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15757 *) ac_try_echo=$ac_try;;
15759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15760 $as_echo "$ac_try_echo") >&5
15761 (eval "$ac_try") 2>&5
15763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15766 FRAME_LARGER_THAN=-Wframe-larger-than=1024
15767 { $as_echo "$as_me:$LINENO: result: yes" >&5
15768 $as_echo "yes" >&6; }
15771 $as_echo "$as_me: program exited with status $ac_status" >&5
15772 $as_echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15775 ( exit $ac_status )
15778 { $as_echo "$as_me:$LINENO: result: no" >&5
15779 $as_echo "no" >&6; }
15782 rm -rf conftest.dSYM
15783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15788 CFLAGS="$saved_flags"
15793 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
15794 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
15796 saved_CFLAGS="$CFLAGS"
15797 CFLAGS="-fstack-check"
15798 saved_LDFLAGS="$LDFLAGS"
15799 LDFLAGS="-lpthread"
15801 if test "$cross_compiling" = yes; then
15802 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15804 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
15805 See \
`config.log' for more details." >&5
15806 $as_echo "$as_me: error: cannot run test program while cross compiling
15807 See \`config.log
' for more details." >&2;}
15808 { (exit 1); exit 1; }; }; }
15810 cat >conftest.$ac_ext <<_ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15817 #include <pthread.h>
15818 #include <sys/resource.h>
15819 #include <unistd.h>
15820 #include <bits/local_lim.h>
15822 #define PAGESIZE (sysconf(_SC_PAGESIZE))
15823 #define STACK_SIZE 8192
15824 #define BUFSIZE 4096
15826 void * func(void *arg)
15836 pthread_attr_t attr;
15841 setrlimit(RLIMIT_CORE, &l);
15842 pthread_attr_init(&attr);
15843 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
15844 pthread_attr_setguardsize(&attr, PAGESIZE);
15845 pthread_create(&tid, &attr, func, NULL);
15846 pthread_join(tid, NULL);
15852 rm -f conftest$ac_exeext
15853 if { (ac_try="$ac_link"
15854 case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15859 $as_echo "$ac_try_echo") >&5
15860 (eval "$ac_link") 2>&5
15862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
15864 { (case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15869 $as_echo "$ac_try_echo") >&5
15870 (eval "$ac_try") 2>&5
15872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15875 { $as_echo "$as_me:$LINENO: result: no" >&5
15876 $as_echo "no" >&6; }
15879 $as_echo "$as_me: program exited with status $ac_status" >&5
15880 $as_echo "$as_me: failed program was:" >&5
15881 sed 's
/^
/|
/' conftest.$ac_ext >&5
15883 ( exit $ac_status )
15886 cat >>confdefs.h <<\_ACEOF
15887 #define NPTL_GUARD_WITHIN_STACK 1
15890 { $as_echo "$as_me:$LINENO: result: yes" >&5
15891 $as_echo "yes" >&6; }
15894 rm -rf conftest.dSYM
15895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15899 CFLAGS="$saved_CFLAGS"
15900 LDFLAGS="$saved_LDFLAGS"
15906 # Check whether --with-linux was given.
15907 if test "${with_linux+set}" = set; then
15908 withval=$with_linux; kernelsrc="$withval"
15913 # Check whether --with-linux-obj was given.
15914 if test "${with_linux_obj+set}" = set; then
15915 withval=$with_linux_obj; kernelbuild="$withval"
15919 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
15920 $as_echo_n "checking kernel source directory... " >&6; }
15921 if test -z "$kernelsrc"; then
15922 if test -e "/lib/modules/$(uname -r)/source"; then
15923 headersdir="/lib/modules/$(uname -r)/source"
15924 sourcelink=$(readlink -f "$headersdir")
15925 elif test -e "/lib/modules/$(uname -r)/build"; then
15926 headersdir="/lib/modules/$(uname -r)/build"
15927 sourcelink=$(readlink -f "$headersdir")
15929 sourcelink=$(ls -1d /usr/src/kernels/* \
15931 2>/dev/null | grep -v obj | tail -1)
15934 if test -n "$sourcelink" && test -e ${sourcelink}; then
15935 kernelsrc=`readlink -f ${sourcelink}`
15937 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15938 $as_echo "Not found" >&6; }
15939 { { $as_echo "$as_me:$LINENO: error:
15940 *** Please make sure the kernel devel package for your distribution
15941 *** is installed then try again. If that fails you can specify the
15942 *** location of the kernel source with the '--with-linux=PATH
' option." >&5
15943 $as_echo "$as_me: error:
15944 *** Please make sure the kernel devel package for your distribution
15945 *** is installed then try again. If that fails you can specify the
15946 *** location of the kernel source with the '--with-linux=PATH
' option." >&2;}
15947 { (exit 1); exit 1; }; }
15950 if test "$kernelsrc" = "NONE"; then
15955 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
15956 $as_echo "$kernelsrc" >&6; }
15957 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
15958 $as_echo_n "checking kernel build directory... " >&6; }
15959 if test -z "$kernelbuild"; then
15960 if test -e "/lib/modules/$(uname -r)/build"; then
15961 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
15962 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15963 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15964 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15965 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15966 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15967 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
15969 kernelbuild=${kernelsrc}
15972 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
15973 $as_echo "$kernelbuild" >&6; }
15975 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
15976 $as_echo_n "checking kernel source version... " >&6; }
15977 utsrelease1=$kernelbuild/include/linux/version.h
15978 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15979 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15980 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15981 utsrelease=linux/version.h
15982 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15983 utsrelease=linux/utsrelease.h
15984 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15985 utsrelease=generated/utsrelease.h
15988 if test "$utsrelease"; then
15989 kernsrcver=`(echo "#include <$utsrelease>";
15990 echo "kernsrcver=UTS_RELEASE") |
15991 cpp -I $kernelbuild/include |
15992 grep "^kernsrcver=" | cut -d \" -f 2`
15994 if test -z "$kernsrcver"; then
15995 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15996 $as_echo "Not found" >&6; }
15997 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15998 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15999 { (exit 1); exit 1; }; }
16002 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16003 $as_echo "Not found" >&6; }
16004 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16005 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16006 { (exit 1); exit 1; }; }
16009 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16010 $as_echo "$kernsrcver" >&6; }
16013 LINUX_OBJ=${kernelbuild}
16014 LINUX_VERSION=${kernsrcver}
16021 modpost=$LINUX/scripts/Makefile.modpost
16022 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16023 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16024 if test -f "$modpost"; then
16025 if grep -q Modules.symvers $modpost; then
16026 LINUX_SYMBOLS=Modules.symvers
16028 LINUX_SYMBOLS=Module.symvers
16031 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16032 { { $as_echo "$as_me:$LINENO: error:
16033 *** Please make sure the kernel devel package for your distribution
16034 *** is installed. If your building with a custom kernel make sure the
16035 *** kernel is configured, built, and the '--with-linux=PATH
' configure
16036 *** option refers to the location of the kernel source." >&5
16037 $as_echo "$as_me: error:
16038 *** Please make sure the kernel devel package for your distribution
16039 *** is installed. If your building with a custom kernel make sure the
16040 *** kernel is configured, built, and the '--with-linux=PATH
' configure
16041 *** option refers to the location of the kernel source." >&2;}
16042 { (exit 1); exit 1; }; }
16047 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16048 $as_echo "$LINUX_SYMBOLS" >&6; }
16054 # Check whether --with-spl was given.
16055 if test "${with_spl+set}" = set; then
16056 withval=$with_spl; splsrc="$withval"
16061 # Check whether --with-spl-obj was given.
16062 if test "${with_spl_obj+set}" = set; then
16063 withval=$with_spl_obj; splbuild="$withval"
16068 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
16069 $as_echo_n "checking spl source directory... " >&6; }
16070 if test -z "$splsrc"; then
16071 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
16072 2>/dev/null | tail -1`
16074 if test -z "$sourcelink" || test ! -e $sourcelink; then
16078 if test -e $sourcelink; then
16079 splsrc=`readlink -f ${sourcelink}`
16081 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16082 $as_echo "Not found" >&6; }
16083 { { $as_echo "$as_me:$LINENO: error:
16084 *** Please make sure the spl devel package for your distribution
16085 *** is installed then try again. If that fails you can specify the
16086 *** location of the spl source with the '--with-spl=PATH
' option." >&5
16087 $as_echo "$as_me: error:
16088 *** Please make sure the spl devel package for your distribution
16089 *** is installed then try again. If that fails you can specify the
16090 *** location of the spl source with the '--with-spl=PATH
' option." >&2;}
16091 { (exit 1); exit 1; }; }
16094 if test "$splsrc" = "NONE"; then
16100 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
16101 $as_echo "$splsrc" >&6; }
16102 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
16103 $as_echo_n "checking spl build directory... " >&6; }
16104 if test -z "$splbuild"; then
16107 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
16108 $as_echo "$splbuild" >&6; }
16110 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
16111 $as_echo_n "checking spl source version... " >&6; }
16112 if test -r $splbuild/spl_config.h &&
16113 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
16115 splsrcver=`(echo "#include <spl_config.h>";
16116 echo "splsrcver=SPL_META_VERSION") |
16118 grep "^splsrcver=" | cut -d \" -f 2`
16121 if test -z "$splsrcver"; then
16122 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16123 $as_echo "Not found" >&6; }
16124 { { $as_echo "$as_me:$LINENO: error:
16125 *** Cannot determine the version of the spl source.
16126 *** Please prepare the spl source before running this script" >&5
16127 $as_echo "$as_me: error:
16128 *** Cannot determine the version of the spl source.
16129 *** Please prepare the spl source before running this script" >&2;}
16130 { (exit 1); exit 1; }; }
16133 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
16134 $as_echo "$splsrcver" >&6; }
16137 SPL_OBJ=${splbuild}
16138 SPL_VERSION=${splsrcver}
16145 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
16146 $as_echo_n "checking spl file name for module symbols... " >&6; }
16147 if test -r $SPL_OBJ/Module.symvers; then
16148 SPL_SYMBOLS=Module.symvers
16149 elif test -r $SPL_OBJ/Modules.symvers; then
16150 SPL_SYMBOLS=Modules.symvers
16151 elif test -r $SPL_OBJ/module/Module.symvers; then
16152 SPL_SYMBOLS=Module.symvers
16153 elif test -r $SPL_OBJ/module/Modules.symvers; then
16154 SPL_SYMBOLS=Modules.symvers
16156 SPL_SYMBOLS=$LINUX_SYMBOLS
16159 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
16160 $as_echo "$SPL_SYMBOLS" >&6; }
16166 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16167 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16170 cat confdefs.h - <<_ACEOF >conftest.c
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16178 #ifndef AUTOCONF_INCLUDED
16179 #include <linux/config.h>
16186 #ifndef CONFIG_PREEMPT
16187 #error CONFIG_PREEMPT not #defined
16197 rm -Rf build && mkdir -p build
16198 echo "obj-m := conftest.o" >build/Makefile
16199 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16211 { $as_echo "$as_me:$LINENO: result: yes" >&5
16212 $as_echo "yes" >&6; }
16213 { { $as_echo "$as_me:$LINENO: error:
16214 *** Kernel built with CONFIG_PREEMPT which is not supported.
16215 ** You must rebuild your kernel without this option." >&5
16216 $as_echo "$as_me: error:
16217 *** Kernel built with CONFIG_PREEMPT which is not supported.
16218 ** You must rebuild your kernel without this option." >&2;}
16219 { (exit 1); exit 1; }; }
16222 $as_echo "$as_me: failed program was:" >&5
16223 sed 's
/^
/|
/' conftest.$ac_ext >&5
16225 { $as_echo "$as_me:$LINENO: result: no" >&5
16226 $as_echo "no" >&6; }
16238 if test "$ZFS_META_LICENSE" = CDDL; then
16239 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
16240 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
16243 cat confdefs.h - <<_ACEOF >conftest.c
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16251 #ifndef AUTOCONF_INCLUDED
16252 #include <linux/config.h>
16259 #ifndef CONFIG_DEBUG_LOCK_ALLOC
16260 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
16270 rm -Rf build && mkdir -p build
16271 echo "obj-m := conftest.o" >build/Makefile
16272 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16284 { $as_echo "$as_me:$LINENO: result: yes" >&5
16285 $as_echo "yes" >&6; }
16286 { { $as_echo "$as_me:$LINENO: error:
16287 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16288 *** incompatible with the CDDL license. You must rebuild
16289 *** your kernel without this option." >&5
16290 $as_echo "$as_me: error:
16291 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16292 *** incompatible with the CDDL license. You must rebuild
16293 *** your kernel without this option." >&2;}
16294 { (exit 1); exit 1; }; }
16297 $as_echo "$as_me: failed program was:" >&5
16298 sed 's
/^
/|
/' conftest.$ac_ext >&5
16300 { $as_echo "$as_me:$LINENO: result: no" >&5
16301 $as_echo "no" >&6; }
16314 if test "$ZFS_META_LICENSE" = GPL; then
16316 cat >>confdefs.h <<\_ACEOF
16317 #define HAVE_GPL_ONLY_SYMBOLS 1
16323 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
16324 $as_echo_n "checking block device operation prototypes... " >&6; }
16327 cat confdefs.h - <<_ACEOF >conftest.c
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16335 #include <linux/blkdev.h>
16341 int (*blk_open) (struct block_device *, fmode_t) = NULL;
16342 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
16343 int (*blk_ioctl) (struct block_device *, fmode_t,
16344 unsigned, unsigned long) = NULL;
16345 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
16346 unsigned, unsigned long) = NULL;
16347 struct block_device_operations blk_ops = {
16349 .release = blk_release,
16350 .ioctl = blk_ioctl,
16351 .compat_ioctl = blk_compat_ioctl,
16354 blk_ops.open(NULL, 0);
16355 blk_ops.release(NULL, 0);
16356 blk_ops.ioctl(NULL, 0, 0, 0);
16357 blk_ops.compat_ioctl(NULL, 0, 0, 0);
16366 rm -Rf build && mkdir -p build
16367 echo "obj-m := conftest.o" >build/Makefile
16368 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16380 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
16381 $as_echo "struct block_device" >&6; }
16383 cat >>confdefs.h <<\_ACEOF
16384 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
16389 $as_echo "$as_me: failed program was:" >&5
16390 sed 's
/^
/|
/' conftest.$ac_ext >&5
16392 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
16393 $as_echo "struct inode" >&6; }
16403 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
16404 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
16407 cat confdefs.h - <<_ACEOF >conftest.c
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16415 #include <linux/types.h>
16421 fmode_t *ptr __attribute__ ((unused));
16430 rm -Rf build && mkdir -p build
16431 echo "obj-m := conftest.o" >build/Makefile
16432 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
16444 { $as_echo "$as_me:$LINENO: result: yes" >&5
16445 $as_echo "yes" >&6; }
16447 cat >>confdefs.h <<\_ACEOF
16448 #define HAVE_FMODE_T 1
16453 $as_echo "$as_me: failed program was:" >&5
16454 sed 's
/^
/|
/' conftest.$ac_ext >&5
16456 { $as_echo "$as_me:$LINENO: result: no" >&5
16457 $as_echo "no" >&6; }
16468 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
16469 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
16472 cat confdefs.h - <<_ACEOF >conftest.c
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16480 #include <linux/kobject.h>
16486 int val __attribute__ ((unused));
16487 val = KOBJ_NAME_LEN;
16496 rm -Rf build && mkdir -p build
16497 echo "obj-m := conftest.o" >build/Makefile
16498 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; }; then
16510 { $as_echo "$as_me:$LINENO: result: yes" >&5
16511 $as_echo "yes" >&6; }
16513 cat >>confdefs.h <<\_ACEOF
16514 #define HAVE_KOBJ_NAME_LEN 1
16519 $as_echo "$as_me: failed program was:" >&5
16520 sed 's
/^
/|
/' conftest.$ac_ext >&5
16522 { $as_echo "$as_me:$LINENO: result: no" >&5
16523 $as_echo "no" >&6; }
16534 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
16535 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
16536 grep -q -E '[[:space
:]]blkdev_get_by_path
[[:space
:]]' \
16537 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16539 if test $rc -ne 0; then
16541 for file in fs/block_dev.c; do
16542 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
16544 if test $rc -eq 0; then
16549 if test $export -eq 0; then
16550 { $as_echo "$as_me:$LINENO: result: no" >&5
16551 $as_echo "no" >&6; }
16554 { $as_echo "$as_me:$LINENO: result: yes" >&5
16555 $as_echo "yes" >&6; }
16557 cat >>confdefs.h <<\_ACEOF
16558 #define HAVE_BLKDEV_GET_BY_PATH 1
16563 { $as_echo "$as_me:$LINENO: result: yes" >&5
16564 $as_echo "yes" >&6; }
16566 cat >>confdefs.h <<\_ACEOF
16567 #define HAVE_BLKDEV_GET_BY_PATH 1
16574 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
16575 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
16576 grep -q -E '[[:space
:]]open_bdev_exclusive
[[:space
:]]' \
16577 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16579 if test $rc -ne 0; then
16581 for file in fs/block_dev.c; do
16582 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
16584 if test $rc -eq 0; then
16589 if test $export -eq 0; then
16590 { $as_echo "$as_me:$LINENO: result: no" >&5
16591 $as_echo "no" >&6; }
16594 { $as_echo "$as_me:$LINENO: result: yes" >&5
16595 $as_echo "yes" >&6; }
16597 cat >>confdefs.h <<\_ACEOF
16598 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
16603 { $as_echo "$as_me:$LINENO: result: yes" >&5
16604 $as_echo "yes" >&6; }
16606 cat >>confdefs.h <<\_ACEOF
16607 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
16614 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
16615 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
16618 cat confdefs.h - <<_ACEOF >conftest.c
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16626 #include <linux/buffer_head.h>
16632 struct block_device *bdev = NULL;
16633 invalidate_bdev(bdev);
16642 rm -Rf build && mkdir -p build
16643 echo "obj-m := conftest.o" >build/Makefile
16644 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16646 (eval $ac_try) 2>&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16656 { $as_echo "$as_me:$LINENO: result: yes" >&5
16657 $as_echo "yes" >&6; }
16659 cat >>confdefs.h <<\_ACEOF
16660 #define HAVE_1ARG_INVALIDATE_BDEV 1
16665 $as_echo "$as_me: failed program was:" >&5
16666 sed 's
/^
/|
/' conftest.$ac_ext >&5
16668 { $as_echo "$as_me:$LINENO: result: no" >&5
16669 $as_echo "no" >&6; }
16680 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
16681 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
16684 cat confdefs.h - <<_ACEOF >conftest.c
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16692 #include <linux/blkdev.h>
16698 struct block_device *bdev = NULL;
16699 bdev_logical_block_size(bdev);
16708 rm -Rf build && mkdir -p build
16709 echo "obj-m := conftest.o" >build/Makefile
16710 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16722 { $as_echo "$as_me:$LINENO: result: yes" >&5
16723 $as_echo "yes" >&6; }
16725 cat >>confdefs.h <<\_ACEOF
16726 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
16731 $as_echo "$as_me: failed program was:" >&5
16732 sed 's
/^
/|
/' conftest.$ac_ext >&5
16734 { $as_echo "$as_me:$LINENO: result: no" >&5
16735 $as_echo "no" >&6; }
16746 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
16747 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
16748 EXTRA_KCFLAGS="-Werror"
16751 cat confdefs.h - <<_ACEOF >conftest.c
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16759 #include <linux/bio.h>
16766 (void)bio_empty_barrier(&bio);
16775 rm -Rf build && mkdir -p build
16776 echo "obj-m := conftest.o" >build/Makefile
16777 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; }; then
16789 { $as_echo "$as_me:$LINENO: result: yes" >&5
16790 $as_echo "yes" >&6; }
16792 cat >>confdefs.h <<\_ACEOF
16793 #define HAVE_BIO_EMPTY_BARRIER 1
16798 $as_echo "$as_me: failed program was:" >&5
16799 sed 's
/^
/|
/' conftest.$ac_ext >&5
16801 { $as_echo "$as_me:$LINENO: result: no" >&5
16802 $as_echo "no" >&6; }
16813 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
16814 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
16817 cat confdefs.h - <<_ACEOF >conftest.c
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16825 #include <linux/bio.h>
16831 int flags __attribute__ ((unused));
16832 flags = (1 << BIO_RW_FAILFAST);
16841 rm -Rf build && mkdir -p build
16842 echo "obj-m := conftest.o" >build/Makefile
16843 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
16855 { $as_echo "$as_me:$LINENO: result: yes" >&5
16856 $as_echo "yes" >&6; }
16858 cat >>confdefs.h <<\_ACEOF
16859 #define HAVE_BIO_RW_FAILFAST 1
16864 $as_echo "$as_me: failed program was:" >&5
16865 sed 's
/^
/|
/' conftest.$ac_ext >&5
16867 { $as_echo "$as_me:$LINENO: result: no" >&5
16868 $as_echo "no" >&6; }
16879 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
16880 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
16883 cat confdefs.h - <<_ACEOF >conftest.c
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16891 #include <linux/bio.h>
16897 int flags __attribute__ ((unused));
16898 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16899 (1 << BIO_RW_FAILFAST_TRANSPORT) |
16900 (1 << BIO_RW_FAILFAST_DRIVER));
16909 rm -Rf build && mkdir -p build
16910 echo "obj-m := conftest.o" >build/Makefile
16911 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16923 { $as_echo "$as_me:$LINENO: result: yes" >&5
16924 $as_echo "yes" >&6; }
16926 cat >>confdefs.h <<\_ACEOF
16927 #define HAVE_BIO_RW_FAILFAST_DTD 1
16932 $as_echo "$as_me: failed program was:" >&5
16933 sed 's
/^
/|
/' conftest.$ac_ext >&5
16935 { $as_echo "$as_me:$LINENO: result: no" >&5
16936 $as_echo "no" >&6; }
16947 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
16948 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
16951 cat confdefs.h - <<_ACEOF >conftest.c
16954 cat confdefs.h >>conftest.$ac_ext
16955 cat >>conftest.$ac_ext <<_ACEOF
16956 /* end confdefs.h. */
16959 #include <linux/bio.h>
16965 int flags __attribute__ ((unused));
16966 flags = REQ_FAILFAST_MASK;
16975 rm -Rf build && mkdir -p build
16976 echo "obj-m := conftest.o" >build/Makefile
16977 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
16978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979 (eval $ac_try) 2>&5
16981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; }; then
16989 { $as_echo "$as_me:$LINENO: result: yes" >&5
16990 $as_echo "yes" >&6; }
16992 cat >>confdefs.h <<\_ACEOF
16993 #define HAVE_BIO_REQ_FAILFAST_MASK 1
16998 $as_echo "$as_me: failed program was:" >&5
16999 sed 's
/^
/|
/' conftest.$ac_ext >&5
17001 { $as_echo "$as_me:$LINENO: result: no" >&5
17002 $as_echo "no" >&6; }
17013 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
17014 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
17015 tmp_flags="$EXTRA_KCFLAGS"
17016 EXTRA_KCFLAGS="-Werror"
17019 cat confdefs.h - <<_ACEOF >conftest.c
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17027 #include <linux/bio.h>
17033 void (*wanted_end_io)(struct bio *, int) = NULL;
17034 bio_end_io_t *local_end_io __attribute__ ((unused));
17036 local_end_io = wanted_end_io;
17045 rm -Rf build && mkdir -p build
17046 echo "obj-m := conftest.o" >build/Makefile
17047 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; }; then
17059 { $as_echo "$as_me:$LINENO: result: yes" >&5
17060 $as_echo "yes" >&6; }
17062 cat >>confdefs.h <<\_ACEOF
17063 #define HAVE_2ARGS_BIO_END_IO_T 1
17068 $as_echo "$as_me: failed program was:" >&5
17069 sed 's
/^
/|
/' conftest.$ac_ext >&5
17071 { $as_echo "$as_me:$LINENO: result: no" >&5
17072 $as_echo "no" >&6; }
17081 EXTRA_KCFLAGS="$tmp_flags"
17084 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
17085 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
17088 cat confdefs.h - <<_ACEOF >conftest.c
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17096 #include <linux/bio.h>
17102 int flags __attribute__ ((unused));
17103 flags = BIO_RW_SYNC;
17112 rm -Rf build && mkdir -p build
17113 echo "obj-m := conftest.o" >build/Makefile
17114 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17126 { $as_echo "$as_me:$LINENO: result: yes" >&5
17127 $as_echo "yes" >&6; }
17129 cat >>confdefs.h <<\_ACEOF
17130 #define HAVE_BIO_RW_SYNC 1
17135 $as_echo "$as_me: failed program was:" >&5
17136 sed 's
/^
/|
/' conftest.$ac_ext >&5
17138 { $as_echo "$as_me:$LINENO: result: no" >&5
17139 $as_echo "no" >&6; }
17150 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
17151 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
17154 cat confdefs.h - <<_ACEOF >conftest.c
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17162 #include <linux/bio.h>
17168 int flags __attribute__ ((unused));
17169 flags = BIO_RW_SYNCIO;
17178 rm -Rf build && mkdir -p build
17179 echo "obj-m := conftest.o" >build/Makefile
17180 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17192 { $as_echo "$as_me:$LINENO: result: yes" >&5
17193 $as_echo "yes" >&6; }
17195 cat >>confdefs.h <<\_ACEOF
17196 #define HAVE_BIO_RW_SYNCIO 1
17201 $as_echo "$as_me: failed program was:" >&5
17202 sed 's
/^
/|
/' conftest.$ac_ext >&5
17204 { $as_echo "$as_me:$LINENO: result: no" >&5
17205 $as_echo "no" >&6; }
17216 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
17217 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
17220 cat confdefs.h - <<_ACEOF >conftest.c
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17228 #include <linux/bio.h>
17234 int flags __attribute__ ((unused));
17244 rm -Rf build && mkdir -p build
17245 echo "obj-m := conftest.o" >build/Makefile
17246 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17258 { $as_echo "$as_me:$LINENO: result: yes" >&5
17259 $as_echo "yes" >&6; }
17261 cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_REQ_SYNC 1
17267 $as_echo "$as_me: failed program was:" >&5
17268 sed 's
/^
/|
/' conftest.$ac_ext >&5
17270 { $as_echo "$as_me:$LINENO: result: no" >&5
17271 $as_echo "no" >&6; }
17282 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
17283 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
17286 cat confdefs.h - <<_ACEOF >conftest.c
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17294 #include <linux/blkdev.h>
17300 struct request *req = NULL;
17301 (void) blk_end_request(req, 0, 0);
17310 rm -Rf build && mkdir -p build
17311 echo "obj-m := conftest.o" >build/Makefile
17312 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; }; then
17324 { $as_echo "$as_me:$LINENO: result: yes" >&5
17325 $as_echo "yes" >&6; }
17327 cat >>confdefs.h <<\_ACEOF
17328 #define HAVE_BLK_END_REQUEST 1
17333 $as_echo "$as_me: failed program was:" >&5
17334 sed 's
/^
/|
/' conftest.$ac_ext >&5
17336 { $as_echo "$as_me:$LINENO: result: no" >&5
17337 $as_echo "no" >&6; }
17347 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
17348 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
17351 cat confdefs.h - <<_ACEOF >conftest.c
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17359 #include <linux/module.h>
17360 #include <linux/blkdev.h>
17362 MODULE_LICENSE("CDDL");
17368 struct request *req = NULL;
17369 (void) blk_end_request(req, 0, 0);
17378 rm -Rf build && mkdir -p build
17379 echo "obj-m := conftest.o" >build/Makefile
17380 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382 (eval $ac_try) 2>&5
17384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17392 { $as_echo "$as_me:$LINENO: result: no" >&5
17393 $as_echo "no" >&6; }
17396 $as_echo "$as_me: failed program was:" >&5
17397 sed 's
/^
/|
/' conftest.$ac_ext >&5
17399 { $as_echo "$as_me:$LINENO: result: yes" >&5
17400 $as_echo "yes" >&6; }
17402 cat >>confdefs.h <<\_ACEOF
17403 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
17416 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
17417 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
17420 cat confdefs.h - <<_ACEOF >conftest.c
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17428 #include <linux/blkdev.h>
17434 struct request_queue *q = NULL;
17435 (void) blk_fetch_request(q);
17444 rm -Rf build && mkdir -p build
17445 echo "obj-m := conftest.o" >build/Makefile
17446 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17458 { $as_echo "$as_me:$LINENO: result: yes" >&5
17459 $as_echo "yes" >&6; }
17461 cat >>confdefs.h <<\_ACEOF
17462 #define HAVE_BLK_FETCH_REQUEST 1
17467 $as_echo "$as_me: failed program was:" >&5
17468 sed 's
/^
/|
/' conftest.$ac_ext >&5
17470 { $as_echo "$as_me:$LINENO: result: no" >&5
17471 $as_echo "no" >&6; }
17482 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
17483 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
17486 cat confdefs.h - <<_ACEOF >conftest.c
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h. */
17494 #include <linux/blkdev.h>
17500 struct request_queue *q = NULL;
17501 struct request *req = NULL;
17502 blk_requeue_request(q, req);
17511 rm -Rf build && mkdir -p build
17512 echo "obj-m := conftest.o" >build/Makefile
17513 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17525 { $as_echo "$as_me:$LINENO: result: yes" >&5
17526 $as_echo "yes" >&6; }
17528 cat >>confdefs.h <<\_ACEOF
17529 #define HAVE_BLK_REQUEUE_REQUEST 1
17534 $as_echo "$as_me: failed program was:" >&5
17535 sed 's
/^
/|
/' conftest.$ac_ext >&5
17537 { $as_echo "$as_me:$LINENO: result: no" >&5
17538 $as_echo "no" >&6; }
17549 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
17550 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
17553 cat confdefs.h - <<_ACEOF >conftest.c
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h. */
17561 #include <linux/blkdev.h>
17567 struct request *req = NULL;
17568 (void) blk_rq_bytes(req);
17577 rm -Rf build && mkdir -p build
17578 echo "obj-m := conftest.o" >build/Makefile
17579 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; }; then
17591 { $as_echo "$as_me:$LINENO: result: yes" >&5
17592 $as_echo "yes" >&6; }
17594 cat >>confdefs.h <<\_ACEOF
17595 #define HAVE_BLK_RQ_BYTES 1
17600 $as_echo "$as_me: failed program was:" >&5
17601 sed 's
/^
/|
/' conftest.$ac_ext >&5
17603 { $as_echo "$as_me:$LINENO: result: no" >&5
17604 $as_echo "no" >&6; }
17614 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
17615 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
17618 cat confdefs.h - <<_ACEOF >conftest.c
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17626 #include <linux/module.h>
17627 #include <linux/blkdev.h>
17629 MODULE_LICENSE("CDDL");
17635 struct request *req = NULL;
17636 (void) blk_rq_bytes(req);
17645 rm -Rf build && mkdir -p build
17646 echo "obj-m := conftest.o" >build/Makefile
17647 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17659 { $as_echo "$as_me:$LINENO: result: no" >&5
17660 $as_echo "no" >&6; }
17663 $as_echo "$as_me: failed program was:" >&5
17664 sed 's
/^
/|
/' conftest.$ac_ext >&5
17666 { $as_echo "$as_me:$LINENO: result: yes" >&5
17667 $as_echo "yes" >&6; }
17669 cat >>confdefs.h <<\_ACEOF
17670 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
17683 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
17684 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
17687 cat confdefs.h - <<_ACEOF >conftest.c
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17695 #include <linux/blkdev.h>
17701 struct request *req = NULL;
17702 (void) blk_rq_pos(req);
17711 rm -Rf build && mkdir -p build
17712 echo "obj-m := conftest.o" >build/Makefile
17713 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; }; then
17725 { $as_echo "$as_me:$LINENO: result: yes" >&5
17726 $as_echo "yes" >&6; }
17728 cat >>confdefs.h <<\_ACEOF
17729 #define HAVE_BLK_RQ_POS 1
17734 $as_echo "$as_me: failed program was:" >&5
17735 sed 's
/^
/|
/' conftest.$ac_ext >&5
17737 { $as_echo "$as_me:$LINENO: result: no" >&5
17738 $as_echo "no" >&6; }
17749 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
17750 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
17753 cat confdefs.h - <<_ACEOF >conftest.c
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17761 #include <linux/blkdev.h>
17767 struct request *req = NULL;
17768 (void) blk_rq_sectors(req);
17777 rm -Rf build && mkdir -p build
17778 echo "obj-m := conftest.o" >build/Makefile
17779 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17791 { $as_echo "$as_me:$LINENO: result: yes" >&5
17792 $as_echo "yes" >&6; }
17794 cat >>confdefs.h <<\_ACEOF
17795 #define HAVE_BLK_RQ_SECTORS 1
17800 $as_echo "$as_me: failed program was:" >&5
17801 sed 's
/^
/|
/' conftest.$ac_ext >&5
17803 { $as_echo "$as_me:$LINENO: result: no" >&5
17804 $as_echo "no" >&6; }
17815 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
17816 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17819 cat confdefs.h - <<_ACEOF >conftest.c
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17827 #include <linux/blkdev.h>
17833 struct gendisk *disk = NULL;
17834 (void) get_disk_ro(disk);
17843 rm -Rf build && mkdir -p build
17844 echo "obj-m := conftest.o" >build/Makefile
17845 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17857 { $as_echo "$as_me:$LINENO: result: yes" >&5
17858 $as_echo "yes" >&6; }
17860 cat >>confdefs.h <<\_ACEOF
17861 #define HAVE_GET_DISK_RO 1
17866 $as_echo "$as_me: failed program was:" >&5
17867 sed 's
/^
/|
/' conftest.$ac_ext >&5
17869 { $as_echo "$as_me:$LINENO: result: no" >&5
17870 $as_echo "no" >&6; }
17881 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
17882 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
17885 cat confdefs.h - <<_ACEOF >conftest.c
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17893 #include <linux/blkdev.h>
17899 struct request *req = NULL;
17900 (void) rq_is_sync(req);
17909 rm -Rf build && mkdir -p build
17910 echo "obj-m := conftest.o" >build/Makefile
17911 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17923 { $as_echo "$as_me:$LINENO: result: yes" >&5
17924 $as_echo "yes" >&6; }
17926 cat >>confdefs.h <<\_ACEOF
17927 #define HAVE_RQ_IS_SYNC 1
17932 $as_echo "$as_me: failed program was:" >&5
17933 sed 's
/^
/|
/' conftest.$ac_ext >&5
17935 { $as_echo "$as_me:$LINENO: result: no" >&5
17936 $as_echo "no" >&6; }
17947 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
17948 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
17951 cat confdefs.h - <<_ACEOF >conftest.c
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17959 #include <linux/blkdev.h>
17965 struct bio_vec *bv;
17966 struct req_iterator iter;
17967 struct request *req = NULL;
17968 rq_for_each_segment(bv, req, iter) { }
17977 rm -Rf build && mkdir -p build
17978 echo "obj-m := conftest.o" >build/Makefile
17979 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
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); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; }; then
17991 { $as_echo "$as_me:$LINENO: result: yes" >&5
17992 $as_echo "yes" >&6; }
17994 cat >>confdefs.h <<\_ACEOF
17995 #define HAVE_RQ_FOR_EACH_SEGMENT 1
18000 $as_echo "$as_me: failed program was:" >&5
18001 sed 's
/^
/|
/' conftest.$ac_ext >&5
18003 { $as_echo "$as_me:$LINENO: result: no" >&5
18004 $as_echo "no" >&6; }
18014 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
18015 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
18018 cat confdefs.h - <<_ACEOF >conftest.c
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h. */
18026 #include <linux/fs.h>
18027 #include <linux/xattr.h>
18029 const struct xattr_handler xattr_test_handler = {
18035 const struct xattr_handler *xattr_handlers[] = {
18036 &xattr_test_handler,
18043 struct super_block sb __attribute__ ((unused));
18045 sb.s_xattr = xattr_handlers;
18054 rm -Rf build && mkdir -p build
18055 echo "obj-m := conftest.o" >build/Makefile
18056 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; }; then
18068 { $as_echo "$as_me:$LINENO: result: yes" >&5
18069 $as_echo "yes" >&6; }
18071 cat >>confdefs.h <<\_ACEOF
18072 #define HAVE_CONST_XATTR_HANDLER 1
18077 $as_echo "$as_me: failed program was:" >&5
18078 sed 's
/^
/|
/' conftest.$ac_ext >&5
18080 { $as_echo "$as_me:$LINENO: result: no" >&5
18081 $as_echo "no" >&6; }
18092 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18093 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
18096 cat confdefs.h - <<_ACEOF >conftest.c
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18104 #include <linux/xattr.h>
18110 int (*get)(struct dentry *dentry, const char *name,
18111 void *buffer, size_t size, int handler_flags) = NULL;
18112 struct xattr_handler xops __attribute__ ((unused));
18123 rm -Rf build && mkdir -p build
18124 echo "obj-m := conftest.o" >build/Makefile
18125 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18137 { $as_echo "$as_me:$LINENO: result: yes" >&5
18138 $as_echo "yes" >&6; }
18140 cat >>confdefs.h <<\_ACEOF
18141 #define HAVE_DENTRY_XATTR_GET 1
18146 $as_echo "$as_me: failed program was:" >&5
18147 sed 's
/^
/|
/' conftest.$ac_ext >&5
18149 { $as_echo "$as_me:$LINENO: result: no" >&5
18150 $as_echo "no" >&6; }
18161 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
18162 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18165 cat confdefs.h - <<_ACEOF >conftest.c
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18173 #include <linux/xattr.h>
18179 int (*set)(struct dentry *dentry, const char *name,
18180 const void *buffer, size_t size, int flags,
18181 int handler_flags) = NULL;
18182 struct xattr_handler xops __attribute__ ((unused));
18193 rm -Rf build && mkdir -p build
18194 echo "obj-m := conftest.o" >build/Makefile
18195 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18207 { $as_echo "$as_me:$LINENO: result: yes" >&5
18208 $as_echo "yes" >&6; }
18210 cat >>confdefs.h <<\_ACEOF
18211 #define HAVE_DENTRY_XATTR_SET 1
18216 $as_echo "$as_me: failed program was:" >&5
18217 sed 's
/^
/|
/' conftest.$ac_ext >&5
18219 { $as_echo "$as_me:$LINENO: result: no" >&5
18220 $as_echo "no" >&6; }
18231 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
18232 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
18235 cat confdefs.h - <<_ACEOF >conftest.c
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18243 #include <linux/fs.h>
18249 int (*fsync) (struct file *, int datasync) = NULL;
18250 struct file_operations fops __attribute__ ((unused));
18252 fops.fsync = fsync;
18261 rm -Rf build && mkdir -p build
18262 echo "obj-m := conftest.o" >build/Makefile
18263 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18275 { $as_echo "$as_me:$LINENO: result: yes" >&5
18276 $as_echo "yes" >&6; }
18278 cat >>confdefs.h <<\_ACEOF
18279 #define HAVE_2ARGS_FSYNC 1
18284 $as_echo "$as_me: failed program was:" >&5
18285 sed 's
/^
/|
/' conftest.$ac_ext >&5
18287 { $as_echo "$as_me:$LINENO: result: no" >&5
18288 $as_echo "no" >&6; }
18299 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
18300 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
18303 cat confdefs.h - <<_ACEOF >conftest.c
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18311 #include <linux/fs.h>
18317 void (*evict_inode) (struct inode *) = NULL;
18318 struct super_operations sops __attribute__ ((unused));
18320 sops.evict_inode = evict_inode;
18329 rm -Rf build && mkdir -p build
18330 echo "obj-m := conftest.o" >build/Makefile
18331 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
'
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; }; then
18343 { $as_echo "$as_me:$LINENO: result: yes" >&5
18344 $as_echo "yes" >&6; }
18346 cat >>confdefs.h <<\_ACEOF
18347 #define HAVE_EVICT_INODE 1
18352 $as_echo "$as_me: failed program was:" >&5
18353 sed 's
/^
/|
/' conftest.$ac_ext >&5
18355 { $as_echo "$as_me:$LINENO: result: no" >&5
18356 $as_echo "no" >&6; }
18367 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
18368 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
18369 grep -q -E '[[:space
:]]insert_inode_locked
[[:space
:]]' \
18370 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18372 if test $rc -ne 0; then
18374 for file in fs/inode.c; do
18375 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
18377 if test $rc -eq 0; then
18382 if test $export -eq 0; then
18383 { $as_echo "$as_me:$LINENO: result: no" >&5
18384 $as_echo "no" >&6; }
18387 { $as_echo "$as_me:$LINENO: result: yes" >&5
18388 $as_echo "yes" >&6; }
18390 cat >>confdefs.h <<\_ACEOF
18391 #define HAVE_INSERT_INODE_LOCKED 1
18396 { $as_echo "$as_me:$LINENO: result: yes" >&5
18397 $as_echo "yes" >&6; }
18399 cat >>confdefs.h <<\_ACEOF
18400 #define HAVE_INSERT_INODE_LOCKED 1
18407 if test "$LINUX_OBJ" != "$LINUX"; then
18408 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
18413 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-unused-but-set-variable"
18414 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
18415 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
18421 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
18422 $as_echo_n "checking for target asm dir... " >&6; }
18423 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
18425 case $TARGET_ARCH in
18427 TARGET_ASM_DIR=asm-${TARGET_ARCH}
18430 TARGET_ASM_DIR=asm-generic
18435 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
18436 $as_echo "$TARGET_ASM_DIR" >&6; }
18439 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
18440 $as_echo_n "checking for ioctl()... " >&6; }
18441 cat >conftest.$ac_ext <<_ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18447 #include <unistd.h>
18450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18451 $EGREP "ioctl" >/dev/null 2>&1; then
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 #include <sys/ioctl.h>
18467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18468 $EGREP "ioctl" >/dev/null 2>&1; then
18475 cat >conftest.$ac_ext <<_ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 #include <stropts.h>
18484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18485 $EGREP "ioctl" >/dev/null 2>&1; then
18493 if test $is_unistd = yes; then
18496 cat >>confdefs.h <<\_ACEOF
18497 #define HAVE_IOCTL_IN_UNISTD_H 1
18502 if test $is_sys_ioctl = yes; then
18505 cat >>confdefs.h <<\_ACEOF
18506 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
18509 elif test $is_stropts = yes; then
18511 cat >>confdefs.h <<\_ACEOF
18512 #define HAVE_IOCTL_IN_STROPTS_H 1
18520 if test $result = no; then
18521 { $as_echo "$as_me:$LINENO: result: no" >&5
18522 $as_echo "no" >&6; }
18523 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
18524 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
18525 { (exit 1); exit 1; }; }
18527 { $as_echo "$as_me:$LINENO: result: yes" >&5
18528 $as_echo "yes" >&6; }
18534 if test "${ac_cv_header_zlib_h+set}" = set; then
18535 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18536 $as_echo_n "checking for zlib.h... " >&6; }
18537 if test "${ac_cv_header_zlib_h+set}" = set; then
18538 $as_echo_n "(cached) " >&6
18540 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18541 $as_echo "$ac_cv_header_zlib_h" >&6; }
18543 # Is the header compilable?
18544 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
18545 $as_echo_n "checking zlib.h usability... " >&6; }
18546 cat >conftest.$ac_ext <<_ACEOF
18549 cat confdefs.h >>conftest.$ac_ext
18550 cat >>conftest.$ac_ext <<_ACEOF
18551 /* end confdefs.h. */
18552 $ac_includes_default
18555 rm -f conftest.$ac_objext
18556 if { (ac_try="$ac_compile"
18557 case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18562 $as_echo "$ac_try_echo") >&5
18563 (eval "$ac_compile") 2>conftest.er1
18565 grep -v '^
*+' conftest.er1 >conftest.err
18567 cat conftest.err >&5
18568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } && {
18570 test -z "$ac_c_werror_flag" ||
18571 test ! -s conftest.err
18572 } && test -s conftest.$ac_objext; then
18573 ac_header_compiler=yes
18575 $as_echo "$as_me: failed program was:" >&5
18576 sed 's
/^
/|
/' conftest.$ac_ext >&5
18578 ac_header_compiler=no
18581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18582 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18583 $as_echo "$ac_header_compiler" >&6; }
18585 # Is the header present?
18586 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
18587 $as_echo_n "checking zlib.h presence... " >&6; }
18588 cat >conftest.$ac_ext <<_ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18596 if { (ac_try="$ac_cpp conftest.$ac_ext"
18597 case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18602 $as_echo "$ac_try_echo") >&5
18603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18605 grep -v '^
*+' conftest.er1 >conftest.err
18607 cat conftest.err >&5
18608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } >/dev/null && {
18610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18611 test ! -s conftest.err
18613 ac_header_preproc=yes
18615 $as_echo "$as_me: failed program was:" >&5
18616 sed 's
/^
/|
/' conftest.$ac_ext >&5
18618 ac_header_preproc=no
18621 rm -f conftest.err conftest.$ac_ext
18622 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18623 $as_echo "$ac_header_preproc" >&6; }
18625 # So? What about this header?
18626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18628 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18629 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18630 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
18631 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
18632 ac_header_preproc=yes
18635 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18636 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18637 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18638 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18639 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
18640 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
18641 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
18642 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18643 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
18644 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
18645 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
18646 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
18650 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18651 $as_echo_n "checking for zlib.h... " >&6; }
18652 if test "${ac_cv_header_zlib_h+set}" = set; then
18653 $as_echo_n "(cached) " >&6
18655 ac_cv_header_zlib_h=$ac_header_preproc
18657 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18658 $as_echo "$ac_cv_header_zlib_h" >&6; }
18661 if test "x$ac_cv_header_zlib_h" = x""yes; then
18664 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18665 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
18666 { { $as_echo "$as_me:$LINENO: error:
18667 *** zlib.h missing, zlib-devel package required
18668 See \`config.log
' for more details." >&5
18669 $as_echo "$as_me: error:
18670 *** zlib.h missing, zlib-devel package required
18671 See \`config.log' for more details.
" >&2;}
18672 { (exit 1); exit 1; }; }; }
18678 { $as_echo "$as_me:$LINENO: checking
for compress2
in -lz" >&5
18679 $as_echo_n "checking
for compress2
in -lz...
" >&6; }
18680 if test "${ac_cv_lib_z_compress2+set}" = set; then
18681 $as_echo_n "(cached
) " >&6
18683 ac_check_lib_save_LIBS=$LIBS
18685 cat >conftest.$ac_ext <<_ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h. */
18692 /* Override any GCC internal prototype to avoid an error.
18693 Use char because int might match the return type of a GCC
18694 builtin and then its argument prototype would still apply. */
18702 return compress2 ();
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711 *) ac_try_echo=$ac_try;;
18713 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18714 $as_echo "$ac_try_echo") >&5
18715 (eval "$ac_link") 2>conftest.er1
18717 grep -v '^ *+' conftest.er1 >conftest.err
18719 cat conftest.err >&5
18720 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18721 (exit $ac_status); } && {
18722 test -z "$ac_c_werror_flag" ||
18723 test ! -s conftest.err
18724 } && test -s conftest$ac_exeext && {
18725 test "$cross_compiling" = yes ||
18726 $as_test_x conftest$ac_exeext
18728 ac_cv_lib_z_compress2=yes
18730 $as_echo "$as_me: failed program was
:" >&5
18731 sed 's/^/| /' conftest.$ac_ext >&5
18733 ac_cv_lib_z_compress2=no
18736 rm -rf conftest.dSYM
18737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18738 conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_check_lib_save_LIBS
18741 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_compress2" >&5
18742 $as_echo "$ac_cv_lib_z_compress2" >&6; }
18743 if test "x
$ac_cv_lib_z_compress2" = x""yes; then
18744 cat >>confdefs.h <<_ACEOF
18745 #define HAVE_LIBZ 1
18751 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
18752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18753 { { $as_echo "$as_me:$LINENO: error:
18754 *** compress2() missing, zlib-devel package required
18755 See \`config.log' for more details.
" >&5
18756 $as_echo "$as_me: error
:
18757 *** compress2
() missing
, zlib-devel package required
18758 See \
`config.log' for more details." >&2;}
18759 { (exit 1); exit 1; }; }; }
18764 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
18765 $as_echo_n "checking for uncompress in -lz... " >&6; }
18766 if test "${ac_cv_lib_z_uncompress+set}" = set; then
18767 $as_echo_n "(cached) " >&6
18769 ac_check_lib_save_LIBS=$LIBS
18771 cat >conftest.$ac_ext <<_ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18778 /* Override any GCC internal prototype to avoid an error.
18779 Use char because int might match the return type of a GCC
18780 builtin and then its argument prototype would still apply. */
18784 char uncompress ();
18788 return uncompress ();
18793 rm -f conftest.$ac_objext conftest$ac_exeext
18794 if { (ac_try="$ac_link"
18795 case "(($ac_try" in
18796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18797 *) ac_try_echo
=$ac_try;;
18799 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18800 $as_echo "$ac_try_echo") >&5
18801 (eval "$ac_link") 2>conftest.er1
18803 grep -v '^ *+' conftest.er1
>conftest.err
18805 cat conftest.err
>&5
18806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } && {
18808 test -z "$ac_c_werror_flag" ||
18809 test ! -s conftest.err
18810 } && test -s conftest
$ac_exeext && {
18811 test "$cross_compiling" = yes ||
18812 $as_test_x conftest
$ac_exeext
18814 ac_cv_lib_z_uncompress
=yes
18816 $as_echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.
$ac_ext >&5
18819 ac_cv_lib_z_uncompress
=no
18822 rm -rf conftest.dSYM
18823 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18824 conftest
$ac_exeext conftest.
$ac_ext
18825 LIBS
=$ac_check_lib_save_LIBS
18827 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
18828 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
18829 if test "x$ac_cv_lib_z_uncompress" = x
""yes; then
18830 cat >>confdefs.h
<<_ACEOF
18831 #define HAVE_LIBZ 1
18837 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18839 { { $as_echo "$as_me:$LINENO: error:
18840 *** uncompress() missing, zlib-devel package required
18841 See \`config.log' for more details." >&5
18842 $as_echo "$as_me: error:
18843 *** uncompress() missing, zlib-devel package required
18844 See \`config.log' for more details." >&2;}
18845 { (exit 1); exit 1; }; }; }
18850 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
18851 $as_echo_n "checking for crc32 in -lz... " >&6; }
18852 if test "${ac_cv_lib_z_crc32+set}" = set; then
18853 $as_echo_n "(cached) " >&6
18855 ac_check_lib_save_LIBS
=$LIBS
18857 cat >conftest.
$ac_ext <<_ACEOF
18860 cat confdefs.h
>>conftest.
$ac_ext
18861 cat >>conftest.
$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18864 /* Override any GCC internal prototype to avoid an error.
18865 Use char because int might match the return type of a GCC
18866 builtin and then its argument prototype would still apply. */
18879 rm -f conftest.
$ac_objext conftest
$ac_exeext
18880 if { (ac_try
="$ac_link"
18881 case "(($ac_try" in
18882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18886 $as_echo "$ac_try_echo") >&5
18887 (eval "$ac_link") 2>conftest.er1
18889 grep -v '^ *+' conftest.er1 >conftest.err
18891 cat conftest.err >&5
18892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } && {
18894 test -z "$ac_c_werror_flag" ||
18895 test ! -s conftest.err
18896 } && test -s conftest$ac_exeext && {
18897 test "$cross_compiling" = yes ||
18898 $as_test_x conftest$ac_exeext
18900 ac_cv_lib_z_crc32=yes
18902 $as_echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ac_cv_lib_z_crc32=no
18908 rm -rf conftest.dSYM
18909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18910 conftest$ac_exeext conftest.$ac_ext
18911 LIBS=$ac_check_lib_save_LIBS
18913 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
18914 $as_echo "$ac_cv_lib_z_crc32" >&6; }
18915 if test "x$ac_cv_lib_z_crc32" = x""yes; then
18916 cat >>confdefs.h <<_ACEOF
18917 #define HAVE_LIBZ 1
18923 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18925 { { $as_echo "$as_me:$LINENO: error
:
18926 *** crc32
() missing
, zlib-devel package required
18927 See \
`config.log' for more details." >&5
18928 $as_echo "$as_me: error:
18929 *** crc32() missing, zlib-devel package required
18930 See \`config.log
' for more details." >&2;}
18931 { (exit 1); exit 1; }; }; }
18938 cat >>confdefs.h <<\_ACEOF
18939 #define HAVE_ZLIB 1
18946 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18947 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18948 $as_echo_n "checking for uuid/uuid.h... " >&6; }
18949 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18950 $as_echo_n "(cached) " >&6
18952 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18953 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18955 # Is the header compilable?
18956 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
18957 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
18958 cat >conftest.$ac_ext <<_ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h. */
18964 $ac_includes_default
18965 #include <uuid/uuid.h>
18967 rm -f conftest.$ac_objext
18968 if { (ac_try="$ac_compile"
18969 case "(($ac_try" in
18970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971 *) ac_try_echo=$ac_try;;
18973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18974 $as_echo "$ac_try_echo") >&5
18975 (eval "$ac_compile") 2>conftest.er1
18977 grep -v '^
*+' conftest.er1 >conftest.err
18979 cat conftest.err >&5
18980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } && {
18982 test -z "$ac_c_werror_flag" ||
18983 test ! -s conftest.err
18984 } && test -s conftest.$ac_objext; then
18985 ac_header_compiler=yes
18987 $as_echo "$as_me: failed program was:" >&5
18988 sed 's
/^
/|
/' conftest.$ac_ext >&5
18990 ac_header_compiler=no
18993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18994 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18995 $as_echo "$ac_header_compiler" >&6; }
18997 # Is the header present?
18998 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
18999 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
19000 cat >conftest.$ac_ext <<_ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19006 #include <uuid/uuid.h>
19008 if { (ac_try="$ac_cpp conftest.$ac_ext"
19009 case "(($ac_try" in
19010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19011 *) ac_try_echo=$ac_try;;
19013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19014 $as_echo "$ac_try_echo") >&5
19015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19017 grep -v '^
*+' conftest.er1 >conftest.err
19019 cat conftest.err >&5
19020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } >/dev/null && {
19022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19023 test ! -s conftest.err
19025 ac_header_preproc=yes
19027 $as_echo "$as_me: failed program was:" >&5
19028 sed 's
/^
/|
/' conftest.$ac_ext >&5
19030 ac_header_preproc=no
19033 rm -f conftest.err conftest.$ac_ext
19034 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19035 $as_echo "$ac_header_preproc" >&6; }
19037 # So? What about this header?
19038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19040 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
19041 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19042 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result
" >&5
19043 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the compiler
's result" >&2;}
19044 ac_header_preproc=yes
19047 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
19048 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
19049 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
19050 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
19051 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
19052 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
19053 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
19054 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
19055 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result
" >&5
19056 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the preprocessor
's result" >&2;}
19057 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
19058 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
19062 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
19063 $as_echo_n "checking for uuid/uuid.h... " >&6; }
19064 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19065 $as_echo_n "(cached) " >&6
19067 ac_cv_header_uuid_uuid_h=$ac_header_preproc
19069 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
19070 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
19073 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
19076 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19077 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
19078 { { $as_echo "$as_me:$LINENO: error:
19079 *** uuid/uuid.h missing, libuuid-devel package required
19080 See \`config.log
' for more details." >&5
19081 $as_echo "$as_me: error:
19082 *** uuid/uuid.h missing, libuuid-devel package required
19083 See \`config.log' for more details.
" >&2;}
19084 { (exit 1); exit 1; }; }; }
19090 { $as_echo "$as_me:$LINENO: checking
for uuid_generate
in -luuid" >&5
19091 $as_echo_n "checking
for uuid_generate
in -luuid...
" >&6; }
19092 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
19093 $as_echo_n "(cached
) " >&6
19095 ac_check_lib_save_LIBS=$LIBS
19096 LIBS="-luuid $LIBS"
19097 cat >conftest.$ac_ext <<_ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19104 /* Override any GCC internal prototype to avoid an error.
19105 Use char because int might match the return type of a GCC
19106 builtin and then its argument prototype would still apply. */
19110 char uuid_generate ();
19114 return uuid_generate ();
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19125 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19126 $as_echo "$ac_try_echo") >&5
19127 (eval "$ac_link") 2>conftest.er1
19129 grep -v '^ *+' conftest.er1 >conftest.err
19131 cat conftest.err >&5
19132 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19133 (exit $ac_status); } && {
19134 test -z "$ac_c_werror_flag" ||
19135 test ! -s conftest.err
19136 } && test -s conftest$ac_exeext && {
19137 test "$cross_compiling" = yes ||
19138 $as_test_x conftest$ac_exeext
19140 ac_cv_lib_uuid_uuid_generate=yes
19142 $as_echo "$as_me: failed program was
:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ac_cv_lib_uuid_uuid_generate=no
19148 rm -rf conftest.dSYM
19149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19150 conftest$ac_exeext conftest.$ac_ext
19151 LIBS=$ac_check_lib_save_LIBS
19153 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_generate" >&5
19154 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
19155 if test "x
$ac_cv_lib_uuid_uuid_generate" = x""yes; then
19156 cat >>confdefs.h <<_ACEOF
19157 #define HAVE_LIBUUID 1
19160 LIBS="-luuid $LIBS"
19163 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
19164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19165 { { $as_echo "$as_me:$LINENO: error:
19166 *** uuid_generate() missing, libuuid-devel package required
19167 See \`config.log' for more details.
" >&5
19168 $as_echo "$as_me: error
:
19169 *** uuid_generate
() missing
, libuuid-devel package required
19170 See \
`config.log' for more details." >&2;}
19171 { (exit 1); exit 1; }; }; }
19176 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
19177 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
19178 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
19179 $as_echo_n "(cached) " >&6
19181 ac_check_lib_save_LIBS=$LIBS
19182 LIBS="-luuid $LIBS"
19183 cat >conftest.$ac_ext <<_ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h. */
19190 /* Override any GCC internal prototype to avoid an error.
19191 Use char because int might match the return type of a GCC
19192 builtin and then its argument prototype would still apply. */
19196 char uuid_is_null ();
19200 return uuid_is_null ();
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (ac_try="$ac_link"
19207 case "(($ac_try" in
19208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19209 *) ac_try_echo
=$ac_try;;
19211 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19212 $as_echo "$ac_try_echo") >&5
19213 (eval "$ac_link") 2>conftest.er1
19215 grep -v '^ *+' conftest.er1
>conftest.err
19217 cat conftest.err
>&5
19218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } && {
19220 test -z "$ac_c_werror_flag" ||
19221 test ! -s conftest.err
19222 } && test -s conftest
$ac_exeext && {
19223 test "$cross_compiling" = yes ||
19224 $as_test_x conftest
$ac_exeext
19226 ac_cv_lib_uuid_uuid_is_null
=yes
19228 $as_echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.
$ac_ext >&5
19231 ac_cv_lib_uuid_uuid_is_null
=no
19234 rm -rf conftest.dSYM
19235 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19236 conftest
$ac_exeext conftest.
$ac_ext
19237 LIBS
=$ac_check_lib_save_LIBS
19239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
19240 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
19241 if test "x$ac_cv_lib_uuid_uuid_is_null" = x
""yes; then
19242 cat >>confdefs.h
<<_ACEOF
19243 #define HAVE_LIBUUID 1
19246 LIBS
="-luuid $LIBS"
19249 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19251 { { $as_echo "$as_me:$LINENO: error:
19252 *** uuid_is_null() missing, libuuid-devel package required
19253 See \`config.log' for more details." >&5
19254 $as_echo "$as_me: error:
19255 *** uuid_is_null() missing, libuuid-devel package required
19256 See \`config.log' for more details." >&2;}
19257 { (exit 1); exit 1; }; }; }
19264 cat >>confdefs.h
<<\_ACEOF
19265 #define HAVE_LIBUUID 1
19271 # Check whether --with-blkid was given.
19272 if test "${with_blkid+set}" = set; then
19273 withval
=$with_blkid;
19280 if test "x$with_blkid" != xno
; then
19282 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
19283 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
19284 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
19285 $as_echo_n "(cached) " >&6
19287 ac_check_lib_save_LIBS
=$LIBS
19288 LIBS
="-lblkid $LIBS"
19289 cat >conftest.
$ac_ext <<_ACEOF
19292 cat confdefs.h
>>conftest.
$ac_ext
19293 cat >>conftest.
$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19296 /* Override any GCC internal prototype to avoid an error.
19297 Use char because int might match the return type of a GCC
19298 builtin and then its argument prototype would still apply. */
19302 char blkid_get_cache ();
19306 return blkid_get_cache ();
19311 rm -f conftest.
$ac_objext conftest
$ac_exeext
19312 if { (ac_try
="$ac_link"
19313 case "(($ac_try" in
19314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19318 $as_echo "$ac_try_echo") >&5
19319 (eval "$ac_link") 2>conftest.er1
19321 grep -v '^ *+' conftest.er1 >conftest.err
19323 cat conftest.err >&5
19324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } && {
19326 test -z "$ac_c_werror_flag" ||
19327 test ! -s conftest.err
19328 } && test -s conftest$ac_exeext && {
19329 test "$cross_compiling" = yes ||
19330 $as_test_x conftest$ac_exeext
19332 ac_cv_lib_blkid_blkid_get_cache=yes
19334 $as_echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_cv_lib_blkid_blkid_get_cache=no
19340 rm -rf conftest.dSYM
19341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19342 conftest$ac_exeext conftest.$ac_ext
19343 LIBS=$ac_check_lib_save_LIBS
19345 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
19346 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
19347 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
19349 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
19350 $as_echo_n "checking for blkid zfs support... " >&6; }
19353 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
19354 >/dev/null 2>/dev/null
19355 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
19356 dd of=$ZFS_DEV bs=1k count=8 \
19357 seek=132 conv=notrunc &>/dev/null \
19358 >/dev/null 2>/dev/null
19360 saved_LDFLAGS="$LDFLAGS"
19363 if test "$cross_compiling" = yes; then
19364 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19366 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
19367 See \
`config.log' for more details." >&5
19368 $as_echo "$as_me: error: cannot run test program while cross compiling
19369 See \`config.log
' for more details." >&2;}
19370 { (exit 1); exit 1; }; }; }
19372 cat >conftest.$ac_ext <<_ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h. */
19380 #include <blkid/blkid.h>
19389 if (blkid_get_cache(&cache, NULL) < 0)
19392 value = blkid_get_tag_value(cache, "TYPE",
19395 blkid_put_cache(cache);
19399 if (strcmp(value, "zfs")) {
19401 blkid_put_cache(cache);
19406 blkid_put_cache(cache);
19412 rm -f conftest$ac_exeext
19413 if { (ac_try="$ac_link"
19414 case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19419 $as_echo "$ac_try_echo") >&5
19420 (eval "$ac_link") 2>&5
19422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
19424 { (case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19429 $as_echo "$ac_try_echo") >&5
19430 (eval "$ac_try") 2>&5
19432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
19436 { $as_echo "$as_me:$LINENO: result: yes" >&5
19437 $as_echo "yes" >&6; }
19441 cat >>confdefs.h <<\_ACEOF
19442 #define HAVE_LIBBLKID 1
19447 $as_echo "$as_me: program exited with status $ac_status" >&5
19448 $as_echo "$as_me: failed program was:" >&5
19449 sed 's
/^
/|
/' conftest.$ac_ext >&5
19451 ( exit $ac_status )
19454 { $as_echo "$as_me:$LINENO: result: no" >&5
19455 $as_echo "no" >&6; }
19456 if test "x$with_blkid" != xcheck; then
19457 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19458 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
19459 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19460 See \`config.log
' for more details." >&5
19461 $as_echo "$as_me: error: --with-blkid given but unavailable
19462 See \`config.log' for more details.
" >&2;}
19463 { (exit 1); exit 1; }; }; }
19468 rm -rf conftest.dSYM
19469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19474 LDFLAGS="$saved_LDFLAGS"
19478 if test "x
$with_blkid" != xcheck; then
19479 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
19480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19481 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19482 See \`config.log' for more details.
" >&5
19483 $as_echo "$as_me: error
: --with-blkid given but unavailable
19484 See \
`config.log' for more details." >&2;}
19485 { (exit 1); exit 1; }; }; }
19498 # Check whether --with-selinux was given.
19499 if test "${with_selinux+set}" = set; then
19500 withval=$with_selinux;
19507 if test "x$with_selinux" != xno; then
19509 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19510 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19511 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19512 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19513 $as_echo_n "(cached) " >&6
19515 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19516 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19518 # Is the header compilable?
19519 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
19520 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
19521 cat >conftest.$ac_ext <<_ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19527 $ac_includes_default
19528 #include <selinux/selinux.h>
19530 rm -f conftest.$ac_objext
19531 if { (ac_try="$ac_compile"
19532 case "(($ac_try" in
19533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19534 *) ac_try_echo
=$ac_try;;
19536 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19537 $as_echo "$ac_try_echo") >&5
19538 (eval "$ac_compile") 2>conftest.er1
19540 grep -v '^ *+' conftest.er1
>conftest.err
19542 cat conftest.err
>&5
19543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } && {
19545 test -z "$ac_c_werror_flag" ||
19546 test ! -s conftest.err
19547 } && test -s conftest.
$ac_objext; then
19548 ac_header_compiler
=yes
19550 $as_echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.
$ac_ext >&5
19553 ac_header_compiler
=no
19556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19557 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19558 $as_echo "$ac_header_compiler" >&6; }
19560 # Is the header present?
19561 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
19562 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
19563 cat >conftest.
$ac_ext <<_ACEOF
19566 cat confdefs.h
>>conftest.
$ac_ext
19567 cat >>conftest.
$ac_ext <<_ACEOF
19568 /* end confdefs.h. */
19569 #include <selinux/selinux.h>
19571 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19572 case "(($ac_try" in
19573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19577 $as_echo "$ac_try_echo") >&5
19578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19580 grep -v '^ *+' conftest.er1 >conftest.err
19582 cat conftest.err >&5
19583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } >/dev/null && {
19585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19586 test ! -s conftest.err
19588 ac_header_preproc=yes
19590 $as_echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 ac_header_preproc=no
19596 rm -f conftest.err conftest.$ac_ext
19597 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19598 $as_echo "$ac_header_preproc" >&6; }
19600 # So? What about this header?
19601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19603 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
19604 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19605 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
19606 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
19607 ac_header_preproc=yes
19610 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
19611 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
19612 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
19613 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
19614 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
19615 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
19616 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
19617 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
19618 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
19619 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
19620 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
19621 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
19625 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19626 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19627 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19628 $as_echo_n "(cached) " >&6
19630 ac_cv_header_selinux_selinux_h=$ac_header_preproc
19632 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19633 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19636 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
19638 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
19639 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
19640 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
19641 $as_echo_n "(cached) " >&6
19643 ac_check_lib_save_LIBS=$LIBS
19644 LIBS="-lselinux $LIBS"
19645 cat >conftest.$ac_ext <<_ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19652 /* Override any GCC internal prototype to avoid an error.
19653 Use char because int might match the return type of a GCC
19654 builtin and then its argument prototype would still apply. */
19658 char is_selinux_enabled ();
19662 return is_selinux_enabled ();
19667 rm -f conftest.$ac_objext conftest$ac_exeext
19668 if { (ac_try="$ac_link"
19669 case "(($ac_try" in
19670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19671 *) ac_try_echo
=$ac_try;;
19673 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19674 $as_echo "$ac_try_echo") >&5
19675 (eval "$ac_link") 2>conftest.er1
19677 grep -v '^ *+' conftest.er1
>conftest.err
19679 cat conftest.err
>&5
19680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } && {
19682 test -z "$ac_c_werror_flag" ||
19683 test ! -s conftest.err
19684 } && test -s conftest
$ac_exeext && {
19685 test "$cross_compiling" = yes ||
19686 $as_test_x conftest
$ac_exeext
19688 ac_cv_lib_selinux_is_selinux_enabled
=yes
19690 $as_echo "$as_me: failed program was:" >&5
19691 sed 's/^/| /' conftest.
$ac_ext >&5
19693 ac_cv_lib_selinux_is_selinux_enabled
=no
19696 rm -rf conftest.dSYM
19697 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19698 conftest
$ac_exeext conftest.
$ac_ext
19699 LIBS
=$ac_check_lib_save_LIBS
19701 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19702 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19703 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then
19705 LIBSELINUX
="-lselinux"
19708 cat >>confdefs.h
<<\_ACEOF
19709 #define HAVE_LIBSELINUX 1
19715 if test "x$with_selinux" != xcheck
; then
19716 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19718 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19719 See \`config.log' for more details." >&5
19720 $as_echo "$as_me: error: --with-selinux given but unavailable
19721 See \`config.log' for more details." >&2;}
19722 { (exit 1); exit 1; }; }; }
19732 if test "x$with_selinux" != xcheck
; then
19733 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19735 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19736 See \`config.log' for more details." >&5
19737 $as_echo "$as_me: error: --with-selinux given but unavailable
19738 See \`config.log' for more details." >&2;}
19739 { (exit 1); exit 1; }; }; }
19750 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
19751 $as_echo_n "checking for selinux support... " >&6; }
19752 { $as_echo "$as_me:$LINENO: result: no" >&5
19753 $as_echo "no" >&6; }
19759 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
19760 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
19762 saved_flags
="$CFLAGS"
19763 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
19765 if test "$cross_compiling" = yes; then
19766 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19768 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19769 See \`config.log' for more details." >&5
19770 $as_echo "$as_me: error: cannot run test program while cross compiling
19771 See \`config.log' for more details." >&2;}
19772 { (exit 1); exit 1; }; }; }
19774 cat >conftest.
$ac_ext <<_ACEOF
19777 cat confdefs.h
>>conftest.
$ac_ext
19778 cat >>conftest.
$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19789 rm -f conftest
$ac_exeext
19790 if { (ac_try
="$ac_link"
19791 case "(($ac_try" in
19792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19796 $as_echo "$ac_try_echo") >&5
19797 (eval "$ac_link") 2>&5
19799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19801 { (case "(($ac_try" in
19802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19803 *) ac_try_echo
=$ac_try;;
19805 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19806 $as_echo "$ac_try_echo") >&5
19807 (eval "$ac_try") 2>&5
19809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19812 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
19813 { $as_echo "$as_me:$LINENO: result: yes" >&5
19814 $as_echo "yes" >&6; }
19817 $as_echo "$as_me: program exited with status $ac_status" >&5
19818 $as_echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.
$ac_ext >&5
19821 ( exit $ac_status )
19824 { $as_echo "$as_me:$LINENO: result: no" >&5
19825 $as_echo "no" >&6; }
19828 rm -rf conftest.dSYM
19829 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19834 CFLAGS
="$saved_flags"
19839 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
19840 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
19842 saved_CFLAGS
="$CFLAGS"
19843 CFLAGS
="-fstack-check"
19844 saved_LDFLAGS
="$LDFLAGS"
19845 LDFLAGS
="-lpthread"
19847 if test "$cross_compiling" = yes; then
19848 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19850 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19851 See \`config.log' for more details." >&5
19852 $as_echo "$as_me: error: cannot run test program while cross compiling
19853 See \`config.log' for more details." >&2;}
19854 { (exit 1); exit 1; }; }; }
19856 cat >conftest.
$ac_ext <<_ACEOF
19859 cat confdefs.h
>>conftest.
$ac_ext
19860 cat >>conftest.
$ac_ext <<_ACEOF
19861 /* end confdefs.h. */
19863 #include <pthread.h>
19864 #include <sys/resource.h>
19865 #include <unistd.h>
19866 #include <bits/local_lim.h>
19868 #define PAGESIZE (sysconf(_SC_PAGESIZE))
19869 #define STACK_SIZE 8192
19870 #define BUFSIZE 4096
19872 void * func(void *arg)
19882 pthread_attr_t attr;
19887 setrlimit(RLIMIT_CORE, &l);
19888 pthread_attr_init(&attr);
19889 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
19890 pthread_attr_setguardsize(&attr, PAGESIZE);
19891 pthread_create(&tid, &attr, func, NULL);
19892 pthread_join(tid, NULL);
19898 rm -f conftest
$ac_exeext
19899 if { (ac_try
="$ac_link"
19900 case "(($ac_try" in
19901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19905 $as_echo "$ac_try_echo") >&5
19906 (eval "$ac_link") 2>&5
19908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19910 { (case "(($ac_try" in
19911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19912 *) ac_try_echo
=$ac_try;;
19914 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19915 $as_echo "$ac_try_echo") >&5
19916 (eval "$ac_try") 2>&5
19918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19921 { $as_echo "$as_me:$LINENO: result: no" >&5
19922 $as_echo "no" >&6; }
19925 $as_echo "$as_me: program exited with status $ac_status" >&5
19926 $as_echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.
$ac_ext >&5
19929 ( exit $ac_status )
19932 cat >>confdefs.h
<<\_ACEOF
19933 #define NPTL_GUARD_WITHIN_STACK 1
19936 { $as_echo "$as_me:$LINENO: result: yes" >&5
19937 $as_echo "yes" >&6; }
19940 rm -rf conftest.dSYM
19941 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19945 CFLAGS
="$saved_CFLAGS"
19946 LDFLAGS
="$saved_LDFLAGS"
19951 { $as_echo "$as_me:$LINENO: result: Error!" >&5
19952 $as_echo "Error!" >&6; }
19953 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
19954 user kernel|user|all|srpm" >&5
19955 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
19956 user kernel|user|all|srpm" >&2;}
19957 { (exit 1); exit 1; }; } ;;
19960 if test "$ZFS_CONFIG" = user ||
19961 test "$ZFS_CONFIG" = all
; then
19963 CONFIG_USER_FALSE
='#'
19965 CONFIG_USER_TRUE
='#'
19969 if test "$ZFS_CONFIG" = kernel ||
19970 test "$ZFS_CONFIG" = all
; then
19971 CONFIG_KERNEL_TRUE
=
19972 CONFIG_KERNEL_FALSE
='#'
19974 CONFIG_KERNEL_TRUE
='#'
19975 CONFIG_KERNEL_FALSE
=
19980 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19981 $as_echo_n "checking whether debugging is enabled... " >&6; }
19982 # Check whether --enable-debug was given.
19983 if test "${enable_debug+set}" = set; then
19984 enableval
=$enable_debug;
19990 if test "x$enable_debug" = xyes
; then
19992 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
19993 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
19994 DEBUG_CFLAGS
="-DDEBUG -Werror"
19995 DEBUG_STACKFLAGS
="-fstack-check"
19999 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
20000 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
20001 DEBUG_CFLAGS
="-DNDEBUG"
20002 DEBUG_STACKFLAGS
=""
20009 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
20010 $as_echo "$enable_debug" >&6; }
20013 ac_config_files
="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile etc/Makefile etc/udev/Makefile etc/udev/rules.d/Makefile etc/udev/rules.d/60-zpool.rules etc/udev/rules.d/60-zvol.rules etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_id/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/zpool-layout/Makefile scripts/common.sh zfs.spec zfs-modules.spec zfs-script-config.sh"
20016 cat >confcache
<<\_ACEOF
20017 # This file is a shell script that caches the results of configure
20018 # tests run on this system so they can be shared between configure
20019 # scripts and configure runs, see configure's option --config-cache.
20020 # It is not useful on other systems. If it contains results you don't
20021 # want to keep, you may remove or edit it.
20023 # config.status only pays attention to the cache file if you give it
20024 # the --recheck option to rerun configure.
20026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20028 # following values.
20032 # The following way of writing the cache mishandles newlines in values,
20033 # but we know of no workaround that is simple, portable, and efficient.
20034 # So, we kill variables containing newlines.
20035 # Ultrix sh set writes to stderr and can't be redirected directly,
20036 # and sets the high bit in the cache file unless we assign to the vars.
20038 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20039 eval ac_val
=\$
$ac_var
20043 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20047 _ | IFS | as_nl
) ;; #(
20048 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20049 *) $as_unset $ac_var ;;
20055 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20056 *${as_nl}ac_space
=\
*)
20057 # `set' does not quote correctly, so add quotes (double-quote
20058 # substitution turns \\\\ into \\, and sed turns \\ into \).
20061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20064 # `set' quotes correctly as required by POSIX, so do not add quotes.
20065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20076 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20078 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20079 if test -w "$cache_file"; then
20080 test "x$cache_file" != "x/dev/null" &&
20081 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20082 $as_echo "$as_me: updating cache $cache_file" >&6;}
20083 cat confcache
>$cache_file
20085 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20086 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20091 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20092 # Let make expand exec_prefix.
20093 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20095 DEFS
=-DHAVE_CONFIG_H
20099 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20100 # 1. Remove the extension, and $U if already installed.
20101 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20102 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20103 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20104 # will be set to the directory where LIBOBJS objects are built.
20105 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20106 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20108 LIBOBJS
=$ac_libobjs
20110 LTLIBOBJS
=$ac_ltlibobjs
20113 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20114 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20115 Usually this means the macro was only invoked conditionally." >&5
20116 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20117 Usually this means the macro was only invoked conditionally." >&2;}
20118 { (exit 1); exit 1; }; }
20120 if test -n "$EXEEXT"; then
20122 am__EXEEXT_FALSE
='#'
20124 am__EXEEXT_TRUE
='#'
20128 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20129 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20130 Usually this means the macro was only invoked conditionally." >&5
20131 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20132 Usually this means the macro was only invoked conditionally." >&2;}
20133 { (exit 1); exit 1; }; }
20135 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20136 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20137 Usually this means the macro was only invoked conditionally." >&5
20138 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20139 Usually this means the macro was only invoked conditionally." >&2;}
20140 { (exit 1); exit 1; }; }
20142 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20143 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
20144 Usually this means the macro was only invoked conditionally." >&5
20145 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
20146 Usually this means the macro was only invoked conditionally." >&2;}
20147 { (exit 1); exit 1; }; }
20149 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20150 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20151 Usually this means the macro was only invoked conditionally." >&5
20152 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20153 Usually this means the macro was only invoked conditionally." >&2;}
20154 { (exit 1); exit 1; }; }
20156 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20157 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20158 Usually this means the macro was only invoked conditionally." >&5
20159 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20160 Usually this means the macro was only invoked conditionally." >&2;}
20161 { (exit 1); exit 1; }; }
20164 : ${CONFIG_STATUS=./config.status}
20166 ac_clean_files_save
=$ac_clean_files
20167 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20168 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20169 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20170 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20172 # Generated by $as_me.
20173 # Run this file to recreate the current configuration.
20174 # Compiler output produced by configure, useful for debugging
20175 # configure, is in config.log if it exists.
20178 ac_cs_recheck=false
20180 SHELL=\${CONFIG_SHELL-$SHELL}
20183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20184 ## --------------------- ##
20185 ## M4sh Initialization. ##
20186 ## --------------------- ##
20188 # Be more Bourne compatible
20189 DUALCASE
=1; export DUALCASE
# for MKS sh
20190 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20193 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20194 # is contrary to our usage. Disable this feature.
20195 alias -g '${1+"$@"}'='"$@"'
20196 setopt NO_GLOB_SUBST
20198 case `(set -o) 2>/dev/null` in
20199 *posix
*) set -o posix
;;
20208 # Avoid depending upon Character Ranges.
20209 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20210 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20211 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20212 as_cr_digits
='0123456789'
20213 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20218 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20219 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20220 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20221 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20222 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20223 as_echo='printf %s
\n'
20224 as_echo_n='printf %s
'
20226 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20227 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20228 as_echo_n='/usr
/ucb
/echo -n'
20230 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20231 as_echo_n_body='eval
20235 expr "X$arg" : "X\\(.*\\)$as_nl";
20236 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20238 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20240 export as_echo_n_body
20241 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20243 export as_echo_body
20244 as_echo='sh
-c $as_echo_body as_echo
'
20247 # The user is always right.
20248 if test "${PATH_SEPARATOR+set}" != set; then
20250 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20251 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20256 # Support unset when possible.
20257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20265 # We need space, tab and new line, in precisely that order. Quoting is
20266 # there to prevent editors from complaining about space-tab.
20267 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20268 # splitting by setting IFS to empty value.)
20271 # Find who we are. Look in the path if we contain no directory separator.
20273 *[\\/]* ) as_myself=$0 ;;
20274 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20275 for as_dir in $PATH
20278 test -z "$as_dir" && as_dir=.
20279 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20285 # We did not find ourselves, most probably we were run as `sh COMMAND'
20286 # in which case we are not to be found in the path.
20287 if test "x$as_myself" = x
; then
20290 if test ! -f "$as_myself"; then
20291 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20292 { (exit 1); exit 1; }
20295 # Work around bugs in pre-3.0 UWIN ksh.
20296 for as_var
in ENV MAIL MAILPATH
20297 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20309 # Required to use basename.
20310 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20311 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20317 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20318 as_basename
=basename
20324 # Name of the executable.
20325 as_me
=`$as_basename -- "$0" ||
20326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20327 X"$0" : 'X\(//\)$' \| \
20328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20330 sed '/^.*\/\([^/][^/]*\)\/*$/{
20349 as_lineno_1
=$LINENO
20350 as_lineno_2
=$LINENO
20351 test "x$as_lineno_1" != "x$as_lineno_2" &&
20352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
20354 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20355 # uniformly replaced by the line number. The first 'sed' inserts a
20356 # line-number line after each line using $LINENO; the second 'sed'
20357 # does the real work. The second script uses 'N' to pair each
20358 # line-number line with the line containing $LINENO, and appends
20359 # trailing '-' during substitution so that $LINENO is not a special
20360 # case at line end.
20361 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20362 # scripts with optimization help from Paolo Bonzini. Blame Lee
20363 # E. McMahon (1931-1989) for sed's syntax. :-)
20375 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20378 ' >$as_me.lineno
&&
20379 chmod +x
"$as_me.lineno" ||
20380 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20381 { (exit 1); exit 1; }; }
20383 # Don't try to exec as it changes $[0], causing all sort of problems
20384 # (the dirname of $[0] is not the place where we might find the
20385 # original and so on. Autoconf is especially sensitive to this).
20386 .
"./$as_me.lineno"
20387 # Exit status is that of the last command.
20392 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20398 ECHO_C
= ECHO_N
= ECHO_T
=
20399 case `echo -n x` in
20401 case `echo 'x\c'` in
20402 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20408 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20409 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20415 rm -f conf$$ conf$$.exe conf$$.
file
20416 if test -d conf$$.dir
; then
20417 rm -f conf$$.dir
/conf$$.
file
20420 mkdir conf$$.dir
2>/dev
/null
20422 if (echo >conf$$.
file) 2>/dev
/null
; then
20423 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20425 # ... but there are two gotchas:
20426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20428 # In both cases, we have to default to `cp -p'.
20429 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20431 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20439 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20440 rmdir conf$$.dir
2>/dev
/null
20442 if mkdir
-p .
2>/dev
/null
; then
20445 test -d .
/-p && rmdir .
/-p
20449 if test -x / >/dev
/null
2>&1; then
20450 as_test_x
='test -x'
20452 if ls -dL / >/dev
/null
2>&1; then
20459 if test -d "$1"; then
20465 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20466 ???[sx]*):;;*)false;;esac;fi
20470 as_executable_p
=$as_test_x
20472 # Sed expression to map a string onto a valid CPP name.
20473 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20475 # Sed expression to map a string onto a valid variable name.
20476 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20481 # Save the log message, to keep $[0] and so on meaningful, and to
20482 # report actual input values of CONFIG_FILES etc. instead of their
20483 # values after options handling.
20485 This file was extended by $as_me, which was
20486 generated by GNU Autoconf 2.63. Invocation command line was
20488 CONFIG_FILES = $CONFIG_FILES
20489 CONFIG_HEADERS = $CONFIG_HEADERS
20490 CONFIG_LINKS = $CONFIG_LINKS
20491 CONFIG_COMMANDS = $CONFIG_COMMANDS
20494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20499 case $ac_config_files in *"
20500 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20503 case $ac_config_headers in *"
20504 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20509 # Files that config.status was made for.
20510 config_files="$ac_config_files"
20511 config_headers="$ac_config_headers"
20512 config_commands="$ac_config_commands"
20516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20518 \`$as_me' instantiates files from templates according to the
20519 current configuration.
20521 Usage: $0 [OPTION]... [FILE]...
20523 -h, --help print this help, then exit
20524 -V, --version print version number and configuration settings, then exit
20525 -q, --quiet, --silent
20526 do not print progress messages
20527 -d, --debug don't remove temporary files
20528 --recheck update $as_me by reconfiguring in the same conditions
20529 --file=FILE[:TEMPLATE]
20530 instantiate the configuration file FILE
20531 --header=FILE[:TEMPLATE]
20532 instantiate the configuration header FILE
20534 Configuration files:
20537 Configuration headers:
20540 Configuration commands:
20543 Report bugs to <bug-autoconf@gnu.org>."
20546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20549 configured by $0, generated by GNU Autoconf 2.63,
20550 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20552 Copyright (C) 2008 Free Software Foundation, Inc.
20553 This config.status script is free software; the Free Software Foundation
20554 gives unlimited permission to copy, distribute and modify it."
20561 test -n "\$AWK" || AWK=awk
20564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20565 # The default lists apply if the user does not specify any file.
20571 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20572 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20583 # Handling of the options.
20584 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20586 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20587 $as_echo "$ac_cs_version"; exit ;;
20588 --debug |
--debu |
--deb |
--de |
--d |
-d )
20590 --file |
--fil |
--fi |
--f )
20593 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20595 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
20596 ac_need_defaults
=false
;;
20597 --header |
--heade |
--head |
--hea )
20600 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20602 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
20603 ac_need_defaults
=false
;;
20605 # Conflict between --help and --header
20606 { $as_echo "$as_me: error: ambiguous option: $1
20607 Try \`$0 --help' for more information." >&2
20608 { (exit 1); exit 1; }; };;
20609 --help |
--hel |
-h )
20610 $as_echo "$ac_cs_usage"; exit ;;
20611 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20612 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20615 # This is an error.
20616 -*) { $as_echo "$as_me: error: unrecognized option: $1
20617 Try \`$0 --help' for more information." >&2
20618 { (exit 1); exit 1; }; } ;;
20620 *) ac_config_targets
="$ac_config_targets $1"
20621 ac_need_defaults
=false
;;
20627 ac_configure_extra_args
=
20629 if $ac_cs_silent; then
20631 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20636 if \$ac_cs_recheck; then
20637 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20639 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20640 CONFIG_SHELL='$SHELL'
20641 export CONFIG_SHELL
20646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20650 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20651 ## Running $as_me. ##
20657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20661 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20664 # The HP-UX ksh and POSIX shell print the target directory to stdout
20665 # if CDPATH is set.
20666 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20668 sed_quote_subst='$sed_quote_subst'
20669 double_quote_subst='$double_quote_subst'
20670 delay_variable_subst='$delay_variable_subst'
20671 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20672 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20673 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20674 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20675 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20676 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20677 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20678 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20679 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20680 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20681 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20682 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20683 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20684 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20685 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20686 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20687 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20688 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20689 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20690 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20691 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20692 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20693 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20694 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20695 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20696 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20697 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20698 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20699 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20700 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20701 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20702 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20703 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20704 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20705 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20706 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20707 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20708 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20709 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20710 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20711 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20712 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20713 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20714 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20715 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"`'
20716 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"`'
20717 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20718 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20719 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20720 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20721 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20722 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20723 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20724 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20725 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20726 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20727 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20728 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20729 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20730 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20731 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20732 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20733 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20734 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20735 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20736 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20737 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20738 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20739 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20740 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20741 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20742 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20743 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20744 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20745 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20746 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20747 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20748 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20749 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20750 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20751 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20752 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20753 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20754 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20755 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20756 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20757 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20758 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20759 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20760 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20761 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20762 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20763 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20764 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20765 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20766 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20767 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20768 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20769 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20770 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20771 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20772 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20773 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20774 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20775 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20776 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20777 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20778 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20779 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20780 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20781 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20782 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20783 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20784 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20785 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20786 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20787 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20788 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20791 LTCFLAGS='$LTCFLAGS'
20792 compiler='$compiler_DEFAULT'
20794 # Quote evaled strings.
20806 deplibs_check_method \
20815 lt_cv_sys_global_symbol_pipe \
20816 lt_cv_sys_global_symbol_to_cdecl \
20817 lt_cv_sys_global_symbol_to_c_name_address \
20818 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20821 lt_prog_compiler_no_builtin_flag \
20822 lt_prog_compiler_wl \
20823 lt_prog_compiler_pic \
20824 lt_prog_compiler_static \
20825 lt_cv_prog_compiler_c_o \
20833 export_dynamic_flag_spec \
20834 whole_archive_flag_spec \
20835 compiler_needs_object \
20837 allow_undefined_flag \
20838 no_undefined_flag \
20839 hardcode_libdir_flag_spec \
20840 hardcode_libdir_flag_spec_ld \
20841 hardcode_libdir_separator \
20846 variables_saved_for_relink \
20848 library_names_spec \
20853 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20854 *[\\\\\\\`\\"\\\$]*)
20855 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20858 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20863 # Double-quote double-evaled strings.
20864 for var in reload_cmds \
20865 old_postinstall_cmds \
20866 old_postuninstall_cmds \
20868 extract_expsyms_cmds \
20869 old_archive_from_new_cmds \
20870 old_archive_from_expsyms_cmds \
20872 archive_expsym_cmds \
20874 module_expsym_cmds \
20875 export_symbols_cmds \
20878 postuninstall_cmds \
20880 sys_lib_search_path_spec \
20881 sys_lib_dlsearch_path_spec; do
20882 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20883 *[\\\\\\\`\\"\\\$]*)
20884 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20887 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20892 # Fix-up fallback echo if it was mangled by the above quoting rules.
20894 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20898 ac_aux_dir='$ac_aux_dir'
20899 xsi_shell='$xsi_shell'
20900 lt_shell_append='$lt_shell_append'
20902 # See if we are running on zsh, and set the options which allow our
20903 # commands through without removal of \ escapes INIT.
20904 if test -n "\${ZSH_VERSION+set}" ; then
20905 setopt NO_GLOB_SUBST
20911 TIMESTAMP='$TIMESTAMP'
20920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20922 # Handling of arguments.
20923 for ac_config_target
in $ac_config_targets
20925 case $ac_config_target in
20926 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
20927 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20928 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
20929 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20930 "dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/Makefile" ;;
20931 "dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/90zfs/Makefile" ;;
20932 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
20933 "etc/udev/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/udev/Makefile" ;;
20934 "etc/udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/udev/rules.d/Makefile" ;;
20935 "etc/udev/rules.d/60-zpool.rules") CONFIG_FILES
="$CONFIG_FILES etc/udev/rules.d/60-zpool.rules" ;;
20936 "etc/udev/rules.d/60-zvol.rules") CONFIG_FILES
="$CONFIG_FILES etc/udev/rules.d/60-zvol.rules" ;;
20937 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
20938 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
20939 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
20940 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
20941 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
20942 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
20943 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
20944 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
20945 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
20946 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
20947 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
20948 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
20949 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
20950 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
20951 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
20952 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
20953 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
20954 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
20955 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
20956 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
20957 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
20958 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
20959 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
20960 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
20961 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
20962 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
20963 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
20964 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
20965 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
20966 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
20967 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
20968 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
20969 "cmd/zpool_layout/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
20970 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
20971 "cmd/zpool_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
20972 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
20973 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
20974 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
20975 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
20976 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
20977 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
20978 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
20979 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
20980 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
20981 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
20982 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
20983 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
20984 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
20985 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
20986 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
20987 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
20988 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
20989 "scripts/zpool-layout/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
20990 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
20991 "zfs.spec") CONFIG_FILES
="$CONFIG_FILES zfs.spec" ;;
20992 "zfs-modules.spec") CONFIG_FILES
="$CONFIG_FILES zfs-modules.spec" ;;
20993 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
20995 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20996 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20997 { (exit 1); exit 1; }; };;
21002 # If the user did not use the arguments to specify the items to instantiate,
21003 # then the envvar interface is used. Set only those that are not.
21004 # We use the long form for the default assignment because of an extremely
21005 # bizarre bug on SunOS 4.1.3.
21006 if $ac_need_defaults; then
21007 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21008 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21009 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21012 # Have a temporary directory for convenience. Make it in the build tree
21013 # simply because there is no reason against having it here, and in addition,
21014 # creating and moving files from /tmp can sometimes cause problems.
21015 # Hook for its removal unless debugging.
21016 # Note that there is a small window in which the directory will not be cleaned:
21017 # after its creation but before its name has been assigned to `$tmp'.
21021 trap 'exit_status=$?
21022 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21024 trap '{ (exit 1); exit 1; }' 1 2 13 15
21026 # Create a (secure) tmp directory for tmp files.
21029 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21030 test -n "$tmp" && test -d "$tmp"
21033 tmp
=.
/conf$$
-$RANDOM
21034 (umask 077 && mkdir
"$tmp")
21037 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21038 { (exit 1); exit 1; }
21041 # Set up the scripts for CONFIG_FILES section.
21042 # No need to generate them if there are no CONFIG_FILES.
21043 # This happens for instance with `./config.status config.h'.
21044 if test -n "$CONFIG_FILES"; then
21048 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21049 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21052 ac_cs_awk_cr
=$ac_cr
21055 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21060 echo "cat >conf$$subs.awk <<_ACEOF" &&
21061 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21063 } >conf$$subs.sh ||
21064 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
21065 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
21066 { (exit 1); exit 1; }; }
21067 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21069 for ac_last_try in false false false false false :; do
21070 . ./conf$$subs.sh ||
21071 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
21072 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
21073 { (exit 1); exit 1; }; }
21075 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
21076 if test $ac_delim_n = $ac_delim_num; then
21078 elif $ac_last_try; then
21079 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
21080 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
21081 { (exit 1); exit 1; }; }
21083 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21086 rm -f conf$$subs.sh
21088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21089 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
21093 s/^/S["/; s
/!.
*/"]=/
21103 s/\(.\{148\}\).*/\1/
21105 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
21110 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21117 s/\(.\{148\}\).*/\1/
21119 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
21123 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21128 ' <conf$$subs.awk | sed '
21133 ' >>$CONFIG_STATUS || ac_write_fail=1
21134 rm -f conf$$subs.awk
21135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21137 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
21138 for (key in S) S_is_set[key] = 1
21144 nfields = split(line, field, "@
")
21146 len = length(field[1])
21147 for (i = 2; i < nfields; i++) {
21149 keylen = length(key)
21150 if (S_is_set[key]) {
21152 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21153 len += length(value) + length(field[++i])
21164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21165 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21166 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
21169 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
21170 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
21171 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
21172 { (exit 1); exit 1; }; }
21175 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21176 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
21177 # trailing colons and then remove the whole line if VPATH becomes empty
21178 # (actually we leave an empty line to preserve line numbers).
21179 if test "x
$srcdir" = x.; then
21180 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21181 s/:*\$(srcdir):*/:/
21182 s/:*\${srcdir}:*/:/
21184 s/^\([^=]*=[ ]*\):*/\1/
21190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21191 fi # test -n "$CONFIG_FILES"
21193 # Set up the scripts for CONFIG_HEADERS section.
21194 # No need to generate them if there are no CONFIG_HEADERS.
21195 # This happens for instance with `./config.status Makefile'.
21196 if test -n "$CONFIG_HEADERS"; then
21197 cat >"$tmp/defines.
awk" <<\_ACAWK ||
21201 # Transform confdefs.h into an awk script `defines.awk', embedded as
21202 # here-document in config.status, that substitutes the proper values into
21203 # config.h.in to produce config.h.
21205 # Create a delimiter string that does not exist in confdefs.h, to ease
21206 # handling of long lines.
21208 for ac_last_try in false false :; do
21209 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
21210 if test -z "$ac_t"; then
21212 elif $ac_last_try; then
21213 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
21214 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
21215 { (exit 1); exit 1; }; }
21217 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21221 # For the awk script, D is an array of macro values keyed by name,
21222 # likewise P contains macro parameters if any. Preserve backslash
21223 # newline sequences.
21225 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21227 s/.\{148\}/&'"$ac_delim"'/g
21230 s/^[ ]*#[ ]*define[ ][ ]*/ /
21237 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21239 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21243 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21244 D["\
1"]=" \
3\\\\\\n
"\\/p
21246 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21251 s/.\{148\}/&'"$ac_delim"'/g
21256 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21259 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21261 ' <confdefs.h | sed '
21262 s/'"$ac_delim"'/"\\\
21263 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21266 for (key in D) D_is_set[key] = 1
21269 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21271 split(line, arg, " ")
21272 if (arg[1] == "#") {
21276 defundef
= substr
(arg
[1], 2)
21279 split(mac1
, mac2
, "(") #)
21281 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21282 if (D_is_set
[macro
]) {
21283 # Preserve the white space surrounding the "#".
21284 print prefix
"define", macro P
[macro
] D
[macro
]
21287 # Replace #undef with comments. This is necessary, for example,
21288 # in the case of _POSIX_SOURCE, which is predefined and required
21289 # on some systems where configure will not decide to define it.
21290 if (defundef
== "undef") {
21291 print
"/*", prefix defundef
, macro
, "*/"
21299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21300 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21301 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21302 { (exit 1); exit 1; }; }
21303 fi # test -n "$CONFIG_HEADERS"
21306 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21311 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21313 case $ac_mode$ac_tag in
21315 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21316 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21317 { (exit 1); exit 1; }; };;
21318 :[FH
]-) ac_tag
=-:-;;
21319 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21336 -) ac_f
="$tmp/stdin";;
21337 *) # Look for the file first in the build tree, then in the source tree
21338 # (if the path is not absolute). The absolute path cannot be DOS-style,
21339 # because $ac_f cannot contain `:'.
21343 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21345 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21346 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21347 { (exit 1); exit 1; }; };;
21349 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21350 ac_file_inputs
="$ac_file_inputs '$ac_f'"
21353 # Let's still pretend it is `configure' which instantiates (i.e., don't
21354 # use $as_me), people would be surprised to read:
21355 # /* config.h. Generated by config.status. */
21356 configure_input
='Generated from '`
21357 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21359 if test x
"$ac_file" != x-
; then
21360 configure_input
="$ac_file. $configure_input"
21361 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21362 $as_echo "$as_me: creating $ac_file" >&6;}
21364 # Neutralize special characters interpreted by sed in replacement strings.
21365 case $configure_input in #(
21366 *\
&* |
*\|
* |
*\\* )
21367 ac_sed_conf_input
=`$as_echo "$configure_input" |
21368 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21369 *) ac_sed_conf_input
=$configure_input;;
21373 *:-:* |
*:-) cat >"$tmp/stdin" \
21374 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21375 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21376 { (exit 1); exit 1; }; } ;;
21381 ac_dir
=`$as_dirname -- "$ac_file" ||
21382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21383 X"$ac_file" : 'X\(//\)[^/]' \| \
21384 X"$ac_file" : 'X\(//\)$' \| \
21385 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21386 $as_echo X"$ac_file" |
21387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21391 /^X\(\/\/\)[^/].*/{
21406 -*) as_dir
=.
/$as_dir;;
21408 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21412 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21413 *) as_qdir
=$as_dir;;
21415 as_dirs
="'$as_qdir' $as_dirs"
21416 as_dir
=`$as_dirname -- "$as_dir" ||
21417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21418 X"$as_dir" : 'X\(//\)[^/]' \| \
21419 X"$as_dir" : 'X\(//\)$' \| \
21420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21421 $as_echo X"$as_dir" |
21422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21426 /^X\(\/\/\)[^/].*/{
21439 test -d "$as_dir" && break
21441 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21442 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21443 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21444 { (exit 1); exit 1; }; }; }
21448 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21450 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21451 # A ".." for each directory in $ac_dir_suffix.
21452 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21453 case $ac_top_builddir_sub in
21454 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21455 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21458 ac_abs_top_builddir
=$ac_pwd
21459 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21460 # for backward compatibility:
21461 ac_top_builddir
=$ac_top_build_prefix
21464 .
) # We are building in place.
21466 ac_top_srcdir
=$ac_top_builddir_sub
21467 ac_abs_top_srcdir
=$ac_pwd ;;
21468 [\\/]* | ?
:[\\/]* ) # Absolute name.
21469 ac_srcdir
=$srcdir$ac_dir_suffix;
21470 ac_top_srcdir
=$srcdir
21471 ac_abs_top_srcdir
=$srcdir ;;
21472 *) # Relative name.
21473 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21474 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21475 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21477 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21487 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21488 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21490 ac_MKDIR_P
=$MKDIR_P
21492 [\\/$
]* | ?
:[\\/]* ) ;;
21493 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21498 # If the template does not know about datarootdir, expand it.
21499 # FIXME: This hack should be removed a few years after 2.60.
21500 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21513 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21514 *datarootdir
*) ac_datarootdir_seen
=yes;;
21515 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21516 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21517 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21520 ac_datarootdir_hack='
21521 s&@datadir@&$datadir&g
21522 s&@docdir@&$docdir&g
21523 s&@infodir@&$infodir&g
21524 s&@localedir@&$localedir&g
21525 s&@mandir@&$mandir&g
21526 s&\\\${datarootdir}&$datarootdir&g' ;;
21530 # Neutralize VPATH when `$srcdir' = `.'.
21531 # Shell code in configure.ac might set extrasub.
21532 # FIXME: do we really want to maintain this feature?
21533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21534 ac_sed_extra="$ac_vpsub
21537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21539 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21540 s|@configure_input@|
$ac_sed_conf_input|
;t t
21541 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21542 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21543 s
&@srcdir@
&$ac_srcdir&;t t
21544 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21545 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21546 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21547 s
&@builddir@
&$ac_builddir&;t t
21548 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21549 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21550 s
&@INSTALL@
&$ac_INSTALL&;t t
21551 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21552 $ac_datarootdir_hack
21554 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
21555 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
21556 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
21557 { (exit 1); exit 1; }; }
21559 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21560 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21561 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21562 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21563 which seems to be undefined. Please make sure it is defined." >&5
21564 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21565 which seems to be undefined. Please make sure it is defined." >&2;}
21569 -) cat "$tmp/out" && rm -f "$tmp/out";;
21570 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21572 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21573 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21574 { (exit 1); exit 1; }; }
21580 if test x"$ac_file" != x-; then
21582 $as_echo "/* $configure_input */" \
21583 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21584 } >"$tmp/config.h" \
21585 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21586 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21587 { (exit 1); exit 1; }; }
21588 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21589 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21590 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21593 mv "$tmp/config.h" "$ac_file" \
21594 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21595 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21596 { (exit 1); exit 1; }; }
21599 $as_echo "/* $configure_input */" \
21600 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21601 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21602 $as_echo "$as_me: error: could not create -" >&2;}
21603 { (exit 1); exit 1; }; }
21605 # Compute "$ac_file"'s index
in $config_headers.
21608 for _am_header
in $config_headers :; do
21609 case $_am_header in
21610 $_am_arg |
$_am_arg:* )
21613 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21616 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21617 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21618 X"$_am_arg" : 'X\(//\)[^/]' \| \
21619 X"$_am_arg" : 'X\(//\)$' \| \
21620 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21621 $as_echo X"$_am_arg" |
21622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21626 /^X\(\/\/\)[^/].*/{
21638 s/.*/./; q'`/stamp-h
$_am_stamp_count
21641 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21642 $as_echo "$as_me: executing $ac_file commands" >&6;}
21647 case $ac_file$ac_mode in
21649 (mv zfs_config.h zfs_config.h.tmp
&&
21650 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
21651 rm zfs_config.h.tmp
) ||
exit 1 ;;
21652 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21653 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21654 # are listed without --file. Let's play safe and only enable the eval
21655 # if we detect the quoting.
21656 case $CONFIG_FILES in
21657 *\'*) eval set x
"$CONFIG_FILES" ;;
21658 *) set x
$CONFIG_FILES ;;
21663 # Strip MF so we end up with the name of the file.
21664 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21665 # Check whether this is an Automake generated Makefile or not.
21666 # We used to match only the files named `Makefile.in', but
21667 # some people rename them; so instead we look at the file content.
21668 # Grep'ing the first line is not enough: some people post-process
21669 # each Makefile.in and add a new line on top of each file to say so.
21670 # Grep'ing the whole file is not good either: AIX grep has a line
21671 # limit of 2048, but all sed's we know have understand at least 4000.
21672 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21673 dirpart
=`$as_dirname -- "$mf" ||
21674 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21675 X"$mf" : 'X\(//\)[^/]' \| \
21676 X"$mf" : 'X\(//\)$' \| \
21677 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21683 /^X\(\/\/\)[^/].*/{
21699 # Extract the definition of DEPDIR, am__include, and am__quote
21700 # from the Makefile without running `make'.
21701 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21702 test -z "$DEPDIR" && continue
21703 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21704 test -z "am__include" && continue
21705 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21706 # When using ansi2knr, U may be empty or an underscore; expand it
21707 U
=`sed -n 's/^U = //p' < "$mf"`
21708 # Find all dependency output files, they are included files with
21709 # $(DEPDIR) in their names. We invoke sed twice because it is the
21710 # simplest approach to changing $(DEPDIR) to its actual value in the
21712 for file in `sed -n "
21713 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21714 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21715 # Make sure the directory exists.
21716 test -f "$dirpart/$file" && continue
21717 fdir
=`$as_dirname -- "$file" ||
21718 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21719 X"$file" : 'X\(//\)[^/]' \| \
21720 X"$file" : 'X\(//\)$' \| \
21721 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21722 $as_echo X"$file" |
21723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21727 /^X\(\/\/\)[^/].*/{
21740 { as_dir
=$dirpart/$fdir
21742 -*) as_dir
=.
/$as_dir;;
21744 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21748 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21749 *) as_qdir
=$as_dir;;
21751 as_dirs
="'$as_qdir' $as_dirs"
21752 as_dir
=`$as_dirname -- "$as_dir" ||
21753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21754 X"$as_dir" : 'X\(//\)[^/]' \| \
21755 X"$as_dir" : 'X\(//\)$' \| \
21756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21757 $as_echo X"$as_dir" |
21758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21762 /^X\(\/\/\)[^/].*/{
21775 test -d "$as_dir" && break
21777 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21778 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21779 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21780 { (exit 1); exit 1; }; }; }
21781 # echo "creating $dirpart/$file"
21782 echo '# dummy' > "$dirpart/$file"
21789 # See if we are running on zsh, and set the options which allow our
21790 # commands through without removal of \ escapes.
21791 if test -n "${ZSH_VERSION+set}" ; then
21792 setopt NO_GLOB_SUBST
21795 cfgfile
="${ofile}T"
21796 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21799 cat <<_LT_EOF >> "$cfgfile"
21802 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21803 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21804 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21805 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21807 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21808 # 2006, 2007, 2008 Free Software Foundation, Inc.
21809 # Written by Gordon Matzigkeit, 1996
21811 # This file is part of GNU Libtool.
21813 # GNU Libtool is free software; you can redistribute it and/or
21814 # modify it under the terms of the GNU General Public License as
21815 # published by the Free Software Foundation; either version 2 of
21816 # the License, or (at your option) any later version.
21818 # As a special exception to the GNU General Public License,
21819 # if you distribute this file as part of a program or library that
21820 # is built using GNU Libtool, you may include this file under the
21821 # same distribution terms that you use for the rest of that program.
21823 # GNU Libtool is distributed in the hope that it will be useful,
21824 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21825 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21826 # GNU General Public License for more details.
21828 # You should have received a copy of the GNU General Public License
21829 # along with GNU Libtool; see the file COPYING. If not, a copy
21830 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21831 # obtained by writing to the Free Software Foundation, Inc.,
21832 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21835 # The names of the tagged configurations supported by this script.
21838 # ### BEGIN LIBTOOL CONFIG
21840 # Which release of libtool.m4 was used?
21841 macro_version=$macro_version
21842 macro_revision=$macro_revision
21844 # Whether or not to build shared libraries.
21845 build_libtool_libs=$enable_shared
21847 # Whether or not to build static libraries.
21848 build_old_libs=$enable_static
21850 # What type of objects to build.
21853 # Whether or not to optimize for fast installation.
21854 fast_install=$enable_fast_install
21857 host_alias=$host_alias
21861 # The build system.
21862 build_alias=$build_alias
21866 # A sed program that does not truncate output.
21869 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21870 Xsed="\$SED -e 1s/^X//"
21872 # A grep program that handles long lines.
21878 # A literal string matcher.
21881 # A BSD- or MS-compatible name lister.
21884 # Whether we need soft or hard links.
21887 # What is the maximum length of a command?
21888 max_cmd_len=$max_cmd_len
21890 # Object file suffix (normally "o").
21893 # Executable file suffix (normally "").
21896 # whether the shell understands "unset".
21899 # turn spaces into newlines.
21902 # turn newlines into spaces.
21905 # How to create reloadable object files.
21906 reload_flag=$lt_reload_flag
21907 reload_cmds=$lt_reload_cmds
21909 # An object symbol dumper.
21910 OBJDUMP=$lt_OBJDUMP
21912 # Method to check whether dependent libraries are shared objects.
21913 deplibs_check_method=$lt_deplibs_check_method
21915 # Command to use when deplibs_check_method == "file_magic".
21916 file_magic_cmd=$lt_file_magic_cmd
21920 AR_FLAGS=$lt_AR_FLAGS
21922 # A symbol stripping program.
21925 # Commands used to install an old-style archive.
21927 old_postinstall_cmds=$lt_old_postinstall_cmds
21928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21933 # LTCC compiler flags.
21934 LTCFLAGS=$lt_CFLAGS
21936 # Take the output of nm and produce a listing of raw symbols and C names.
21937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21939 # Transform the output of nm in a proper C declaration.
21940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21942 # Transform the output of nm in a C name address pair.
21943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21945 # Transform the output of nm in a C name address pair when lib prefix is needed.
21946 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21948 # The name of the directory that contains temporary libtool files.
21951 # Shell to use when invoking shell scripts.
21954 # An echo program that does not interpret backslashes.
21957 # Used to examine libraries when file_magic_cmd begins with "file".
21958 MAGIC_CMD=$MAGIC_CMD
21960 # Must we lock files when doing compilation?
21961 need_locks=$lt_need_locks
21963 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21964 DSYMUTIL=$lt_DSYMUTIL
21966 # Tool to change global to local symbols on Mac OS X.
21969 # Tool to manipulate fat objects and archives on Mac OS X.
21972 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21975 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21976 OTOOL64=$lt_OTOOL64
21978 # Old archive suffix (normally "a").
21981 # Shared library suffix (normally ".so").
21982 shrext_cmds=$lt_shrext_cmds
21984 # The commands to extract the exported symbol list from a shared archive.
21985 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21987 # Variables whose values should be saved in libtool wrapper scripts and
21988 # restored at link time.
21989 variables_saved_for_relink=$lt_variables_saved_for_relink
21991 # Do we need the "lib" prefix for modules?
21992 need_lib_prefix=$need_lib_prefix
21994 # Do we need a version for libraries?
21995 need_version=$need_version
21997 # Library versioning type.
21998 version_type=$version_type
22000 # Shared library runtime path variable.
22001 runpath_var=$runpath_var
22003 # Shared library path variable.
22004 shlibpath_var=$shlibpath_var
22006 # Is shlibpath searched before the hard-coded library search path?
22007 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22009 # Format of library name prefix.
22010 libname_spec=$lt_libname_spec
22012 # List of archive names. First name is the real one, the rest are links.
22013 # The last name is the one that the linker finds with -lNAME
22014 library_names_spec=$lt_library_names_spec
22016 # The coded name of the library, if different from the real name.
22017 soname_spec=$lt_soname_spec
22019 # Command to use after installation of a shared archive.
22020 postinstall_cmds=$lt_postinstall_cmds
22022 # Command to use after uninstallation of a shared archive.
22023 postuninstall_cmds=$lt_postuninstall_cmds
22025 # Commands used to finish a libtool library installation in a directory.
22026 finish_cmds=$lt_finish_cmds
22028 # As "finish_cmds", except a single script fragment to be evaled but
22030 finish_eval=$lt_finish_eval
22032 # Whether we should hardcode library paths into libraries.
22033 hardcode_into_libs=$hardcode_into_libs
22035 # Compile-time system search path for libraries.
22036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22038 # Run-time system search path for libraries.
22039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22041 # Whether dlopen is supported.
22042 dlopen_support=$enable_dlopen
22044 # Whether dlopen of programs is supported.
22045 dlopen_self=$enable_dlopen_self
22047 # Whether dlopen of statically linked programs is supported.
22048 dlopen_self_static=$enable_dlopen_self_static
22050 # Commands to strip libraries.
22051 old_striplib=$lt_old_striplib
22052 striplib=$lt_striplib
22055 # The linker used to build libraries.
22058 # Commands used to build an old-style archive.
22059 old_archive_cmds=$lt_old_archive_cmds
22061 # A language specific compiler.
22064 # Is the compiler the GNU compiler?
22067 # Compiler flag to turn off builtin functions.
22068 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22070 # How to pass a linker flag through the compiler.
22071 wl=$lt_lt_prog_compiler_wl
22073 # Additional compiler flags for building library objects.
22074 pic_flag=$lt_lt_prog_compiler_pic
22076 # Compiler flag to prevent dynamic linking.
22077 link_static_flag=$lt_lt_prog_compiler_static
22079 # Does compiler simultaneously support -c and -o options?
22080 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22082 # Whether or not to add -lc for building shared libraries.
22083 build_libtool_need_lc=$archive_cmds_need_lc
22085 # Whether or not to disallow shared libs when runtime libs are static.
22086 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22088 # Compiler flag to allow reflexive dlopens.
22089 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22091 # Compiler flag to generate shared objects directly from archives.
22092 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22094 # Whether the compiler copes with passing no objects directly.
22095 compiler_needs_object=$lt_compiler_needs_object
22097 # Create an old-style archive from a shared archive.
22098 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22100 # Create a temporary old-style archive to link instead of a shared archive.
22101 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22103 # Commands used to build a shared archive.
22104 archive_cmds=$lt_archive_cmds
22105 archive_expsym_cmds=$lt_archive_expsym_cmds
22107 # Commands used to build a loadable module if different from building
22108 # a shared archive.
22109 module_cmds=$lt_module_cmds
22110 module_expsym_cmds=$lt_module_expsym_cmds
22112 # Whether we are building with GNU ld or not.
22113 with_gnu_ld=$lt_with_gnu_ld
22115 # Flag that allows shared libraries with undefined symbols to be built.
22116 allow_undefined_flag=$lt_allow_undefined_flag
22118 # Flag that enforces no undefined symbols.
22119 no_undefined_flag=$lt_no_undefined_flag
22121 # Flag to hardcode \$libdir into a binary during linking.
22122 # This must work even if \$libdir does not exist
22123 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22125 # If ld is used when linking, flag to hardcode \$libdir into a binary
22126 # during linking. This must work even if \$libdir does not exist.
22127 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22129 # Whether we need a single "-rpath" flag with a separated argument.
22130 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22132 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22133 # DIR into the resulting binary.
22134 hardcode_direct=$hardcode_direct
22136 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22137 # DIR into the resulting binary and the resulting library dependency is
22138 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22139 # library is relocated.
22140 hardcode_direct_absolute=$hardcode_direct_absolute
22142 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22143 # into the resulting binary.
22144 hardcode_minus_L=$hardcode_minus_L
22146 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22147 # into the resulting binary.
22148 hardcode_shlibpath_var=$hardcode_shlibpath_var
22150 # Set to "yes" if building a shared library automatically hardcodes DIR
22151 # into the library and all subsequent libraries and executables linked
22153 hardcode_automatic=$hardcode_automatic
22155 # Set to yes if linker adds runtime paths of dependent libraries
22156 # to runtime path list.
22157 inherit_rpath=$inherit_rpath
22159 # Whether libtool must link a program against all its dependency libraries.
22160 link_all_deplibs=$link_all_deplibs
22162 # Fix the shell variable \$srcfile for the compiler.
22163 fix_srcfile_path=$lt_fix_srcfile_path
22165 # Set to "yes" if exported symbols are required.
22166 always_export_symbols=$always_export_symbols
22168 # The commands to list exported symbols.
22169 export_symbols_cmds=$lt_export_symbols_cmds
22171 # Symbols that should not be listed in the preloaded symbols.
22172 exclude_expsyms=$lt_exclude_expsyms
22174 # Symbols that must always be exported.
22175 include_expsyms=$lt_include_expsyms
22177 # Commands necessary for linking programs (against libraries) with templates.
22178 prelink_cmds=$lt_prelink_cmds
22180 # Specify filename containing input files.
22181 file_list_spec=$lt_file_list_spec
22183 # How to hardcode a shared library path into an executable.
22184 hardcode_action=$hardcode_action
22186 # ### END LIBTOOL CONFIG
22192 cat <<\_LT_EOF
>> "$cfgfile"
22193 # AIX sometimes has problems with the GCC collect2 program. For some
22194 # reason, if we set the COLLECT_NAMES environment variable, the problems
22195 # vanish in a puff of smoke.
22196 if test "X${COLLECT_NAMES+set}" != Xset
; then
22198 export COLLECT_NAMES
22205 ltmain
="$ac_aux_dir/ltmain.sh"
22208 # We use sed instead of cat because bash on DJGPP gets confused if
22209 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22210 # text mode, it properly converts lines to CR/LF. This bash problem
22211 # is reportedly fixed, but why not run on old versions too?
22212 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22213 ||
(rm -f "$cfgfile"; exit 1)
22217 cat << \_LT_EOF
>> "$cfgfile"
22219 # func_dirname file append nondir_replacement
22220 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22221 # otherwise set result to NONDIR_REPLACEMENT.
22225 */*) func_dirname_result
="${1%/*}${2}" ;;
22226 * ) func_dirname_result
="${3}" ;;
22230 # func_basename file
22233 func_basename_result
="${1##*/}"
22236 # func_dirname_and_basename file append nondir_replacement
22237 # perform func_basename and func_dirname in a single function
22239 # dirname: Compute the dirname of FILE. If nonempty,
22240 # add APPEND to the result, otherwise set result
22241 # to NONDIR_REPLACEMENT.
22242 # value returned in "$func_dirname_result"
22243 # basename: Compute filename of FILE.
22244 # value retuned in "$func_basename_result"
22245 # Implementation must be kept synchronized with func_dirname
22246 # and func_basename. For efficiency, we do not delegate to
22247 # those functions but instead duplicate the functionality here.
22248 func_dirname_and_basename
()
22251 */*) func_dirname_result
="${1%/*}${2}" ;;
22252 * ) func_dirname_result
="${3}" ;;
22254 func_basename_result
="${1##*/}"
22257 # func_stripname prefix suffix name
22258 # strip PREFIX and SUFFIX off of NAME.
22259 # PREFIX and SUFFIX must not contain globbing or regex special
22260 # characters, hashes, percent signs, but SUFFIX may contain a leading
22261 # dot (in which case that matches only a dot).
22264 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22265 # positional parameters, so assign one to ordinary parameter first.
22266 func_stripname_result
=${3}
22267 func_stripname_result
=${func_stripname_result#"${1}"}
22268 func_stripname_result
=${func_stripname_result%"${2}"}
22274 func_opt_split_opt
=${1%%=*}
22275 func_opt_split_arg
=${1#*=}
22282 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
22283 *) func_lo2o_result
=${1} ;;
22287 # func_xform libobj-or-source
22290 func_xform_result
=${1%.*}.lo
22293 # func_arith arithmetic-term...
22296 func_arith_result
=$
(( $
* ))
22300 # STRING may not start with a hyphen.
22303 func_len_result
=${#1}
22308 *) # Bourne compatible functions.
22309 cat << \_LT_EOF
>> "$cfgfile"
22311 # func_dirname file append nondir_replacement
22312 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22313 # otherwise set result to NONDIR_REPLACEMENT.
22316 # Extract subdirectory from the argument.
22317 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22318 if test "X$func_dirname_result" = "X${1}"; then
22319 func_dirname_result
="${3}"
22321 func_dirname_result
="$func_dirname_result${2}"
22325 # func_basename file
22328 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
22332 # func_stripname prefix suffix name
22333 # strip PREFIX and SUFFIX off of NAME.
22334 # PREFIX and SUFFIX must not contain globbing or regex special
22335 # characters, hashes, percent signs, but SUFFIX may contain a leading
22336 # dot (in which case that matches only a dot).
22337 # func_strip_suffix prefix name
22341 .
*) func_stripname_result
=`$ECHO "X${3}" \
22342 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22343 *) func_stripname_result
=`$ECHO "X${3}" \
22344 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22349 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
22350 my_sed_long_arg
='1s/^-[^=]*=//'
22355 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22356 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22362 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22365 # func_xform libobj-or-source
22368 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22371 # func_arith arithmetic-term...
22374 func_arith_result
=`expr "$@"`
22378 # STRING may not start with a hyphen.
22381 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22387 case $lt_shell_append in
22389 cat << \_LT_EOF
>> "$cfgfile"
22391 # func_append var value
22392 # Append VALUE to the end of shell variable VAR.
22400 cat << \_LT_EOF
>> "$cfgfile"
22402 # func_append var value
22403 # Append VALUE to the end of shell variable VAR.
22414 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22415 ||
(rm -f "$cfgfile"; exit 1)
22417 mv -f "$cfgfile" "$ofile" ||
22418 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22427 { (exit 0); exit 0; }
22429 chmod +x
$CONFIG_STATUS
22430 ac_clean_files
=$ac_clean_files_save
22432 test $ac_write_fail = 0 ||
22433 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22434 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22435 { (exit 1); exit 1; }; }
22438 # configure is writing to config.log, and then calls config.status.
22439 # config.status does its own redirection, appending to config.log.
22440 # Unfortunately, on DOS this fails, as config.log is still kept open
22441 # by configure, so config.status won't be able to write to it; its
22442 # output is simply discarded. So we exec the FD to /dev/null,
22443 # effectively closing config.log, so it can be properly (re)opened and
22444 # appended to by config.status. When coming back to configure, we
22445 # need to make the FD available again.
22446 if test "$no_create" != yes; then
22448 ac_config_status_args
=
22449 test "$silent" = yes &&
22450 ac_config_status_args
="$ac_config_status_args --quiet"
22452 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22454 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22455 # would make configure fail if this is the last instruction.
22456 $ac_cs_success ||
{ (exit 1); exit 1; }
22458 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
22459 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22460 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}