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
814 NO_UNUSED_BUT_SET_VARIABLE
842 am__fastdepCCAS_FALSE
891 INSTALL_STRIP_PROGRAM
909 MAINTAINER_MODE_FALSE
960 program_transform_name
972 enable_option_checking
973 enable_maintainer_mode
975 enable_dependency_tracking
993 ac_precious_vars='build_alias
1006 # Initialize some variables set by options.
1008 ac_init_version=false
1009 ac_unrecognized_opts=
1010 ac_unrecognized_sep=
1011 # The variables have the same names as the options, with
1012 # dashes changed to underlines.
1013 cache_file=/dev/null
1020 program_transform_name=s,x,x,
1028 # Installation directory options.
1029 # These are left unexpanded so users can "make install exec_prefix=/foo"
1030 # and all the variables that are supposed to be based on exec_prefix
1031 # by default will actually change.
1032 # Use braces instead of parens because sh, perl, etc. also accept them.
1033 # (The list follows the same order as the GNU Coding Standards.)
1034 bindir='${exec_prefix}/bin'
1035 sbindir='${exec_prefix}/sbin'
1036 libexecdir='${exec_prefix}/libexec'
1037 datarootdir='${prefix}/share'
1038 datadir='${datarootdir}'
1039 sysconfdir='${prefix}/etc'
1040 sharedstatedir='${prefix}/com'
1041 localstatedir='${prefix}/var'
1042 includedir='${prefix}/include'
1043 oldincludedir='/usr/include'
1044 docdir='${datarootdir}/doc/${PACKAGE}'
1045 infodir='${datarootdir}/info'
1050 libdir='${exec_prefix}/lib'
1051 localedir='${datarootdir}/locale'
1052 mandir='${datarootdir}/man'
1058 # If the previous option needs an argument, assign it.
1059 if test -n "$ac_prev"; then
1060 eval $ac_prev=\$ac_option
1066 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1070 # Accept the important Cygnus configure options, so we can diagnose typos.
1072 case $ac_dashdash$ac_option in
1076 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1078 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1079 bindir=$ac_optarg ;;
1081 -build | --build | --buil | --bui | --bu)
1082 ac_prev=build_alias ;;
1083 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1084 build_alias=$ac_optarg ;;
1086 -cache-file | --cache-file | --cache-fil | --cache-fi \
1087 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1088 ac_prev=cache_file ;;
1089 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1090 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1091 cache_file=$ac_optarg ;;
1093 --config-cache | -C)
1094 cache_file=config.cache ;;
1096 -datadir | --datadir | --datadi | --datad)
1098 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1099 datadir=$ac_optarg ;;
1101 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1102 | --dataroo | --dataro | --datar)
1103 ac_prev=datarootdir ;;
1104 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1105 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1106 datarootdir=$ac_optarg ;;
1108 -disable-* | --disable-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1118 "enable_$ac_useropt"
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1123 eval enable_$ac_useropt=no ;;
1125 -docdir | --docdir | --docdi | --doc | --do)
1127 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1128 docdir=$ac_optarg ;;
1130 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1132 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1133 dvidir=$ac_optarg ;;
1135 -enable-* | --enable-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1145 "enable_$ac_useropt"
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1150 eval enable_$ac_useropt=\$ac_optarg ;;
1152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1154 | --exec | --exe | --ex)
1155 ac_prev=exec_prefix ;;
1156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1158 | --exec=* | --exe=* | --ex=*)
1159 exec_prefix=$ac_optarg ;;
1161 -gas | --gas | --ga | --g)
1162 # Obsolete; use --with-gas.
1165 -help | --help | --hel | --he | -h)
1166 ac_init_help=long ;;
1167 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1168 ac_init_help=recursive ;;
1169 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1170 ac_init_help=short ;;
1172 -host | --host | --hos | --ho)
1173 ac_prev=host_alias ;;
1174 -host=* | --host=* | --hos=* | --ho=*)
1175 host_alias=$ac_optarg ;;
1177 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1179 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1181 htmldir=$ac_optarg ;;
1183 -includedir | --includedir | --includedi | --included | --include \
1184 | --includ | --inclu | --incl | --inc)
1185 ac_prev=includedir ;;
1186 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1187 | --includ=* | --inclu=* | --incl=* | --inc=*)
1188 includedir=$ac_optarg ;;
1190 -infodir | --infodir | --infodi | --infod | --info | --inf)
1192 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1193 infodir=$ac_optarg ;;
1195 -libdir | --libdir | --libdi | --libd)
1197 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1198 libdir=$ac_optarg ;;
1200 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1201 | --libexe | --libex | --libe)
1202 ac_prev=libexecdir ;;
1203 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1204 | --libexe=* | --libex=* | --libe=*)
1205 libexecdir=$ac_optarg ;;
1207 -localedir | --localedir | --localedi | --localed | --locale)
1208 ac_prev=localedir ;;
1209 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1210 localedir=$ac_optarg ;;
1212 -localstatedir | --localstatedir | --localstatedi | --localstated \
1213 | --localstate | --localstat | --localsta | --localst | --locals)
1214 ac_prev=localstatedir ;;
1215 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1216 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1217 localstatedir=$ac_optarg ;;
1219 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1221 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1222 mandir=$ac_optarg ;;
1224 -nfp | --nfp | --nf)
1225 # Obsolete; use --without-fp.
1228 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1229 | --no-cr | --no-c | -n)
1232 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1233 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1236 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1237 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1238 | --oldin | --oldi | --old | --ol | --o)
1239 ac_prev=oldincludedir ;;
1240 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1241 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1242 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1243 oldincludedir=$ac_optarg ;;
1245 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1247 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1248 prefix=$ac_optarg ;;
1250 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1251 | --program-pre | --program-pr | --program-p)
1252 ac_prev=program_prefix ;;
1253 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1254 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1255 program_prefix=$ac_optarg ;;
1257 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1258 | --program-suf | --program-su | --program-s)
1259 ac_prev=program_suffix ;;
1260 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1261 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1262 program_suffix=$ac_optarg ;;
1264 -program-transform-name | --program-transform-name \
1265 | --program-transform-nam | --program-transform-na \
1266 | --program-transform-n | --program-transform- \
1267 | --program-transform | --program-transfor \
1268 | --program-transfo | --program-transf \
1269 | --program-trans | --program-tran \
1270 | --progr-tra | --program-tr | --program-t)
1271 ac_prev=program_transform_name ;;
1272 -program-transform-name=* | --program-transform-name=* \
1273 | --program-transform-nam=* | --program-transform-na=* \
1274 | --program-transform-n=* | --program-transform-=* \
1275 | --program-transform=* | --program-transfor=* \
1276 | --program-transfo=* | --program-transf=* \
1277 | --program-trans=* | --program-tran=* \
1278 | --progr-tra=* | --program-tr=* | --program-t=*)
1279 program_transform_name=$ac_optarg ;;
1281 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1283 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1284 pdfdir=$ac_optarg ;;
1286 -psdir | --psdir | --psdi | --psd | --ps)
1288 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292 | -silent | --silent | --silen | --sile | --sil)
1295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1299 sbindir=$ac_optarg ;;
1301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1303 | --sharedst | --shareds | --shared | --share | --shar \
1305 ac_prev=sharedstatedir ;;
1306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1310 sharedstatedir=$ac_optarg ;;
1312 -site | --site | --sit)
1314 -site=* | --site=* | --sit=*)
1317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1320 srcdir=$ac_optarg ;;
1322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1323 | --syscon | --sysco | --sysc | --sys | --sy)
1324 ac_prev=sysconfdir ;;
1325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1327 sysconfdir=$ac_optarg ;;
1329 -target | --target | --targe | --targ | --tar | --ta | --t)
1330 ac_prev=target_alias ;;
1331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1332 target_alias=$ac_optarg ;;
1334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1337 -version | --version | --versio | --versi | --vers | -V)
1338 ac_init_version=: ;;
1341 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1342 # Reject names that are not valid shell variable names.
1343 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1345 { (exit 1); exit 1; }; }
1346 ac_useropt_orig=$ac_useropt
1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1353 ac_unrecognized_sep=', ';;
1355 eval with_$ac_useropt=\$ac_optarg ;;
1357 -without-* | --without-*)
1358 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1362 { (exit 1); exit 1; }; }
1363 ac_useropt_orig=$ac_useropt
1364 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365 case $ac_user_opts in
1369 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1370 ac_unrecognized_sep=', ';;
1372 eval with_$ac_useropt=no ;;
1375 # Obsolete; use --with-x.
1378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1379 | --x-incl | --x-inc | --x-in | --x-i)
1380 ac_prev=x_includes ;;
1381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1383 x_includes=$ac_optarg ;;
1385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1387 ac_prev=x_libraries ;;
1388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1390 x_libraries=$ac_optarg ;;
1392 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1393 Try \`$0 --help' for more information." >&2
1394 { (exit 1); exit 1; }; }
1398 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1399 # Reject names that are not valid shell variable names.
1400 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1401 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1402 { (exit 1); exit 1; }; }
1403 eval $ac_envvar=\$ac_optarg
1404 export $ac_envvar ;;
1407 # FIXME: should be removed in autoconf 3.0.
1408 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1409 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1410 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1411 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1417 if test -n "$ac_prev"; then
1418 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1419 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1420 { (exit 1); exit 1; }; }
1423 if test -n "$ac_unrecognized_opts"; then
1424 case $enable_option_checking in
1426 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1427 { (exit 1); exit 1; }; } ;;
1428 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1432 # Check all directory arguments for consistency.
1433 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1434 datadir sysconfdir sharedstatedir localstatedir includedir \
1435 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1436 libdir localedir mandir
1438 eval ac_val=\$$ac_var
1439 # Remove trailing slashes.
1442 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1443 eval $ac_var=\$ac_val;;
1445 # Be sure to have absolute directory names.
1447 [\\/$]* | ?:[\\/]* ) continue;;
1448 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1450 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1451 { (exit 1); exit 1; }; }
1454 # There might be people who depend on the old broken behavior: `$host'
1455 # used to hold the argument of --host etc.
1456 # FIXME: To remove some day.
1459 target=$target_alias
1461 # FIXME: To remove some day.
1462 if test "x$host_alias" != x; then
1463 if test "x$build_alias" = x; then
1464 cross_compiling=maybe
1465 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1466 If a cross compiler is detected then cross compile mode will be used." >&2
1467 elif test "x$build_alias" != "x$host_alias"; then
1473 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1475 test "$silent" = yes && exec 6>/dev/null
1478 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1479 ac_ls_di=`ls -di .` &&
1480 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1481 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1482 { (exit 1); exit 1; }; }
1483 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1484 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1485 { (exit 1); exit 1; }; }
1488 # Find the source files, if location was not specified.
1489 if test -z "$srcdir"; then
1490 ac_srcdir_defaulted=yes
1491 # Try the directory containing this script, then the parent directory.
1492 ac_confdir=`$as_dirname -- "$as_myself" ||
1493 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1494 X"$as_myself" : 'X\(//\)[^/]' \| \
1495 X"$as_myself" : 'X\(//\)$' \| \
1496 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1497 $as_echo X"$as_myself" |
1498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1516 if test ! -r "$srcdir/$ac_unique_file"; then
1520 ac_srcdir_defaulted=no
1522 if test ! -r "$srcdir/$ac_unique_file"; then
1523 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1524 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1525 { (exit 1); exit 1; }; }
1527 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1529 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1530 { (exit 1); exit 1; }; }
1532 # When building in place, set srcdir=.
1533 if test "$ac_abs_confdir" = "$ac_pwd"; then
1536 # Remove unnecessary trailing slashes from srcdir.
1537 # Double slashes in file names in object file debugging info
1538 # mess up M-x gdb in Emacs.
1540 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1542 for ac_var in $ac_precious_vars; do
1543 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1544 eval ac_env_${ac_var}_value=\$${ac_var}
1545 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1546 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1550 # Report the --help message.
1552 if test "$ac_init_help" = "long"; then
1553 # Omit some internal or obsolete options to make the list less imposing.
1554 # This message is too long to be a string in the A/UX 3.1 sh.
1556 \`configure' configures this package to adapt to many kinds of systems.
1558 Usage: $0 [OPTION]... [VAR=VALUE]...
1560 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1561 VAR=VALUE. See below for descriptions of some of the useful variables.
1563 Defaults for the options are specified in brackets.
1566 -h, --help display this help and exit
1567 --help=short display options specific to this package
1568 --help=recursive display the short help of all the included packages
1569 -V, --version display version information and exit
1570 -q, --quiet, --silent do not print \`checking...' messages
1571 --cache-file=FILE cache test results in FILE [disabled]
1572 -C, --config-cache alias for \`--cache-file=config.cache'
1573 -n, --no-create do not create output files
1574 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1576 Installation directories:
1577 --prefix=PREFIX install architecture-independent files in PREFIX
1578 [$ac_default_prefix]
1579 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1582 By default, \`make install' will install all the files in
1583 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1584 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1585 for instance \`--prefix=\$HOME'.
1587 For better control, use the options below.
1589 Fine tuning of the installation directories:
1590 --bindir=DIR user executables [EPREFIX/bin]
1591 --sbindir=DIR system admin executables [EPREFIX/sbin]
1592 --libexecdir=DIR program executables [EPREFIX/libexec]
1593 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1594 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1595 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1596 --libdir=DIR object code libraries [EPREFIX/lib]
1597 --includedir=DIR C header files [PREFIX/include]
1598 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1599 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1600 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1601 --infodir=DIR info documentation [DATAROOTDIR/info]
1602 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1603 --mandir=DIR man documentation [DATAROOTDIR/man]
1604 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1605 --htmldir=DIR html documentation [DOCDIR]
1606 --dvidir=DIR dvi documentation [DOCDIR]
1607 --pdfdir=DIR pdf documentation [DOCDIR]
1608 --psdir=DIR ps documentation [DOCDIR]
1614 --program-prefix=PREFIX prepend PREFIX to installed program names
1615 --program-suffix=SUFFIX append SUFFIX to installed program names
1616 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1619 --build=BUILD configure for building on BUILD [guessed]
1620 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1621 --target=TARGET configure for building compilers for TARGET [HOST]
1625 if test -n "$ac_init_help"; then
1630 --disable-option-checking ignore unrecognized --enable/--with options
1631 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1632 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1633 --enable-maintainer-mode enable make rules and dependencies not useful
1634 (and sometimes confusing) to the casual installer
1635 --enable-silent-rules less verbose build output (undo: `make V=1')
1636 --disable-silent-rules verbose build output (undo: `make V=0')
1637 --disable-dependency-tracking speeds up one-time build
1638 --enable-dependency-tracking do not reject slow dependency extractors
1639 --enable-shared[=PKGS] build shared libraries [default=yes]
1640 --enable-static[=PKGS] build static libraries [default=yes]
1641 --enable-fast-install[=PKGS]
1642 optimize for fast installation [default=yes]
1643 --disable-libtool-lock avoid locking (might break parallel builds)
1644 --enable-debug Enable generic debug support [default=no]
1647 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1648 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1649 --with-pic try to use only PIC/non-PIC objects [default=use
1651 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1652 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1653 --with-linux=PATH Path to kernel source
1654 --with-linux-obj=PATH Path to kernel build objects
1655 --with-spl=PATH Path to spl source
1656 --with-spl-obj=PATH Path to spl build objects
1657 --with-udevdir=DIR install udev helpers [EPREFIX/lib/udev]
1658 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1659 --with-blkid support blkid caching [default=check]
1660 --with-selinux support selinux [default=check]
1662 Some influential environment variables:
1663 CC C compiler command
1664 CFLAGS C compiler flags
1665 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1666 nonstandard directory <lib dir>
1667 LIBS libraries to pass to the linker, e.g. -l<library>
1668 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1669 you have headers in a nonstandard directory <include dir>
1671 CCAS assembler compiler command (defaults to CC)
1672 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1674 Use these variables to override the choices made by `configure' or to help
1675 it to find libraries and programs with nonstandard names/locations.
1681 if test "$ac_init_help" = "recursive"; then
1682 # If there are subdirs, report their specific --help.
1683 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1684 test -d "$ac_dir" ||
1685 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1693 # A ".." for each directory in $ac_dir_suffix.
1694 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1695 case $ac_top_builddir_sub in
1696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1700 ac_abs_top_builddir=$ac_pwd
1701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1702 # for backward compatibility:
1703 ac_top_builddir=$ac_top_build_prefix
1706 .) # We are building in place.
1708 ac_top_srcdir=$ac_top_builddir_sub
1709 ac_abs_top_srcdir=$ac_pwd ;;
1710 [\\/]* | ?:[\\/]* ) # Absolute name.
1711 ac_srcdir=$srcdir$ac_dir_suffix;
1712 ac_top_srcdir=$srcdir
1713 ac_abs_top_srcdir=$srcdir ;;
1715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1716 ac_top_srcdir=$ac_top_build_prefix$srcdir
1717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721 cd "$ac_dir" || { ac_status=$?; continue; }
1722 # Check for guested configure.
1723 if test -f "$ac_srcdir/configure.gnu"; then
1725 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1726 elif test -f "$ac_srcdir/configure"; then
1728 $SHELL "$ac_srcdir/configure" --help=recursive
1730 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1732 cd "$ac_pwd" || { ac_status=$?; break; }
1736 test -n "$ac_init_help" && exit $ac_status
1737 if $ac_init_version; then
1740 generated by GNU Autoconf 2.63
1742 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1743 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1744 This configure script is free software; the Free Software Foundation
1745 gives unlimited permission to copy, distribute and modify it.
1749 cat >config.log <<_ACEOF
1750 This file contains any messages produced by compilers while
1751 running configure, to aid debugging if configure makes a mistake.
1753 It was created by $as_me, which was
1754 generated by GNU Autoconf 2.63. Invocation command line was
1766 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1767 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1768 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1769 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1770 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1772 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1773 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1775 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1776 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1777 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1778 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1779 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1780 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1781 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 test -z "$as_dir" && as_dir=.
1790 $as_echo "PATH: $as_dir"
1806 # Keep a trace of the command line.
1807 # Strip out --no-create and --no-recursion so they do not pile up.
1808 # Strip out --silent because we don't want to record it for future runs.
1809 # Also quote any args containing shell meta-characters.
1810 # Make two passes to allow for proper duplicate-argument suppression.
1814 ac_must_keep_next=false
1820 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1822 | -silent | --silent | --silen | --sile | --sil)
1825 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1828 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1830 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1831 if test $ac_must_keep_next = true; then
1832 ac_must_keep_next=false # Got value, back to normal.
1835 *=* | --config-cache | -C | -disable-* | --disable-* \
1836 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1837 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1838 | -with-* | --with-* | -without-* | --without-* | --x)
1839 case "$ac_configure_args0 " in
1840 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1843 -* ) ac_must_keep_next=true ;;
1846 ac_configure_args="$ac_configure_args '$ac_arg'"
1851 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1852 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1854 # When interrupted or exit'd, cleanup temporary files, and complete
1855 # config.log. We remove comments because anyway the quotes in there
1856 # would cause problems or look ugly.
1857 # WARNING: Use '\'' to represent an apostrophe within the trap.
1858 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1859 trap 'exit_status=$?
1860 # Save into config.log some information that might help in debugging.
1865 ## ---------------- ##
1866 ## Cache variables. ##
1867 ## ---------------- ##
1870 # The following way of writing the cache mishandles newlines in values,
1872 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1873 eval ac_val=\$$ac_var
1877 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1878 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1881 _ | IFS | as_nl) ;; #(
1882 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1883 *) $as_unset $ac_var ;;
1888 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1889 *${as_nl}ac_space=\ *)
1891 "s/'\''/'\''\\\\'\'''\''/g;
1892 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1903 ## ----------------- ##
1904 ## Output variables. ##
1905 ## ----------------- ##
1908 for ac_var in $ac_subst_vars
1910 eval ac_val=\$$ac_var
1912 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914 $as_echo "$ac_var='\''$ac_val'\''"
1918 if test -n "$ac_subst_files"; then
1920 ## ------------------- ##
1921 ## File substitutions. ##
1922 ## ------------------- ##
1925 for ac_var in $ac_subst_files
1927 eval ac_val=\$$ac_var
1929 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1931 $as_echo "$ac_var='\''$ac_val'\''"
1936 if test -s confdefs.h; then
1946 test "$ac_signal" != 0 &&
1947 $as_echo "$as_me: caught signal $ac_signal"
1948 $as_echo "$as_me: exit $exit_status"
1950 rm -f core *.core core.conftest.* &&
1951 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1954 for ac_signal in 1 2 13 15; do
1955 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1959 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1960 rm -f -r conftest* confdefs.h
1962 # Predefined preprocessor variables.
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_NAME "$PACKAGE_NAME"
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1974 cat >>confdefs.h <<_ACEOF
1975 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1979 cat >>confdefs.h <<_ACEOF
1980 #define PACKAGE_STRING "$PACKAGE_STRING"
1984 cat >>confdefs.h <<_ACEOF
1985 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1989 # Let the site file select an alternate cache file if it wants to.
1990 # Prefer an explicitly selected file to automatically selected ones.
1993 if test -n "$CONFIG_SITE"; then
1994 ac_site_file1=$CONFIG_SITE
1995 elif test "x$prefix" != xNONE; then
1996 ac_site_file1=$prefix/share/config.site
1997 ac_site_file2=$prefix/etc/config.site
1999 ac_site_file1=$ac_default_prefix/share/config.site
2000 ac_site_file2=$ac_default_prefix/etc/config.site
2002 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2004 test "x$ac_site_file" = xNONE && continue
2005 if test -r "$ac_site_file"; then
2006 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2007 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2008 sed 's/^/| /' "$ac_site_file" >&5
2013 if test -r "$cache_file"; then
2014 # Some versions of bash will fail to source /dev/null (special
2015 # files actually), so we avoid doing that.
2016 if test -f "$cache_file"; then
2017 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2018 $as_echo "$as_me: loading cache $cache_file" >&6;}
2020 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2021 *) . "./$cache_file";;
2025 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2026 $as_echo "$as_me: creating cache $cache_file" >&6;}
2030 # Check that the precious variables saved in the cache have kept the same
2032 ac_cache_corrupted=false
2033 for ac_var in $ac_precious_vars; do
2034 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2035 eval ac_new_set=\$ac_env_${ac_var}_set
2036 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2037 eval ac_new_val=\$ac_env_${ac_var}_value
2038 case $ac_old_set,$ac_new_set in
2040 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2041 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2042 ac_cache_corrupted=: ;;
2044 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2045 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2046 ac_cache_corrupted=: ;;
2049 if test "x$ac_old_val" != "x$ac_new_val"; then
2050 # differences in whitespace do not lead to failure.
2051 ac_old_val_w=`echo x $ac_old_val`
2052 ac_new_val_w=`echo x $ac_new_val`
2053 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2054 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2055 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2056 ac_cache_corrupted=:
2058 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2059 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2060 eval $ac_var=\$ac_old_val
2062 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2063 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2064 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2065 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2068 # Pass precious variables to config.status.
2069 if test "$ac_new_set" = set; then
2071 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2072 *) ac_arg=$ac_var=$ac_new_val ;;
2074 case " $ac_configure_args " in
2075 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2076 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2080 if $ac_cache_corrupted; then
2081 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2083 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2084 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2085 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2086 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2087 { (exit 1); exit 1; }; }
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2125 $as_echo_n "checking metadata... " >&6; }
2128 _zfs_ac_meta_got_file=no
2129 if test -f "$META"; then
2130 _zfs_ac_meta_got_file=yes
2132 ZFS_META_NAME=`perl -n\
2133 -e "BEGIN { \\$key=shift @ARGV; }"\
2134 -e "next unless s/^\s*\\$key[:=]//i;"\
2135 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2138 -e "s/^(['\"])(.*)\1/\\$2/;"\
2140 -e "END { print \\$val if defined \\$val; }"\
2141 '(?:NAME|PROJECT|PACKAGE)' $META`;
2142 if test -n "$ZFS_META_NAME"; then
2144 cat >>confdefs.h <<_ACEOF
2145 #define ZFS_META_NAME "$ZFS_META_NAME"
2151 ZFS_META_VERSION=`perl -n\
2152 -e "BEGIN { \\$key=shift @ARGV; }"\
2153 -e "next unless s/^\s*\\$key[:=]//i;"\
2154 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2157 -e "s/^(['\"])(.*)\1/\\$2/;"\
2159 -e "END { print \\$val if defined \\$val; }"\
2161 if test -n "$ZFS_META_VERSION"; then
2163 cat >>confdefs.h <<_ACEOF
2164 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2170 ZFS_META_RELEASE=`perl -n\
2171 -e "BEGIN { \\$key=shift @ARGV; }"\
2172 -e "next unless s/^\s*\\$key[:=]//i;"\
2173 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2176 -e "s/^(['\"])(.*)\1/\\$2/;"\
2178 -e "END { print \\$val if defined \\$val; }"\
2180 if test -n "$ZFS_META_RELEASE"; then
2182 cat >>confdefs.h <<_ACEOF
2183 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2189 ZFS_META_LICENSE=`perl -n\
2190 -e "BEGIN { \\$key=shift @ARGV; }"\
2191 -e "next unless s/^\s*\\$key[:=]//i;"\
2192 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2195 -e "s/^(['\"])(.*)\1/\\$2/;"\
2197 -e "END { print \\$val if defined \\$val; }"\
2199 if test -n "$ZFS_META_LICENSE"; then
2201 cat >>confdefs.h <<_ACEOF
2202 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2208 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2209 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2210 test -n "$ZFS_META_RELEASE" &&
2211 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2213 cat >>confdefs.h <<_ACEOF
2214 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2220 ZFS_META_DATA=`perl -n\
2221 -e "BEGIN { \\$key=shift @ARGV; }"\
2222 -e "next unless s/^\s*\\$key[:=]//i;"\
2223 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2226 -e "s/^(['\"])(.*)\1/\\$2/;"\
2228 -e "END { print \\$val if defined \\$val; }"\
2230 if test -n "$ZFS_META_DATA"; then
2232 cat >>confdefs.h <<_ACEOF
2233 #define ZFS_META_DATA "$ZFS_META_DATA"
2239 ZFS_META_AUTHOR=`perl -n\
2240 -e "BEGIN { \\$key=shift @ARGV; }"\
2241 -e "next unless s/^\s*\\$key[:=]//i;"\
2242 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2245 -e "s/^(['\"])(.*)\1/\\$2/;"\
2247 -e "END { print \\$val if defined \\$val; }"\
2249 if test -n "$ZFS_META_AUTHOR"; then
2251 cat >>confdefs.h <<_ACEOF
2252 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2259 ZFS_META_LT_CURRENT=`perl -n\
2260 -e "BEGIN { \\$key=shift @ARGV; }"\
2261 -e "next unless s/^\s*\\$key[:=]//i;"\
2262 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2265 -e "s/^(['\"])(.*)\1/\\$2/;"\
2267 -e "END { print \\$val if defined \\$val; }"\
2268 'LT_CURRENT' $META`;
2269 ZFS_META_LT_REVISION=`perl -n\
2270 -e "BEGIN { \\$key=shift @ARGV; }"\
2271 -e "next unless s/^\s*\\$key[:=]//i;"\
2272 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2275 -e "s/^(['\"])(.*)\1/\\$2/;"\
2277 -e "END { print \\$val if defined \\$val; }"\
2278 'LT_REVISION' $META`;
2279 ZFS_META_LT_AGE=`perl -n\
2280 -e "BEGIN { \\$key=shift @ARGV; }"\
2281 -e "next unless s/^\s*\\$key[:=]//i;"\
2282 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2285 -e "s/^(['\"])(.*)\1/\\$2/;"\
2287 -e "END { print \\$val if defined \\$val; }"\
2289 if test -n "$ZFS_META_LT_CURRENT" \
2290 -o -n "$ZFS_META_LT_REVISION" \
2291 -o -n "$ZFS_META_LT_AGE"; then
2292 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2293 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2294 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2296 cat >>confdefs.h <<_ACEOF
2297 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2301 cat >>confdefs.h <<_ACEOF
2302 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2306 cat >>confdefs.h <<_ACEOF
2307 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2316 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2317 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2321 for ac_dir in config "$srcdir"/config; do
2322 if test -f "$ac_dir/install-sh"; then
2324 ac_install_sh="$ac_aux_dir/install-sh -c"
2326 elif test -f "$ac_dir/install.sh"; then
2328 ac_install_sh="$ac_aux_dir/install.sh -c"
2330 elif test -f "$ac_dir/shtool"; then
2332 ac_install_sh="$ac_aux_dir/shtool install -c"
2336 if test -z "$ac_aux_dir"; then
2337 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2338 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2339 { (exit 1); exit 1; }; }
2342 # These three variables are undocumented and unsupported,
2343 # and are intended to be withdrawn in a future Autoconf release.
2344 # They can cause serious problems if a builder's source tree is in a directory
2345 # whose full name contains unusual characters.
2346 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2347 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2348 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2351 # Make sure we can run config.sub.
2352 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2353 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2354 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2355 { (exit 1); exit 1; }; }
2357 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2358 $as_echo_n "checking build system type... " >&6; }
2359 if test "${ac_cv_build+set}" = set; then
2360 $as_echo_n "(cached) " >&6
2362 ac_build_alias=$build_alias
2363 test "x$ac_build_alias" = x &&
2364 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2365 test "x$ac_build_alias" = x &&
2366 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2367 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2368 { (exit 1); exit 1; }; }
2369 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2370 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2371 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2372 { (exit 1); exit 1; }; }
2375 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2376 $as_echo "$ac_cv_build" >&6; }
2377 case $ac_cv_build in
2379 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2380 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2381 { (exit 1); exit 1; }; };;
2384 ac_save_IFS=$IFS; IFS='-'
2390 # Remember, the first character of IFS is used to create $*,
2391 # except with old shells:
2394 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2397 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2398 $as_echo_n "checking host system type... " >&6; }
2399 if test "${ac_cv_host+set}" = set; then
2400 $as_echo_n "(cached) " >&6
2402 if test "x$host_alias" = x; then
2403 ac_cv_host=$ac_cv_build
2405 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2406 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2407 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2408 { (exit 1); exit 1; }; }
2412 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2413 $as_echo "$ac_cv_host" >&6; }
2416 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2417 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2418 { (exit 1); exit 1; }; };;
2421 ac_save_IFS=$IFS; IFS='-'
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2431 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2434 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2435 $as_echo_n "checking target system type... " >&6; }
2436 if test "${ac_cv_target+set}" = set; then
2437 $as_echo_n "(cached) " >&6
2439 if test "x$target_alias" = x; then
2440 ac_cv_target=$ac_cv_host
2442 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2443 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2444 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2445 { (exit 1); exit 1; }; }
2449 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2450 $as_echo "$ac_cv_target" >&6; }
2451 case $ac_cv_target in
2453 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2454 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2455 { (exit 1); exit 1; }; };;
2457 target=$ac_cv_target
2458 ac_save_IFS=$IFS; IFS='-'
2464 # Remember, the first character of IFS is used to create $*,
2465 # except with old shells:
2468 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2471 # The aliases save the names the user supplied, while $host etc.
2472 # will get canonicalized.
2473 test -n "$target_alias" &&
2474 test "$program_prefix$program_suffix$program_transform_name" = \
2476 program_prefix=${target_alias}-
2478 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2479 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2480 # Check whether --enable-maintainer-mode was given.
2481 if test "${enable_maintainer_mode+set}" = set; then
2482 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2484 USE_MAINTAINER_MODE=no
2487 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2488 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2489 if test $USE_MAINTAINER_MODE = yes; then
2490 MAINTAINER_MODE_TRUE=
2491 MAINTAINER_MODE_FALSE='#'
2493 MAINTAINER_MODE_TRUE='#'
2494 MAINTAINER_MODE_FALSE=
2497 MAINT=$MAINTAINER_MODE_TRUE
2500 # Check whether --enable-silent-rules was given.
2501 if test "${enable_silent_rules+set}" = set; then
2502 enableval=$enable_silent_rules;
2505 case $enable_silent_rules in
2506 yes) AM_DEFAULT_VERBOSITY=0;;
2507 no) AM_DEFAULT_VERBOSITY=1;;
2508 *) AM_DEFAULT_VERBOSITY=1;;
2512 am__api_version='1.11'
2514 # Find a good install program. We prefer a C program (faster),
2515 # so one script is as good as another. But avoid the broken or
2516 # incompatible versions:
2517 # SysV /etc/install, /usr/sbin/install
2518 # SunOS /usr/etc/install
2519 # IRIX /sbin/install
2521 # AmigaOS /C/install, which installs bootblocks on floppy discs
2522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2525 # OS/2's system install, which has a completely different semantic
2526 # ./install, which can be erroneously created by make from ./install.sh.
2527 # Reject install programs that cannot install multiple files.
2528 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2529 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2530 if test -z "$INSTALL"; then
2531 if test "${ac_cv_path_install+set}" = set; then
2532 $as_echo_n "(cached) " >&6
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir=.
2539 # Account for people who put trailing slashes in PATH elements.
2541 ./ | .// | /cC/* | \
2542 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2543 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2546 # OSF1 and SCO ODT 3.0 have their own names for install.
2547 # Don't use installbsd from OSF since it installs stuff as root
2549 for ac_prog in ginstall scoinst install; do
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2552 if test $ac_prog = install &&
2553 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2554 # AIX install. It has an incompatible calling convention.
2556 elif test $ac_prog = install &&
2557 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2558 # program-specific install script used by HP pwplus--don't use.
2561 rm -rf conftest.one conftest.two conftest.dir
2562 echo one > conftest.one
2563 echo two > conftest.two
2565 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2566 test -s conftest.one && test -s conftest.two &&
2567 test -s conftest.dir/conftest.one &&
2568 test -s conftest.dir/conftest.two
2570 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2583 rm -rf conftest.one conftest.two conftest.dir
2586 if test "${ac_cv_path_install+set}" = set; then
2587 INSTALL=$ac_cv_path_install
2589 # As a last resort, use the slow shell script. Don't cache a
2590 # value for INSTALL within a source directory, because that will
2591 # break other packages using the cache if that directory is
2592 # removed, or if the value is a relative name.
2593 INSTALL=$ac_install_sh
2596 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2597 $as_echo "$INSTALL" >&6; }
2599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2600 # It thinks the first close brace ends the variable substitution.
2601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2607 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2608 $as_echo_n "checking whether build environment is sane... " >&6; }
2611 echo timestamp > conftest.file
2612 # Reject unsafe characters in $srcdir or the absolute working directory
2613 # name. Accept space and tab only in the latter.
2617 *[\\\"\#\$\&\'\`$am_lf]*)
2618 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2619 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2620 { (exit 1); exit 1; }; };;
2623 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2624 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2625 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2626 { (exit 1); exit 1; }; };;
2629 # Do `set' in a subshell so we don't clobber the current shell's
2630 # arguments. Must try -L first in case configure is actually a
2631 # symlink; some systems play weird games with the mod time of symlinks
2632 # (eg FreeBSD returns the mod time of the symlink's containing
2635 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2636 if test "$*" = "X"; then
2638 set X `ls -t "$srcdir/configure" conftest.file`
2641 if test "$*" != "X $srcdir/configure conftest.file" \
2642 && test "$*" != "X conftest.file $srcdir/configure"; then
2644 # If neither matched, then we have a broken ls. This can happen
2645 # if, for instance, CONFIG_SHELL is bash and it inherits a
2646 # broken ls alias from the environment. This has actually
2647 # happened. Such a system could not be considered "sane".
2648 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2649 alias in your environment" >&5
2650 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2651 alias in your environment" >&2;}
2652 { (exit 1); exit 1; }; }
2655 test "$2" = conftest.file
2661 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2662 Check your system clock" >&5
2663 $as_echo "$as_me: error: newly created file is older than distributed files!
2664 Check your system clock" >&2;}
2665 { (exit 1); exit 1; }; }
2667 { $as_echo "$as_me:$LINENO: result: yes" >&5
2668 $as_echo "yes" >&6; }
2669 test "$program_prefix" != NONE &&
2670 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2671 # Use a double $ so make ignores it.
2672 test "$program_suffix" != NONE &&
2673 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2674 # Double any \ or $.
2675 # By default was `s,x,x', remove it if useless.
2676 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2677 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2679 # expand $ac_aux_dir to an absolute path
2680 am_aux_dir=`cd $ac_aux_dir && pwd`
2682 if test x"${MISSING+set}" != xset; then
2685 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2687 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2690 # Use eval to expand $SHELL
2691 if eval "$MISSING --run true"; then
2692 am_missing_run="$MISSING --run "
2695 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2696 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2699 if test x"${install_sh}" != xset; then
2702 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2704 install_sh="\${SHELL} $am_aux_dir/install-sh"
2708 # Installed binaries are usually stripped using `strip' when the user
2709 # run `make install-strip'. However `strip' might not be the right
2710 # tool to use in cross-compilation environments, therefore Automake
2711 # will honor the `STRIP' environment variable to overrule this program.
2712 if test "$cross_compiling" != no; then
2713 if test -n "$ac_tool_prefix"; then
2714 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2715 set dummy ${ac_tool_prefix}strip; ac_word=$2
2716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_STRIP+set}" = set; then
2719 $as_echo_n "(cached) " >&6
2721 if test -n "$STRIP"; then
2722 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 STRIP=$ac_cv_prog_STRIP
2742 if test -n "$STRIP"; then
2743 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2744 $as_echo "$STRIP" >&6; }
2746 { $as_echo "$as_me:$LINENO: result: no" >&5
2747 $as_echo "no" >&6; }
2752 if test -z "$ac_cv_prog_STRIP"; then
2754 # Extract the first word of "strip", so it can be a program name with args.
2755 set dummy strip; ac_word=$2
2756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2759 $as_echo_n "(cached) " >&6
2761 if test -n "$ac_ct_STRIP"; then
2762 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_ac_ct_STRIP="strip"
2772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2782 if test -n "$ac_ct_STRIP"; then
2783 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2784 $as_echo "$ac_ct_STRIP" >&6; }
2786 { $as_echo "$as_me:$LINENO: result: no" >&5
2787 $as_echo "no" >&6; }
2790 if test "x$ac_ct_STRIP" = x; then
2793 case $cross_compiling:$ac_tool_warned in
2795 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2797 ac_tool_warned=yes ;;
2802 STRIP="$ac_cv_prog_STRIP"
2806 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2808 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2809 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2810 if test -z "$MKDIR_P"; then
2811 if test "${ac_cv_path_mkdir+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2818 test -z "$as_dir" && as_dir=.
2819 for ac_prog in mkdir gmkdir; do
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2822 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2823 'mkdir (GNU coreutils) '* | \
2824 'mkdir (coreutils) '* | \
2825 'mkdir (fileutils) '4.1*)
2826 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2836 if test "${ac_cv_path_mkdir+set}" = set; then
2837 MKDIR_P="$ac_cv_path_mkdir -p"
2839 # As a last resort, use the slow shell script. Don't cache a
2840 # value for MKDIR_P within a source directory, because that will
2841 # break other packages using the cache if that directory is
2842 # removed, or if the value is a relative name.
2843 test -d ./--version && rmdir ./--version
2844 MKDIR_P="$ac_install_sh -d"
2847 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2848 $as_echo "$MKDIR_P" >&6; }
2852 [\\/$]* | ?:[\\/]*) ;;
2853 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2856 for ac_prog in gawk mawk nawk awk
2858 # Extract the first word of "$ac_prog", so it can be a program name with args.
2859 set dummy $ac_prog; ac_word=$2
2860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_AWK+set}" = set; then
2863 $as_echo_n "(cached) " >&6
2865 if test -n "$AWK"; then
2866 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 ac_cv_prog_AWK="$ac_prog"
2876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 if test -n "$AWK"; then
2887 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2888 $as_echo "$AWK" >&6; }
2890 { $as_echo "$as_me:$LINENO: result: no" >&5
2891 $as_echo "no" >&6; }
2895 test -n "$AWK" && break
2898 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2899 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2901 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2902 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2903 $as_echo_n "(cached) " >&6
2905 cat >conftest.make <<\_ACEOF
2908 @echo '@@@%%%=$(MAKE)=@@@%%%'
2910 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2911 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2913 eval ac_cv_prog_make_${ac_make}_set=yes;;
2915 eval ac_cv_prog_make_${ac_make}_set=no;;
2919 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2920 { $as_echo "$as_me:$LINENO: result: yes" >&5
2921 $as_echo "yes" >&6; }
2924 { $as_echo "$as_me:$LINENO: result: no" >&5
2925 $as_echo "no" >&6; }
2926 SET_MAKE="MAKE=${MAKE-make}"
2929 rm -rf .tst 2>/dev/null
2930 mkdir .tst 2>/dev/null
2931 if test -d .tst; then
2936 rmdir .tst 2>/dev/null
2938 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2939 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2940 # is not polluted with repeated "-I."
2941 am__isrc=' -I$(srcdir)'
2942 # test to see if srcdir already configured
2943 if test -f $srcdir/config.status; then
2944 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2945 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2946 { (exit 1); exit 1; }; }
2950 # test whether we have cygpath
2951 if test -z "$CYGPATH_W"; then
2952 if (cygpath --version) >/dev/null 2>/dev/null; then
2953 CYGPATH_W='cygpath -w'
2960 # Define the identity of the package.
2961 PACKAGE=$ZFS_META_NAME
2962 VERSION=$ZFS_META_VERSION
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE "$PACKAGE"
2970 cat >>confdefs.h <<_ACEOF
2971 #define VERSION "$VERSION"
2974 # Some tools Automake needs.
2976 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2979 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2982 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2985 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2988 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2990 # We need awk for the "check" target. The system "awk" is bad on
2992 # Always define AMTAR for backward compatibility.
2994 AMTAR=${AMTAR-"${am_missing_run}tar"}
2996 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3002 ac_config_headers="$ac_config_headers zfs_config.h"
3005 # Find a good install program. We prefer a C program (faster),
3006 # so one script is as good as another. But avoid the broken or
3007 # incompatible versions:
3008 # SysV /etc/install, /usr/sbin/install
3009 # SunOS /usr/etc/install
3010 # IRIX /sbin/install
3012 # AmigaOS /C/install, which installs bootblocks on floppy discs
3013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3016 # OS/2's system install, which has a completely different semantic
3017 # ./install, which can be erroneously created by make from ./install.sh.
3018 # Reject install programs that cannot install multiple files.
3019 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3020 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3021 if test -z "$INSTALL"; then
3022 if test "${ac_cv_path_install+set}" = set; then
3023 $as_echo_n "(cached) " >&6
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 test -z "$as_dir" && as_dir=.
3030 # Account for people who put trailing slashes in PATH elements.
3032 ./ | .// | /cC/* | \
3033 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3034 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3037 # OSF1 and SCO ODT 3.0 have their own names for install.
3038 # Don't use installbsd from OSF since it installs stuff as root
3040 for ac_prog in ginstall scoinst install; do
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3043 if test $ac_prog = install &&
3044 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3045 # AIX install. It has an incompatible calling convention.
3047 elif test $ac_prog = install &&
3048 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3049 # program-specific install script used by HP pwplus--don't use.
3052 rm -rf conftest.one conftest.two conftest.dir
3053 echo one > conftest.one
3054 echo two > conftest.two
3056 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3057 test -s conftest.one && test -s conftest.two &&
3058 test -s conftest.dir/conftest.one &&
3059 test -s conftest.dir/conftest.two
3061 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3074 rm -rf conftest.one conftest.two conftest.dir
3077 if test "${ac_cv_path_install+set}" = set; then
3078 INSTALL=$ac_cv_path_install
3080 # As a last resort, use the slow shell script. Don't cache a
3081 # value for INSTALL within a source directory, because that will
3082 # break other packages using the cache if that directory is
3083 # removed, or if the value is a relative name.
3084 INSTALL=$ac_install_sh
3087 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3088 $as_echo "$INSTALL" >&6; }
3090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3091 # It thinks the first close brace ends the variable substitution.
3092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3094 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3096 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 if test -n "$ac_tool_prefix"; then
3104 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3105 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if test "${ac_cv_prog_CC+set}" = set; then
3109 $as_echo_n "(cached) " >&6
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC="$CC" # Let the user override the test.
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 if test -n "$CC"; then
3133 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3134 $as_echo "$CC" >&6; }
3136 { $as_echo "$as_me:$LINENO: result: no" >&5
3137 $as_echo "no" >&6; }
3142 if test -z "$ac_cv_prog_CC"; then
3144 # Extract the first word of "gcc", so it can be a program name with args.
3145 set dummy gcc; ac_word=$2
3146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3149 $as_echo_n "(cached) " >&6
3151 if test -n "$ac_ct_CC"; then
3152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161 ac_cv_prog_ac_ct_CC="gcc"
3162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172 if test -n "$ac_ct_CC"; then
3173 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3174 $as_echo "$ac_ct_CC" >&6; }
3176 { $as_echo "$as_me:$LINENO: result: no" >&5
3177 $as_echo "no" >&6; }
3180 if test "x$ac_ct_CC" = x; then
3183 case $cross_compiling:$ac_tool_warned in
3185 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3187 ac_tool_warned=yes ;;
3195 if test -z "$CC"; then
3196 if test -n "$ac_tool_prefix"; then
3197 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3198 set dummy ${ac_tool_prefix}cc; ac_word=$2
3199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if test "${ac_cv_prog_CC+set}" = set; then
3202 $as_echo_n "(cached) " >&6
3204 if test -n "$CC"; then
3205 ac_cv_prog_CC="$CC" # Let the user override the test.
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_CC="${ac_tool_prefix}cc"
3215 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 if test -n "$CC"; then
3226 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3227 $as_echo "$CC" >&6; }
3229 { $as_echo "$as_me:$LINENO: result: no" >&5
3230 $as_echo "no" >&6; }
3236 if test -z "$CC"; then
3237 # Extract the first word of "cc", so it can be a program name with args.
3238 set dummy cc; ac_word=$2
3239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_CC+set}" = set; then
3242 $as_echo_n "(cached) " >&6
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3256 ac_prog_rejected=yes
3260 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 if test $ac_prog_rejected = yes; then
3268 # We found a bogon in the path, so make sure we never use it.
3269 set dummy $ac_cv_prog_CC
3271 if test $# != 0; then
3272 # We chose a different compiler from the bogus one.
3273 # However, it has the same basename, so the bogon will be chosen
3274 # first if we set CC to just the basename; use the full file name.
3276 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3282 if test -n "$CC"; then
3283 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3286 { $as_echo "$as_me:$LINENO: result: no" >&5
3287 $as_echo "no" >&6; }
3292 if test -z "$CC"; then
3293 if test -n "$ac_tool_prefix"; then
3294 for ac_prog in cl.exe
3296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if test "${ac_cv_prog_CC+set}" = set; then
3301 $as_echo_n "(cached) " >&6
3303 if test -n "$CC"; then
3304 ac_cv_prog_CC="$CC" # Let the user override the test.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3314 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 if test -n "$CC"; then
3325 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3326 $as_echo "$CC" >&6; }
3328 { $as_echo "$as_me:$LINENO: result: no" >&5
3329 $as_echo "no" >&6; }
3333 test -n "$CC" && break
3336 if test -z "$CC"; then
3338 for ac_prog in cl.exe
3340 # Extract the first word of "$ac_prog", so it can be a program name with args.
3341 set dummy $ac_prog; ac_word=$2
3342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3345 $as_echo_n "(cached) " >&6
3347 if test -n "$ac_ct_CC"; then
3348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_ac_ct_CC="$ac_prog"
3358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3368 if test -n "$ac_ct_CC"; then
3369 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3370 $as_echo "$ac_ct_CC" >&6; }
3372 { $as_echo "$as_me:$LINENO: result: no" >&5
3373 $as_echo "no" >&6; }
3377 test -n "$ac_ct_CC" && break
3380 if test "x$ac_ct_CC" = x; then
3383 case $cross_compiling:$ac_tool_warned in
3385 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387 ac_tool_warned=yes ;;
3396 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3399 See \`config.log' for more details." >&5
3400 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3401 See \`config.log' for more details." >&2;}
3402 { (exit 1); exit 1; }; }; }
3404 # Provide some information about the compiler.
3405 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3408 { (ac_try="$ac_compiler --version >&5"
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3414 $as_echo "$ac_try_echo") >&5
3415 (eval "$ac_compiler --version >&5") 2>&5
3417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }
3419 { (ac_try="$ac_compiler -v >&5"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3425 $as_echo "$ac_try_echo") >&5
3426 (eval "$ac_compiler -v >&5") 2>&5
3428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }
3430 { (ac_try="$ac_compiler -V >&5"
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3436 $as_echo "$ac_try_echo") >&5
3437 (eval "$ac_compiler -V >&5") 2>&5
3439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3457 ac_clean_files_save=$ac_clean_files
3458 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3459 # Try to create an executable without -o first, disregard a.out.
3460 # It will help us diagnose broken compilers, and finding out an intuition
3462 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3463 $as_echo_n "checking for C compiler default output file name... " >&6; }
3464 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3466 # The possible output files:
3467 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3470 for ac_file in $ac_files
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3474 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3479 if { (ac_try="$ac_link_default"
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3485 $as_echo "$ac_try_echo") >&5
3486 (eval "$ac_link_default") 2>&5
3488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; then
3490 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3491 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3492 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3493 # so that the user can short-circuit this test for compilers unknown to
3495 for ac_file in $ac_files ''
3497 test -f "$ac_file" || continue
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3502 # We found the default executable, but exeext='' is most
3506 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3508 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510 # We set ac_cv_exeext here because the later test for it is not
3511 # safe: cross compilers may not add the suffix if given an `-o'
3512 # argument, so we may need to know it at that point already.
3513 # Even if this section looks crufty: it has the advantage of
3520 test "$ac_cv_exeext" = no && ac_cv_exeext=
3526 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3527 $as_echo "$ac_file" >&6; }
3528 if test -z "$ac_file"; then
3529 $as_echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3535 See \`config.log' for more details." >&5
3536 $as_echo "$as_me: error: C compiler cannot create executables
3537 See \`config.log' for more details." >&2;}
3538 { (exit 77); exit 77; }; }; }
3541 ac_exeext=$ac_cv_exeext
3543 # Check that the compiler produces executables we can run. If not, either
3544 # the compiler is broken, or we cross compile.
3545 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3546 $as_echo_n "checking whether the C compiler works... " >&6; }
3547 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3548 # If not cross compiling, check that we can run a simple program.
3549 if test "$cross_compiling" != yes; then
3550 if { ac_try='./$ac_file'
3551 { (case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3556 $as_echo "$ac_try_echo") >&5
3557 (eval "$ac_try") 2>&5
3559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3563 if test "$cross_compiling" = maybe; then
3566 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3569 If you meant to cross compile, use \`--host'.
3570 See \`config.log' for more details." >&5
3571 $as_echo "$as_me: error: cannot run C compiled programs.
3572 If you meant to cross compile, use \`--host'.
3573 See \`config.log' for more details." >&2;}
3574 { (exit 1); exit 1; }; }; }
3578 { $as_echo "$as_me:$LINENO: result: yes" >&5
3579 $as_echo "yes" >&6; }
3581 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3582 ac_clean_files=$ac_clean_files_save
3583 # Check that the compiler produces executables we can run. If not, either
3584 # the compiler is broken, or we cross compile.
3585 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3586 $as_echo_n "checking whether we are cross compiling... " >&6; }
3587 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3588 $as_echo "$cross_compiling" >&6; }
3590 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3591 $as_echo_n "checking for suffix of executables... " >&6; }
3592 if { (ac_try="$ac_link"
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3598 $as_echo "$ac_try_echo") >&5
3599 (eval "$ac_link") 2>&5
3601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; then
3603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3605 # work properly (i.e., refer to `conftest.exe'), while it won't with
3607 for ac_file in conftest.exe conftest conftest.*; do
3608 test -f "$ac_file" || continue
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3617 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3620 See \`config.log' for more details." >&5
3621 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3622 See \`config.log' for more details." >&2;}
3623 { (exit 1); exit 1; }; }; }
3626 rm -f conftest$ac_cv_exeext
3627 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3628 $as_echo "$ac_cv_exeext" >&6; }
3630 rm -f conftest.$ac_ext
3631 EXEEXT=$ac_cv_exeext
3633 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3634 $as_echo_n "checking for suffix of object files... " >&6; }
3635 if test "${ac_cv_objext+set}" = set; then
3636 $as_echo_n "(cached) " >&6
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3653 rm -f conftest.o conftest.obj
3654 if { (ac_try="$ac_compile"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3660 $as_echo "$ac_try_echo") >&5
3661 (eval "$ac_compile") 2>&5
3663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; then
3665 for ac_file in conftest.o conftest.obj conftest.*; do
3666 test -f "$ac_file" || continue;
3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3669 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3674 $as_echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3677 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3680 See \`config.log' for more details." >&5
3681 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3682 See \`config.log' for more details." >&2;}
3683 { (exit 1); exit 1; }; }; }
3686 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3688 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3689 $as_echo "$ac_cv_objext" >&6; }
3690 OBJEXT=$ac_cv_objext
3692 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3693 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3694 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3695 $as_echo_n "(cached) " >&6
3697 cat >conftest.$ac_ext <<_ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3715 rm -f conftest.$ac_objext
3716 if { (ac_try="$ac_compile"
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3722 $as_echo "$ac_try_echo") >&5
3723 (eval "$ac_compile") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } && {
3730 test -z "$ac_c_werror_flag" ||
3731 test ! -s conftest.err
3732 } && test -s conftest.$ac_objext; then
3735 $as_echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3745 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3746 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3747 if test $ac_compiler_gnu = yes; then
3752 ac_test_CFLAGS=${CFLAGS+set}
3753 ac_save_CFLAGS=$CFLAGS
3754 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3755 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3756 if test "${ac_cv_prog_cc_g+set}" = set; then
3757 $as_echo_n "(cached) " >&6
3759 ac_save_c_werror_flag=$ac_c_werror_flag
3760 ac_c_werror_flag=yes
3763 cat >conftest.$ac_ext <<_ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3778 rm -f conftest.$ac_objext
3779 if { (ac_try="$ac_compile"
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3785 $as_echo "$ac_try_echo") >&5
3786 (eval "$ac_compile") 2>conftest.er1
3788 grep -v '^ *+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && {
3793 test -z "$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 } && test -s conftest.$ac_objext; then
3798 $as_echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3802 cat >conftest.$ac_ext <<_ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3817 rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3824 $as_echo "$ac_try_echo") >&5
3825 (eval "$ac_compile") 2>conftest.er1
3827 grep -v '^ *+' conftest.er1 >conftest.err
3829 cat conftest.err >&5
3830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } && {
3832 test -z "$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3834 } && test -s conftest.$ac_objext; then
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 ac_c_werror_flag=$ac_save_c_werror_flag
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3864 $as_echo "$ac_try_echo") >&5
3865 (eval "$ac_compile") 2>conftest.er1
3867 grep -v '^ *+' conftest.er1 >conftest.err
3869 cat conftest.err >&5
3870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } && {
3872 test -z "$ac_c_werror_flag" ||
3873 test ! -s conftest.err
3874 } && test -s conftest.$ac_objext; then
3877 $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 ac_c_werror_flag=$ac_save_c_werror_flag
3892 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3893 $as_echo "$ac_cv_prog_cc_g" >&6; }
3894 if test "$ac_test_CFLAGS" = set; then
3895 CFLAGS=$ac_save_CFLAGS
3896 elif test $ac_cv_prog_cc_g = yes; then
3897 if test "$GCC" = yes; then
3903 if test "$GCC" = yes; then
3909 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3910 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3911 if test "${ac_cv_prog_cc_c89+set}" = set; then
3912 $as_echo_n "(cached) " >&6
3914 ac_cv_prog_cc_c89=no
3916 cat >conftest.$ac_ext <<_ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3924 #include <sys/types.h>
3925 #include <sys/stat.h>
3926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3927 struct buf { int x; };
3928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929 static char *e (p, i)
3935 static char *f (char * (*g) (char **, int), char **p, ...)
3940 s = g (p, va_arg (v,int));
3945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3946 function prototypes and stuff, but not '\xHH' hex character constants.
3947 These don't provoke an error unfortunately, instead are silently treated
3948 as 'x'. The following induces an error, until -std is added to get
3949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3950 array size at least. It's necessary to write '\x00'==0 to get something
3951 that's true only with -std. */
3952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955 inside strings and character constants. */
3957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3959 int test (int i, double x);
3960 struct s1 {int (*f) (int a);};
3961 struct s2 {int (*f) (double a);};
3962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3976 CC="$ac_save_CC $ac_arg"
3977 rm -f conftest.$ac_objext
3978 if { (ac_try="$ac_compile"
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_compile") 2>conftest.er1
3987 grep -v '^ *+' conftest.er1 >conftest.err
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest.$ac_objext; then
3995 ac_cv_prog_cc_c89=$ac_arg
3997 $as_echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4003 rm -f core conftest.err conftest.$ac_objext
4004 test "x$ac_cv_prog_cc_c89" != "xno" && break
4006 rm -f conftest.$ac_ext
4011 case "x$ac_cv_prog_cc_c89" in
4013 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4014 $as_echo "none needed" >&6; } ;;
4016 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4017 $as_echo "unsupported" >&6; } ;;
4019 CC="$CC $ac_cv_prog_cc_c89"
4020 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4021 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4026 ac_cpp='$CPP $CPPFLAGS'
4027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030 DEPDIR="${am__leading_dot}deps"
4032 ac_config_commands="$ac_config_commands depfiles"
4035 am_make=${MAKE-make}
4036 cat > confinc << 'END'
4038 @echo this is the am__doit target
4041 # If we don't find an include directive, just comment out the code.
4042 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4043 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4047 # First try GNU make style include.
4048 echo "include confinc" > confmf
4049 # Ignore all kinds of additional output from `make'.
4050 case `$am_make -s -f confmf 2> /dev/null` in #(
4051 *the\ am__doit\ target*)
4057 # Now try BSD make style include.
4058 if test "$am__include" = "#"; then
4059 echo '.include "confinc"' > confmf
4060 case `$am_make -s -f confmf 2> /dev/null` in #(
4061 *the\ am__doit\ target*)
4062 am__include=.include
4070 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4071 $as_echo "$_am_result" >&6; }
4072 rm -f confinc confmf
4074 # Check whether --enable-dependency-tracking was given.
4075 if test "${enable_dependency_tracking+set}" = set; then
4076 enableval=$enable_dependency_tracking;
4079 if test "x$enable_dependency_tracking" != xno; then
4080 am_depcomp="$ac_aux_dir/depcomp"
4083 if test "x$enable_dependency_tracking" != xno; then
4093 depcc="$CC" am_compiler_list=
4095 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4096 $as_echo_n "checking dependency style of $depcc... " >&6; }
4097 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4098 $as_echo_n "(cached) " >&6
4100 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4101 # We make a subdir and do the tests there. Otherwise we can end up
4102 # making bogus files that we don't know about and never remove. For
4103 # instance it was reported that on HP-UX the gcc test will end up
4104 # making a dummy file named `D' -- because `-MD' means `put the output
4107 # Copy depcomp to subdir because otherwise we won't find it if we're
4108 # using a relative directory.
4109 cp "$am_depcomp" conftest.dir
4111 # We will build objects and dependencies in a subdirectory because
4112 # it helps to detect inapplicable dependency modes. For instance
4113 # both Tru64's cc and ICC support -MD to output dependencies as a
4114 # side effect of compilation, but ICC will put the dependencies in
4115 # the current directory while Tru64 will put them in the object
4119 am_cv_CC_dependencies_compiler_type=none
4120 if test "$am_compiler_list" = ""; then
4121 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4124 case " $depcc " in #(
4125 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4128 for depmode in $am_compiler_list; do
4129 # Setup a source with many dependencies, because some compilers
4130 # like to wrap large dependency lists on column 80 (with \), and
4131 # we should not choose a depcomp mode which is confused by this.
4133 # We need to recreate these files for each test, as the compiler may
4134 # overwrite some of them when testing with obscure command lines.
4135 # This happens at least with the AIX C compiler.
4137 for i in 1 2 3 4 5 6; do
4138 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4139 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4140 # Solaris 8's {/usr,}/bin/sh.
4141 touch sub/conftst$i.h
4143 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4145 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4146 # mode. It turns out that the SunPro C++ compiler does not properly
4147 # handle `-M -o', and we need to detect this. Also, some Intel
4148 # versions had trouble with output in subdirs
4149 am__obj=sub/conftest.${OBJEXT-o}
4150 am__minus_obj="-o $am__obj"
4153 # This depmode causes a compiler race in universal mode.
4154 test "$am__universal" = false || continue
4157 # after this tag, mechanisms are not by side-effect, so they'll
4158 # only be used when explicitly requested
4159 if test "x$enable_dependency_tracking" = xyes; then
4165 msvisualcpp | msvcmsys)
4166 # This compiler won't grok `-c -o', but also, the minuso test has
4167 # not run yet. These depmodes are late enough in the game, and
4168 # so weak that their functioning should not be impacted.
4169 am__obj=conftest.${OBJEXT-o}
4174 if depmode=$depmode \
4175 source=sub/conftest.c object=$am__obj \
4176 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4177 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4178 >/dev/null 2>conftest.err &&
4179 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4180 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4181 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4182 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4183 # icc doesn't choke on unknown options, it will just issue warnings
4184 # or remarks (even with -Werror). So we grep stderr for any message
4185 # that says an option was ignored or not supported.
4186 # When given -MP, icc 7.0 and 7.1 complain thusly:
4187 # icc: Command line warning: ignoring option '-M'; no argument required
4188 # The diagnosis changed in icc 8.0:
4189 # icc: Command line remark: option '-MP' not supported
4190 if (grep 'ignoring option' conftest.err ||
4191 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4192 am_cv_CC_dependencies_compiler_type=$depmode
4201 am_cv_CC_dependencies_compiler_type=none
4205 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4206 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4207 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4210 test "x$enable_dependency_tracking" != xno \
4211 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4213 am__fastdepCC_FALSE='#'
4215 am__fastdepCC_TRUE='#'
4216 am__fastdepCC_FALSE=
4222 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4223 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4228 macro_version='2.2.6b'
4229 macro_revision='1.3017'
4243 ltmain="$ac_aux_dir/ltmain.sh"
4245 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4246 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4247 if test "${ac_cv_path_SED+set}" = set; then
4248 $as_echo_n "(cached) " >&6
4250 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4251 for ac_i in 1 2 3 4 5 6 7; do
4252 ac_script="$ac_script$as_nl$ac_script"
4254 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4255 $as_unset ac_script || ac_script=
4256 if test -z "$SED"; then
4257 ac_path_SED_found=false
4258 # Loop through the user's path and test for each of PROGNAME-LIST
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 test -z "$as_dir" && as_dir=.
4264 for ac_prog in sed gsed; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4267 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4268 # Check for GNU ac_path_SED and select it if it is found.
4269 # Check for GNU $ac_path_SED
4270 case `"$ac_path_SED" --version 2>&1` in
4272 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4275 $as_echo_n 0123456789 >"conftest.in"
4278 cat "conftest.in" "conftest.in" >"conftest.tmp"
4279 mv "conftest.tmp" "conftest.in"
4280 cp "conftest.in" "conftest.nl"
4281 $as_echo '' >> "conftest.nl"
4282 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284 ac_count=`expr $ac_count + 1`
4285 if test $ac_count -gt ${ac_path_SED_max-0}; then
4286 # Best one so far, save it but keep looking for a better one
4287 ac_cv_path_SED="$ac_path_SED"
4288 ac_path_SED_max=$ac_count
4290 # 10*(2^10) chars as input seems more than enough
4291 test $ac_count -gt 10 && break
4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296 $ac_path_SED_found && break 3
4301 if test -z "$ac_cv_path_SED"; then
4302 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4303 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4304 { (exit 1); exit 1; }; }
4311 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4312 $as_echo "$ac_cv_path_SED" >&6; }
4313 SED="$ac_cv_path_SED"
4316 test -z "$SED" && SED=sed
4317 Xsed="$SED -e 1s/^X//"
4329 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4330 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4331 if test "${ac_cv_path_GREP+set}" = set; then
4332 $as_echo_n "(cached) " >&6
4334 if test -z "$GREP"; then
4335 ac_path_GREP_found=false
4336 # Loop through the user's path and test for each of PROGNAME-LIST
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4341 test -z "$as_dir" && as_dir=.
4342 for ac_prog in grep ggrep; do
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4345 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4346 # Check for GNU ac_path_GREP and select it if it is found.
4347 # Check for GNU $ac_path_GREP
4348 case `"$ac_path_GREP" --version 2>&1` in
4350 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4353 $as_echo_n 0123456789 >"conftest.in"
4356 cat "conftest.in" "conftest.in" >"conftest.tmp"
4357 mv "conftest.tmp" "conftest.in"
4358 cp "conftest.in" "conftest.nl"
4359 $as_echo 'GREP' >> "conftest.nl"
4360 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4362 ac_count=`expr $ac_count + 1`
4363 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4364 # Best one so far, save it but keep looking for a better one
4365 ac_cv_path_GREP="$ac_path_GREP"
4366 ac_path_GREP_max=$ac_count
4368 # 10*(2^10) chars as input seems more than enough
4369 test $ac_count -gt 10 && break
4371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4374 $ac_path_GREP_found && break 3
4379 if test -z "$ac_cv_path_GREP"; then
4380 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4381 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4382 { (exit 1); exit 1; }; }
4385 ac_cv_path_GREP=$GREP
4389 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4390 $as_echo "$ac_cv_path_GREP" >&6; }
4391 GREP="$ac_cv_path_GREP"
4394 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4395 $as_echo_n "checking for egrep... " >&6; }
4396 if test "${ac_cv_path_EGREP+set}" = set; then
4397 $as_echo_n "(cached) " >&6
4399 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4400 then ac_cv_path_EGREP="$GREP -E"
4402 if test -z "$EGREP"; then
4403 ac_path_EGREP_found=false
4404 # Loop through the user's path and test for each of PROGNAME-LIST
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4409 test -z "$as_dir" && as_dir=.
4410 for ac_prog in egrep; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4414 # Check for GNU ac_path_EGREP and select it if it is found.
4415 # Check for GNU $ac_path_EGREP
4416 case `"$ac_path_EGREP" --version 2>&1` in
4418 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4421 $as_echo_n 0123456789 >"conftest.in"
4424 cat "conftest.in" "conftest.in" >"conftest.tmp"
4425 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl"
4427 $as_echo 'EGREP' >> "conftest.nl"
4428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4430 ac_count=`expr $ac_count + 1`
4431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_EGREP="$ac_path_EGREP"
4434 ac_path_EGREP_max=$ac_count
4436 # 10*(2^10) chars as input seems more than enough
4437 test $ac_count -gt 10 && break
4439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442 $ac_path_EGREP_found && break 3
4447 if test -z "$ac_cv_path_EGREP"; then
4448 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4449 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4450 { (exit 1); exit 1; }; }
4453 ac_cv_path_EGREP=$EGREP
4458 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4459 $as_echo "$ac_cv_path_EGREP" >&6; }
4460 EGREP="$ac_cv_path_EGREP"
4463 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4464 $as_echo_n "checking for fgrep... " >&6; }
4465 if test "${ac_cv_path_FGREP+set}" = set; then
4466 $as_echo_n "(cached) " >&6
4468 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4469 then ac_cv_path_FGREP="$GREP -F"
4471 if test -z "$FGREP"; then
4472 ac_path_FGREP_found=false
4473 # Loop through the user's path and test for each of PROGNAME-LIST
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4478 test -z "$as_dir" && as_dir=.
4479 for ac_prog in fgrep; do
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4482 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4483 # Check for GNU ac_path_FGREP and select it if it is found.
4484 # Check for GNU $ac_path_FGREP
4485 case `"$ac_path_FGREP" --version 2>&1` in
4487 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4490 $as_echo_n 0123456789 >"conftest.in"
4493 cat "conftest.in" "conftest.in" >"conftest.tmp"
4494 mv "conftest.tmp" "conftest.in"
4495 cp "conftest.in" "conftest.nl"
4496 $as_echo 'FGREP' >> "conftest.nl"
4497 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4499 ac_count=`expr $ac_count + 1`
4500 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4501 # Best one so far, save it but keep looking for a better one
4502 ac_cv_path_FGREP="$ac_path_FGREP"
4503 ac_path_FGREP_max=$ac_count
4505 # 10*(2^10) chars as input seems more than enough
4506 test $ac_count -gt 10 && break
4508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4511 $ac_path_FGREP_found && break 3
4516 if test -z "$ac_cv_path_FGREP"; then
4517 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4518 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4519 { (exit 1); exit 1; }; }
4522 ac_cv_path_FGREP=$FGREP
4527 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4528 $as_echo "$ac_cv_path_FGREP" >&6; }
4529 FGREP="$ac_cv_path_FGREP"
4532 test -z "$GREP" && GREP=grep
4552 # Check whether --with-gnu-ld was given.
4553 if test "${with_gnu_ld+set}" = set; then
4554 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4560 if test "$GCC" = yes; then
4561 # Check if gcc -print-prog-name=ld gives a path.
4562 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4563 $as_echo_n "checking for ld used by $CC... " >&6; }
4566 # gcc leaves a trailing carriage return which upsets mingw
4567 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4569 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4572 # Accept absolute paths.
4574 re_direlt='/[^/][^/]*/\.\./'
4575 # Canonicalize the pathname of ld
4576 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4577 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4578 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4580 test -z "$LD" && LD="$ac_prog"
4583 # If it fails, then pretend we aren't using GCC.
4587 # If it is relative, then search for the first ld in PATH.
4591 elif test "$with_gnu_ld" = yes; then
4592 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4593 $as_echo_n "checking for GNU ld... " >&6; }
4595 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4596 $as_echo_n "checking for non-GNU ld... " >&6; }
4598 if test "${lt_cv_path_LD+set}" = set; then
4599 $as_echo_n "(cached) " >&6
4601 if test -z "$LD"; then
4602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4603 for ac_dir in $PATH; do
4605 test -z "$ac_dir" && ac_dir=.
4606 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4607 lt_cv_path_LD="$ac_dir/$ac_prog"
4608 # Check to see if the program is GNU ld. I'd rather use --version,
4609 # but apparently some variants of GNU ld only accept -v.
4610 # Break only if it was the GNU/non-GNU ld that we prefer.
4611 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4612 *GNU* | *'with BFD'*)
4613 test "$with_gnu_ld" != no && break
4616 test "$with_gnu_ld" != yes && break
4623 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4628 if test -n "$LD"; then
4629 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4630 $as_echo "$LD" >&6; }
4632 { $as_echo "$as_me:$LINENO: result: no" >&5
4633 $as_echo "no" >&6; }
4635 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4636 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4637 { (exit 1); exit 1; }; }
4638 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4639 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4640 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4641 $as_echo_n "(cached) " >&6
4643 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4644 case `$LD -v 2>&1 </dev/null` in
4645 *GNU* | *'with BFD'*)
4646 lt_cv_prog_gnu_ld=yes
4649 lt_cv_prog_gnu_ld=no
4653 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4654 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4655 with_gnu_ld=$lt_cv_prog_gnu_ld
4665 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4666 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4667 if test "${lt_cv_path_NM+set}" = set; then
4668 $as_echo_n "(cached) " >&6
4670 if test -n "$NM"; then
4671 # Let the user override the test.
4674 lt_nm_to_check="${ac_tool_prefix}nm"
4675 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4676 lt_nm_to_check="$lt_nm_to_check nm"
4678 for lt_tmp_nm in $lt_nm_to_check; do
4679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4680 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4682 test -z "$ac_dir" && ac_dir=.
4683 tmp_nm="$ac_dir/$lt_tmp_nm"
4684 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4685 # Check to see if the nm accepts a BSD-compat flag.
4686 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4687 # nm: unknown option "B" ignored
4688 # Tru64's nm complains that /dev/null is an invalid object file
4689 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4690 */dev/null* | *'Invalid file or object type'*)
4691 lt_cv_path_NM="$tmp_nm -B"
4695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4697 lt_cv_path_NM="$tmp_nm -p"
4701 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4702 continue # so that we can try to find one that supports BSD flags
4711 : ${lt_cv_path_NM=no}
4714 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4715 $as_echo "$lt_cv_path_NM" >&6; }
4716 if test "$lt_cv_path_NM" != "no"; then
4719 # Didn't find any BSD compatible name lister, look for dumpbin.
4720 if test -n "$ac_tool_prefix"; then
4721 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4728 $as_echo_n "(cached) " >&6
4730 if test -n "$DUMPBIN"; then
4731 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 DUMPBIN=$ac_cv_prog_DUMPBIN
4751 if test -n "$DUMPBIN"; then
4752 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4753 $as_echo "$DUMPBIN" >&6; }
4755 { $as_echo "$as_me:$LINENO: result: no" >&5
4756 $as_echo "no" >&6; }
4760 test -n "$DUMPBIN" && break
4763 if test -z "$DUMPBIN"; then
4764 ac_ct_DUMPBIN=$DUMPBIN
4765 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4767 # Extract the first word of "$ac_prog", so it can be a program name with args.
4768 set dummy $ac_prog; ac_word=$2
4769 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4772 $as_echo_n "(cached) " >&6
4774 if test -n "$ac_ct_DUMPBIN"; then
4775 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4785 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4795 if test -n "$ac_ct_DUMPBIN"; then
4796 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4797 $as_echo "$ac_ct_DUMPBIN" >&6; }
4799 { $as_echo "$as_me:$LINENO: result: no" >&5
4800 $as_echo "no" >&6; }
4804 test -n "$ac_ct_DUMPBIN" && break
4807 if test "x$ac_ct_DUMPBIN" = x; then
4810 case $cross_compiling:$ac_tool_warned in
4812 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4814 ac_tool_warned=yes ;;
4816 DUMPBIN=$ac_ct_DUMPBIN
4821 if test "$DUMPBIN" != ":"; then
4825 test -z "$NM" && NM=nm
4832 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4833 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4834 if test "${lt_cv_nm_interface+set}" = set; then
4835 $as_echo_n "(cached) " >&6
4837 lt_cv_nm_interface="BSD nm"
4838 echo "int some_variable = 0;" > conftest.$ac_ext
4839 (eval echo "\"\$as_me:4839: $ac_compile\"" >&5)
4840 (eval "$ac_compile" 2>conftest.err)
4841 cat conftest.err >&5
4842 (eval echo "\"\$as_me:4842: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4843 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4844 cat conftest.err >&5
4845 (eval echo "\"\$as_me:4845: output\"" >&5)
4846 cat conftest.out >&5
4847 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4848 lt_cv_nm_interface="MS dumpbin"
4852 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4853 $as_echo "$lt_cv_nm_interface" >&6; }
4855 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4856 $as_echo_n "checking whether ln -s works... " >&6; }
4858 if test "$LN_S" = "ln -s"; then
4859 { $as_echo "$as_me:$LINENO: result: yes" >&5
4860 $as_echo "yes" >&6; }
4862 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4863 $as_echo "no, using $LN_S" >&6; }
4866 # find the maximum length of command line arguments
4867 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4868 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4869 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4870 $as_echo_n "(cached) " >&6
4877 # On DJGPP, this test can blow up pretty badly due to problems in libc
4878 # (any single argument exceeding 2000 bytes causes a buffer overrun
4879 # during glob expansion). Even if it were fixed, the result of this
4880 # check would be larger than it should be.
4881 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4885 # Under GNU Hurd, this test is not required because there is
4886 # no limit to the length of command line arguments.
4887 # Libtool will interpret -1 as no limit whatsoever
4888 lt_cv_sys_max_cmd_len=-1;
4891 cygwin* | mingw* | cegcc*)
4892 # On Win9x/ME, this test blows up -- it succeeds, but takes
4893 # about 5 minutes as the teststring grows exponentially.
4894 # Worse, since 9x/ME are not pre-emptively multitasking,
4895 # you end up with a "frozen" computer, even though with patience
4896 # the test eventually succeeds (with a max line length of 256k).
4897 # Instead, let's just punt: use the minimum linelength reported by
4898 # all of the supported platforms: 8192 (on NT/2K/XP).
4899 lt_cv_sys_max_cmd_len=8192;
4903 # On AmigaOS with pdksh, this test takes hours, literally.
4904 # So we just punt and use a minimum line length of 8192.
4905 lt_cv_sys_max_cmd_len=8192;
4908 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4909 # This has been around since 386BSD, at least. Likely further.
4910 if test -x /sbin/sysctl; then
4911 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4912 elif test -x /usr/sbin/sysctl; then
4913 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4915 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4917 # And add a safety zone
4918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4923 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4924 lt_cv_sys_max_cmd_len=196608
4928 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4929 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4930 # nice to cause kernel panics so lets avoid the loop below.
4931 # First set a reasonable default.
4932 lt_cv_sys_max_cmd_len=16384
4934 if test -x /sbin/sysconfig; then
4935 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4936 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4941 lt_cv_sys_max_cmd_len=102400
4943 sysv5* | sco5v6* | sysv4.2uw2*)
4944 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4945 if test -n "$kargmax"; then
4946 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4948 lt_cv_sys_max_cmd_len=32768
4952 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4953 if test -n "$lt_cv_sys_max_cmd_len"; then
4954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4957 # Make teststring a little bigger before we do anything with it.
4958 # a 1K string should be a reasonable start.
4959 for i in 1 2 3 4 5 6 7 8 ; do
4960 teststring=$teststring$teststring
4962 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4963 # If test is not a shell built-in, we'll probably end up computing a
4964 # maximum length that is only half of the actual maximum length, but
4966 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4967 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4968 test $i != 17 # 1/2 MB should be enough
4971 teststring=$teststring$teststring
4973 # Only check the string length outside the loop.
4974 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4976 # Add a significant safety factor because C++ compilers can tack on
4977 # massive amounts of additional arguments before passing them to the
4978 # linker. It appears as though 1/2 is a usable value.
4979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4986 if test -n $lt_cv_sys_max_cmd_len ; then
4987 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4988 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4990 { $as_echo "$as_me:$LINENO: result: none" >&5
4991 $as_echo "none" >&6; }
4993 max_cmd_len=$lt_cv_sys_max_cmd_len
5004 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5005 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5006 # Try some XSI features
5009 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5011 && eval 'test $(( 1 + 1 )) -eq 2 \
5012 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5014 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5015 $as_echo "$xsi_shell" >&6; }
5018 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5019 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5021 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5023 && lt_shell_append=yes
5024 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5025 $as_echo "$lt_shell_append" >&6; }
5028 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5038 # test EBCDIC or ASCII
5039 case `echo X|tr X '\101'` in
5040 A) # ASCII based system
5041 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5042 lt_SP2NL='tr \040 \012'
5043 lt_NL2SP='tr \015\012 \040\040'
5045 *) # EBCDIC based system
5046 lt_SP2NL='tr \100 \n'
5047 lt_NL2SP='tr \r\n \100\100'
5059 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5060 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5061 if test "${lt_cv_ld_reload_flag+set}" = set; then
5062 $as_echo_n "(cached) " >&6
5064 lt_cv_ld_reload_flag='-r'
5066 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5067 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5068 reload_flag=$lt_cv_ld_reload_flag
5069 case $reload_flag in
5071 *) reload_flag=" $reload_flag" ;;
5073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5076 if test "$GCC" = yes; then
5077 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5079 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5092 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5094 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5098 $as_echo_n "(cached) " >&6
5100 if test -n "$OBJDUMP"; then
5101 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 OBJDUMP=$ac_cv_prog_OBJDUMP
5121 if test -n "$OBJDUMP"; then
5122 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5123 $as_echo "$OBJDUMP" >&6; }
5125 { $as_echo "$as_me:$LINENO: result: no" >&5
5126 $as_echo "no" >&6; }
5131 if test -z "$ac_cv_prog_OBJDUMP"; then
5132 ac_ct_OBJDUMP=$OBJDUMP
5133 # Extract the first word of "objdump", so it can be a program name with args.
5134 set dummy objdump; ac_word=$2
5135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5138 $as_echo_n "(cached) " >&6
5140 if test -n "$ac_ct_OBJDUMP"; then
5141 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5161 if test -n "$ac_ct_OBJDUMP"; then
5162 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5163 $as_echo "$ac_ct_OBJDUMP" >&6; }
5165 { $as_echo "$as_me:$LINENO: result: no" >&5
5166 $as_echo "no" >&6; }
5169 if test "x$ac_ct_OBJDUMP" = x; then
5172 case $cross_compiling:$ac_tool_warned in
5174 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176 ac_tool_warned=yes ;;
5178 OBJDUMP=$ac_ct_OBJDUMP
5181 OBJDUMP="$ac_cv_prog_OBJDUMP"
5184 test -z "$OBJDUMP" && OBJDUMP=objdump
5194 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5195 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5196 if test "${lt_cv_deplibs_check_method+set}" = set; then
5197 $as_echo_n "(cached) " >&6
5199 lt_cv_file_magic_cmd='$MAGIC_CMD'
5200 lt_cv_file_magic_test_file=
5201 lt_cv_deplibs_check_method='unknown'
5202 # Need to set the preceding variable on all platforms that support
5203 # interlibrary dependencies.
5204 # 'none' -- dependencies not supported.
5205 # `unknown' -- same as none, but documents that we really don't know.
5206 # 'pass_all' -- all dependencies passed with no checks.
5207 # 'test_compile' -- check by making test program.
5208 # 'file_magic [[regex]]' -- check by looking for files in library path
5209 # which responds to the $file_magic_cmd with a given extended regex.
5210 # If you have `file' or equivalent on your system and you're not sure
5211 # whether `pass_all' will *always* work, you probably want this one.
5215 lt_cv_deplibs_check_method=pass_all
5219 lt_cv_deplibs_check_method=pass_all
5223 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5224 lt_cv_file_magic_cmd='/usr/bin/file -L'
5225 lt_cv_file_magic_test_file=/shlib/libc.so
5229 # func_win32_libid is a shell function defined in ltmain.sh
5230 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5231 lt_cv_file_magic_cmd='func_win32_libid'
5235 # Base MSYS/MinGW do not provide the 'file' command needed by
5236 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5237 # unless we find 'file', for example because we are cross-compiling.
5238 if ( file / ) >/dev/null 2>&1; then
5239 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5240 lt_cv_file_magic_cmd='func_win32_libid'
5242 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5243 lt_cv_file_magic_cmd='$OBJDUMP -f'
5248 # use the weaker test based on 'objdump'. See mingw*.
5249 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5250 lt_cv_file_magic_cmd='$OBJDUMP -f'
5253 darwin* | rhapsody*)
5254 lt_cv_deplibs_check_method=pass_all
5257 freebsd* | dragonfly*)
5258 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5261 # Not sure whether the presence of OpenBSD here was a mistake.
5262 # Let's accept both of them until this is cleared up.
5263 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5264 lt_cv_file_magic_cmd=/usr/bin/file
5265 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5269 lt_cv_deplibs_check_method=pass_all
5274 lt_cv_deplibs_check_method=pass_all
5277 hpux10.20* | hpux11*)
5278 lt_cv_file_magic_cmd=/usr/bin/file
5281 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5282 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5285 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]'
5286 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5289 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5290 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5296 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5300 irix5* | irix6* | nonstopux*)
5302 *-32|*"-32 ") libmagic=32-bit;;
5303 *-n32|*"-n32 ") libmagic=N32;;
5304 *-64|*"-64 ") libmagic=64-bit;;
5305 *) libmagic=never-match;;
5307 lt_cv_deplibs_check_method=pass_all
5310 # This must be Linux ELF.
5311 linux* | k*bsd*-gnu)
5312 lt_cv_deplibs_check_method=pass_all
5316 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5325 lt_cv_file_magic_cmd=/usr/bin/file
5326 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5330 lt_cv_deplibs_check_method=pass_all
5334 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5341 osf3* | osf4* | osf5*)
5342 lt_cv_deplibs_check_method=pass_all
5346 lt_cv_deplibs_check_method=pass_all
5350 lt_cv_deplibs_check_method=pass_all
5353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5354 lt_cv_deplibs_check_method=pass_all
5358 case $host_vendor in
5360 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]'
5361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5364 lt_cv_deplibs_check_method=pass_all
5367 lt_cv_file_magic_cmd='/bin/file'
5368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5371 lt_cv_file_magic_cmd='/bin/file'
5372 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5373 lt_cv_file_magic_test_file=/lib/libc.so
5376 lt_cv_deplibs_check_method=pass_all
5379 lt_cv_deplibs_check_method=pass_all
5385 lt_cv_deplibs_check_method=pass_all
5390 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5391 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5392 file_magic_cmd=$lt_cv_file_magic_cmd
5393 deplibs_check_method=$lt_cv_deplibs_check_method
5394 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5407 if test -n "$ac_tool_prefix"; then
5408 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5409 set dummy ${ac_tool_prefix}ar; ac_word=$2
5410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if test "${ac_cv_prog_AR+set}" = set; then
5413 $as_echo_n "(cached) " >&6
5415 if test -n "$AR"; then
5416 ac_cv_prog_AR="$AR" # Let the user override the test.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425 ac_cv_prog_AR="${ac_tool_prefix}ar"
5426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 if test -n "$AR"; then
5437 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5438 $as_echo "$AR" >&6; }
5440 { $as_echo "$as_me:$LINENO: result: no" >&5
5441 $as_echo "no" >&6; }
5446 if test -z "$ac_cv_prog_AR"; then
5448 # Extract the first word of "ar", so it can be a program name with args.
5449 set dummy ar; ac_word=$2
5450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5453 $as_echo_n "(cached) " >&6
5455 if test -n "$ac_ct_AR"; then
5456 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_prog_ac_ct_AR="ar"
5466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5476 if test -n "$ac_ct_AR"; then
5477 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5478 $as_echo "$ac_ct_AR" >&6; }
5480 { $as_echo "$as_me:$LINENO: result: no" >&5
5481 $as_echo "no" >&6; }
5484 if test "x$ac_ct_AR" = x; then
5487 case $cross_compiling:$ac_tool_warned in
5489 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5491 ac_tool_warned=yes ;;
5499 test -z "$AR" && AR=ar
5500 test -z "$AR_FLAGS" && AR_FLAGS=cru
5512 if test -n "$ac_tool_prefix"; then
5513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5514 set dummy ${ac_tool_prefix}strip; ac_word=$2
5515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if test "${ac_cv_prog_STRIP+set}" = set; then
5518 $as_echo_n "(cached) " >&6
5520 if test -n "$STRIP"; then
5521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 STRIP=$ac_cv_prog_STRIP
5541 if test -n "$STRIP"; then
5542 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5543 $as_echo "$STRIP" >&6; }
5545 { $as_echo "$as_me:$LINENO: result: no" >&5
5546 $as_echo "no" >&6; }
5551 if test -z "$ac_cv_prog_STRIP"; then
5553 # Extract the first word of "strip", so it can be a program name with args.
5554 set dummy strip; ac_word=$2
5555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5558 $as_echo_n "(cached) " >&6
5560 if test -n "$ac_ct_STRIP"; then
5561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_ac_ct_STRIP="strip"
5571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5581 if test -n "$ac_ct_STRIP"; then
5582 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5583 $as_echo "$ac_ct_STRIP" >&6; }
5585 { $as_echo "$as_me:$LINENO: result: no" >&5
5586 $as_echo "no" >&6; }
5589 if test "x$ac_ct_STRIP" = x; then
5592 case $cross_compiling:$ac_tool_warned in
5594 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596 ac_tool_warned=yes ;;
5601 STRIP="$ac_cv_prog_STRIP"
5604 test -z "$STRIP" && STRIP=:
5611 if test -n "$ac_tool_prefix"; then
5612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5614 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if test "${ac_cv_prog_RANLIB+set}" = set; then
5617 $as_echo_n "(cached) " >&6
5619 if test -n "$RANLIB"; then
5620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5630 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 RANLIB=$ac_cv_prog_RANLIB
5640 if test -n "$RANLIB"; then
5641 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5642 $as_echo "$RANLIB" >&6; }
5644 { $as_echo "$as_me:$LINENO: result: no" >&5
5645 $as_echo "no" >&6; }
5650 if test -z "$ac_cv_prog_RANLIB"; then
5651 ac_ct_RANLIB=$RANLIB
5652 # Extract the first word of "ranlib", so it can be a program name with args.
5653 set dummy ranlib; ac_word=$2
5654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5657 $as_echo_n "(cached) " >&6
5659 if test -n "$ac_ct_RANLIB"; then
5660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669 ac_cv_prog_ac_ct_RANLIB="ranlib"
5670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5680 if test -n "$ac_ct_RANLIB"; then
5681 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5682 $as_echo "$ac_ct_RANLIB" >&6; }
5684 { $as_echo "$as_me:$LINENO: result: no" >&5
5685 $as_echo "no" >&6; }
5688 if test "x$ac_ct_RANLIB" = x; then
5691 case $cross_compiling:$ac_tool_warned in
5693 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5695 ac_tool_warned=yes ;;
5697 RANLIB=$ac_ct_RANLIB
5700 RANLIB="$ac_cv_prog_RANLIB"
5703 test -z "$RANLIB" && RANLIB=:
5710 # Determine commands to create old-style static archives.
5711 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5712 old_postinstall_cmds='chmod 644 $oldlib'
5713 old_postuninstall_cmds=
5715 if test -n "$RANLIB"; then
5718 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5721 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5724 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5760 # If no C compiler was specified, use CC.
5763 # If no C compiler flags were specified, use CFLAGS.
5764 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5766 # Allow CC to be a program name with arguments.
5770 # Check for command to grab the raw symbol name followed by C symbol from nm.
5771 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5772 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5773 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5774 $as_echo_n "(cached) " >&6
5777 # These are sane defaults that work on at least a few old systems.
5778 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5780 # Character class describing NM global symbol codes.
5781 symcode='[BCDEGRST]'
5783 # Regexp to match symbols that can be accessed directly from C.
5784 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5786 # Define system-specific variables.
5791 cygwin* | mingw* | pw32* | cegcc*)
5792 symcode='[ABCDGISTW]'
5795 if test "$host_cpu" = ia64; then
5796 symcode='[ABCDEGRST]'
5800 symcode='[BCDEGRST]'
5803 symcode='[BCDEGQRST]'
5814 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5822 # If we're using GNU nm, then use its standard symbol codes.
5823 case `$NM -V 2>&1` in
5824 *GNU* | *'with BFD'*)
5825 symcode='[ABCDGIRSTW]' ;;
5828 # Transform an extracted symbol line into a proper C declaration.
5829 # Some systems (esp. on ia64) link data and code symbols differently,
5830 # so use this general approach.
5831 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5833 # Transform an extracted symbol line into symbol name and symbol address
5834 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5835 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'"
5837 # Handle CRLF in mingw tool chain
5841 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5845 # Try without a prefix underscore, then with it.
5846 for ac_symprfx in "" "_"; do
5848 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5849 symxfrm="\\1 $ac_symprfx\\2 \\2"
5851 # Write the raw and C identifiers.
5852 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5853 # Fake it for dumpbin and say T for any non-static function
5854 # and D for any global variable.
5855 # Also find C++ and __fastcall symbols from MSVC++,
5856 # which start with @ or ?.
5857 lt_cv_sys_global_symbol_pipe="$AWK '"\
5858 " {last_section=section; section=\$ 3};"\
5859 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5860 " \$ 0!~/External *\|/{next};"\
5861 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5862 " {if(hide[section]) next};"\
5863 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5864 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5865 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5866 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5867 " ' prfx=^$ac_symprfx"
5869 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5872 # Check to see that the pipe works correctly.
5876 cat > conftest.$ac_ext <<_LT_EOF
5881 void nm_test_func(void);
5882 void nm_test_func(void){}
5886 int main(){nm_test_var='a';nm_test_func();return(0);}
5889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5890 (eval $ac_compile) 2>&5
5892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; then
5894 # Now try to grab the symbols.
5896 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5897 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } && test -s "$nlist"; then
5901 # Try sorting and uniquifying the output.
5902 if sort "$nlist" | uniq > "$nlist"T; then
5903 mv -f "$nlist"T "$nlist"
5908 # Make sure that we snagged all the symbols we need.
5909 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5910 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5911 cat <<_LT_EOF > conftest.$ac_ext
5917 # Now generate the symbol file.
5918 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5920 cat <<_LT_EOF >> conftest.$ac_ext
5922 /* The mapping between symbol names and symbols. */
5927 lt__PROGRAM__LTX_preloaded_symbols[] =
5929 { "@PROGRAM@", (void *) 0 },
5931 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5932 cat <<\_LT_EOF >> conftest.$ac_ext
5936 /* This works around a problem in FreeBSD linker */
5937 #ifdef FREEBSD_WORKAROUND
5938 static const void *lt_preloaded_setup() {
5939 return lt__PROGRAM__LTX_preloaded_symbols;
5947 # Now try linking the two files.
5948 mv conftest.$ac_objext conftstm.$ac_objext
5949 lt_save_LIBS="$LIBS"
5950 lt_save_CFLAGS="$CFLAGS"
5951 LIBS="conftstm.$ac_objext"
5952 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>&5
5956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5960 LIBS="$lt_save_LIBS"
5961 CFLAGS="$lt_save_CFLAGS"
5963 echo "cannot find nm_test_func in $nlist" >&5
5966 echo "cannot find nm_test_var in $nlist" >&5
5969 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5972 echo "$progname: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5975 rm -rf conftest* conftst*
5977 # Do not use the global_symbol_pipe unless it works.
5978 if test "$pipe_works" = yes; then
5981 lt_cv_sys_global_symbol_pipe=
5987 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5988 lt_cv_sys_global_symbol_to_cdecl=
5990 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5991 { $as_echo "$as_me:$LINENO: result: failed" >&5
5992 $as_echo "failed" >&6; }
5994 { $as_echo "$as_me:$LINENO: result: ok" >&5
5995 $as_echo "ok" >&6; }
6020 # Check whether --enable-libtool-lock was given.
6021 if test "${enable_libtool_lock+set}" = set; then
6022 enableval=$enable_libtool_lock;
6025 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6027 # Some flags need to be propagated to the compiler or linker for good
6031 # Find out which ABI we are using.
6032 echo 'int i;' > conftest.$ac_ext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6034 (eval $ac_compile) 2>&5
6036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; then
6038 case `/usr/bin/file conftest.$ac_objext` in
6050 # Find out which ABI we are using.
6051 echo '#line 6051 "configure"' > conftest.$ac_ext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>&5
6055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; then
6057 if test "$lt_cv_prog_gnu_ld" = yes; then
6058 case `/usr/bin/file conftest.$ac_objext` in
6060 LD="${LD-ld} -melf32bsmip"
6063 LD="${LD-ld} -melf32bmipn32"
6066 LD="${LD-ld} -melf64bmip"
6070 case `/usr/bin/file conftest.$ac_objext` in
6086 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6087 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6088 # Find out which ABI we are using.
6089 echo 'int i;' > conftest.$ac_ext
6090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6091 (eval $ac_compile) 2>&5
6093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; then
6095 case `/usr/bin/file conftest.o` in
6098 x86_64-*kfreebsd*-gnu)
6099 LD="${LD-ld} -m elf_i386_fbsd"
6102 LD="${LD-ld} -m elf_i386"
6104 ppc64-*linux*|powerpc64-*linux*)
6105 LD="${LD-ld} -m elf32ppclinux"
6108 LD="${LD-ld} -m elf_s390"
6111 LD="${LD-ld} -m elf32_sparc"
6117 x86_64-*kfreebsd*-gnu)
6118 LD="${LD-ld} -m elf_x86_64_fbsd"
6121 LD="${LD-ld} -m elf_x86_64"
6123 ppc*-*linux*|powerpc*-*linux*)
6124 LD="${LD-ld} -m elf64ppc"
6126 s390*-*linux*|s390*-*tpf*)
6127 LD="${LD-ld} -m elf64_s390"
6130 LD="${LD-ld} -m elf64_sparc"
6140 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6141 SAVE_CFLAGS="$CFLAGS"
6142 CFLAGS="$CFLAGS -belf"
6143 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6144 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6145 if test "${lt_cv_cc_needs_belf+set}" = set; then
6146 $as_echo_n "(cached) " >&6
6149 ac_cpp='$CPP $CPPFLAGS'
6150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6154 cat >conftest.$ac_ext <<_ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6169 rm -f conftest.$ac_objext conftest$ac_exeext
6170 if { (ac_try="$ac_link"
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6176 $as_echo "$ac_try_echo") >&5
6177 (eval "$ac_link") 2>conftest.er1
6179 grep -v '^ *+' conftest.er1 >conftest.err
6181 cat conftest.err >&5
6182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest$ac_exeext && {
6187 test "$cross_compiling" = yes ||
6188 $as_test_x conftest$ac_exeext
6190 lt_cv_cc_needs_belf=yes
6192 $as_echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 lt_cv_cc_needs_belf=no
6198 rm -rf conftest.dSYM
6199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6200 conftest$ac_exeext conftest.$ac_ext
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6209 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6212 CFLAGS="$SAVE_CFLAGS"
6216 # Find out which ABI we are using.
6217 echo 'int i;' > conftest.$ac_ext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219 (eval $ac_compile) 2>&5
6221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; then
6223 case `/usr/bin/file conftest.o` in
6225 case $lt_cv_prog_gnu_ld in
6226 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6228 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6240 need_locks="$enable_libtool_lock"
6244 rhapsody* | darwin*)
6245 if test -n "$ac_tool_prefix"; then
6246 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6251 $as_echo_n "(cached) " >&6
6253 if test -n "$DSYMUTIL"; then
6254 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6274 if test -n "$DSYMUTIL"; then
6275 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6276 $as_echo "$DSYMUTIL" >&6; }
6278 { $as_echo "$as_me:$LINENO: result: no" >&5
6279 $as_echo "no" >&6; }
6284 if test -z "$ac_cv_prog_DSYMUTIL"; then
6285 ac_ct_DSYMUTIL=$DSYMUTIL
6286 # Extract the first word of "dsymutil", so it can be a program name with args.
6287 set dummy dsymutil; ac_word=$2
6288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6291 $as_echo_n "(cached) " >&6
6293 if test -n "$ac_ct_DSYMUTIL"; then
6294 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6314 if test -n "$ac_ct_DSYMUTIL"; then
6315 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6316 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6318 { $as_echo "$as_me:$LINENO: result: no" >&5
6319 $as_echo "no" >&6; }
6322 if test "x$ac_ct_DSYMUTIL" = x; then
6325 case $cross_compiling:$ac_tool_warned in
6327 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329 ac_tool_warned=yes ;;
6331 DSYMUTIL=$ac_ct_DSYMUTIL
6334 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6337 if test -n "$ac_tool_prefix"; then
6338 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6339 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6343 $as_echo_n "(cached) " >&6
6345 if test -n "$NMEDIT"; then
6346 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 NMEDIT=$ac_cv_prog_NMEDIT
6366 if test -n "$NMEDIT"; then
6367 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6368 $as_echo "$NMEDIT" >&6; }
6370 { $as_echo "$as_me:$LINENO: result: no" >&5
6371 $as_echo "no" >&6; }
6376 if test -z "$ac_cv_prog_NMEDIT"; then
6377 ac_ct_NMEDIT=$NMEDIT
6378 # Extract the first word of "nmedit", so it can be a program name with args.
6379 set dummy nmedit; ac_word=$2
6380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6383 $as_echo_n "(cached) " >&6
6385 if test -n "$ac_ct_NMEDIT"; then
6386 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6406 if test -n "$ac_ct_NMEDIT"; then
6407 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6408 $as_echo "$ac_ct_NMEDIT" >&6; }
6410 { $as_echo "$as_me:$LINENO: result: no" >&5
6411 $as_echo "no" >&6; }
6414 if test "x$ac_ct_NMEDIT" = x; then
6417 case $cross_compiling:$ac_tool_warned in
6419 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421 ac_tool_warned=yes ;;
6423 NMEDIT=$ac_ct_NMEDIT
6426 NMEDIT="$ac_cv_prog_NMEDIT"
6429 if test -n "$ac_tool_prefix"; then
6430 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if test "${ac_cv_prog_LIPO+set}" = set; then
6435 $as_echo_n "(cached) " >&6
6437 if test -n "$LIPO"; then
6438 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 LIPO=$ac_cv_prog_LIPO
6458 if test -n "$LIPO"; then
6459 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6460 $as_echo "$LIPO" >&6; }
6462 { $as_echo "$as_me:$LINENO: result: no" >&5
6463 $as_echo "no" >&6; }
6468 if test -z "$ac_cv_prog_LIPO"; then
6470 # Extract the first word of "lipo", so it can be a program name with args.
6471 set dummy lipo; ac_word=$2
6472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6475 $as_echo_n "(cached) " >&6
6477 if test -n "$ac_ct_LIPO"; then
6478 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_ac_ct_LIPO="lipo"
6488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6498 if test -n "$ac_ct_LIPO"; then
6499 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6500 $as_echo "$ac_ct_LIPO" >&6; }
6502 { $as_echo "$as_me:$LINENO: result: no" >&5
6503 $as_echo "no" >&6; }
6506 if test "x$ac_ct_LIPO" = x; then
6509 case $cross_compiling:$ac_tool_warned in
6511 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513 ac_tool_warned=yes ;;
6518 LIPO="$ac_cv_prog_LIPO"
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}otool; ac_word=$2
6524 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if test "${ac_cv_prog_OTOOL+set}" = set; then
6527 $as_echo_n "(cached) " >&6
6529 if test -n "$OTOOL"; then
6530 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6540 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 OTOOL=$ac_cv_prog_OTOOL
6550 if test -n "$OTOOL"; then
6551 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6552 $as_echo "$OTOOL" >&6; }
6554 { $as_echo "$as_me:$LINENO: result: no" >&5
6555 $as_echo "no" >&6; }
6560 if test -z "$ac_cv_prog_OTOOL"; then
6562 # Extract the first word of "otool", so it can be a program name with args.
6563 set dummy otool; ac_word=$2
6564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6567 $as_echo_n "(cached) " >&6
6569 if test -n "$ac_ct_OTOOL"; then
6570 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_ac_ct_OTOOL="otool"
6580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6590 if test -n "$ac_ct_OTOOL"; then
6591 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6592 $as_echo "$ac_ct_OTOOL" >&6; }
6594 { $as_echo "$as_me:$LINENO: result: no" >&5
6595 $as_echo "no" >&6; }
6598 if test "x$ac_ct_OTOOL" = x; then
6601 case $cross_compiling:$ac_tool_warned in
6603 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6610 OTOOL="$ac_cv_prog_OTOOL"
6613 if test -n "$ac_tool_prefix"; then
6614 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6615 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6619 $as_echo_n "(cached) " >&6
6621 if test -n "$OTOOL64"; then
6622 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6632 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 OTOOL64=$ac_cv_prog_OTOOL64
6642 if test -n "$OTOOL64"; then
6643 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6644 $as_echo "$OTOOL64" >&6; }
6646 { $as_echo "$as_me:$LINENO: result: no" >&5
6647 $as_echo "no" >&6; }
6652 if test -z "$ac_cv_prog_OTOOL64"; then
6653 ac_ct_OTOOL64=$OTOOL64
6654 # Extract the first word of "otool64", so it can be a program name with args.
6655 set dummy otool64; ac_word=$2
6656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6659 $as_echo_n "(cached) " >&6
6661 if test -n "$ac_ct_OTOOL64"; then
6662 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_prog_ac_ct_OTOOL64="otool64"
6672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6682 if test -n "$ac_ct_OTOOL64"; then
6683 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6684 $as_echo "$ac_ct_OTOOL64" >&6; }
6686 { $as_echo "$as_me:$LINENO: result: no" >&5
6687 $as_echo "no" >&6; }
6690 if test "x$ac_ct_OTOOL64" = x; then
6693 case $cross_compiling:$ac_tool_warned in
6695 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697 ac_tool_warned=yes ;;
6699 OTOOL64=$ac_ct_OTOOL64
6702 OTOOL64="$ac_cv_prog_OTOOL64"
6731 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6732 $as_echo_n "checking for -single_module linker flag... " >&6; }
6733 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6734 $as_echo_n "(cached) " >&6
6736 lt_cv_apple_cc_single_mod=no
6737 if test -z "${LT_MULTI_MODULE}"; then
6738 # By default we will add the -single_module flag. You can override
6739 # by either setting the environment variable LT_MULTI_MODULE
6740 # non-empty at configure time, or by adding -multi_module to the
6742 rm -rf libconftest.dylib*
6743 echo "int foo(void){return 1;}" > conftest.c
6744 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6745 -dynamiclib -Wl,-single_module conftest.c" >&5
6746 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6747 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6749 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6750 lt_cv_apple_cc_single_mod=yes
6752 cat conftest.err >&5
6754 rm -rf libconftest.dylib*
6758 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6759 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6760 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6761 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6762 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6763 $as_echo_n "(cached) " >&6
6765 lt_cv_ld_exported_symbols_list=no
6766 save_LDFLAGS=$LDFLAGS
6767 echo "_main" > conftest.sym
6768 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6769 cat >conftest.$ac_ext <<_ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6784 rm -f conftest.$ac_objext conftest$ac_exeext
6785 if { (ac_try="$ac_link"
6787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6788 *) ac_try_echo=$ac_try;;
6790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6791 $as_echo "$ac_try_echo") >&5
6792 (eval "$ac_link") 2>conftest.er1
6794 grep -v '^ *+' conftest.er1 >conftest.err
6796 cat conftest.err >&5
6797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } && {
6799 test -z "$ac_c_werror_flag" ||
6800 test ! -s conftest.err
6801 } && test -s conftest$ac_exeext && {
6802 test "$cross_compiling" = yes ||
6803 $as_test_x conftest$ac_exeext
6805 lt_cv_ld_exported_symbols_list=yes
6807 $as_echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6810 lt_cv_ld_exported_symbols_list=no
6813 rm -rf conftest.dSYM
6814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6815 conftest$ac_exeext conftest.$ac_ext
6816 LDFLAGS="$save_LDFLAGS"
6819 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6820 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6822 rhapsody* | darwin1.[012])
6823 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6825 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6826 darwin*) # darwin 5.x on
6827 # if running on 10.5 or later, the deployment target defaults
6828 # to the OS version, if on x86, and 10.4, the deployment
6829 # target defaults to 10.4. Don't you love it?
6830 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6831 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6832 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6834 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6836 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6840 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6841 _lt_dar_single_mod='$single_module'
6843 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6844 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6846 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6848 if test "$DSYMUTIL" != ":"; then
6849 _lt_dsymutil='~$DSYMUTIL $lib || :'
6857 ac_cpp='$CPP $CPPFLAGS'
6858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6861 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6862 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6863 # On Suns, sometimes $CPP names a directory.
6864 if test -n "$CPP" && test -d "$CPP"; then
6867 if test -z "$CPP"; then
6868 if test "${ac_cv_prog_CPP+set}" = set; then
6869 $as_echo_n "(cached) " >&6
6871 # Double quotes because CPP needs to be expanded
6872 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6875 for ac_c_preproc_warn_flag in '' yes
6877 # Use a header file that comes with gcc, so configuring glibc
6878 # with a fresh cross-compiler works.
6879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6880 # <limits.h> exists even on freestanding compilers.
6881 # On the NeXT, cc -E runs the code through the compiler's parser,
6882 # not just through cpp. "Syntax error" is here to catch this case.
6883 cat >conftest.$ac_ext <<_ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6890 # include <limits.h>
6892 # include <assert.h>
6896 if { (ac_try="$ac_cpp conftest.$ac_ext"
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6902 $as_echo "$ac_try_echo") >&5
6903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6905 grep -v '^ *+' conftest.er1 >conftest.err
6907 cat conftest.err >&5
6908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } >/dev/null && {
6910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6915 $as_echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 # Broken: fails on valid input.
6922 rm -f conftest.err conftest.$ac_ext
6924 # OK, works on sane cases. Now check whether nonexistent headers
6925 # can be detected and how.
6926 cat >conftest.$ac_ext <<_ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 #include <ac_nonexistent.h>
6934 if { (ac_try="$ac_cpp conftest.$ac_ext"
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940 $as_echo "$ac_try_echo") >&5
6941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6943 grep -v '^ *+' conftest.er1 >conftest.err
6945 cat conftest.err >&5
6946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } >/dev/null && {
6948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6951 # Broken: success on invalid input.
6954 $as_echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6957 # Passes both tests.
6962 rm -f conftest.err conftest.$ac_ext
6965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6966 rm -f conftest.err conftest.$ac_ext
6967 if $ac_preproc_ok; then
6979 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6980 $as_echo "$CPP" >&6; }
6982 for ac_c_preproc_warn_flag in '' yes
6984 # Use a header file that comes with gcc, so configuring glibc
6985 # with a fresh cross-compiler works.
6986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6987 # <limits.h> exists even on freestanding compilers.
6988 # On the NeXT, cc -E runs the code through the compiler's parser,
6989 # not just through cpp. "Syntax error" is here to catch this case.
6990 cat >conftest.$ac_ext <<_ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6997 # include <limits.h>
6999 # include <assert.h>
7003 if { (ac_try="$ac_cpp conftest.$ac_ext"
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7009 $as_echo "$ac_try_echo") >&5
7010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7012 grep -v '^ *+' conftest.er1 >conftest.err
7014 cat conftest.err >&5
7015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } >/dev/null && {
7017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7022 $as_echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 # Broken: fails on valid input.
7029 rm -f conftest.err conftest.$ac_ext
7031 # OK, works on sane cases. Now check whether nonexistent headers
7032 # can be detected and how.
7033 cat >conftest.$ac_ext <<_ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <ac_nonexistent.h>
7041 if { (ac_try="$ac_cpp conftest.$ac_ext"
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7047 $as_echo "$ac_try_echo") >&5
7048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7050 grep -v '^ *+' conftest.er1 >conftest.err
7052 cat conftest.err >&5
7053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } >/dev/null && {
7055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7058 # Broken: success on invalid input.
7061 $as_echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7064 # Passes both tests.
7069 rm -f conftest.err conftest.$ac_ext
7072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7073 rm -f conftest.err conftest.$ac_ext
7074 if $ac_preproc_ok; then
7077 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7079 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7080 See \`config.log' for more details." >&5
7081 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7082 See \`config.log' for more details." >&2;}
7083 { (exit 1); exit 1; }; }; }
7087 ac_cpp='$CPP $CPPFLAGS'
7088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7093 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7094 $as_echo_n "checking for ANSI C header files... " >&6; }
7095 if test "${ac_cv_header_stdc+set}" = set; then
7096 $as_echo_n "(cached) " >&6
7098 cat >conftest.$ac_ext <<_ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7117 rm -f conftest.$ac_objext
7118 if { (ac_try="$ac_compile"
7120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121 *) ac_try_echo=$ac_try;;
7123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7124 $as_echo "$ac_try_echo") >&5
7125 (eval "$ac_compile") 2>conftest.er1
7127 grep -v '^ *+' conftest.er1 >conftest.err
7129 cat conftest.err >&5
7130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } && {
7132 test -z "$ac_c_werror_flag" ||
7133 test ! -s conftest.err
7134 } && test -s conftest.$ac_objext; then
7135 ac_cv_header_stdc=yes
7137 $as_echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 ac_cv_header_stdc=no
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 if test $ac_cv_header_stdc = yes; then
7146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7147 cat >conftest.$ac_ext <<_ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7157 $EGREP "memchr" >/dev/null 2>&1; then
7160 ac_cv_header_stdc=no
7166 if test $ac_cv_header_stdc = yes; then
7167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7168 cat >conftest.$ac_ext <<_ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7178 $EGREP "free" >/dev/null 2>&1; then
7181 ac_cv_header_stdc=no
7187 if test $ac_cv_header_stdc = yes; then
7188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7189 if test "$cross_compiling" = yes; then
7192 cat >conftest.$ac_ext <<_ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7200 #if ((' ' & 0x0FF) == 0x020)
7201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7204 # define ISLOWER(c) \
7205 (('a' <= (c) && (c) <= 'i') \
7206 || ('j' <= (c) && (c) <= 'r') \
7207 || ('s' <= (c) && (c) <= 'z'))
7208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7216 for (i = 0; i < 256; i++)
7217 if (XOR (islower (i), ISLOWER (i))
7218 || toupper (i) != TOUPPER (i))
7223 rm -f conftest$ac_exeext
7224 if { (ac_try="$ac_link"
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7230 $as_echo "$ac_try_echo") >&5
7231 (eval "$ac_link") 2>&5
7233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7235 { (case "(($ac_try" in
7236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237 *) ac_try_echo=$ac_try;;
7239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7240 $as_echo "$ac_try_echo") >&5
7241 (eval "$ac_try") 2>&5
7243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7247 $as_echo "$as_me: program exited with status $ac_status" >&5
7248 $as_echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7252 ac_cv_header_stdc=no
7254 rm -rf conftest.dSYM
7255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7261 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7262 $as_echo "$ac_cv_header_stdc" >&6; }
7263 if test $ac_cv_header_stdc = yes; then
7265 cat >>confdefs.h <<\_ACEOF
7266 #define STDC_HEADERS 1
7271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7282 inttypes.h stdint.h unistd.h
7284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7285 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7286 $as_echo_n "checking for $ac_header... " >&6; }
7287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7288 $as_echo_n "(cached) " >&6
7290 cat >conftest.$ac_ext <<_ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7296 $ac_includes_default
7298 #include <$ac_header>
7300 rm -f conftest.$ac_objext
7301 if { (ac_try="$ac_compile"
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7307 $as_echo "$ac_try_echo") >&5
7308 (eval "$ac_compile") 2>conftest.er1
7310 grep -v '^ *+' conftest.er1 >conftest.err
7312 cat conftest.err >&5
7313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } && {
7315 test -z "$ac_c_werror_flag" ||
7316 test ! -s conftest.err
7317 } && test -s conftest.$ac_objext; then
7318 eval "$as_ac_Header=yes"
7320 $as_echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 eval "$as_ac_Header=no"
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328 ac_res=`eval 'as_val=${'$as_ac_Header'}
7329 $as_echo "$as_val"'`
7330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7331 $as_echo "$ac_res" >&6; }
7332 as_val=`eval 'as_val=${'$as_ac_Header'}
7333 $as_echo "$as_val"'`
7334 if test "x$as_val" = x""yes; then
7335 cat >>confdefs.h <<_ACEOF
7336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7345 for ac_header in dlfcn.h
7347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7348 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7349 $as_echo_n "checking for $ac_header... " >&6; }
7350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7351 $as_echo_n "(cached) " >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 $ac_includes_default
7361 #include <$ac_header>
7363 rm -f conftest.$ac_objext
7364 if { (ac_try="$ac_compile"
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7370 $as_echo "$ac_try_echo") >&5
7371 (eval "$ac_compile") 2>conftest.er1
7373 grep -v '^ *+' conftest.er1 >conftest.err
7375 cat conftest.err >&5
7376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } && {
7378 test -z "$ac_c_werror_flag" ||
7379 test ! -s conftest.err
7380 } && test -s conftest.$ac_objext; then
7381 eval "$as_ac_Header=yes"
7383 $as_echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7386 eval "$as_ac_Header=no"
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 ac_res=`eval 'as_val=${'$as_ac_Header'}
7392 $as_echo "$as_val"'`
7393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7394 $as_echo "$ac_res" >&6; }
7395 as_val=`eval 'as_val=${'$as_ac_Header'}
7396 $as_echo "$as_val"'`
7397 if test "x$as_val" = x""yes; then
7398 cat >>confdefs.h <<_ACEOF
7399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7418 # Check whether --enable-shared was given.
7419 if test "${enable_shared+set}" = set; then
7420 enableval=$enable_shared; p=${PACKAGE-default}
7422 yes) enable_shared=yes ;;
7423 no) enable_shared=no ;;
7426 # Look at the argument we got. We use all the common list separators.
7427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7428 for pkg in $enableval; do
7430 if test "X$pkg" = "X$p"; then
7449 # Check whether --enable-static was given.
7450 if test "${enable_static+set}" = set; then
7451 enableval=$enable_static; p=${PACKAGE-default}
7453 yes) enable_static=yes ;;
7454 no) enable_static=no ;;
7457 # Look at the argument we got. We use all the common list separators.
7458 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7459 for pkg in $enableval; do
7461 if test "X$pkg" = "X$p"; then
7481 # Check whether --with-pic was given.
7482 if test "${with_pic+set}" = set; then
7483 withval=$with_pic; pic_mode="$withval"
7489 test -z "$pic_mode" && pic_mode=default
7497 # Check whether --enable-fast-install was given.
7498 if test "${enable_fast_install+set}" = set; then
7499 enableval=$enable_fast_install; p=${PACKAGE-default}
7501 yes) enable_fast_install=yes ;;
7502 no) enable_fast_install=no ;;
7504 enable_fast_install=no
7505 # Look at the argument we got. We use all the common list separators.
7506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7507 for pkg in $enableval; do
7509 if test "X$pkg" = "X$p"; then
7510 enable_fast_install=yes
7517 enable_fast_install=yes
7530 # This can be used to rebuild libtool when needed
7531 LIBTOOL_DEPS="$ltmain"
7533 # Always use our own libtool.
7534 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7560 test -z "$LN_S" && LN_S="ln -s"
7575 if test -n "${ZSH_VERSION+set}" ; then
7576 setopt NO_GLOB_SUBST
7579 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7580 $as_echo_n "checking for objdir... " >&6; }
7581 if test "${lt_cv_objdir+set}" = set; then
7582 $as_echo_n "(cached) " >&6
7584 rm -f .libs 2>/dev/null
7585 mkdir .libs 2>/dev/null
7586 if test -d .libs; then
7589 # MS-DOS does not allow filenames that begin with a dot.
7592 rmdir .libs 2>/dev/null
7594 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7595 $as_echo "$lt_cv_objdir" >&6; }
7596 objdir=$lt_cv_objdir
7602 cat >>confdefs.h <<_ACEOF
7603 #define LT_OBJDIR "$lt_cv_objdir/"
7624 # AIX sometimes has problems with the GCC collect2 program. For some
7625 # reason, if we set the COLLECT_NAMES environment variable, the problems
7626 # vanish in a puff of smoke.
7627 if test "X${COLLECT_NAMES+set}" != Xset; then
7629 export COLLECT_NAMES
7634 # Sed substitution that helps us do robust quoting. It backslashifies
7635 # metacharacters that are still active within double-quoted strings.
7636 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7638 # Same as above, but do not quote variable references.
7639 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7641 # Sed substitution to delay expansion of an escaped shell variable in a
7642 # double_quote_subst'ed string.
7643 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7645 # Sed substitution to delay expansion of an escaped single quote.
7646 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7648 # Sed substitution to avoid accidental globbing in evaled expressions
7649 no_glob_subst='s/\*/\\\*/g'
7653 can_build_shared=yes
7655 # All known linkers require a `.a' archive for static linking (except MSVC,
7656 # which needs '.lib').
7659 with_gnu_ld="$lt_cv_prog_gnu_ld"
7662 old_CFLAGS="$CFLAGS"
7664 # Set sane defaults for various variables
7665 test -z "$CC" && CC=cc
7666 test -z "$LTCC" && LTCC=$CC
7667 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7668 test -z "$LD" && LD=ld
7669 test -z "$ac_objext" && ac_objext=o
7671 for cc_temp in $compiler""; do
7673 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7674 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7679 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7682 # Only perform the check for file, if the check method requires it
7683 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7684 case $deplibs_check_method in
7686 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7687 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7688 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7690 $as_echo_n "(cached) " >&6
7694 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7697 lt_save_MAGIC_CMD="$MAGIC_CMD"
7698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7699 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7700 for ac_dir in $ac_dummy; do
7702 test -z "$ac_dir" && ac_dir=.
7703 if test -f $ac_dir/${ac_tool_prefix}file; then
7704 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7705 if test -n "$file_magic_test_file"; then
7706 case $deplibs_check_method in
7708 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7710 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7711 $EGREP "$file_magic_regex" > /dev/null; then
7716 *** Warning: the command libtool uses to detect shared libraries,
7717 *** $file_magic_cmd, produces output that libtool cannot recognize.
7718 *** The result is that libtool may fail to recognize shared libraries
7719 *** as such. This will affect the creation of libtool libraries that
7720 *** depend on shared libraries, but programs linked with such libtool
7721 *** libraries will work regardless of this problem. Nevertheless, you
7722 *** may want to report the problem to your system manager and/or to
7723 *** bug-libtool@gnu.org
7733 MAGIC_CMD="$lt_save_MAGIC_CMD"
7738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7739 if test -n "$MAGIC_CMD"; then
7740 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7741 $as_echo "$MAGIC_CMD" >&6; }
7743 { $as_echo "$as_me:$LINENO: result: no" >&5
7744 $as_echo "no" >&6; }
7751 if test -z "$lt_cv_path_MAGIC_CMD"; then
7752 if test -n "$ac_tool_prefix"; then
7753 { $as_echo "$as_me:$LINENO: checking for file" >&5
7754 $as_echo_n "checking for file... " >&6; }
7755 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7756 $as_echo_n "(cached) " >&6
7760 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7763 lt_save_MAGIC_CMD="$MAGIC_CMD"
7764 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7765 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7766 for ac_dir in $ac_dummy; do
7768 test -z "$ac_dir" && ac_dir=.
7769 if test -f $ac_dir/file; then
7770 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7771 if test -n "$file_magic_test_file"; then
7772 case $deplibs_check_method in
7774 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7775 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7776 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7777 $EGREP "$file_magic_regex" > /dev/null; then
7782 *** Warning: the command libtool uses to detect shared libraries,
7783 *** $file_magic_cmd, produces output that libtool cannot recognize.
7784 *** The result is that libtool may fail to recognize shared libraries
7785 *** as such. This will affect the creation of libtool libraries that
7786 *** depend on shared libraries, but programs linked with such libtool
7787 *** libraries will work regardless of this problem. Nevertheless, you
7788 *** may want to report the problem to your system manager and/or to
7789 *** bug-libtool@gnu.org
7799 MAGIC_CMD="$lt_save_MAGIC_CMD"
7804 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7805 if test -n "$MAGIC_CMD"; then
7806 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7807 $as_echo "$MAGIC_CMD" >&6; }
7809 { $as_echo "$as_me:$LINENO: result: no" >&5
7810 $as_echo "no" >&6; }
7823 # Use C for the default configuration in the libtool script
7827 ac_cpp='$CPP $CPPFLAGS'
7828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833 # Source file extension for C test sources.
7836 # Object file extension for compiled C test sources.
7840 # Code to be used in simple compile tests
7841 lt_simple_compile_test_code="int some_variable = 0;"
7843 # Code to be used in simple link tests
7844 lt_simple_link_test_code='int main(){return(0);}'
7852 # If no C compiler was specified, use CC.
7855 # If no C compiler flags were specified, use CFLAGS.
7856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7858 # Allow CC to be a program name with arguments.
7861 # Save the default compiler, since it gets overwritten when the other
7862 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7863 compiler_DEFAULT=$CC
7865 # save warnings/boilerplate of simple test code
7866 ac_outfile=conftest.$ac_objext
7867 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7868 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7869 _lt_compiler_boilerplate=`cat conftest.err`
7872 ac_outfile=conftest.$ac_objext
7873 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7874 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7875 _lt_linker_boilerplate=`cat conftest.err`
7879 if test -n "$compiler"; then
7881 lt_prog_compiler_no_builtin_flag=
7883 if test "$GCC" = yes; then
7884 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7886 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7887 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7888 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7889 $as_echo_n "(cached) " >&6
7891 lt_cv_prog_compiler_rtti_exceptions=no
7892 ac_outfile=conftest.$ac_objext
7893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7894 lt_compiler_flag="-fno-rtti -fno-exceptions"
7895 # Insert the option either (1) after the last *FLAGS variable, or
7896 # (2) before a word containing "conftest.", or (3) at the end.
7897 # Note that $ac_compile itself does not contain backslashes and begins
7898 # with a dollar sign (not a hyphen), so the echo should work correctly.
7899 # The option is referenced via a variable to avoid confusing sed.
7900 lt_compile=`echo "$ac_compile" | $SED \
7901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7903 -e 's:$: $lt_compiler_flag:'`
7904 (eval echo "\"\$as_me:7904: $lt_compile\"" >&5)
7905 (eval "$lt_compile" 2>conftest.err)
7907 cat conftest.err >&5
7908 echo "$as_me:7908: \$? = $ac_status" >&5
7909 if (exit $ac_status) && test -s "$ac_outfile"; then
7910 # The compiler can only warn and ignore the option if not recognized
7911 # So say no if there are warnings other than the usual output.
7912 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7915 lt_cv_prog_compiler_rtti_exceptions=yes
7921 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7922 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7924 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7925 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7937 lt_prog_compiler_wl=
7938 lt_prog_compiler_pic=
7939 lt_prog_compiler_static=
7941 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7942 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7944 if test "$GCC" = yes; then
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_static='-static'
7950 # All AIX code is PIC.
7951 if test "$host_cpu" = ia64; then
7952 # AIX 5 now supports IA64 processor
7953 lt_prog_compiler_static='-Bstatic'
7960 # see comment about AmigaOS4 .so support
7961 lt_prog_compiler_pic='-fPIC'
7964 # FIXME: we need at least 68020 code to build shared libraries, but
7965 # adding the `-m68020' flag to GCC prevents building anything better,
7967 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7972 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7973 # PIC is the default for these OSes.
7976 mingw* | cygwin* | pw32* | os2* | cegcc*)
7977 # This hack is so that the source file can tell whether it is being
7978 # built for inclusion in a dll (and should export symbols for example).
7979 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7980 # (--disable-auto-import) libraries
7981 lt_prog_compiler_pic='-DDLL_EXPORT'
7984 darwin* | rhapsody*)
7985 # PIC is the default on this platform
7986 # Common symbols not allowed in MH_DYLIB files
7987 lt_prog_compiler_pic='-fno-common'
7991 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7992 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7993 # sets the default TLS model and affects inlining.
7999 lt_prog_compiler_pic='-fPIC'
8005 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8006 # Instead, we relocate shared libraries at runtime.
8010 # Just because we use GCC doesn't mean we suddenly get shared libraries
8011 # on systems that don't support them.
8012 lt_prog_compiler_can_build_shared=no
8017 # QNX uses GNU C++, but need to define -shared option too, otherwise
8019 lt_prog_compiler_pic='-fPIC -shared'
8023 if test -d /usr/nec; then
8024 lt_prog_compiler_pic=-Kconform_pic
8029 lt_prog_compiler_pic='-fPIC'
8033 # PORTME Check for flag to pass linker flags through the system compiler.
8036 lt_prog_compiler_wl='-Wl,'
8037 if test "$host_cpu" = ia64; then
8038 # AIX 5 now supports IA64 processor
8039 lt_prog_compiler_static='-Bstatic'
8041 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8045 mingw* | cygwin* | pw32* | os2* | cegcc*)
8046 # This hack is so that the source file can tell whether it is being
8047 # built for inclusion in a dll (and should export symbols for example).
8048 lt_prog_compiler_pic='-DDLL_EXPORT'
8051 hpux9* | hpux10* | hpux11*)
8052 lt_prog_compiler_wl='-Wl,'
8053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8060 lt_prog_compiler_pic='+Z'
8063 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8064 lt_prog_compiler_static='${wl}-a ${wl}archive'
8067 irix5* | irix6* | nonstopux*)
8068 lt_prog_compiler_wl='-Wl,'
8069 # PIC (with -KPIC) is the default.
8070 lt_prog_compiler_static='-non_shared'
8073 linux* | k*bsd*-gnu)
8074 case $cc_basename in
8075 # old Intel for x86_64 which still supported -KPIC.
8077 lt_prog_compiler_wl='-Wl,'
8078 lt_prog_compiler_pic='-KPIC'
8079 lt_prog_compiler_static='-static'
8081 # icc used to be incompatible with GCC.
8082 # ICC 10 doesn't accept -KPIC any more.
8084 lt_prog_compiler_wl='-Wl,'
8085 lt_prog_compiler_pic='-fPIC'
8086 lt_prog_compiler_static='-static'
8088 # Lahey Fortran 8.1.
8090 lt_prog_compiler_wl='-Wl,'
8091 lt_prog_compiler_pic='--shared'
8092 lt_prog_compiler_static='--static'
8094 pgcc* | pgf77* | pgf90* | pgf95*)
8095 # Portland Group compilers (*not* the Pentium gcc compiler,
8096 # which looks to be a dead project)
8097 lt_prog_compiler_wl='-Wl,'
8098 lt_prog_compiler_pic='-fpic'
8099 lt_prog_compiler_static='-Bstatic'
8102 lt_prog_compiler_wl='-Wl,'
8103 # All Alpha code is PIC.
8104 lt_prog_compiler_static='-non_shared'
8107 # IBM XL C 8.0/Fortran 10.1 on PPC
8108 lt_prog_compiler_wl='-Wl,'
8109 lt_prog_compiler_pic='-qpic'
8110 lt_prog_compiler_static='-qstaticlink'
8113 case `$CC -V 2>&1 | sed 5q` in
8116 lt_prog_compiler_pic='-KPIC'
8117 lt_prog_compiler_static='-Bstatic'
8118 lt_prog_compiler_wl='-Wl,'
8121 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8122 lt_prog_compiler_pic='-KPIC'
8123 lt_prog_compiler_static='-Bstatic'
8124 lt_prog_compiler_wl=''
8132 lt_prog_compiler_pic='-KPIC'
8133 lt_prog_compiler_static='-Bstatic'
8137 # QNX uses GNU C++, but need to define -shared option too, otherwise
8139 lt_prog_compiler_pic='-fPIC -shared'
8142 osf3* | osf4* | osf5*)
8143 lt_prog_compiler_wl='-Wl,'
8144 # All OSF/1 code is PIC.
8145 lt_prog_compiler_static='-non_shared'
8149 lt_prog_compiler_static='-non_shared'
8153 lt_prog_compiler_pic='-KPIC'
8154 lt_prog_compiler_static='-Bstatic'
8155 case $cc_basename in
8157 lt_prog_compiler_wl='-Qoption ld ';;
8159 lt_prog_compiler_wl='-Wl,';;
8164 lt_prog_compiler_wl='-Qoption ld '
8165 lt_prog_compiler_pic='-PIC'
8166 lt_prog_compiler_static='-Bstatic'
8169 sysv4 | sysv4.2uw2* | sysv4.3*)
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-KPIC'
8172 lt_prog_compiler_static='-Bstatic'
8176 if test -d /usr/nec ;then
8177 lt_prog_compiler_pic='-Kconform_pic'
8178 lt_prog_compiler_static='-Bstatic'
8182 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='-KPIC'
8185 lt_prog_compiler_static='-Bstatic'
8189 lt_prog_compiler_wl='-Wl,'
8190 lt_prog_compiler_can_build_shared=no
8194 lt_prog_compiler_pic='-pic'
8195 lt_prog_compiler_static='-Bstatic'
8199 lt_prog_compiler_can_build_shared=no
8205 # For platforms which do not support PIC, -DPIC is meaningless:
8207 lt_prog_compiler_pic=
8210 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8213 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8214 $as_echo "$lt_prog_compiler_pic" >&6; }
8222 # Check to make sure the PIC flag actually works.
8224 if test -n "$lt_prog_compiler_pic"; then
8225 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8226 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8227 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8228 $as_echo_n "(cached) " >&6
8230 lt_cv_prog_compiler_pic_works=no
8231 ac_outfile=conftest.$ac_objext
8232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8233 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8234 # Insert the option either (1) after the last *FLAGS variable, or
8235 # (2) before a word containing "conftest.", or (3) at the end.
8236 # Note that $ac_compile itself does not contain backslashes and begins
8237 # with a dollar sign (not a hyphen), so the echo should work correctly.
8238 # The option is referenced via a variable to avoid confusing sed.
8239 lt_compile=`echo "$ac_compile" | $SED \
8240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8242 -e 's:$: $lt_compiler_flag:'`
8243 (eval echo "\"\$as_me:8243: $lt_compile\"" >&5)
8244 (eval "$lt_compile" 2>conftest.err)
8246 cat conftest.err >&5
8247 echo "$as_me:8247: \$? = $ac_status" >&5
8248 if (exit $ac_status) && test -s "$ac_outfile"; then
8249 # The compiler can only warn and ignore the option if not recognized
8250 # So say no if there are warnings other than the usual output.
8251 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8253 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8254 lt_cv_prog_compiler_pic_works=yes
8260 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8261 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8263 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8264 case $lt_prog_compiler_pic in
8266 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8269 lt_prog_compiler_pic=
8270 lt_prog_compiler_can_build_shared=no
8281 # Check to make sure the static flag actually works.
8283 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8284 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8285 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8286 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8287 $as_echo_n "(cached) " >&6
8289 lt_cv_prog_compiler_static_works=no
8290 save_LDFLAGS="$LDFLAGS"
8291 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8294 # The linker can only warn and ignore the option if not recognized
8295 # So say no if there are warnings
8296 if test -s conftest.err; then
8297 # Append any errors to the config.log.
8298 cat conftest.err 1>&5
8299 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8301 if diff conftest.exp conftest.er2 >/dev/null; then
8302 lt_cv_prog_compiler_static_works=yes
8305 lt_cv_prog_compiler_static_works=yes
8309 LDFLAGS="$save_LDFLAGS"
8312 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8313 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8315 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8318 lt_prog_compiler_static=
8327 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8328 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8329 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8330 $as_echo_n "(cached) " >&6
8332 lt_cv_prog_compiler_c_o=no
8333 $RM -r conftest 2>/dev/null
8337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8339 lt_compiler_flag="-o out/conftest2.$ac_objext"
8340 # Insert the option either (1) after the last *FLAGS variable, or
8341 # (2) before a word containing "conftest.", or (3) at the end.
8342 # Note that $ac_compile itself does not contain backslashes and begins
8343 # with a dollar sign (not a hyphen), so the echo should work correctly.
8344 lt_compile=`echo "$ac_compile" | $SED \
8345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8347 -e 's:$: $lt_compiler_flag:'`
8348 (eval echo "\"\$as_me:8348: $lt_compile\"" >&5)
8349 (eval "$lt_compile" 2>out/conftest.err)
8351 cat out/conftest.err >&5
8352 echo "$as_me:8352: \$? = $ac_status" >&5
8353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8355 # The compiler can only warn and ignore the option if not recognized
8356 # So say no if there are warnings
8357 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8358 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8359 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8360 lt_cv_prog_compiler_c_o=yes
8365 # SGI C++ compiler will create directory out/ii_files/ for
8366 # template instantiation
8367 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8368 $RM out/* && rmdir out
8374 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8375 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8382 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8383 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8384 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8385 $as_echo_n "(cached) " >&6
8387 lt_cv_prog_compiler_c_o=no
8388 $RM -r conftest 2>/dev/null
8392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8394 lt_compiler_flag="-o out/conftest2.$ac_objext"
8395 # Insert the option either (1) after the last *FLAGS variable, or
8396 # (2) before a word containing "conftest.", or (3) at the end.
8397 # Note that $ac_compile itself does not contain backslashes and begins
8398 # with a dollar sign (not a hyphen), so the echo should work correctly.
8399 lt_compile=`echo "$ac_compile" | $SED \
8400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8402 -e 's:$: $lt_compiler_flag:'`
8403 (eval echo "\"\$as_me:8403: $lt_compile\"" >&5)
8404 (eval "$lt_compile" 2>out/conftest.err)
8406 cat out/conftest.err >&5
8407 echo "$as_me:8407: \$? = $ac_status" >&5
8408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8410 # The compiler can only warn and ignore the option if not recognized
8411 # So say no if there are warnings
8412 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8415 lt_cv_prog_compiler_c_o=yes
8420 # SGI C++ compiler will create directory out/ii_files/ for
8421 # template instantiation
8422 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8423 $RM out/* && rmdir out
8429 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8430 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8435 hard_links="nottested"
8436 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8437 # do not overwrite the value of need_locks provided by the user
8438 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8439 $as_echo_n "checking if we can lock with hard links... " >&6; }
8442 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8444 ln conftest.a conftest.b 2>&5 || hard_links=no
8445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8446 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8447 $as_echo "$hard_links" >&6; }
8448 if test "$hard_links" = no; then
8449 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8450 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8462 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8463 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8466 allow_undefined_flag=
8467 always_export_symbols=no
8469 archive_expsym_cmds=
8470 compiler_needs_object=no
8471 enable_shared_with_static_runtimes=no
8472 export_dynamic_flag_spec=
8473 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8474 hardcode_automatic=no
8476 hardcode_direct_absolute=no
8477 hardcode_libdir_flag_spec=
8478 hardcode_libdir_flag_spec_ld=
8479 hardcode_libdir_separator=
8481 hardcode_shlibpath_var=unsupported
8483 link_all_deplibs=unknown
8486 old_archive_from_new_cmds=
8487 old_archive_from_expsyms_cmds=
8488 thread_safe_flag_spec=
8489 whole_archive_flag_spec=
8490 # include_expsyms should be a list of space-separated symbols to be *always*
8491 # included in the symbol list
8493 # exclude_expsyms can be an extended regexp of symbols to exclude
8494 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8495 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8496 # as well as any symbol that contains `d'.
8497 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8498 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8499 # platforms (ab)use it in PIC code, but their linkers get confused if
8500 # the symbol is explicitly referenced. Since portable code cannot
8501 # rely on this symbol name, it's probably fine to never include it in
8502 # preloaded symbol tables.
8503 # Exclude shared library initialization/finalization symbols.
8504 extract_expsyms_cmds=
8507 cygwin* | mingw* | pw32* | cegcc*)
8508 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8509 # When not using gcc, we currently assume that we are using
8510 # Microsoft Visual C++.
8511 if test "$GCC" != yes; then
8516 # we just hope/assume this is gcc and not c89 (= MSVC++)
8525 if test "$with_gnu_ld" = yes; then
8526 # If archive_cmds runs LD, not CC, wlarc should be empty
8529 # Set some defaults for GNU ld with shared library support. These
8530 # are reset later if shared libraries are not supported. Putting them
8531 # here allows them to be overridden if necessary.
8532 runpath_var=LD_RUN_PATH
8533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8534 export_dynamic_flag_spec='${wl}--export-dynamic'
8535 # ancient GNU ld didn't support --whole-archive et. al.
8536 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8537 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8539 whole_archive_flag_spec=
8541 supports_anon_versioning=no
8542 case `$LD -v 2>&1` in
8543 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8544 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8545 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8546 *\ 2.11.*) ;; # other 2.11 versions
8547 *) supports_anon_versioning=yes ;;
8550 # See if GNU ld supports shared libraries.
8553 # On AIX/PPC, the GNU linker is very broken
8554 if test "$host_cpu" != ia64; then
8558 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8559 *** to be unable to reliably create shared libraries on AIX.
8560 *** Therefore, libtool is disabling shared libraries support. If you
8561 *** really care for shared libraries, you may want to modify your PATH
8562 *** so that a non-GNU linker is found, and then restart.
8571 # see comment about AmigaOS4 .so support
8572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8573 archive_expsym_cmds=''
8576 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)'
8577 hardcode_libdir_flag_spec='-L$libdir'
8578 hardcode_minus_L=yes
8584 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8585 allow_undefined_flag=unsupported
8586 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8587 # support --undefined. This deserves some investigation. FIXME
8588 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594 cygwin* | mingw* | pw32* | cegcc*)
8595 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8596 # as there is no search path for DLLs.
8597 hardcode_libdir_flag_spec='-L$libdir'
8598 allow_undefined_flag=unsupported
8599 always_export_symbols=no
8600 enable_shared_with_static_runtimes=yes
8601 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8603 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8605 # If the export-symbols file already is a .def file (1st line
8606 # is EXPORTS), use it as is; otherwise, prepend...
8607 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8608 cp $export_symbols $output_objdir/$soname.def;
8610 echo EXPORTS > $output_objdir/$soname.def;
8611 cat $export_symbols >> $output_objdir/$soname.def;
8613 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8621 hardcode_shlibpath_var=no
8622 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8623 export_dynamic_flag_spec='${wl}-E'
8624 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8625 # Instead, shared libraries are loaded at an image base (0x10000000 by
8626 # default) and relocated if they conflict, which is a slow very memory
8627 # consuming and fragmenting process. To avoid this, we pick a random,
8628 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8629 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8631 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'
8634 gnu* | linux* | tpf* | k*bsd*-gnu)
8636 if test "$host_os" = linux-dietlibc; then
8637 case $cc_basename in
8638 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8641 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8642 && test "$tmp_diet" = no
8645 tmp_sharedflag='-shared'
8646 case $cc_basename,$host_cpu in
8647 pgcc*) # Portland Group C compiler
8648 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'
8649 tmp_addflag=' $pic_flag'
8651 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8652 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'
8653 tmp_addflag=' $pic_flag -Mnomain' ;;
8654 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8655 tmp_addflag=' -i_dynamic' ;;
8656 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8657 tmp_addflag=' -i_dynamic -nofor_main' ;;
8658 ifc* | ifort*) # Intel Fortran compiler
8659 tmp_addflag=' -nofor_main' ;;
8660 lf95*) # Lahey Fortran 8.1
8661 whole_archive_flag_spec=
8662 tmp_sharedflag='--shared' ;;
8663 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8664 tmp_sharedflag='-qmkshrobj'
8667 case `$CC -V 2>&1 | sed 5q` in
8668 *Sun\ C*) # Sun C 5.9
8669 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'
8670 compiler_needs_object=yes
8671 tmp_sharedflag='-G' ;;
8672 *Sun\ F*) # Sun Fortran 8.3
8673 tmp_sharedflag='-G' ;;
8675 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8677 if test "x$supports_anon_versioning" = xyes; then
8678 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8679 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8680 echo "local: *; };" >> $output_objdir/$libname.ver~
8681 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8684 case $cc_basename in
8686 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8687 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8688 hardcode_libdir_flag_spec=
8689 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8690 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8691 if test "x$supports_anon_versioning" = xyes; then
8692 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8693 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8694 echo "local: *; };" >> $output_objdir/$libname.ver~
8695 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8706 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8719 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8720 *** create shared libraries on Solaris systems. Therefore, libtool
8721 *** is disabling shared libraries support. We urge you to upgrade GNU
8722 *** binutils to release 2.9.1 or newer. Another option is to modify
8723 *** your PATH or compiler configuration so that the native linker is
8724 *** used, and then restart.
8727 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8736 case `$LD -v 2>&1` in
8737 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8741 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8742 *** reliably create shared libraries on SCO systems. Therefore, libtool
8743 *** is disabling shared libraries support. We urge you to upgrade GNU
8744 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8745 *** your PATH or compiler configuration so that the native linker is
8746 *** used, and then restart.
8751 # For security reasons, it is highly recommended that you always
8752 # use absolute paths for naming shared libraries, and exclude the
8753 # DT_RUNPATH tag from executables and libraries. But doing so
8754 # requires that you compile everything twice, which is a pain.
8755 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8767 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_shlibpath_var=no
8774 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8783 if test "$ld_shlibs" = no; then
8785 hardcode_libdir_flag_spec=
8786 export_dynamic_flag_spec=
8787 whole_archive_flag_spec=
8790 # PORTME fill in a description of your system's linker (not GNU ld)
8793 allow_undefined_flag=unsupported
8794 always_export_symbols=yes
8795 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'
8796 # Note: this linker hardcodes the directories in LIBPATH if there
8797 # are no directories specified by -L.
8798 hardcode_minus_L=yes
8799 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8800 # Neither direct hardcoding nor static linking is supported with a
8802 hardcode_direct=unsupported
8807 if test "$host_cpu" = ia64; then
8808 # On IA64, the linker does run time linking by default, so we don't
8809 # have to do anything special.
8810 aix_use_runtimelinking=no
8811 exp_sym_flag='-Bexport'
8814 # If we're using GNU nm, then we don't want the "-C" option.
8815 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8816 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8817 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'
8819 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'
8821 aix_use_runtimelinking=no
8823 # Test if we are trying to use run time linking or normal
8824 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8825 # need to do runtime linking.
8826 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8827 for ld_flag in $LDFLAGS; do
8828 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8829 aix_use_runtimelinking=yes
8836 exp_sym_flag='-bexport'
8837 no_entry_flag='-bnoentry'
8840 # When large executables or shared objects are built, AIX ld can
8841 # have problems creating the table of contents. If linking a library
8842 # or program results in "error TOC overflow" add -mminimal-toc to
8843 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8844 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8848 hardcode_direct_absolute=yes
8849 hardcode_libdir_separator=':'
8850 link_all_deplibs=yes
8851 file_list_spec='${wl}-f,'
8853 if test "$GCC" = yes; then
8854 case $host_os in aix4.[012]|aix4.[012].*)
8855 # We only want to do this on AIX 4.2 and lower, the check
8856 # below for broken collect2 doesn't work under 4.3+
8857 collect2name=`${CC} -print-prog-name=collect2`
8858 if test -f "$collect2name" &&
8859 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8861 # We have reworked collect2
8864 # We have old collect2
8865 hardcode_direct=unsupported
8866 # It fails to find uninstalled libraries when the uninstalled
8867 # path is not listed in the libpath. Setting hardcode_minus_L
8868 # to unsupported forces relinking
8869 hardcode_minus_L=yes
8870 hardcode_libdir_flag_spec='-L$libdir'
8871 hardcode_libdir_separator=
8875 shared_flag='-shared'
8876 if test "$aix_use_runtimelinking" = yes; then
8877 shared_flag="$shared_flag "'${wl}-G'
8881 if test "$host_cpu" = ia64; then
8882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8883 # chokes on -Wl,-G. The following line is correct:
8886 if test "$aix_use_runtimelinking" = yes; then
8887 shared_flag='${wl}-G'
8889 shared_flag='${wl}-bM:SRE'
8894 export_dynamic_flag_spec='${wl}-bexpall'
8895 # It seems that -bexpall does not export symbols beginning with
8896 # underscore (_), so it is better to generate a list of symbols to export.
8897 always_export_symbols=yes
8898 if test "$aix_use_runtimelinking" = yes; then
8899 # Warning - without using the other runtime loading flags (-brtl),
8900 # -berok will link without error, but may produce a broken library.
8901 allow_undefined_flag='-berok'
8902 # Determine the default libpath from the value encoded in an
8904 cat >conftest.$ac_ext <<_ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (ac_try="$ac_link"
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8926 $as_echo "$ac_try_echo") >&5
8927 (eval "$ac_link") 2>conftest.er1
8929 grep -v '^ *+' conftest.er1 >conftest.err
8931 cat conftest.err >&5
8932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } && {
8934 test -z "$ac_c_werror_flag" ||
8935 test ! -s conftest.err
8936 } && test -s conftest$ac_exeext && {
8937 test "$cross_compiling" = yes ||
8938 $as_test_x conftest$ac_exeext
8941 lt_aix_libpath_sed='
8942 /Import File Strings/,/^$/ {
8948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8949 # Check for a 64-bit object if we didn't find anything.
8950 if test -z "$aix_libpath"; then
8951 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8954 $as_echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8960 rm -rf conftest.dSYM
8961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8962 conftest$ac_exeext conftest.$ac_ext
8963 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8965 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8966 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"
8968 if test "$host_cpu" = ia64; then
8969 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8970 allow_undefined_flag="-z nodefs"
8971 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"
8973 # Determine the default libpath from the value encoded in an
8975 cat >conftest.$ac_ext <<_ACEOF
8978 cat confdefs.h >>conftest.$ac_ext
8979 cat >>conftest.$ac_ext <<_ACEOF
8980 /* end confdefs.h. */
8990 rm -f conftest.$ac_objext conftest$ac_exeext
8991 if { (ac_try="$ac_link"
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8997 $as_echo "$ac_try_echo") >&5
8998 (eval "$ac_link") 2>conftest.er1
9000 grep -v '^ *+' conftest.er1 >conftest.err
9002 cat conftest.err >&5
9003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && {
9005 test -z "$ac_c_werror_flag" ||
9006 test ! -s conftest.err
9007 } && test -s conftest$ac_exeext && {
9008 test "$cross_compiling" = yes ||
9009 $as_test_x conftest$ac_exeext
9012 lt_aix_libpath_sed='
9013 /Import File Strings/,/^$/ {
9019 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9020 # Check for a 64-bit object if we didn't find anything.
9021 if test -z "$aix_libpath"; then
9022 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9025 $as_echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9031 rm -rf conftest.dSYM
9032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9033 conftest$ac_exeext conftest.$ac_ext
9034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9037 # Warning - without using the other run time loading flags,
9038 # -berok will link without error, but may produce a broken library.
9039 no_undefined_flag=' ${wl}-bernotok'
9040 allow_undefined_flag=' ${wl}-berok'
9041 # Exported symbols can be pulled into shared objects from archives
9042 whole_archive_flag_spec='$convenience'
9043 archive_cmds_need_lc=yes
9044 # This is similar to how AIX traditionally builds its shared libraries.
9045 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'
9053 # see comment about AmigaOS4 .so support
9054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9055 archive_expsym_cmds=''
9058 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)'
9059 hardcode_libdir_flag_spec='-L$libdir'
9060 hardcode_minus_L=yes
9066 export_dynamic_flag_spec=-rdynamic
9069 cygwin* | mingw* | pw32* | cegcc*)
9070 # When not using gcc, we currently assume that we are using
9071 # Microsoft Visual C++.
9072 # hardcode_libdir_flag_spec is actually meaningless, as there is
9073 # no search path for DLLs.
9074 hardcode_libdir_flag_spec=' '
9075 allow_undefined_flag=unsupported
9076 # Tell ltmain to make .lib files, not .a files.
9078 # Tell ltmain to make .dll files, not .so files.
9080 # FIXME: Setting linknames here is a bad hack.
9081 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9082 # The linker will automatically build a .lib file if we build a DLL.
9083 old_archive_from_new_cmds='true'
9084 # FIXME: Should let the user specify the lib program.
9085 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9086 fix_srcfile_path='`cygpath -w "$srcfile"`'
9087 enable_shared_with_static_runtimes=yes
9090 darwin* | rhapsody*)
9093 archive_cmds_need_lc=no
9095 hardcode_automatic=yes
9096 hardcode_shlibpath_var=unsupported
9097 whole_archive_flag_spec=''
9098 link_all_deplibs=yes
9099 allow_undefined_flag="$_lt_dar_allow_undefined"
9100 case $cc_basename in
9101 ifort*) _lt_dar_can_shared=yes ;;
9102 *) _lt_dar_can_shared=$GCC ;;
9104 if test "$_lt_dar_can_shared" = "yes"; then
9105 output_verbose_link_cmd=echo
9106 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9107 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9108 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}"
9109 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}"
9118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9119 hardcode_libdir_flag_spec='-L$libdir'
9120 hardcode_shlibpath_var=no
9127 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9128 # support. Future versions do this automatically, but an explicit c++rt0.o
9129 # does not break anything, and helps significantly (at the cost of a little
9132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9133 hardcode_libdir_flag_spec='-R$libdir'
9135 hardcode_shlibpath_var=no
9138 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9142 hardcode_minus_L=yes
9143 hardcode_shlibpath_var=no
9146 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9147 freebsd* | dragonfly*)
9148 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9149 hardcode_libdir_flag_spec='-R$libdir'
9151 hardcode_shlibpath_var=no
9155 if test "$GCC" = yes; then
9156 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'
9158 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'
9160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9161 hardcode_libdir_separator=:
9164 # hardcode_minus_L: Not really in the search PATH,
9165 # but as the default location of the library.
9166 hardcode_minus_L=yes
9167 export_dynamic_flag_spec='${wl}-E'
9171 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9172 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9174 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9176 if test "$with_gnu_ld" = no; then
9177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9178 hardcode_libdir_flag_spec_ld='+b $libdir'
9179 hardcode_libdir_separator=:
9181 hardcode_direct_absolute=yes
9182 export_dynamic_flag_spec='${wl}-E'
9183 # hardcode_minus_L: Not really in the search PATH,
9184 # but as the default location of the library.
9185 hardcode_minus_L=yes
9190 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9193 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9196 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9199 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9205 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9208 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9211 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9215 if test "$with_gnu_ld" = no; then
9216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9217 hardcode_libdir_separator=:
9222 hardcode_shlibpath_var=no
9226 hardcode_direct_absolute=yes
9227 export_dynamic_flag_spec='${wl}-E'
9229 # hardcode_minus_L: Not really in the search PATH,
9230 # but as the default location of the library.
9231 hardcode_minus_L=yes
9237 irix5* | irix6* | nonstopux*)
9238 if test "$GCC" = yes; then
9239 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'
9240 # Try to use the -exported_symbol ld option, if it does not
9241 # work, assume that -exports_file does not work either and
9242 # implicitly export all symbols.
9243 save_LDFLAGS="$LDFLAGS"
9244 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9245 cat >conftest.$ac_ext <<_ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (ac_try="$ac_link"
9251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9252 *) ac_try_echo=$ac_try;;
9254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9255 $as_echo "$ac_try_echo") >&5
9256 (eval "$ac_link") 2>conftest.er1
9258 grep -v '^ *+' conftest.er1 >conftest.err
9260 cat conftest.err >&5
9261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest$ac_exeext && {
9266 test "$cross_compiling" = yes ||
9267 $as_test_x conftest$ac_exeext
9269 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'
9272 $as_echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9278 rm -rf conftest.dSYM
9279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9280 conftest$ac_exeext conftest.$ac_ext
9281 LDFLAGS="$save_LDFLAGS"
9283 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'
9284 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'
9286 archive_cmds_need_lc='no'
9287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9288 hardcode_libdir_separator=:
9290 link_all_deplibs=yes
9294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9295 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9297 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9299 hardcode_libdir_flag_spec='-R$libdir'
9301 hardcode_shlibpath_var=no
9305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9308 hardcode_libdir_separator=:
9309 hardcode_shlibpath_var=no
9316 if test -f /usr/libexec/ld.so; then
9318 hardcode_shlibpath_var=no
9319 hardcode_direct_absolute=yes
9320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9321 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9322 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9323 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9324 export_dynamic_flag_spec='${wl}-E'
9327 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9329 hardcode_libdir_flag_spec='-R$libdir'
9332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9343 hardcode_libdir_flag_spec='-L$libdir'
9344 hardcode_minus_L=yes
9345 allow_undefined_flag=unsupported
9346 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'
9347 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9351 if test "$GCC" = yes; then
9352 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9353 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'
9355 allow_undefined_flag=' -expect_unresolved \*'
9356 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'
9358 archive_cmds_need_lc='no'
9359 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9360 hardcode_libdir_separator=:
9363 osf4* | osf5*) # as osf3* with the addition of -msym flag
9364 if test "$GCC" = yes; then
9365 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9366 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'
9367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9369 allow_undefined_flag=' -expect_unresolved \*'
9370 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'
9371 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~
9372 $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'
9374 # Both c and cxx compiler support -rpath directly
9375 hardcode_libdir_flag_spec='-rpath $libdir'
9377 archive_cmds_need_lc='no'
9378 hardcode_libdir_separator=:
9382 no_undefined_flag=' -z defs'
9383 if test "$GCC" = yes; then
9385 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9386 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9387 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9389 case `$CC -V 2>&1` in
9392 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9394 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9398 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9399 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9400 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9404 hardcode_libdir_flag_spec='-R$libdir'
9405 hardcode_shlibpath_var=no
9407 solaris2.[0-5] | solaris2.[0-5].*) ;;
9409 # The compiler driver will combine and reorder linker options,
9410 # but understands `-z linker_flag'. GCC discards it without `$wl',
9411 # but is careful enough not to reorder.
9412 # Supported since Solaris 2.6 (maybe 2.5.1?)
9413 if test "$GCC" = yes; then
9414 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9416 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9420 link_all_deplibs=yes
9424 if test "x$host_vendor" = xsequent; then
9425 # Use $CC to link under sequent, because it throws in some extra .o
9426 # files that make .init and .fini sections work.
9427 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9429 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9431 hardcode_libdir_flag_spec='-L$libdir'
9433 hardcode_minus_L=yes
9434 hardcode_shlibpath_var=no
9438 case $host_vendor in
9440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9441 hardcode_direct=yes # is this really true???
9444 ## LD is ld it makes a PLAMLIB
9445 ## CC just makes a GrossModule.
9446 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9447 reload_cmds='$CC -r -o $output$reload_objs'
9451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9452 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9455 runpath_var='LD_RUN_PATH'
9456 hardcode_shlibpath_var=no
9460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461 hardcode_shlibpath_var=no
9462 export_dynamic_flag_spec='-Bexport'
9466 if test -d /usr/nec; then
9467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468 hardcode_shlibpath_var=no
9469 runpath_var=LD_RUN_PATH
9470 hardcode_runpath_var=yes
9475 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9476 no_undefined_flag='${wl}-z,text'
9477 archive_cmds_need_lc=no
9478 hardcode_shlibpath_var=no
9479 runpath_var='LD_RUN_PATH'
9481 if test "$GCC" = yes; then
9482 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9485 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490 sysv5* | sco3.2v5* | sco5v6*)
9491 # Note: We can NOT use -z defs as we might desire, because we do not
9492 # link with -lc, and that would cause any symbols used from libc to
9493 # always be unresolved, which means just about no library would
9494 # ever link correctly. If we're not using GNU ld we use -z text
9495 # though, which does catch some bad symbols but isn't as heavy-handed
9497 no_undefined_flag='${wl}-z,text'
9498 allow_undefined_flag='${wl}-z,nodefs'
9499 archive_cmds_need_lc=no
9500 hardcode_shlibpath_var=no
9501 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9502 hardcode_libdir_separator=':'
9503 link_all_deplibs=yes
9504 export_dynamic_flag_spec='${wl}-Bexport'
9505 runpath_var='LD_RUN_PATH'
9507 if test "$GCC" = yes; then
9508 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518 hardcode_libdir_flag_spec='-L$libdir'
9519 hardcode_shlibpath_var=no
9527 if test x$host_vendor = xsni; then
9529 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9530 export_dynamic_flag_spec='${wl}-Blargedynsym'
9536 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9537 $as_echo "$ld_shlibs" >&6; }
9538 test "$ld_shlibs" = no && can_build_shared=no
9540 with_gnu_ld=$with_gnu_ld
9557 # Do we need to explicitly link libc?
9559 case "x$archive_cmds_need_lc" in
9561 # Assume -lc should be added
9562 archive_cmds_need_lc=yes
9564 if test "$enable_shared" = yes && test "$GCC" = yes; then
9565 case $archive_cmds in
9567 # FIXME: we may have to deal with multi-command sequences.
9570 # Test whether the compiler implicitly links with -lc since on some
9571 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9572 # to ld, don't add -lc before -lgcc.
9573 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9574 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579 (eval $ac_compile) 2>&5
9581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } 2>conftest.err; then
9585 libobjs=conftest.$ac_objext
9587 wl=$lt_prog_compiler_wl
9588 pic_flag=$lt_prog_compiler_pic
9594 lt_save_allow_undefined_flag=$allow_undefined_flag
9595 allow_undefined_flag=
9596 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9597 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }
9602 archive_cmds_need_lc=no
9604 archive_cmds_need_lc=yes
9606 allow_undefined_flag=$lt_save_allow_undefined_flag
9608 cat conftest.err 1>&5
9611 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9612 $as_echo "$archive_cmds_need_lc" >&6; }
9775 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9776 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9778 if test "$GCC" = yes; then
9780 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9781 *) lt_awk_arg="/^libraries:/" ;;
9783 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9784 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9785 # if the path contains ";" then we assume it to be the separator
9786 # otherwise default to the standard path separator (i.e. ":") - it is
9787 # assumed that no part of a normal pathname contains ";" but that should
9788 # okay in the real world where ";" in dirpaths is itself problematic.
9789 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9793 # Ok, now we have the path, separated by spaces, we can step through it
9794 # and add multilib dir if necessary.
9795 lt_tmp_lt_search_path_spec=
9796 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9797 for lt_sys_path in $lt_search_path_spec; do
9798 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9799 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9801 test -d "$lt_sys_path" && \
9802 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9805 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9806 BEGIN {RS=" "; FS="/|\n";} {
9809 for (lt_i = NF; lt_i > 0; lt_i--) {
9810 if ($lt_i != "" && $lt_i != ".") {
9811 if ($lt_i == "..") {
9814 if (lt_count == 0) {
9815 lt_foo="/" $lt_i lt_foo;
9822 if (lt_foo != "") { lt_freq[lt_foo]++; }
9823 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9825 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9827 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9830 libname_spec='lib$name'
9838 shlibpath_overrides_runpath=unknown
9840 dynamic_linker="$host_os ld.so"
9841 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9842 need_lib_prefix=unknown
9843 hardcode_into_libs=no
9845 # when you set need_version to no, make sure it does not cause -set_version
9846 # flags to be left without arguments
9847 need_version=unknown
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9853 shlibpath_var=LIBPATH
9855 # AIX 3 has no versioning support, so we append a major version to the name.
9856 soname_spec='${libname}${release}${shared_ext}$major'
9863 hardcode_into_libs=yes
9864 if test "$host_cpu" = ia64; then
9865 # AIX 5 supports IA64
9866 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9867 shlibpath_var=LD_LIBRARY_PATH
9869 # With GCC up to 2.95.x, collect2 would create an import file
9870 # for dependence libraries. The import file would start with
9871 # the line `#! .'. This would cause the generated library to
9872 # depend on `.', always an invalid library. This was fixed in
9873 # development snapshots of GCC prior to 3.0.
9875 aix4 | aix4.[01] | aix4.[01].*)
9876 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9878 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9885 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9886 # soname into executable. Probably we can add versioning support to
9887 # collect2, so additional links can be useful in future.
9888 if test "$aix_use_runtimelinking" = yes; then
9889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9890 # instead of lib<name>.a to let people know that these are not
9891 # typical AIX shared libraries.
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894 # We preserve .a as extension for shared libraries through AIX4.2
9895 # and later when we are not doing run time linking.
9896 library_names_spec='${libname}${release}.a $libname.a'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9899 shlibpath_var=LIBPATH
9906 # Since July 2007 AmigaOS4 officially supports .so libraries.
9907 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9911 library_names_spec='$libname.ixlibrary $libname.a'
9912 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9913 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'
9919 library_names_spec='${libname}${shared_ext}'
9920 dynamic_linker="$host_os ld.so"
9921 shlibpath_var=LIBRARY_PATH
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9933 # the default ld.so.conf also contains /usr/contrib/lib and
9934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9935 # libtool to hard-code these into programs
9938 cygwin* | mingw* | pw32* | cegcc*)
9939 version_type=windows
9944 case $GCC,$host_os in
9945 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9946 library_names_spec='$libname.dll.a'
9947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9948 postinstall_cmds='base_file=`basename \${file}`~
9949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9950 dldir=$destdir/`dirname \$dlpath`~
9951 test -d \$dldir || mkdir -p \$dldir~
9952 $install_prog $dir/$dlname \$dldir/$dlname~
9953 chmod a+x \$dldir/$dlname~
9954 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9955 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9958 dlpath=$dir/\$dldll~
9960 shlibpath_overrides_runpath=yes
9964 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9965 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9966 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9969 # MinGW DLLs use traditional 'lib' prefix
9970 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9971 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9972 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9973 # It is most probably a Windows format PATH printed by
9974 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9975 # path with ; separators, and with drive letters. We can handle the
9976 # drive letters (cygwin fileutils understands them), so leave them,
9977 # especially as we might pass files found there to a mingw objdump,
9978 # which wouldn't understand a cygwinified path. Ahh.
9979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9985 # pw32 DLLs use 'pw' prefix rather than 'lib'
9986 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9992 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9995 dynamic_linker='Win32 ld.exe'
9996 # FIXME: first we should search . and the directory the executable is in
10000 darwin* | rhapsody*)
10001 dynamic_linker="$host_os dyld"
10002 version_type=darwin
10005 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10006 soname_spec='${libname}${release}${major}$shared_ext'
10007 shlibpath_overrides_runpath=yes
10008 shlibpath_var=DYLD_LIBRARY_PATH
10009 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10011 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10012 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 shlibpath_var=LD_LIBRARY_PATH
10028 freebsd* | dragonfly*)
10029 # DragonFly does not have aout. When/if they implement a new
10030 # versioning mechanism, adjust this.
10031 if test -x /usr/bin/objformat; then
10032 objformat=`/usr/bin/objformat`
10035 freebsd[123]*) objformat=aout ;;
10036 *) objformat=elf ;;
10039 version_type=freebsd-$objformat
10040 case $version_type in
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10051 shlibpath_var=LD_LIBRARY_PATH
10054 shlibpath_overrides_runpath=yes
10056 freebsd3.[01]* | freebsdelf3.[01]*)
10057 shlibpath_overrides_runpath=yes
10058 hardcode_into_libs=yes
10060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10062 shlibpath_overrides_runpath=no
10063 hardcode_into_libs=yes
10065 *) # from 4.6 on, and DragonFly
10066 shlibpath_overrides_runpath=yes
10067 hardcode_into_libs=yes
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 shlibpath_var=LD_LIBRARY_PATH
10079 hardcode_into_libs=yes
10082 hpux9* | hpux10* | hpux11*)
10083 # Give a soname corresponding to the major version so that dld.sl refuses to
10084 # link against other versions.
10091 hardcode_into_libs=yes
10092 dynamic_linker="$host_os dld.so"
10093 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
10098 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10106 hardcode_into_libs=yes
10107 dynamic_linker="$host_os dld.sl"
10108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10117 dynamic_linker="$host_os dld.sl"
10118 shlibpath_var=SHLIB_PATH
10119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121 soname_spec='${libname}${release}${shared_ext}$major'
10124 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10125 postinstall_cmds='chmod 555 $lib'
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10135 shlibpath_var=LD_LIBRARY_PATH
10136 shlibpath_overrides_runpath=no
10137 hardcode_into_libs=yes
10140 irix5* | irix6* | nonstopux*)
10142 nonstopux*) version_type=nonstopux ;;
10144 if test "$lt_cv_prog_gnu_ld" = yes; then
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10155 irix5* | nonstopux*)
10156 libsuff= shlibsuff=
10159 case $LD in # libtool.m4 will add one of these switches to LD
10160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10161 libsuff= shlibsuff= libmagic=32-bit;;
10162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10163 libsuff=32 shlibsuff=N32 libmagic=N32;;
10164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10166 *) libsuff= shlibsuff= libmagic=never-match;;
10170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10171 shlibpath_overrides_runpath=no
10172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10174 hardcode_into_libs=yes
10177 # No shared lib support for Linux oldld, aout, or coff.
10178 linux*oldld* | linux*aout* | linux*coff*)
10182 # This must be Linux ELF.
10183 linux* | k*bsd*-gnu)
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 shlibpath_overrides_runpath=no
10192 # Some binutils ld are patched to set DT_RUNPATH
10193 save_LDFLAGS=$LDFLAGS
10194 save_libdir=$libdir
10195 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10196 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10197 cat >conftest.$ac_ext <<_ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10212 rm -f conftest.$ac_objext conftest$ac_exeext
10213 if { (ac_try="$ac_link"
10214 case "(($ac_try" in
10215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216 *) ac_try_echo=$ac_try;;
10218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10219 $as_echo "$ac_try_echo") >&5
10220 (eval "$ac_link") 2>conftest.er1
10222 grep -v '^ *+' conftest.er1 >conftest.err
10224 cat conftest.err >&5
10225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } && {
10227 test -z "$ac_c_werror_flag" ||
10228 test ! -s conftest.err
10229 } && test -s conftest$ac_exeext && {
10230 test "$cross_compiling" = yes ||
10231 $as_test_x conftest$ac_exeext
10233 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10234 shlibpath_overrides_runpath=yes
10238 $as_echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10244 rm -rf conftest.dSYM
10245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10246 conftest$ac_exeext conftest.$ac_ext
10247 LDFLAGS=$save_LDFLAGS
10248 libdir=$save_libdir
10250 # This implies no fast_install, which is unacceptable.
10251 # Some rework will be needed to allow for fast_install
10252 # before this can be enabled.
10253 hardcode_into_libs=yes
10255 # Add ABI-specific directories to the system library path.
10256 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10258 # Append ld.so.conf contents to the search path
10259 if test -f /etc/ld.so.conf; then
10260 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' ' '`
10261 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10264 # We used to test for /lib/ld.so.1 and disable shared libraries on
10265 # powerpc, because MkLinux only supported shared libraries with the
10266 # GNU dynamic linker. Since this was broken with cross compilers,
10267 # most powerpc-linux boxes support dynamic linking these days and
10268 # people can always --disable-shared, the test was removed, and we
10269 # assume the GNU/Linux dynamic linker is in use.
10270 dynamic_linker='GNU/Linux ld.so'
10277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10280 dynamic_linker='NetBSD (a.out) ld.so'
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10283 soname_spec='${libname}${release}${shared_ext}$major'
10284 dynamic_linker='NetBSD ld.elf_so'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath=yes
10288 hardcode_into_libs=yes
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 shlibpath_overrides_runpath=yes
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303 soname_spec='${libname}${release}${shared_ext}$major'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=no
10306 hardcode_into_libs=yes
10307 dynamic_linker='ldqnx.so'
10312 sys_lib_dlsearch_path_spec="/usr/lib"
10314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10316 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10317 *) need_version=no ;;
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10321 shlibpath_var=LD_LIBRARY_PATH
10322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10324 openbsd2.[89] | openbsd2.[89].*)
10325 shlibpath_overrides_runpath=no
10328 shlibpath_overrides_runpath=yes
10332 shlibpath_overrides_runpath=yes
10337 libname_spec='$name'
10340 library_names_spec='$libname${shared_ext} $libname.a'
10341 dynamic_linker='OS/2 ld.exe'
10342 shlibpath_var=LIBPATH
10345 osf3* | osf4* | osf5*)
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10353 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 shlibpath_overrides_runpath=yes
10368 hardcode_into_libs=yes
10369 # ldd complains unless libraries are executable
10370 postinstall_cmds='chmod +x $lib'
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10376 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=yes
10379 if test "$with_gnu_ld" = yes; then
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 case $host_vendor in
10392 shlibpath_overrides_runpath=no
10394 runpath_var=LD_RUN_PATH
10402 shlibpath_overrides_runpath=no
10403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10409 if test -d /usr/nec ;then
10411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10412 soname_spec='$libname${shared_ext}.$major'
10413 shlibpath_var=LD_LIBRARY_PATH
10417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10418 version_type=freebsd-elf
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 shlibpath_overrides_runpath=yes
10425 hardcode_into_libs=yes
10426 if test "$with_gnu_ld" = yes; then
10427 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10432 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10436 sys_lib_dlsearch_path_spec='/usr/lib'
10440 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445 shlibpath_var=LD_LIBRARY_PATH
10446 shlibpath_overrides_runpath=no
10447 hardcode_into_libs=yes
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453 soname_spec='${libname}${release}${shared_ext}$major'
10454 shlibpath_var=LD_LIBRARY_PATH
10461 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10462 $as_echo "$dynamic_linker" >&6; }
10463 test "$dynamic_linker" = no && can_build_shared=no
10465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10466 if test "$GCC" = yes; then
10467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10470 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10471 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10473 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10474 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10563 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10564 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10566 if test -n "$hardcode_libdir_flag_spec" ||
10567 test -n "$runpath_var" ||
10568 test "X$hardcode_automatic" = "Xyes" ; then
10570 # We can hardcode non-existent directories.
10571 if test "$hardcode_direct" != no &&
10572 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10573 # have to relink, otherwise we might link with an installed library
10574 # when we should be linking with a yet-to-be-installed one
10575 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10576 test "$hardcode_minus_L" != no; then
10577 # Linking always hardcodes the temporary library directory.
10578 hardcode_action=relink
10580 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10581 hardcode_action=immediate
10584 # We cannot hardcode anything, or else we can only hardcode existing
10586 hardcode_action=unsupported
10588 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10589 $as_echo "$hardcode_action" >&6; }
10591 if test "$hardcode_action" = relink ||
10592 test "$inherit_rpath" = yes; then
10593 # Fast installation is not supported
10594 enable_fast_install=no
10595 elif test "$shlibpath_overrides_runpath" = yes ||
10596 test "$enable_shared" = no; then
10597 # Fast installation is not necessary
10598 enable_fast_install=needless
10606 if test "x$enable_dlopen" != xyes; then
10607 enable_dlopen=unknown
10608 enable_dlopen_self=unknown
10609 enable_dlopen_self_static=unknown
10616 lt_cv_dlopen="load_add_on"
10618 lt_cv_dlopen_self=yes
10621 mingw* | pw32* | cegcc*)
10622 lt_cv_dlopen="LoadLibrary"
10627 lt_cv_dlopen="dlopen"
10632 # if libdl is installed we need to link against it
10633 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10634 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10635 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10636 $as_echo_n "(cached) " >&6
10638 ac_check_lib_save_LIBS=$LIBS
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10647 /* Override any GCC internal prototype to avoid an error.
10648 Use char because int might match the return type of a GCC
10649 builtin and then its argument prototype would still apply. */
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (ac_try="$ac_link"
10664 case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10669 $as_echo "$ac_try_echo") >&5
10670 (eval "$ac_link") 2>conftest.er1
10672 grep -v '^ *+' conftest.er1 >conftest.err
10674 cat conftest.err >&5
10675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } && {
10677 test -z "$ac_c_werror_flag" ||
10678 test ! -s conftest.err
10679 } && test -s conftest$ac_exeext && {
10680 test "$cross_compiling" = yes ||
10681 $as_test_x conftest$ac_exeext
10683 ac_cv_lib_dl_dlopen=yes
10685 $as_echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10688 ac_cv_lib_dl_dlopen=no
10691 rm -rf conftest.dSYM
10692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10697 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10698 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10702 lt_cv_dlopen="dyld"
10704 lt_cv_dlopen_self=yes
10711 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10712 $as_echo_n "checking for shl_load... " >&6; }
10713 if test "${ac_cv_func_shl_load+set}" = set; then
10714 $as_echo_n "(cached) " >&6
10716 cat >conftest.$ac_ext <<_ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10724 #define shl_load innocuous_shl_load
10726 /* System header to define __stub macros and hopefully few prototypes,
10727 which can conflict with char shl_load (); below.
10728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10729 <limits.h> exists even on freestanding compilers. */
10732 # include <limits.h>
10734 # include <assert.h>
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10746 /* The GNU C library defines this for functions which it implements
10747 to always fail with ENOSYS. Some functions are actually named
10748 something starting with __ and the normal name is an alias. */
10749 #if defined __stub_shl_load || defined __stub___shl_load
10756 return shl_load ();
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10768 $as_echo "$ac_try_echo") >&5
10769 (eval "$ac_link") 2>conftest.er1
10771 grep -v '^ *+' conftest.er1 >conftest.err
10773 cat conftest.err >&5
10774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } && {
10776 test -z "$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 } && test -s conftest$ac_exeext && {
10779 test "$cross_compiling" = yes ||
10780 $as_test_x conftest$ac_exeext
10782 ac_cv_func_shl_load=yes
10784 $as_echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ac_cv_func_shl_load=no
10790 rm -rf conftest.dSYM
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792 conftest$ac_exeext conftest.$ac_ext
10794 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10795 $as_echo "$ac_cv_func_shl_load" >&6; }
10796 if test "x$ac_cv_func_shl_load" = x""yes; then
10797 lt_cv_dlopen="shl_load"
10799 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10800 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10801 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10802 $as_echo_n "(cached) " >&6
10804 ac_check_lib_save_LIBS=$LIBS
10806 cat >conftest.$ac_ext <<_ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10813 /* Override any GCC internal prototype to avoid an error.
10814 Use char because int might match the return type of a GCC
10815 builtin and then its argument prototype would still apply. */
10823 return shl_load ();
10828 rm -f conftest.$ac_objext conftest$ac_exeext
10829 if { (ac_try="$ac_link"
10830 case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10835 $as_echo "$ac_try_echo") >&5
10836 (eval "$ac_link") 2>conftest.er1
10838 grep -v '^ *+' conftest.er1 >conftest.err
10840 cat conftest.err >&5
10841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest$ac_exeext && {
10846 test "$cross_compiling" = yes ||
10847 $as_test_x conftest$ac_exeext
10849 ac_cv_lib_dld_shl_load=yes
10851 $as_echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 ac_cv_lib_dld_shl_load=no
10857 rm -rf conftest.dSYM
10858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10859 conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10862 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10863 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10864 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10865 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10867 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10868 $as_echo_n "checking for dlopen... " >&6; }
10869 if test "${ac_cv_func_dlopen+set}" = set; then
10870 $as_echo_n "(cached) " >&6
10872 cat >conftest.$ac_ext <<_ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10880 #define dlopen innocuous_dlopen
10882 /* System header to define __stub macros and hopefully few prototypes,
10883 which can conflict with char dlopen (); below.
10884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10885 <limits.h> exists even on freestanding compilers. */
10888 # include <limits.h>
10890 # include <assert.h>
10895 /* Override any GCC internal prototype to avoid an error.
10896 Use char because int might match the return type of a GCC
10897 builtin and then its argument prototype would still apply. */
10902 /* The GNU C library defines this for functions which it implements
10903 to always fail with ENOSYS. Some functions are actually named
10904 something starting with __ and the normal name is an alias. */
10905 #if defined __stub_dlopen || defined __stub___dlopen
10917 rm -f conftest.$ac_objext conftest$ac_exeext
10918 if { (ac_try="$ac_link"
10919 case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10924 $as_echo "$ac_try_echo") >&5
10925 (eval "$ac_link") 2>conftest.er1
10927 grep -v '^ *+' conftest.er1 >conftest.err
10929 cat conftest.err >&5
10930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && {
10932 test -z "$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 } && test -s conftest$ac_exeext && {
10935 test "$cross_compiling" = yes ||
10936 $as_test_x conftest$ac_exeext
10938 ac_cv_func_dlopen=yes
10940 $as_echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 ac_cv_func_dlopen=no
10946 rm -rf conftest.dSYM
10947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10948 conftest$ac_exeext conftest.$ac_ext
10950 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10951 $as_echo "$ac_cv_func_dlopen" >&6; }
10952 if test "x$ac_cv_func_dlopen" = x""yes; then
10953 lt_cv_dlopen="dlopen"
10955 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10956 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10957 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10958 $as_echo_n "(cached) " >&6
10960 ac_check_lib_save_LIBS=$LIBS
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10969 /* Override any GCC internal prototype to avoid an error.
10970 Use char because int might match the return type of a GCC
10971 builtin and then its argument prototype would still apply. */
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (ac_try="$ac_link"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10991 $as_echo "$ac_try_echo") >&5
10992 (eval "$ac_link") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } && {
10999 test -z "$ac_c_werror_flag" ||
11000 test ! -s conftest.err
11001 } && test -s conftest$ac_exeext && {
11002 test "$cross_compiling" = yes ||
11003 $as_test_x conftest$ac_exeext
11005 ac_cv_lib_dl_dlopen=yes
11007 $as_echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11010 ac_cv_lib_dl_dlopen=no
11013 rm -rf conftest.dSYM
11014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11018 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11019 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11020 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11023 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11024 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11026 $as_echo_n "(cached) " >&6
11028 ac_check_lib_save_LIBS=$LIBS
11029 LIBS="-lsvld $LIBS"
11030 cat >conftest.$ac_ext <<_ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11037 /* Override any GCC internal prototype to avoid an error.
11038 Use char because int might match the return type of a GCC
11039 builtin and then its argument prototype would still apply. */
11052 rm -f conftest.$ac_objext conftest$ac_exeext
11053 if { (ac_try="$ac_link"
11054 case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11059 $as_echo "$ac_try_echo") >&5
11060 (eval "$ac_link") 2>conftest.er1
11062 grep -v '^ *+' conftest.er1 >conftest.err
11064 cat conftest.err >&5
11065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && {
11067 test -z "$ac_c_werror_flag" ||
11068 test ! -s conftest.err
11069 } && test -s conftest$ac_exeext && {
11070 test "$cross_compiling" = yes ||
11071 $as_test_x conftest$ac_exeext
11073 ac_cv_lib_svld_dlopen=yes
11075 $as_echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 ac_cv_lib_svld_dlopen=no
11081 rm -rf conftest.dSYM
11082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11083 conftest$ac_exeext conftest.$ac_ext
11084 LIBS=$ac_check_lib_save_LIBS
11086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11087 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11088 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11091 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11092 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11093 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11094 $as_echo_n "(cached) " >&6
11096 ac_check_lib_save_LIBS=$LIBS
11098 cat >conftest.$ac_ext <<_ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11105 /* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11115 return dld_link ();
11120 rm -f conftest.$ac_objext conftest$ac_exeext
11121 if { (ac_try="$ac_link"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11127 $as_echo "$ac_try_echo") >&5
11128 (eval "$ac_link") 2>conftest.er1
11130 grep -v '^ *+' conftest.er1 >conftest.err
11132 cat conftest.err >&5
11133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest$ac_exeext && {
11138 test "$cross_compiling" = yes ||
11139 $as_test_x conftest$ac_exeext
11141 ac_cv_lib_dld_dld_link=yes
11143 $as_echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 ac_cv_lib_dld_dld_link=no
11149 rm -rf conftest.dSYM
11150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11151 conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_lib_save_LIBS
11154 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11155 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11156 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11157 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11178 if test "x$lt_cv_dlopen" != xno; then
11184 case $lt_cv_dlopen in
11186 save_CPPFLAGS="$CPPFLAGS"
11187 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11189 save_LDFLAGS="$LDFLAGS"
11190 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11193 LIBS="$lt_cv_dlopen_libs $LIBS"
11195 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11196 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11197 if test "${lt_cv_dlopen_self+set}" = set; then
11198 $as_echo_n "(cached) " >&6
11200 if test "$cross_compiling" = yes; then :
11201 lt_cv_dlopen_self=cross
11203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11204 lt_status=$lt_dlunknown
11205 cat > conftest.$ac_ext <<_LT_EOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11216 # define LT_DLGLOBAL RTLD_GLOBAL
11219 # define LT_DLGLOBAL DL_GLOBAL
11221 # define LT_DLGLOBAL 0
11225 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11226 find out it does not work in some platform. */
11227 #ifndef LT_DLLAZY_OR_NOW
11229 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11232 # define LT_DLLAZY_OR_NOW DL_LAZY
11235 # define LT_DLLAZY_OR_NOW RTLD_NOW
11238 # define LT_DLLAZY_OR_NOW DL_NOW
11240 # define LT_DLLAZY_OR_NOW 0
11247 void fnord() { int i=42;}
11250 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11251 int status = $lt_dlunknown;
11255 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11256 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11257 /* dlclose (self); */
11265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11266 (eval $ac_link) 2>&5
11268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11270 (./conftest; exit; ) >&5 2>/dev/null
11272 case x$lt_status in
11273 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11274 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11275 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11278 # compilation failed
11279 lt_cv_dlopen_self=no
11286 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11287 $as_echo "$lt_cv_dlopen_self" >&6; }
11289 if test "x$lt_cv_dlopen_self" = xyes; then
11290 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11291 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11292 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11293 if test "${lt_cv_dlopen_self_static+set}" = set; then
11294 $as_echo_n "(cached) " >&6
11296 if test "$cross_compiling" = yes; then :
11297 lt_cv_dlopen_self_static=cross
11299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11300 lt_status=$lt_dlunknown
11301 cat > conftest.$ac_ext <<_LT_EOF
11302 #line 11302 "configure"
11303 #include "confdefs.h"
11312 # define LT_DLGLOBAL RTLD_GLOBAL
11315 # define LT_DLGLOBAL DL_GLOBAL
11317 # define LT_DLGLOBAL 0
11321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11322 find out it does not work in some platform. */
11323 #ifndef LT_DLLAZY_OR_NOW
11325 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11328 # define LT_DLLAZY_OR_NOW DL_LAZY
11331 # define LT_DLLAZY_OR_NOW RTLD_NOW
11334 # define LT_DLLAZY_OR_NOW DL_NOW
11336 # define LT_DLLAZY_OR_NOW 0
11343 void fnord() { int i=42;}
11346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11347 int status = $lt_dlunknown;
11351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11352 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11353 /* dlclose (self); */
11361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11362 (eval $ac_link) 2>&5
11364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11366 (./conftest; exit; ) >&5 2>/dev/null
11368 case x$lt_status in
11369 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11370 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11371 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11374 # compilation failed
11375 lt_cv_dlopen_self_static=no
11382 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11383 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11386 CPPFLAGS="$save_CPPFLAGS"
11387 LDFLAGS="$save_LDFLAGS"
11392 case $lt_cv_dlopen_self in
11393 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11394 *) enable_dlopen_self=unknown ;;
11397 case $lt_cv_dlopen_self_static in
11398 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11399 *) enable_dlopen_self_static=unknown ;;
11421 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11422 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11423 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11424 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11425 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11426 { $as_echo "$as_me:$LINENO: result: yes" >&5
11427 $as_echo "yes" >&6; }
11429 # FIXME - insert some real tests, host_os isn't really good enough
11432 if test -n "$STRIP" ; then
11433 striplib="$STRIP -x"
11434 old_striplib="$STRIP -S"
11435 { $as_echo "$as_me:$LINENO: result: yes" >&5
11436 $as_echo "yes" >&6; }
11438 { $as_echo "$as_me:$LINENO: result: no" >&5
11439 $as_echo "no" >&6; }
11443 { $as_echo "$as_me:$LINENO: result: no" >&5
11444 $as_echo "no" >&6; }
11460 # Report which library types will actually be built
11461 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11462 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11463 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11464 $as_echo "$can_build_shared" >&6; }
11466 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11467 $as_echo_n "checking whether to build shared libraries... " >&6; }
11468 test "$can_build_shared" = "no" && enable_shared=no
11470 # On AIX, shared libraries and static libraries use the same namespace, and
11471 # are all built from PIC.
11474 test "$enable_shared" = yes && enable_static=no
11475 if test -n "$RANLIB"; then
11476 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11477 postinstall_cmds='$RANLIB $lib'
11482 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11483 test "$enable_shared" = yes && enable_static=no
11487 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11488 $as_echo "$enable_shared" >&6; }
11490 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11491 $as_echo_n "checking whether to build static libraries... " >&6; }
11492 # Make sure either enable_shared or enable_static is yes.
11493 test "$enable_shared" = yes || enable_static=yes
11494 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11495 $as_echo "$enable_static" >&6; }
11502 ac_cpp='$CPP $CPPFLAGS'
11503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11521 ac_config_commands="$ac_config_commands libtool"
11526 # Only expand once:
11529 # By default we simply use the C compiler to build assembly code.
11531 test "${CCAS+set}" = set || CCAS=$CC
11532 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11536 depcc="$CCAS" am_compiler_list=
11538 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11539 $as_echo_n "checking dependency style of $depcc... " >&6; }
11540 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11541 $as_echo_n "(cached) " >&6
11543 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11544 # We make a subdir and do the tests there. Otherwise we can end up
11545 # making bogus files that we don't know about and never remove. For
11546 # instance it was reported that on HP-UX the gcc test will end up
11547 # making a dummy file named `D' -- because `-MD' means `put the output
11550 # Copy depcomp to subdir because otherwise we won't find it if we're
11551 # using a relative directory.
11552 cp "$am_depcomp" conftest.dir
11554 # We will build objects and dependencies in a subdirectory because
11555 # it helps to detect inapplicable dependency modes. For instance
11556 # both Tru64's cc and ICC support -MD to output dependencies as a
11557 # side effect of compilation, but ICC will put the dependencies in
11558 # the current directory while Tru64 will put them in the object
11562 am_cv_CCAS_dependencies_compiler_type=none
11563 if test "$am_compiler_list" = ""; then
11564 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11566 am__universal=false
11569 for depmode in $am_compiler_list; do
11570 # Setup a source with many dependencies, because some compilers
11571 # like to wrap large dependency lists on column 80 (with \), and
11572 # we should not choose a depcomp mode which is confused by this.
11574 # We need to recreate these files for each test, as the compiler may
11575 # overwrite some of them when testing with obscure command lines.
11576 # This happens at least with the AIX C compiler.
11578 for i in 1 2 3 4 5 6; do
11579 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11580 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11581 # Solaris 8's {/usr,}/bin/sh.
11582 touch sub/conftst$i.h
11584 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11586 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11587 # mode. It turns out that the SunPro C++ compiler does not properly
11588 # handle `-M -o', and we need to detect this. Also, some Intel
11589 # versions had trouble with output in subdirs
11590 am__obj=sub/conftest.${OBJEXT-o}
11591 am__minus_obj="-o $am__obj"
11594 # This depmode causes a compiler race in universal mode.
11595 test "$am__universal" = false || continue
11598 # after this tag, mechanisms are not by side-effect, so they'll
11599 # only be used when explicitly requested
11600 if test "x$enable_dependency_tracking" = xyes; then
11606 msvisualcpp | msvcmsys)
11607 # This compiler won't grok `-c -o', but also, the minuso test has
11608 # not run yet. These depmodes are late enough in the game, and
11609 # so weak that their functioning should not be impacted.
11610 am__obj=conftest.${OBJEXT-o}
11615 if depmode=$depmode \
11616 source=sub/conftest.c object=$am__obj \
11617 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11618 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11619 >/dev/null 2>conftest.err &&
11620 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11621 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11622 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11623 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11624 # icc doesn't choke on unknown options, it will just issue warnings
11625 # or remarks (even with -Werror). So we grep stderr for any message
11626 # that says an option was ignored or not supported.
11627 # When given -MP, icc 7.0 and 7.1 complain thusly:
11628 # icc: Command line warning: ignoring option '-M'; no argument required
11629 # The diagnosis changed in icc 8.0:
11630 # icc: Command line remark: option '-MP' not supported
11631 if (grep 'ignoring option' conftest.err ||
11632 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11633 am_cv_CCAS_dependencies_compiler_type=$depmode
11640 rm -rf conftest.dir
11642 am_cv_CCAS_dependencies_compiler_type=none
11646 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11647 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11648 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11651 test "x$enable_dependency_tracking" != xno \
11652 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11653 am__fastdepCCAS_TRUE=
11654 am__fastdepCCAS_FALSE='#'
11656 am__fastdepCCAS_TRUE='#'
11657 am__fastdepCCAS_FALSE=
11663 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11664 $as_echo_n "checking zfs author... " >&6; }
11665 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11666 $as_echo "$ZFS_META_AUTHOR" >&6; }
11668 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11669 $as_echo_n "checking zfs license... " >&6; }
11670 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11671 $as_echo "$ZFS_META_LICENSE" >&6; }
11675 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11676 $as_echo_n "checking linux distribution... " >&6; }
11677 if test -f /etc/toss-release ; then
11679 elif test -f /etc/fedora-release ; then
11681 elif test -f /etc/redhat-release ; then
11683 elif test -f /etc/gentoo-release ; then
11685 elif test -f /etc/arch-release ; then
11687 elif test -f /etc/SuSE-release ; then
11689 elif test -f /etc/slackware-version ; then
11691 elif test -f /etc/lunar.release ; then
11693 elif test -f /etc/lsb-release ; then
11695 elif test -f /etc/debian_version ; then
11700 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11701 $as_echo "$VENDOR" >&6; }
11704 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11705 $as_echo_n "checking default package type... " >&6; }
11707 toss) DEFAULT_PACKAGE=rpm ;;
11708 redhat) DEFAULT_PACKAGE=rpm ;;
11709 fedora) DEFAULT_PACKAGE=rpm ;;
11710 gentoo) DEFAULT_PACKAGE=tgz ;;
11711 arch) DEFAULT_PACKAGE=arch ;;
11712 sles) DEFAULT_PACKAGE=rpm ;;
11713 slackware) DEFAULT_PACKAGE=tgz ;;
11714 lunar) DEFAULT_PACKAGE=tgz ;;
11715 ubuntu) DEFAULT_PACKAGE=deb ;;
11716 debian) DEFAULT_PACKAGE=deb ;;
11717 *) DEFAULT_PACKAGE=rpm ;;
11720 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11721 $as_echo "$DEFAULT_PACKAGE" >&6; }
11724 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11725 $as_echo_n "checking default init directory... " >&6; }
11727 arch) DEFAULT_INIT_DIR=$sysconfdir/rc.d ;;
11728 *) DEFAULT_INIT_DIR=$sysconfdir/init.d ;;
11731 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11732 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11735 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11736 $as_echo_n "checking default init script type... " >&6; }
11738 toss) DEFAULT_INIT_SCRIPT=redhat ;;
11739 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11740 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
11741 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
11742 arch) DEFAULT_INIT_SCRIPT=arch ;;
11743 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11744 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11745 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11746 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11747 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11748 *) DEFAULT_INIT_SCRIPT=lsb ;;
11751 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11752 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11759 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11760 $as_echo_n "checking whether $RPM is available... " >&6; }
11761 if tmp=$($RPM --version 2>/dev/null); then
11763 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11765 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11766 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11771 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11772 $as_echo "$HAVE_RPM" >&6; }
11777 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11778 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11779 if tmp=$($RPMBUILD --version 2>/dev/null); then
11781 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11783 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11784 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11789 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11790 $as_echo "$HAVE_RPMBUILD" >&6; }
11805 DPKGBUILD=dpkg-buildpackage
11807 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11808 $as_echo_n "checking whether $DPKG is available... " >&6; }
11809 if tmp=$($DPKG --version 2>/dev/null); then
11811 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11813 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11814 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11819 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11820 $as_echo "$HAVE_DPKG" >&6; }
11825 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11826 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11827 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11829 DPKGBUILD_VERSION=$(echo $tmp | \
11830 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11832 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11833 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11838 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11839 $as_echo "$HAVE_DPKGBUILD" >&6; }
11855 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11856 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11857 if tmp=$($ALIEN --version 2>/dev/null); then
11859 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11861 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11862 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11867 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11868 $as_echo "$HAVE_ALIEN" >&6; }
11878 if test "$VENDOR" = "arch"; then
11883 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11884 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11885 tmp=$($PACMAN --version 2>/dev/null)
11886 if test -n "$tmp"; then
11888 PACMAN_VERSION=$(echo $tmp |
11889 $AWK '/Pacman/ { print $3 }' |
11892 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11893 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11898 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11899 $as_echo "$HAVE_PACMAN" >&6; }
11904 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11905 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11906 tmp=$($MAKEPKG --version 2>/dev/null)
11907 if test -n "$tmp"; then
11909 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11911 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11912 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11917 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11918 $as_echo "$HAVE_MAKEPKG" >&6; }
11935 TARGET_ASM_DIR=asm-generic
11940 # Check whether --with-config was given.
11941 if test "${with_config+set}" = set; then
11942 withval=$with_config; ZFS_CONFIG="$withval"
11946 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11947 $as_echo_n "checking zfs config... " >&6; }
11948 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11949 $as_echo "$ZFS_CONFIG" >&6; };
11954 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11955 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11957 saved_flags="$CFLAGS"
11958 CFLAGS="$CFLAGS -Wunused-but-set-variable"
11960 if test "$cross_compiling" = yes; then
11961 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11963 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11964 See \`config.log' for more details." >&5
11965 $as_echo "$as_me: error: cannot run test program while cross compiling
11966 See \`config.log' for more details." >&2;}
11967 { (exit 1); exit 1; }; }; }
11969 cat >conftest.$ac_ext <<_ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11984 rm -f conftest$ac_exeext
11985 if { (ac_try="$ac_link"
11986 case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11991 $as_echo "$ac_try_echo") >&5
11992 (eval "$ac_link") 2>&5
11994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11996 { (case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
12000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12001 $as_echo "$ac_try_echo") >&5
12002 (eval "$ac_try") 2>&5
12004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12007 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12008 { $as_echo "$as_me:$LINENO: result: yes" >&5
12009 $as_echo "yes" >&6; }
12012 $as_echo "$as_me: program exited with status $ac_status" >&5
12013 $as_echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12016 ( exit $ac_status )
12018 NO_UNUSED_BUT_SET_VARIABLE=
12019 { $as_echo "$as_me:$LINENO: result: no" >&5
12020 $as_echo "no" >&6; }
12023 rm -rf conftest.dSYM
12024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12029 CFLAGS="$saved_flags"
12034 case "$ZFS_CONFIG" in
12038 # Check whether --with-linux was given.
12039 if test "${with_linux+set}" = set; then
12040 withval=$with_linux; kernelsrc="$withval"
12045 # Check whether --with-linux-obj was given.
12046 if test "${with_linux_obj+set}" = set; then
12047 withval=$with_linux_obj; kernelbuild="$withval"
12051 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12052 $as_echo_n "checking kernel source directory... " >&6; }
12053 if test -z "$kernelsrc"; then
12055 if test -e "/lib/modules/$(uname -r)/source"; then
12057 headersdir="/lib/modules/$(uname -r)/source"
12058 sourcelink=$(readlink -f "$headersdir")
12060 elif test -e "/lib/modules/$(uname -r)/build"; then
12062 headersdir="/lib/modules/$(uname -r)/build"
12063 sourcelink=$(readlink -f "$headersdir")
12067 sourcelink=$(ls -1d /usr/src/kernels/* \
12069 2>/dev/null | grep -v obj | tail -1)
12074 if test -n "$sourcelink" && test -e ${sourcelink}; then
12076 kernelsrc=`readlink -f ${sourcelink}`
12080 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12081 $as_echo "Not found" >&6; }
12082 { { $as_echo "$as_me:$LINENO: error:
12083 *** Please make sure the kernel devel package for your distribution
12084 *** is installed then try again. If that fails you can specify the
12085 *** location of the kernel source with the '--with-linux=PATH' option." >&5
12086 $as_echo "$as_me: error:
12087 *** Please make sure the kernel devel package for your distribution
12088 *** is installed then try again. If that fails you can specify the
12089 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12090 { (exit 1); exit 1; }; }
12097 if test "$kernelsrc" = "NONE"; then
12107 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12108 $as_echo "$kernelsrc" >&6; }
12109 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12110 $as_echo_n "checking kernel build directory... " >&6; }
12111 if test -z "$kernelbuild"; then
12113 if test -e "/lib/modules/$(uname -r)/build"; then
12115 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12117 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12119 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12121 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12123 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12125 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12127 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12131 kernelbuild=${kernelsrc}
12138 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12139 $as_echo "$kernelbuild" >&6; }
12141 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12142 $as_echo_n "checking kernel source version... " >&6; }
12143 utsrelease1=$kernelbuild/include/linux/version.h
12144 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12145 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12146 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
12148 utsrelease=linux/version.h
12150 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12152 utsrelease=linux/utsrelease.h
12154 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12156 utsrelease=generated/utsrelease.h
12161 if test "$utsrelease"; then
12163 kernsrcver=`(echo "#include <$utsrelease>";
12164 echo "kernsrcver=UTS_RELEASE") |
12165 cpp -I $kernelbuild/include |
12166 grep "^kernsrcver=" | cut -d \" -f 2`
12168 if test -z "$kernsrcver"; then
12170 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12171 $as_echo "Not found" >&6; }
12172 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12173 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12174 { (exit 1); exit 1; }; }
12181 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12182 $as_echo "Not found" >&6; }
12183 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12184 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12185 { (exit 1); exit 1; }; }
12190 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12191 $as_echo "$kernsrcver" >&6; }
12194 LINUX_OBJ=${kernelbuild}
12195 LINUX_VERSION=${kernsrcver}
12202 modpost=$LINUX/scripts/Makefile.modpost
12203 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12204 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12205 if test -f "$modpost"; then
12207 if grep -q Modules.symvers $modpost; then
12209 LINUX_SYMBOLS=Modules.symvers
12213 LINUX_SYMBOLS=Module.symvers
12218 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12220 { { $as_echo "$as_me:$LINENO: error:
12221 *** Please make sure the kernel devel package for your distribution
12222 *** is installed. If your building with a custom kernel make sure the
12223 *** kernel is configured, built, and the '--with-linux=PATH' configure
12224 *** option refers to the location of the kernel source." >&5
12225 $as_echo "$as_me: error:
12226 *** Please make sure the kernel devel package for your distribution
12227 *** is installed. If your building with a custom kernel make sure the
12228 *** kernel is configured, built, and the '--with-linux=PATH' configure
12229 *** option refers to the location of the kernel source." >&2;}
12230 { (exit 1); exit 1; }; }
12241 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12242 $as_echo "$LINUX_SYMBOLS" >&6; }
12248 # Check whether --with-spl was given.
12249 if test "${with_spl+set}" = set; then
12250 withval=$with_spl; splsrc="$withval"
12255 # Check whether --with-spl-obj was given.
12256 if test "${with_spl_obj+set}" = set; then
12257 withval=$with_spl_obj; splbuild="$withval"
12262 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12263 $as_echo_n "checking spl source directory... " >&6; }
12264 if test -z "$splsrc"; then
12266 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12267 2>/dev/null | tail -1`
12269 if test -z "$sourcelink" || test ! -e $sourcelink; then
12276 if test -e $sourcelink; then
12278 splsrc=`readlink -f ${sourcelink}`
12282 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12283 $as_echo "Not found" >&6; }
12284 { { $as_echo "$as_me:$LINENO: error:
12285 *** Please make sure the spl devel package for your distribution
12286 *** is installed then try again. If that fails you can specify the
12287 *** location of the spl source with the '--with-spl=PATH' option." >&5
12288 $as_echo "$as_me: error:
12289 *** Please make sure the spl devel package for your distribution
12290 *** is installed then try again. If that fails you can specify the
12291 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12292 { (exit 1); exit 1; }; }
12299 if test "$splsrc" = "NONE"; then
12310 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12311 $as_echo "$splsrc" >&6; }
12312 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12313 $as_echo_n "checking spl build directory... " >&6; }
12314 if test -z "$splbuild"; then
12320 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12321 $as_echo "$splbuild" >&6; }
12323 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12324 $as_echo_n "checking spl source version... " >&6; }
12325 if test -r $splbuild/spl_config.h &&
12326 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12329 splsrcver=`(echo "#include <spl_config.h>";
12330 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12332 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12337 if test -z "$splsrcver"; then
12339 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12340 $as_echo "Not found" >&6; }
12341 { { $as_echo "$as_me:$LINENO: error:
12342 *** Cannot determine the version of the spl source.
12343 *** Please prepare the spl source before running this script" >&5
12344 $as_echo "$as_me: error:
12345 *** Cannot determine the version of the spl source.
12346 *** Please prepare the spl source before running this script" >&2;}
12347 { (exit 1); exit 1; }; }
12352 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12353 $as_echo "$splsrcver" >&6; }
12356 SPL_OBJ=${splbuild}
12357 SPL_VERSION=${splsrcver}
12364 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12365 $as_echo_n "checking spl file name for module symbols... " >&6; }
12366 if test -r $SPL_OBJ/Module.symvers; then
12368 SPL_SYMBOLS=Module.symvers
12370 elif test -r $SPL_OBJ/Modules.symvers; then
12372 SPL_SYMBOLS=Modules.symvers
12374 elif test -r $SPL_OBJ/module/Module.symvers; then
12376 SPL_SYMBOLS=Module.symvers
12378 elif test -r $SPL_OBJ/module/Modules.symvers; then
12380 SPL_SYMBOLS=Modules.symvers
12384 SPL_SYMBOLS=$LINUX_SYMBOLS
12389 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12390 $as_echo "$SPL_SYMBOLS" >&6; }
12396 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12397 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12400 cat confdefs.h - <<_ACEOF >conftest.c
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12408 #include <linux/module.h>
12414 #ifndef CONFIG_PREEMPT
12415 #error CONFIG_PREEMPT not #defined
12425 rm -Rf build && mkdir -p build
12426 echo "obj-m := conftest.o" >build/Makefile
12427 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12439 { $as_echo "$as_me:$LINENO: result: yes" >&5
12440 $as_echo "yes" >&6; }
12441 { { $as_echo "$as_me:$LINENO: error:
12442 *** Kernel built with CONFIG_PREEMPT which is not supported.
12443 *** You must rebuild your kernel without this option." >&5
12444 $as_echo "$as_me: error:
12445 *** Kernel built with CONFIG_PREEMPT which is not supported.
12446 *** You must rebuild your kernel without this option." >&2;}
12447 { (exit 1); exit 1; }; }
12450 $as_echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12453 { $as_echo "$as_me:$LINENO: result: no" >&5
12454 $as_echo "no" >&6; }
12466 if test "$ZFS_META_LICENSE" = CDDL; then
12468 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12469 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12472 cat confdefs.h - <<_ACEOF >conftest.c
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12480 #include <linux/module.h>
12486 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12487 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12497 rm -Rf build && mkdir -p build
12498 echo "obj-m := conftest.o" >build/Makefile
12499 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12511 { $as_echo "$as_me:$LINENO: result: yes" >&5
12512 $as_echo "yes" >&6; }
12513 { { $as_echo "$as_me:$LINENO: error:
12514 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12515 *** incompatible with the CDDL license. You must rebuild
12516 *** your kernel without this option." >&5
12517 $as_echo "$as_me: error:
12518 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12519 *** incompatible with the CDDL license. You must rebuild
12520 *** your kernel without this option." >&2;}
12521 { (exit 1); exit 1; }; }
12524 $as_echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12527 { $as_echo "$as_me:$LINENO: result: no" >&5
12528 $as_echo "no" >&6; }
12543 if test "$ZFS_META_LICENSE" = GPL; then
12546 cat >>confdefs.h <<\_ACEOF
12547 #define HAVE_GPL_ONLY_SYMBOLS 1
12555 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12556 $as_echo_n "checking block device operation prototypes... " >&6; }
12557 tmp_flags="$EXTRA_KCFLAGS"
12558 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
12561 cat confdefs.h - <<_ACEOF >conftest.c
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12569 #include <linux/blkdev.h>
12575 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12576 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12577 int (*blk_ioctl) (struct block_device *, fmode_t,
12578 unsigned, unsigned long) = NULL;
12579 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12580 unsigned, unsigned long) = NULL;
12581 struct block_device_operations blk_ops = {
12583 .release = blk_release,
12584 .ioctl = blk_ioctl,
12585 .compat_ioctl = blk_compat_ioctl,
12588 blk_ops.open(NULL, 0);
12589 blk_ops.release(NULL, 0);
12590 blk_ops.ioctl(NULL, 0, 0, 0);
12591 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12600 rm -Rf build && mkdir -p build
12601 echo "obj-m := conftest.o" >build/Makefile
12602 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12614 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12615 $as_echo "struct block_device" >&6; }
12617 cat >>confdefs.h <<\_ACEOF
12618 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12623 $as_echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12627 $as_echo "struct inode" >&6; }
12636 EXTRA_KCFLAGS="$tmp_flags"
12638 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12639 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12642 cat confdefs.h - <<_ACEOF >conftest.c
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12650 #include <linux/types.h>
12656 fmode_t *ptr __attribute__ ((unused));
12665 rm -Rf build && mkdir -p build
12666 echo "obj-m := conftest.o" >build/Makefile
12667 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12679 { $as_echo "$as_me:$LINENO: result: yes" >&5
12680 $as_echo "yes" >&6; }
12682 cat >>confdefs.h <<\_ACEOF
12683 #define HAVE_FMODE_T 1
12688 $as_echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12691 { $as_echo "$as_me:$LINENO: result: no" >&5
12692 $as_echo "no" >&6; }
12703 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12704 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12707 cat confdefs.h - <<_ACEOF >conftest.c
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12715 #include <linux/kobject.h>
12721 int val __attribute__ ((unused));
12722 val = KOBJ_NAME_LEN;
12731 rm -Rf build && mkdir -p build
12732 echo "obj-m := conftest.o" >build/Makefile
12733 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12745 { $as_echo "$as_me:$LINENO: result: yes" >&5
12746 $as_echo "yes" >&6; }
12748 cat >>confdefs.h <<\_ACEOF
12749 #define HAVE_KOBJ_NAME_LEN 1
12754 $as_echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 { $as_echo "$as_me:$LINENO: result: no" >&5
12758 $as_echo "no" >&6; }
12769 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12770 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12771 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12772 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12774 if test $rc -ne 0; then
12777 for file in fs/block_dev.c; do
12778 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12780 if test $rc -eq 0; then
12788 if test $export -eq 0; then
12790 { $as_echo "$as_me:$LINENO: result: no" >&5
12791 $as_echo "no" >&6; }
12796 { $as_echo "$as_me:$LINENO: result: yes" >&5
12797 $as_echo "yes" >&6; }
12799 cat >>confdefs.h <<\_ACEOF
12800 #define HAVE_BLKDEV_GET_BY_PATH 1
12809 { $as_echo "$as_me:$LINENO: result: yes" >&5
12810 $as_echo "yes" >&6; }
12812 cat >>confdefs.h <<\_ACEOF
12813 #define HAVE_BLKDEV_GET_BY_PATH 1
12822 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12823 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12824 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12825 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12827 if test $rc -ne 0; then
12830 for file in fs/block_dev.c; do
12831 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12833 if test $rc -eq 0; then
12841 if test $export -eq 0; then
12843 { $as_echo "$as_me:$LINENO: result: no" >&5
12844 $as_echo "no" >&6; }
12849 { $as_echo "$as_me:$LINENO: result: yes" >&5
12850 $as_echo "yes" >&6; }
12852 cat >>confdefs.h <<\_ACEOF
12853 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12862 { $as_echo "$as_me:$LINENO: result: yes" >&5
12863 $as_echo "yes" >&6; }
12865 cat >>confdefs.h <<\_ACEOF
12866 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12875 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12876 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12879 cat confdefs.h - <<_ACEOF >conftest.c
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12887 #include <linux/buffer_head.h>
12893 struct block_device *bdev = NULL;
12894 invalidate_bdev(bdev);
12903 rm -Rf build && mkdir -p build
12904 echo "obj-m := conftest.o" >build/Makefile
12905 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12917 { $as_echo "$as_me:$LINENO: result: yes" >&5
12918 $as_echo "yes" >&6; }
12920 cat >>confdefs.h <<\_ACEOF
12921 #define HAVE_1ARG_INVALIDATE_BDEV 1
12926 $as_echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12929 { $as_echo "$as_me:$LINENO: result: no" >&5
12930 $as_echo "no" >&6; }
12941 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12942 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12943 tmp_flags="$EXTRA_KCFLAGS"
12944 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
12947 cat confdefs.h - <<_ACEOF >conftest.c
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12955 #include <linux/blkdev.h>
12961 struct block_device *bdev = NULL;
12962 bdev_logical_block_size(bdev);
12971 rm -Rf build && mkdir -p build
12972 echo "obj-m := conftest.o" >build/Makefile
12973 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12985 { $as_echo "$as_me:$LINENO: result: yes" >&5
12986 $as_echo "yes" >&6; }
12988 cat >>confdefs.h <<\_ACEOF
12989 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12994 $as_echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12997 { $as_echo "$as_me:$LINENO: result: no" >&5
12998 $as_echo "no" >&6; }
13007 EXTRA_KCFLAGS="$tmp_flags"
13010 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13011 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13012 EXTRA_KCFLAGS="-Werror"
13015 cat confdefs.h - <<_ACEOF >conftest.c
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13023 #include <linux/bio.h>
13030 (void)bio_empty_barrier(&bio);
13039 rm -Rf build && mkdir -p build
13040 echo "obj-m := conftest.o" >build/Makefile
13041 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13053 { $as_echo "$as_me:$LINENO: result: yes" >&5
13054 $as_echo "yes" >&6; }
13056 cat >>confdefs.h <<\_ACEOF
13057 #define HAVE_BIO_EMPTY_BARRIER 1
13062 $as_echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13065 { $as_echo "$as_me:$LINENO: result: no" >&5
13066 $as_echo "no" >&6; }
13077 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13078 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13081 cat confdefs.h - <<_ACEOF >conftest.c
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13089 #include <linux/bio.h>
13095 int flags __attribute__ ((unused));
13096 flags = (1 << BIO_RW_FAILFAST);
13105 rm -Rf build && mkdir -p build
13106 echo "obj-m := conftest.o" >build/Makefile
13107 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13119 { $as_echo "$as_me:$LINENO: result: yes" >&5
13120 $as_echo "yes" >&6; }
13122 cat >>confdefs.h <<\_ACEOF
13123 #define HAVE_BIO_RW_FAILFAST 1
13128 $as_echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 { $as_echo "$as_me:$LINENO: result: no" >&5
13132 $as_echo "no" >&6; }
13143 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13144 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13147 cat confdefs.h - <<_ACEOF >conftest.c
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13155 #include <linux/bio.h>
13161 int flags __attribute__ ((unused));
13162 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13163 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13164 (1 << BIO_RW_FAILFAST_DRIVER));
13173 rm -Rf build && mkdir -p build
13174 echo "obj-m := conftest.o" >build/Makefile
13175 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
13187 { $as_echo "$as_me:$LINENO: result: yes" >&5
13188 $as_echo "yes" >&6; }
13190 cat >>confdefs.h <<\_ACEOF
13191 #define HAVE_BIO_RW_FAILFAST_DTD 1
13196 $as_echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 { $as_echo "$as_me:$LINENO: result: no" >&5
13200 $as_echo "no" >&6; }
13211 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13212 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13215 cat confdefs.h - <<_ACEOF >conftest.c
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13223 #include <linux/bio.h>
13229 int flags __attribute__ ((unused));
13230 flags = REQ_FAILFAST_MASK;
13239 rm -Rf build && mkdir -p build
13240 echo "obj-m := conftest.o" >build/Makefile
13241 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; }; then
13253 { $as_echo "$as_me:$LINENO: result: yes" >&5
13254 $as_echo "yes" >&6; }
13256 cat >>confdefs.h <<\_ACEOF
13257 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13262 $as_echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 { $as_echo "$as_me:$LINENO: result: no" >&5
13266 $as_echo "no" >&6; }
13277 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13278 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13279 tmp_flags="$EXTRA_KCFLAGS"
13280 EXTRA_KCFLAGS="-Werror"
13283 cat confdefs.h - <<_ACEOF >conftest.c
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13291 #include <linux/bio.h>
13297 void (*wanted_end_io)(struct bio *, int) = NULL;
13298 bio_end_io_t *local_end_io __attribute__ ((unused));
13300 local_end_io = wanted_end_io;
13309 rm -Rf build && mkdir -p build
13310 echo "obj-m := conftest.o" >build/Makefile
13311 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13323 { $as_echo "$as_me:$LINENO: result: yes" >&5
13324 $as_echo "yes" >&6; }
13326 cat >>confdefs.h <<\_ACEOF
13327 #define HAVE_2ARGS_BIO_END_IO_T 1
13332 $as_echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13335 { $as_echo "$as_me:$LINENO: result: no" >&5
13336 $as_echo "no" >&6; }
13345 EXTRA_KCFLAGS="$tmp_flags"
13348 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13349 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13352 cat confdefs.h - <<_ACEOF >conftest.c
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13360 #include <linux/bio.h>
13366 int flags __attribute__ ((unused));
13367 flags = BIO_RW_SYNC;
13376 rm -Rf build && mkdir -p build
13377 echo "obj-m := conftest.o" >build/Makefile
13378 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13390 { $as_echo "$as_me:$LINENO: result: yes" >&5
13391 $as_echo "yes" >&6; }
13393 cat >>confdefs.h <<\_ACEOF
13394 #define HAVE_BIO_RW_SYNC 1
13399 $as_echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13402 { $as_echo "$as_me:$LINENO: result: no" >&5
13403 $as_echo "no" >&6; }
13414 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13415 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13418 cat confdefs.h - <<_ACEOF >conftest.c
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13426 #include <linux/bio.h>
13432 int flags __attribute__ ((unused));
13433 flags = BIO_RW_SYNCIO;
13442 rm -Rf build && mkdir -p build
13443 echo "obj-m := conftest.o" >build/Makefile
13444 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13456 { $as_echo "$as_me:$LINENO: result: yes" >&5
13457 $as_echo "yes" >&6; }
13459 cat >>confdefs.h <<\_ACEOF
13460 #define HAVE_BIO_RW_SYNCIO 1
13465 $as_echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 { $as_echo "$as_me:$LINENO: result: no" >&5
13469 $as_echo "no" >&6; }
13480 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13481 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13484 cat confdefs.h - <<_ACEOF >conftest.c
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13492 #include <linux/bio.h>
13498 int flags __attribute__ ((unused));
13508 rm -Rf build && mkdir -p build
13509 echo "obj-m := conftest.o" >build/Makefile
13510 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }; then
13522 { $as_echo "$as_me:$LINENO: result: yes" >&5
13523 $as_echo "yes" >&6; }
13525 cat >>confdefs.h <<\_ACEOF
13526 #define HAVE_REQ_SYNC 1
13531 $as_echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13534 { $as_echo "$as_me:$LINENO: result: no" >&5
13535 $as_echo "no" >&6; }
13546 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13547 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13548 tmp_flags="$EXTRA_KCFLAGS"
13549 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13552 cat confdefs.h - <<_ACEOF >conftest.c
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13560 #include <linux/blkdev.h>
13566 struct request *req = NULL;
13567 (void) blk_end_request(req, 0, 0);
13576 rm -Rf build && mkdir -p build
13577 echo "obj-m := conftest.o" >build/Makefile
13578 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13590 { $as_echo "$as_me:$LINENO: result: yes" >&5
13591 $as_echo "yes" >&6; }
13593 cat >>confdefs.h <<\_ACEOF
13594 #define HAVE_BLK_END_REQUEST 1
13599 $as_echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 { $as_echo "$as_me:$LINENO: result: no" >&5
13603 $as_echo "no" >&6; }
13613 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13614 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13617 cat confdefs.h - <<_ACEOF >conftest.c
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13625 #include <linux/module.h>
13626 #include <linux/blkdev.h>
13628 MODULE_LICENSE("CDDL");
13634 struct request *req = NULL;
13635 (void) blk_end_request(req, 0, 0);
13644 rm -Rf build && mkdir -p build
13645 echo "obj-m := conftest.o" >build/Makefile
13646 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13658 { $as_echo "$as_me:$LINENO: result: no" >&5
13659 $as_echo "no" >&6; }
13662 $as_echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13665 { $as_echo "$as_me:$LINENO: result: yes" >&5
13666 $as_echo "yes" >&6; }
13668 cat >>confdefs.h <<\_ACEOF
13669 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13680 EXTRA_KCFLAGS="$tmp_flags"
13683 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
13684 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13685 tmp_flags="$EXTRA_KCFLAGS"
13686 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13689 cat confdefs.h - <<_ACEOF >conftest.c
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13697 #include <linux/blkdev.h>
13703 struct request_queue *q = NULL;
13704 (void) blk_queue_flush(q, REQ_FLUSH);
13713 rm -Rf build && mkdir -p build
13714 echo "obj-m := conftest.o" >build/Makefile
13715 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13727 { $as_echo "$as_me:$LINENO: result: yes" >&5
13728 $as_echo "yes" >&6; }
13730 cat >>confdefs.h <<\_ACEOF
13731 #define HAVE_BLK_QUEUE_FLUSH 1
13736 $as_echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13739 { $as_echo "$as_me:$LINENO: result: no" >&5
13740 $as_echo "no" >&6; }
13750 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
13751 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13754 cat confdefs.h - <<_ACEOF >conftest.c
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13762 #include <linux/module.h>
13763 #include <linux/blkdev.h>
13765 MODULE_LICENSE("CDDL");
13771 struct request_queue *q = NULL;
13772 (void) blk_queue_flush(q, REQ_FLUSH);
13781 rm -Rf build && mkdir -p build
13782 echo "obj-m := conftest.o" >build/Makefile
13783 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13795 { $as_echo "$as_me:$LINENO: result: no" >&5
13796 $as_echo "no" >&6; }
13799 $as_echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 { $as_echo "$as_me:$LINENO: result: yes" >&5
13803 $as_echo "yes" >&6; }
13805 cat >>confdefs.h <<\_ACEOF
13806 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
13817 EXTRA_KCFLAGS="$tmp_flags"
13820 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
13821 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
13822 tmp_flags="$EXTRA_KCFLAGS"
13823 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13826 cat confdefs.h - <<_ACEOF >conftest.c
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13834 #include <linux/blkdev.h>
13840 struct request_queue *q = NULL;
13841 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
13850 rm -Rf build && mkdir -p build
13851 echo "obj-m := conftest.o" >build/Makefile
13852 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13864 { $as_echo "$as_me:$LINENO: result: yes" >&5
13865 $as_echo "yes" >&6; }
13867 cat >>confdefs.h <<\_ACEOF
13868 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
13873 $as_echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13876 { $as_echo "$as_me:$LINENO: result: no" >&5
13877 $as_echo "no" >&6; }
13886 EXTRA_KCFLAGS="$tmp_flags"
13889 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
13890 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
13891 tmp_flags="$EXTRA_KCFLAGS"
13892 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13895 cat confdefs.h - <<_ACEOF >conftest.c
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h. */
13903 #include <linux/blkdev.h>
13909 struct request_queue *q = NULL;
13910 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
13919 rm -Rf build && mkdir -p build
13920 echo "obj-m := conftest.o" >build/Makefile
13921 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13933 { $as_echo "$as_me:$LINENO: result: yes" >&5
13934 $as_echo "yes" >&6; }
13936 cat >>confdefs.h <<\_ACEOF
13937 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
13942 $as_echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13945 { $as_echo "$as_me:$LINENO: result: no" >&5
13946 $as_echo "no" >&6; }
13955 EXTRA_KCFLAGS="$tmp_flags"
13958 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
13959 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
13960 tmp_flags="$EXTRA_KCFLAGS"
13961 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13964 cat confdefs.h - <<_ACEOF >conftest.c
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13972 #include <linux/blkdev.h>
13978 struct request_queue *q = NULL;
13979 unsigned short block_size = 1;
13980 (void) blk_queue_physical_block_size(q, block_size);
13989 rm -Rf build && mkdir -p build
13990 echo "obj-m := conftest.o" >build/Makefile
13991 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
14000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; }; then
14003 { $as_echo "$as_me:$LINENO: result: yes" >&5
14004 $as_echo "yes" >&6; }
14006 cat >>confdefs.h <<\_ACEOF
14007 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
14012 $as_echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14015 { $as_echo "$as_me:$LINENO: result: no" >&5
14016 $as_echo "no" >&6; }
14025 EXTRA_KCFLAGS="$tmp_flags"
14028 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
14029 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14030 tmp_flags="$EXTRA_KCFLAGS"
14031 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14034 cat confdefs.h - <<_ACEOF >conftest.c
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h. */
14042 #include <linux/blkdev.h>
14048 struct request_queue *q = NULL;
14049 unsigned int opt = 1;
14050 (void) blk_queue_io_opt(q, opt);
14059 rm -Rf build && mkdir -p build
14060 echo "obj-m := conftest.o" >build/Makefile
14061 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14073 { $as_echo "$as_me:$LINENO: result: yes" >&5
14074 $as_echo "yes" >&6; }
14076 cat >>confdefs.h <<\_ACEOF
14077 #define HAVE_BLK_QUEUE_IO_OPT 1
14082 $as_echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14085 { $as_echo "$as_me:$LINENO: result: no" >&5
14086 $as_echo "no" >&6; }
14095 EXTRA_KCFLAGS="$tmp_flags"
14098 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
14099 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
14100 tmp_flags="$EXTRA_KCFLAGS"
14101 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14104 cat confdefs.h - <<_ACEOF >conftest.c
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14112 #include <linux/blkdev.h>
14118 struct request_queue *q = NULL;
14119 (void) blk_queue_nonrot(q);
14128 rm -Rf build && mkdir -p build
14129 echo "obj-m := conftest.o" >build/Makefile
14130 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14142 { $as_echo "$as_me:$LINENO: result: yes" >&5
14143 $as_echo "yes" >&6; }
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_BLK_QUEUE_NONROT 1
14151 $as_echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 { $as_echo "$as_me:$LINENO: result: no" >&5
14155 $as_echo "no" >&6; }
14164 EXTRA_KCFLAGS="$tmp_flags"
14167 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
14168 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
14169 tmp_flags="$EXTRA_KCFLAGS"
14170 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14173 cat confdefs.h - <<_ACEOF >conftest.c
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14181 #include <linux/blkdev.h>
14187 struct request_queue *q = NULL;
14188 (void) blk_queue_discard(q);
14197 rm -Rf build && mkdir -p build
14198 echo "obj-m := conftest.o" >build/Makefile
14199 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14211 { $as_echo "$as_me:$LINENO: result: yes" >&5
14212 $as_echo "yes" >&6; }
14214 cat >>confdefs.h <<\_ACEOF
14215 #define HAVE_BLK_QUEUE_DISCARD 1
14220 $as_echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 { $as_echo "$as_me:$LINENO: result: no" >&5
14224 $as_echo "no" >&6; }
14233 EXTRA_KCFLAGS="$tmp_flags"
14236 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
14237 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
14238 tmp_flags="$EXTRA_KCFLAGS"
14239 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14242 cat confdefs.h - <<_ACEOF >conftest.c
14245 cat confdefs.h >>conftest.$ac_ext
14246 cat >>conftest.$ac_ext <<_ACEOF
14247 /* end confdefs.h. */
14250 #include <linux/blkdev.h>
14256 struct request_queue *q = NULL;
14257 (void) blk_fetch_request(q);
14266 rm -Rf build && mkdir -p build
14267 echo "obj-m := conftest.o" >build/Makefile
14268 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14280 { $as_echo "$as_me:$LINENO: result: yes" >&5
14281 $as_echo "yes" >&6; }
14283 cat >>confdefs.h <<\_ACEOF
14284 #define HAVE_BLK_FETCH_REQUEST 1
14289 $as_echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14292 { $as_echo "$as_me:$LINENO: result: no" >&5
14293 $as_echo "no" >&6; }
14302 EXTRA_KCFLAGS="$tmp_flags"
14305 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
14306 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
14307 tmp_flags="$EXTRA_KCFLAGS"
14308 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14311 cat confdefs.h - <<_ACEOF >conftest.c
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14319 #include <linux/blkdev.h>
14325 struct request_queue *q = NULL;
14326 struct request *req = NULL;
14327 blk_requeue_request(q, req);
14336 rm -Rf build && mkdir -p build
14337 echo "obj-m := conftest.o" >build/Makefile
14338 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; }; then
14350 { $as_echo "$as_me:$LINENO: result: yes" >&5
14351 $as_echo "yes" >&6; }
14353 cat >>confdefs.h <<\_ACEOF
14354 #define HAVE_BLK_REQUEUE_REQUEST 1
14359 $as_echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14362 { $as_echo "$as_me:$LINENO: result: no" >&5
14363 $as_echo "no" >&6; }
14372 EXTRA_KCFLAGS="$tmp_flags"
14375 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
14376 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
14377 tmp_flags="$EXTRA_KCFLAGS"
14378 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14381 cat confdefs.h - <<_ACEOF >conftest.c
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14389 #include <linux/blkdev.h>
14395 struct request *req = NULL;
14396 (void) blk_rq_bytes(req);
14405 rm -Rf build && mkdir -p build
14406 echo "obj-m := conftest.o" >build/Makefile
14407 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14419 { $as_echo "$as_me:$LINENO: result: yes" >&5
14420 $as_echo "yes" >&6; }
14422 cat >>confdefs.h <<\_ACEOF
14423 #define HAVE_BLK_RQ_BYTES 1
14428 $as_echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14431 { $as_echo "$as_me:$LINENO: result: no" >&5
14432 $as_echo "no" >&6; }
14442 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
14443 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
14446 cat confdefs.h - <<_ACEOF >conftest.c
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14454 #include <linux/module.h>
14455 #include <linux/blkdev.h>
14457 MODULE_LICENSE("CDDL");
14463 struct request *req = NULL;
14464 (void) blk_rq_bytes(req);
14473 rm -Rf build && mkdir -p build
14474 echo "obj-m := conftest.o" >build/Makefile
14475 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14487 { $as_echo "$as_me:$LINENO: result: no" >&5
14488 $as_echo "no" >&6; }
14491 $as_echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14494 { $as_echo "$as_me:$LINENO: result: yes" >&5
14495 $as_echo "yes" >&6; }
14497 cat >>confdefs.h <<\_ACEOF
14498 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
14509 EXTRA_KCFLAGS="$tmp_flags"
14512 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
14513 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
14514 tmp_flags="$EXTRA_KCFLAGS"
14515 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14518 cat confdefs.h - <<_ACEOF >conftest.c
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14526 #include <linux/blkdev.h>
14532 struct request *req = NULL;
14533 (void) blk_rq_pos(req);
14542 rm -Rf build && mkdir -p build
14543 echo "obj-m := conftest.o" >build/Makefile
14544 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 (eval $ac_try) 2>&5
14548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14556 { $as_echo "$as_me:$LINENO: result: yes" >&5
14557 $as_echo "yes" >&6; }
14559 cat >>confdefs.h <<\_ACEOF
14560 #define HAVE_BLK_RQ_POS 1
14565 $as_echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 { $as_echo "$as_me:$LINENO: result: no" >&5
14569 $as_echo "no" >&6; }
14578 EXTRA_KCFLAGS="$tmp_flags"
14581 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
14582 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
14583 tmp_flags="$EXTRA_KCFLAGS"
14584 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14587 cat confdefs.h - <<_ACEOF >conftest.c
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14595 #include <linux/blkdev.h>
14601 struct request *req = NULL;
14602 (void) blk_rq_sectors(req);
14611 rm -Rf build && mkdir -p build
14612 echo "obj-m := conftest.o" >build/Makefile
14613 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; }; then
14625 { $as_echo "$as_me:$LINENO: result: yes" >&5
14626 $as_echo "yes" >&6; }
14628 cat >>confdefs.h <<\_ACEOF
14629 #define HAVE_BLK_RQ_SECTORS 1
14634 $as_echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14637 { $as_echo "$as_me:$LINENO: result: no" >&5
14638 $as_echo "no" >&6; }
14647 EXTRA_KCFLAGS="$tmp_flags"
14650 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
14651 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14652 tmp_flags="$EXTRA_KCFLAGS"
14653 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14656 cat confdefs.h - <<_ACEOF >conftest.c
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h. */
14664 #include <linux/blkdev.h>
14670 struct gendisk *disk = NULL;
14671 (void) get_disk_ro(disk);
14680 rm -Rf build && mkdir -p build
14681 echo "obj-m := conftest.o" >build/Makefile
14682 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14694 { $as_echo "$as_me:$LINENO: result: yes" >&5
14695 $as_echo "yes" >&6; }
14697 cat >>confdefs.h <<\_ACEOF
14698 #define HAVE_GET_DISK_RO 1
14703 $as_echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 { $as_echo "$as_me:$LINENO: result: no" >&5
14707 $as_echo "no" >&6; }
14716 EXTRA_KCFLAGS="$tmp_flags"
14719 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
14720 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14721 tmp_flags="$EXTRA_KCFLAGS"
14722 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14725 cat confdefs.h - <<_ACEOF >conftest.c
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14733 #include <linux/blkdev.h>
14739 struct request *req = NULL;
14740 (void) rq_is_sync(req);
14749 rm -Rf build && mkdir -p build
14750 echo "obj-m := conftest.o" >build/Makefile
14751 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14763 { $as_echo "$as_me:$LINENO: result: yes" >&5
14764 $as_echo "yes" >&6; }
14766 cat >>confdefs.h <<\_ACEOF
14767 #define HAVE_RQ_IS_SYNC 1
14772 $as_echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14775 { $as_echo "$as_me:$LINENO: result: no" >&5
14776 $as_echo "no" >&6; }
14785 EXTRA_KCFLAGS="$tmp_flags"
14788 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
14789 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14790 tmp_flags="$EXTRA_KCFLAGS"
14791 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14794 cat confdefs.h - <<_ACEOF >conftest.c
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14802 #include <linux/blkdev.h>
14808 struct bio_vec *bv;
14809 struct req_iterator iter;
14810 struct request *req = NULL;
14811 rq_for_each_segment(bv, req, iter) { }
14820 rm -Rf build && mkdir -p build
14821 echo "obj-m := conftest.o" >build/Makefile
14822 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14834 { $as_echo "$as_me:$LINENO: result: yes" >&5
14835 $as_echo "yes" >&6; }
14837 cat >>confdefs.h <<\_ACEOF
14838 #define HAVE_RQ_FOR_EACH_SEGMENT 1
14843 $as_echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 { $as_echo "$as_me:$LINENO: result: no" >&5
14847 $as_echo "no" >&6; }
14856 EXTRA_KCFLAGS="$tmp_flags"
14858 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
14859 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14862 cat confdefs.h - <<_ACEOF >conftest.c
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14870 #include <linux/fs.h>
14871 #include <linux/xattr.h>
14873 const struct xattr_handler xattr_test_handler = {
14879 const struct xattr_handler *xattr_handlers[] = {
14880 &xattr_test_handler,
14887 struct super_block sb __attribute__ ((unused));
14889 sb.s_xattr = xattr_handlers;
14898 rm -Rf build && mkdir -p build
14899 echo "obj-m := conftest.o" >build/Makefile
14900 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14912 { $as_echo "$as_me:$LINENO: result: yes" >&5
14913 $as_echo "yes" >&6; }
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_CONST_XATTR_HANDLER 1
14921 $as_echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14924 { $as_echo "$as_me:$LINENO: result: no" >&5
14925 $as_echo "no" >&6; }
14936 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14937 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14940 cat confdefs.h - <<_ACEOF >conftest.c
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14948 #include <linux/xattr.h>
14954 int (*get)(struct dentry *dentry, const char *name,
14955 void *buffer, size_t size, int handler_flags) = NULL;
14956 struct xattr_handler xops __attribute__ ((unused));
14967 rm -Rf build && mkdir -p build
14968 echo "obj-m := conftest.o" >build/Makefile
14969 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; }; then
14981 { $as_echo "$as_me:$LINENO: result: yes" >&5
14982 $as_echo "yes" >&6; }
14984 cat >>confdefs.h <<\_ACEOF
14985 #define HAVE_DENTRY_XATTR_GET 1
14990 $as_echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 { $as_echo "$as_me:$LINENO: result: no" >&5
14994 $as_echo "no" >&6; }
15005 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
15006 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15009 cat confdefs.h - <<_ACEOF >conftest.c
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15017 #include <linux/xattr.h>
15023 int (*set)(struct dentry *dentry, const char *name,
15024 const void *buffer, size_t size, int flags,
15025 int handler_flags) = NULL;
15026 struct xattr_handler xops __attribute__ ((unused));
15037 rm -Rf build && mkdir -p build
15038 echo "obj-m := conftest.o" >build/Makefile
15039 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15051 { $as_echo "$as_me:$LINENO: result: yes" >&5
15052 $as_echo "yes" >&6; }
15054 cat >>confdefs.h <<\_ACEOF
15055 #define HAVE_DENTRY_XATTR_SET 1
15060 $as_echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 { $as_echo "$as_me:$LINENO: result: no" >&5
15064 $as_echo "no" >&6; }
15075 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
15076 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
15080 cat confdefs.h - <<_ACEOF >conftest.c
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15088 #include <linux/fs.h>
15094 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
15095 struct super_operations sops __attribute__ ((unused));
15097 sops.show_options = show_options;
15106 rm -Rf build && mkdir -p build
15107 echo "obj-m := conftest.o" >build/Makefile
15108 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15120 { $as_echo "$as_me:$LINENO: result: yes" >&5
15121 $as_echo "yes" >&6; }
15123 cat >>confdefs.h <<\_ACEOF
15124 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
15129 $as_echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 { $as_echo "$as_me:$LINENO: result: no" >&5
15133 $as_echo "no" >&6; }
15144 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
15145 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
15149 cat confdefs.h - <<_ACEOF >conftest.c
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15157 #include <linux/fs.h>
15163 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15164 struct file_operations fops __attribute__ ((unused));
15166 fops.fsync = fsync;
15175 rm -Rf build && mkdir -p build
15176 echo "obj-m := conftest.o" >build/Makefile
15177 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15189 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15190 $as_echo "dentry" >&6; }
15192 cat >>confdefs.h <<\_ACEOF
15193 #define HAVE_FSYNC_WITH_DENTRY 1
15198 $as_echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15213 cat confdefs.h - <<_ACEOF >conftest.c
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15221 #include <linux/fs.h>
15227 int (*fsync) (struct file *, int) = NULL;
15228 struct file_operations fops __attribute__ ((unused));
15230 fops.fsync = fsync;
15239 rm -Rf build && mkdir -p build
15240 echo "obj-m := conftest.o" >build/Makefile
15241 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15253 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15254 $as_echo "no dentry" >&6; }
15256 cat >>confdefs.h <<\_ACEOF
15257 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15262 $as_echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15277 cat confdefs.h - <<_ACEOF >conftest.c
15280 cat confdefs.h >>conftest.$ac_ext
15281 cat >>conftest.$ac_ext <<_ACEOF
15282 /* end confdefs.h. */
15285 #include <linux/fs.h>
15291 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15292 struct file_operations fops __attribute__ ((unused));
15294 fops.fsync = fsync;
15303 rm -Rf build && mkdir -p build
15304 echo "obj-m := conftest.o" >build/Makefile
15305 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15317 { $as_echo "$as_me:$LINENO: result: range" >&5
15318 $as_echo "range" >&6; }
15320 cat >>confdefs.h <<\_ACEOF
15321 #define HAVE_FSYNC_RANGE 1
15326 $as_echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15340 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
15341 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
15344 cat confdefs.h - <<_ACEOF >conftest.c
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15352 #include <linux/fs.h>
15358 void (*evict_inode) (struct inode *) = NULL;
15359 struct super_operations sops __attribute__ ((unused)) = {
15360 .evict_inode = evict_inode,
15370 rm -Rf build && mkdir -p build
15371 echo "obj-m := conftest.o" >build/Makefile
15372 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15384 { $as_echo "$as_me:$LINENO: result: yes" >&5
15385 $as_echo "yes" >&6; }
15387 cat >>confdefs.h <<\_ACEOF
15388 #define HAVE_EVICT_INODE 1
15393 $as_echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15396 { $as_echo "$as_me:$LINENO: result: no" >&5
15397 $as_echo "no" >&6; }
15408 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
15409 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
15412 cat confdefs.h - <<_ACEOF >conftest.c
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15420 #include <linux/fs.h>
15426 int (*nr_cached_objects)(struct super_block *)
15427 __attribute__ ((unused)) = NULL;
15428 struct super_operations sops __attribute__ ((unused)) = {
15429 .nr_cached_objects = nr_cached_objects,
15439 rm -Rf build && mkdir -p build
15440 echo "obj-m := conftest.o" >build/Makefile
15441 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
15453 { $as_echo "$as_me:$LINENO: result: yes" >&5
15454 $as_echo "yes" >&6; }
15456 cat >>confdefs.h <<\_ACEOF
15457 #define HAVE_NR_CACHED_OBJECTS 1
15462 $as_echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 { $as_echo "$as_me:$LINENO: result: no" >&5
15466 $as_echo "no" >&6; }
15477 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
15478 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
15481 cat confdefs.h - <<_ACEOF >conftest.c
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h. */
15489 #include <linux/fs.h>
15495 void (*free_cached_objects)(struct super_block *, int)
15496 __attribute__ ((unused)) = NULL;
15497 struct super_operations sops __attribute__ ((unused)) = {
15498 .free_cached_objects = free_cached_objects,
15508 rm -Rf build && mkdir -p build
15509 echo "obj-m := conftest.o" >build/Makefile
15510 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15522 { $as_echo "$as_me:$LINENO: result: yes" >&5
15523 $as_echo "yes" >&6; }
15525 cat >>confdefs.h <<\_ACEOF
15526 #define HAVE_FREE_CACHED_OBJECTS 1
15531 $as_echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 { $as_echo "$as_me:$LINENO: result: no" >&5
15535 $as_echo "no" >&6; }
15547 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
15548 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15551 cat confdefs.h - <<_ACEOF >conftest.c
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15559 #include <linux/fs.h>
15565 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
15566 struct file_operations fops __attribute__ ((unused)) = {
15567 .fallocate = fallocate,
15577 rm -Rf build && mkdir -p build
15578 echo "obj-m := conftest.o" >build/Makefile
15579 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15591 { $as_echo "$as_me:$LINENO: result: yes" >&5
15592 $as_echo "yes" >&6; }
15594 cat >>confdefs.h <<\_ACEOF
15595 #define HAVE_FILE_FALLOCATE 1
15600 $as_echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 { $as_echo "$as_me:$LINENO: result: no" >&5
15604 $as_echo "no" >&6; }
15615 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
15616 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
15619 cat confdefs.h - <<_ACEOF >conftest.c
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15627 #include <linux/fs.h>
15633 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
15634 struct inode_operations fops __attribute__ ((unused)) = {
15635 .fallocate = fallocate,
15645 rm -Rf build && mkdir -p build
15646 echo "obj-m := conftest.o" >build/Makefile
15647 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15659 { $as_echo "$as_me:$LINENO: result: yes" >&5
15660 $as_echo "yes" >&6; }
15662 cat >>confdefs.h <<\_ACEOF
15663 #define HAVE_INODE_FALLOCATE 1
15668 $as_echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 { $as_echo "$as_me:$LINENO: result: no" >&5
15672 $as_echo "no" >&6; }
15684 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
15685 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
15688 cat confdefs.h - <<_ACEOF >conftest.c
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15696 #include <linux/dcache.h>
15702 struct vfsmount *(*d_automount) (struct path *) = NULL;
15703 struct dentry_operations dops __attribute__ ((unused)) = {
15704 .d_automount = d_automount,
15714 rm -Rf build && mkdir -p build
15715 echo "obj-m := conftest.o" >build/Makefile
15716 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15728 { $as_echo "$as_me:$LINENO: result: yes" >&5
15729 $as_echo "yes" >&6; }
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE_AUTOMOUNT 1
15737 $as_echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15740 { $as_echo "$as_me:$LINENO: result: no" >&5
15741 $as_echo "no" >&6; }
15752 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
15753 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
15754 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
15755 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15757 if test $rc -ne 0; then
15760 for file in fs/inode.c; do
15761 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
15763 if test $rc -eq 0; then
15771 if test $export -eq 0; then
15773 { $as_echo "$as_me:$LINENO: result: no" >&5
15774 $as_echo "no" >&6; }
15779 { $as_echo "$as_me:$LINENO: result: yes" >&5
15780 $as_echo "yes" >&6; }
15782 cat >>confdefs.h <<\_ACEOF
15783 #define HAVE_INSERT_INODE_LOCKED 1
15792 { $as_echo "$as_me:$LINENO: result: yes" >&5
15793 $as_echo "yes" >&6; }
15795 cat >>confdefs.h <<\_ACEOF
15796 #define HAVE_INSERT_INODE_LOCKED 1
15805 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
15806 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
15807 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
15808 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15810 if test $rc -ne 0; then
15813 for file in fs/dcache.c; do
15814 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
15816 if test $rc -eq 0; then
15824 if test $export -eq 0; then
15826 { $as_echo "$as_me:$LINENO: result: no" >&5
15827 $as_echo "no" >&6; }
15832 { $as_echo "$as_me:$LINENO: result: yes" >&5
15833 $as_echo "yes" >&6; }
15835 cat >>confdefs.h <<\_ACEOF
15836 #define HAVE_D_OBTAIN_ALIAS 1
15845 { $as_echo "$as_me:$LINENO: result: yes" >&5
15846 $as_echo "yes" >&6; }
15848 cat >>confdefs.h <<\_ACEOF
15849 #define HAVE_D_OBTAIN_ALIAS 1
15858 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
15859 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
15860 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
15861 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15863 if test $rc -ne 0; then
15866 for file in fs/block_dev.c; do
15867 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
15869 if test $rc -eq 0; then
15877 if test $export -eq 0; then
15879 { $as_echo "$as_me:$LINENO: result: no" >&5
15880 $as_echo "no" >&6; }
15885 { $as_echo "$as_me:$LINENO: result: yes" >&5
15886 $as_echo "yes" >&6; }
15888 cat >>confdefs.h <<\_ACEOF
15889 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
15898 { $as_echo "$as_me:$LINENO: result: yes" >&5
15899 $as_echo "yes" >&6; }
15901 cat >>confdefs.h <<\_ACEOF
15902 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
15911 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
15912 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
15913 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
15914 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15916 if test $rc -ne 0; then
15919 for file in mm/truncate.c; do
15920 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
15922 if test $rc -eq 0; then
15930 if test $export -eq 0; then
15932 { $as_echo "$as_me:$LINENO: result: no" >&5
15933 $as_echo "no" >&6; }
15938 { $as_echo "$as_me:$LINENO: result: yes" >&5
15939 $as_echo "yes" >&6; }
15941 cat >>confdefs.h <<\_ACEOF
15942 #define HAVE_TRUNCATE_SETSIZE 1
15951 { $as_echo "$as_me:$LINENO: result: yes" >&5
15952 $as_echo "yes" >&6; }
15954 cat >>confdefs.h <<\_ACEOF
15955 #define HAVE_TRUNCATE_SETSIZE 1
15964 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
15965 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
15966 tmp_flags="$EXTRA_KCFLAGS"
15967 EXTRA_KCFLAGS="-Werror"
15970 cat confdefs.h - <<_ACEOF >conftest.c
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15978 #include <linux/security.h>
15984 struct inode *ip __attribute__ ((unused)) = NULL;
15985 struct inode *dip __attribute__ ((unused)) = NULL;
15986 const struct qstr *str __attribute__ ((unused)) = NULL;
15987 char *name __attribute__ ((unused)) = NULL;
15988 void *value __attribute__ ((unused)) = NULL;
15989 size_t len __attribute__ ((unused)) = 0;
15991 security_inode_init_security(ip, dip, str, &name, &value, &len);
16000 rm -Rf build && mkdir -p build
16001 echo "obj-m := conftest.o" >build/Makefile
16002 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; }; then
16014 { $as_echo "$as_me:$LINENO: result: yes" >&5
16015 $as_echo "yes" >&6; }
16017 cat >>confdefs.h <<\_ACEOF
16018 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
16023 $as_echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 { $as_echo "$as_me:$LINENO: result: no" >&5
16027 $as_echo "no" >&6; }
16036 EXTRA_KCFLAGS="$tmp_flags"
16039 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
16040 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
16041 tmp_flags="$EXTRA_KCFLAGS"
16042 EXTRA_KCFLAGS="-Werror"
16045 cat confdefs.h - <<_ACEOF >conftest.c
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h. */
16053 #include <linux/security.h>
16059 struct inode *ip __attribute__ ((unused)) = NULL;
16060 struct inode *dip __attribute__ ((unused)) = NULL;
16061 const struct qstr *str __attribute__ ((unused)) = NULL;
16062 initxattrs func __attribute__ ((unused)) = NULL;
16064 security_inode_init_security(ip, dip, str, func, NULL);
16073 rm -Rf build && mkdir -p build
16074 echo "obj-m := conftest.o" >build/Makefile
16075 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16087 { $as_echo "$as_me:$LINENO: result: yes" >&5
16088 $as_echo "yes" >&6; }
16090 cat >>confdefs.h <<\_ACEOF
16091 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
16096 $as_echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16099 { $as_echo "$as_me:$LINENO: result: no" >&5
16100 $as_echo "no" >&6; }
16109 EXTRA_KCFLAGS="$tmp_flags"
16112 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
16113 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
16114 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
16115 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16117 if test $rc -ne 0; then
16120 for file in fs/super.c; do
16121 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
16123 if test $rc -eq 0; then
16131 if test $export -eq 0; then
16133 { $as_echo "$as_me:$LINENO: result: no" >&5
16134 $as_echo "no" >&6; }
16139 { $as_echo "$as_me:$LINENO: result: yes" >&5
16140 $as_echo "yes" >&6; }
16142 cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_MOUNT_NODEV 1
16152 { $as_echo "$as_me:$LINENO: result: yes" >&5
16153 $as_echo "yes" >&6; }
16155 cat >>confdefs.h <<\_ACEOF
16156 #define HAVE_MOUNT_NODEV 1
16165 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
16166 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
16169 cat confdefs.h - <<_ACEOF >conftest.c
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16177 #include <linux/fs.h>
16183 int (*shrink)(struct shrinker *, struct shrink_control *sc)
16184 __attribute__ ((unused)) = NULL;
16185 struct super_block sb __attribute__ ((unused)) = {
16186 .s_shrink.shrink = shrink,
16187 .s_shrink.seeks = DEFAULT_SEEKS,
16188 .s_shrink.batch = 0,
16198 rm -Rf build && mkdir -p build
16199 echo "obj-m := conftest.o" >build/Makefile
16200 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16212 { $as_echo "$as_me:$LINENO: result: yes" >&5
16213 $as_echo "yes" >&6; }
16215 cat >>confdefs.h <<\_ACEOF
16216 #define HAVE_SHRINK 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; }
16237 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
16238 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
16241 cat confdefs.h - <<_ACEOF >conftest.c
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16249 #include <linux/fs.h>
16255 struct super_block sb __attribute__ ((unused));
16265 rm -Rf build && mkdir -p build
16266 echo "obj-m := conftest.o" >build/Makefile
16267 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
16279 { $as_echo "$as_me:$LINENO: result: yes" >&5
16280 $as_echo "yes" >&6; }
16282 cat >>confdefs.h <<\_ACEOF
16288 $as_echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16291 { $as_echo "$as_me:$LINENO: result: no" >&5
16292 $as_echo "no" >&6; }
16303 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
16304 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
16305 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
16306 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16308 if test $rc -ne 0; then
16311 for file in mm/backing-dev.c; do
16312 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
16314 if test $rc -eq 0; then
16322 if test $export -eq 0; then
16324 { $as_echo "$as_me:$LINENO: result: no" >&5
16325 $as_echo "no" >&6; }
16330 { $as_echo "$as_me:$LINENO: result: yes" >&5
16331 $as_echo "yes" >&6; }
16333 cat >>confdefs.h <<\_ACEOF
16334 #define HAVE_BDI_SETUP_AND_REGISTER 1
16343 { $as_echo "$as_me:$LINENO: result: yes" >&5
16344 $as_echo "yes" >&6; }
16346 cat >>confdefs.h <<\_ACEOF
16347 #define HAVE_BDI_SETUP_AND_REGISTER 1
16356 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
16357 $as_echo_n "checking whether set_nlink() is available... " >&6; }
16360 cat confdefs.h - <<_ACEOF >conftest.c
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16368 #include <linux/fs.h>
16375 unsigned int link = 0;
16376 (void) set_nlink(&node, link);
16385 rm -Rf build && mkdir -p build
16386 echo "obj-m := conftest.o" >build/Makefile
16387 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389 (eval $ac_try) 2>&5
16391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16399 { $as_echo "$as_me:$LINENO: result: yes" >&5
16400 $as_echo "yes" >&6; }
16402 cat >>confdefs.h <<\_ACEOF
16403 #define HAVE_SET_NLINK 1
16408 $as_echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 { $as_echo "$as_me:$LINENO: result: no" >&5
16412 $as_echo "no" >&6; }
16423 if test "$LINUX_OBJ" != "$LINUX"; then
16425 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16432 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
16433 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
16434 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
16441 # Check whether --with-udevdir was given.
16442 if test "${with_udevdir+set}" = set; then
16443 withval=$with_udevdir; udevdir=$withval
16445 udevdir='${exec_prefix}/lib/udev'
16450 # Check whether --with-udevruledir was given.
16451 if test "${with_udevruledir+set}" = set; then
16452 withval=$with_udevruledir; udevruledir=$withval
16454 udevruledir='${udevdir}/rules.d'
16462 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
16463 $as_echo_n "checking for target asm dir... " >&6; }
16464 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
16466 case $TARGET_ARCH in
16468 TARGET_ASM_DIR=asm-${TARGET_ARCH}
16471 TARGET_ASM_DIR=asm-generic
16476 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
16477 $as_echo "$TARGET_ASM_DIR" >&6; }
16480 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
16481 $as_echo_n "checking for ioctl()... " >&6; }
16482 cat >conftest.$ac_ext <<_ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 #include <unistd.h>
16491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16492 $EGREP "ioctl" >/dev/null 2>&1; then
16499 cat >conftest.$ac_ext <<_ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h. */
16505 #include <sys/ioctl.h>
16508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16509 $EGREP "ioctl" >/dev/null 2>&1; then
16516 cat >conftest.$ac_ext <<_ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 #include <stropts.h>
16525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16526 $EGREP "ioctl" >/dev/null 2>&1; then
16534 if test $is_unistd = yes; then
16537 cat >>confdefs.h <<\_ACEOF
16538 #define HAVE_IOCTL_IN_UNISTD_H 1
16543 if test $is_sys_ioctl = yes; then
16546 cat >>confdefs.h <<\_ACEOF
16547 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
16550 elif test $is_stropts = yes; then
16552 cat >>confdefs.h <<\_ACEOF
16553 #define HAVE_IOCTL_IN_STROPTS_H 1
16561 if test $result = no; then
16562 { $as_echo "$as_me:$LINENO: result: no" >&5
16563 $as_echo "no" >&6; }
16564 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
16565 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
16566 { (exit 1); exit 1; }; }
16568 { $as_echo "$as_me:$LINENO: result: yes" >&5
16569 $as_echo "yes" >&6; }
16575 if test "${ac_cv_header_zlib_h+set}" = set; then
16576 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16577 $as_echo_n "checking for zlib.h... " >&6; }
16578 if test "${ac_cv_header_zlib_h+set}" = set; then
16579 $as_echo_n "(cached) " >&6
16581 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16582 $as_echo "$ac_cv_header_zlib_h" >&6; }
16584 # Is the header compilable?
16585 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
16586 $as_echo_n "checking zlib.h usability... " >&6; }
16587 cat >conftest.$ac_ext <<_ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16593 $ac_includes_default
16596 rm -f conftest.$ac_objext
16597 if { (ac_try="$ac_compile"
16598 case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16603 $as_echo "$ac_try_echo") >&5
16604 (eval "$ac_compile") 2>conftest.er1
16606 grep -v '^ *+' conftest.er1 >conftest.err
16608 cat conftest.err >&5
16609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } && {
16611 test -z "$ac_c_werror_flag" ||
16612 test ! -s conftest.err
16613 } && test -s conftest.$ac_objext; then
16614 ac_header_compiler=yes
16616 $as_echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 ac_header_compiler=no
16622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16624 $as_echo "$ac_header_compiler" >&6; }
16626 # Is the header present?
16627 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
16628 $as_echo_n "checking zlib.h presence... " >&6; }
16629 cat >conftest.$ac_ext <<_ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16637 if { (ac_try="$ac_cpp conftest.$ac_ext"
16638 case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16643 $as_echo "$ac_try_echo") >&5
16644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16646 grep -v '^ *+' conftest.er1 >conftest.err
16648 cat conftest.err >&5
16649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } >/dev/null && {
16651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16652 test ! -s conftest.err
16654 ac_header_preproc=yes
16656 $as_echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16659 ac_header_preproc=no
16662 rm -f conftest.err conftest.$ac_ext
16663 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16664 $as_echo "$ac_header_preproc" >&6; }
16666 # So? What about this header?
16667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16669 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16670 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16671 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
16672 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
16673 ac_header_preproc=yes
16676 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
16677 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
16678 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
16679 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
16680 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
16681 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
16682 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
16683 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16684 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
16685 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
16686 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
16687 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
16691 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16692 $as_echo_n "checking for zlib.h... " >&6; }
16693 if test "${ac_cv_header_zlib_h+set}" = set; then
16694 $as_echo_n "(cached) " >&6
16696 ac_cv_header_zlib_h=$ac_header_preproc
16698 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16699 $as_echo "$ac_cv_header_zlib_h" >&6; }
16702 if test "x$ac_cv_header_zlib_h" = x""yes; then
16705 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16707 { { $as_echo "$as_me:$LINENO: error:
16708 *** zlib.h missing, zlib-devel package required
16709 See \`config.log' for more details." >&5
16710 $as_echo "$as_me: error:
16711 *** zlib.h missing, zlib-devel package required
16712 See \`config.log' for more details." >&2;}
16713 { (exit 1); exit 1; }; }; }
16719 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
16720 $as_echo_n "checking for compress2 in -lz... " >&6; }
16721 if test "${ac_cv_lib_z_compress2+set}" = set; then
16722 $as_echo_n "(cached) " >&6
16724 ac_check_lib_save_LIBS=$LIBS
16726 cat >conftest.$ac_ext <<_ACEOF
16729 cat confdefs.h >>conftest.$ac_ext
16730 cat >>conftest.$ac_ext <<_ACEOF
16731 /* end confdefs.h. */
16733 /* Override any GCC internal prototype to avoid an error.
16734 Use char because int might match the return type of a GCC
16735 builtin and then its argument prototype would still apply. */
16743 return compress2 ();
16748 rm -f conftest.$ac_objext conftest$ac_exeext
16749 if { (ac_try="$ac_link"
16750 case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16755 $as_echo "$ac_try_echo") >&5
16756 (eval "$ac_link") 2>conftest.er1
16758 grep -v '^ *+' conftest.er1 >conftest.err
16760 cat conftest.err >&5
16761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } && {
16763 test -z "$ac_c_werror_flag" ||
16764 test ! -s conftest.err
16765 } && test -s conftest$ac_exeext && {
16766 test "$cross_compiling" = yes ||
16767 $as_test_x conftest$ac_exeext
16769 ac_cv_lib_z_compress2=yes
16771 $as_echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 ac_cv_lib_z_compress2=no
16777 rm -rf conftest.dSYM
16778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16779 conftest$ac_exeext conftest.$ac_ext
16780 LIBS=$ac_check_lib_save_LIBS
16782 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
16783 $as_echo "$ac_cv_lib_z_compress2" >&6; }
16784 if test "x$ac_cv_lib_z_compress2" = x""yes; then
16785 cat >>confdefs.h <<_ACEOF
16786 #define HAVE_LIBZ 1
16792 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16794 { { $as_echo "$as_me:$LINENO: error:
16795 *** compress2() missing, zlib-devel package required
16796 See \`config.log' for more details." >&5
16797 $as_echo "$as_me: error:
16798 *** compress2() missing, zlib-devel package required
16799 See \`config.log' for more details." >&2;}
16800 { (exit 1); exit 1; }; }; }
16805 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
16806 $as_echo_n "checking for uncompress in -lz... " >&6; }
16807 if test "${ac_cv_lib_z_uncompress+set}" = set; then
16808 $as_echo_n "(cached) " >&6
16810 ac_check_lib_save_LIBS=$LIBS
16812 cat >conftest.$ac_ext <<_ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16819 /* Override any GCC internal prototype to avoid an error.
16820 Use char because int might match the return type of a GCC
16821 builtin and then its argument prototype would still apply. */
16825 char uncompress ();
16829 return uncompress ();
16834 rm -f conftest.$ac_objext conftest$ac_exeext
16835 if { (ac_try="$ac_link"
16836 case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16841 $as_echo "$ac_try_echo") >&5
16842 (eval "$ac_link") 2>conftest.er1
16844 grep -v '^ *+' conftest.er1 >conftest.err
16846 cat conftest.err >&5
16847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } && {
16849 test -z "$ac_c_werror_flag" ||
16850 test ! -s conftest.err
16851 } && test -s conftest$ac_exeext && {
16852 test "$cross_compiling" = yes ||
16853 $as_test_x conftest$ac_exeext
16855 ac_cv_lib_z_uncompress=yes
16857 $as_echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ac_cv_lib_z_uncompress=no
16863 rm -rf conftest.dSYM
16864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16865 conftest$ac_exeext conftest.$ac_ext
16866 LIBS=$ac_check_lib_save_LIBS
16868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
16869 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
16870 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
16871 cat >>confdefs.h <<_ACEOF
16872 #define HAVE_LIBZ 1
16878 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16880 { { $as_echo "$as_me:$LINENO: error:
16881 *** uncompress() missing, zlib-devel package required
16882 See \`config.log' for more details." >&5
16883 $as_echo "$as_me: error:
16884 *** uncompress() missing, zlib-devel package required
16885 See \`config.log' for more details." >&2;}
16886 { (exit 1); exit 1; }; }; }
16891 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
16892 $as_echo_n "checking for crc32 in -lz... " >&6; }
16893 if test "${ac_cv_lib_z_crc32+set}" = set; then
16894 $as_echo_n "(cached) " >&6
16896 ac_check_lib_save_LIBS=$LIBS
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16905 /* Override any GCC internal prototype to avoid an error.
16906 Use char because int might match the return type of a GCC
16907 builtin and then its argument prototype would still apply. */
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (ac_try="$ac_link"
16922 case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16927 $as_echo "$ac_try_echo") >&5
16928 (eval "$ac_link") 2>conftest.er1
16930 grep -v '^ *+' conftest.er1 >conftest.err
16932 cat conftest.err >&5
16933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } && {
16935 test -z "$ac_c_werror_flag" ||
16936 test ! -s conftest.err
16937 } && test -s conftest$ac_exeext && {
16938 test "$cross_compiling" = yes ||
16939 $as_test_x conftest$ac_exeext
16941 ac_cv_lib_z_crc32=yes
16943 $as_echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 ac_cv_lib_z_crc32=no
16949 rm -rf conftest.dSYM
16950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16951 conftest$ac_exeext conftest.$ac_ext
16952 LIBS=$ac_check_lib_save_LIBS
16954 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
16955 $as_echo "$ac_cv_lib_z_crc32" >&6; }
16956 if test "x$ac_cv_lib_z_crc32" = x""yes; then
16957 cat >>confdefs.h <<_ACEOF
16958 #define HAVE_LIBZ 1
16964 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16966 { { $as_echo "$as_me:$LINENO: error:
16967 *** crc32() missing, zlib-devel package required
16968 See \`config.log' for more details." >&5
16969 $as_echo "$as_me: error:
16970 *** crc32() missing, zlib-devel package required
16971 See \`config.log' for more details." >&2;}
16972 { (exit 1); exit 1; }; }; }
16979 cat >>confdefs.h <<\_ACEOF
16980 #define HAVE_ZLIB 1
16987 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
16988 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
16989 $as_echo_n "checking for uuid/uuid.h... " >&6; }
16990 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
16991 $as_echo_n "(cached) " >&6
16993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
16994 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
16996 # Is the header compilable?
16997 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
16998 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
16999 cat >conftest.$ac_ext <<_ACEOF
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h. */
17005 $ac_includes_default
17006 #include <uuid/uuid.h>
17008 rm -f conftest.$ac_objext
17009 if { (ac_try="$ac_compile"
17010 case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17015 $as_echo "$ac_try_echo") >&5
17016 (eval "$ac_compile") 2>conftest.er1
17018 grep -v '^ *+' conftest.er1 >conftest.err
17020 cat conftest.err >&5
17021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } && {
17023 test -z "$ac_c_werror_flag" ||
17024 test ! -s conftest.err
17025 } && test -s conftest.$ac_objext; then
17026 ac_header_compiler=yes
17028 $as_echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17031 ac_header_compiler=no
17034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17035 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17036 $as_echo "$ac_header_compiler" >&6; }
17038 # Is the header present?
17039 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
17040 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
17041 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 #include <uuid/uuid.h>
17049 if { (ac_try="$ac_cpp conftest.$ac_ext"
17050 case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17055 $as_echo "$ac_try_echo") >&5
17056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17058 grep -v '^ *+' conftest.er1 >conftest.err
17060 cat conftest.err >&5
17061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } >/dev/null && {
17063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17064 test ! -s conftest.err
17066 ac_header_preproc=yes
17068 $as_echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 ac_header_preproc=no
17074 rm -f conftest.err conftest.$ac_ext
17075 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17076 $as_echo "$ac_header_preproc" >&6; }
17078 # So? What about this header?
17079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17081 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
17082 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17083 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
17084 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
17085 ac_header_preproc=yes
17088 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
17089 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
17090 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
17091 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
17092 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
17093 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
17094 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
17095 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
17096 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
17097 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
17098 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
17099 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
17103 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17104 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17105 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17106 $as_echo_n "(cached) " >&6
17108 ac_cv_header_uuid_uuid_h=$ac_header_preproc
17110 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17111 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17114 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
17117 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17119 { { $as_echo "$as_me:$LINENO: error:
17120 *** uuid/uuid.h missing, libuuid-devel package required
17121 See \`config.log' for more details." >&5
17122 $as_echo "$as_me: error:
17123 *** uuid/uuid.h missing, libuuid-devel package required
17124 See \`config.log' for more details." >&2;}
17125 { (exit 1); exit 1; }; }; }
17131 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
17132 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17133 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
17134 $as_echo_n "(cached) " >&6
17136 ac_check_lib_save_LIBS=$LIBS
17137 LIBS="-luuid $LIBS"
17138 cat >conftest.$ac_ext <<_ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17145 /* Override any GCC internal prototype to avoid an error.
17146 Use char because int might match the return type of a GCC
17147 builtin and then its argument prototype would still apply. */
17151 char uuid_generate ();
17155 return uuid_generate ();
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (ac_try="$ac_link"
17162 case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17167 $as_echo "$ac_try_echo") >&5
17168 (eval "$ac_link") 2>conftest.er1
17170 grep -v '^ *+' conftest.er1 >conftest.err
17172 cat conftest.err >&5
17173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } && {
17175 test -z "$ac_c_werror_flag" ||
17176 test ! -s conftest.err
17177 } && test -s conftest$ac_exeext && {
17178 test "$cross_compiling" = yes ||
17179 $as_test_x conftest$ac_exeext
17181 ac_cv_lib_uuid_uuid_generate=yes
17183 $as_echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17186 ac_cv_lib_uuid_uuid_generate=no
17189 rm -rf conftest.dSYM
17190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17191 conftest$ac_exeext conftest.$ac_ext
17192 LIBS=$ac_check_lib_save_LIBS
17194 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
17195 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17196 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
17197 cat >>confdefs.h <<_ACEOF
17198 #define HAVE_LIBUUID 1
17201 LIBS="-luuid $LIBS"
17204 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17206 { { $as_echo "$as_me:$LINENO: error:
17207 *** uuid_generate() missing, libuuid-devel package required
17208 See \`config.log' for more details." >&5
17209 $as_echo "$as_me: error:
17210 *** uuid_generate() missing, libuuid-devel package required
17211 See \`config.log' for more details." >&2;}
17212 { (exit 1); exit 1; }; }; }
17217 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
17218 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
17219 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
17220 $as_echo_n "(cached) " >&6
17222 ac_check_lib_save_LIBS=$LIBS
17223 LIBS="-luuid $LIBS"
17224 cat >conftest.$ac_ext <<_ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h. */
17231 /* Override any GCC internal prototype to avoid an error.
17232 Use char because int might match the return type of a GCC
17233 builtin and then its argument prototype would still apply. */
17237 char uuid_is_null ();
17241 return uuid_is_null ();
17246 rm -f conftest.$ac_objext conftest$ac_exeext
17247 if { (ac_try="$ac_link"
17248 case "(($ac_try" in
17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250 *) ac_try_echo=$ac_try;;
17252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17253 $as_echo "$ac_try_echo") >&5
17254 (eval "$ac_link") 2>conftest.er1
17256 grep -v '^ *+' conftest.er1 >conftest.err
17258 cat conftest.err >&5
17259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } && {
17261 test -z "$ac_c_werror_flag" ||
17262 test ! -s conftest.err
17263 } && test -s conftest$ac_exeext && {
17264 test "$cross_compiling" = yes ||
17265 $as_test_x conftest$ac_exeext
17267 ac_cv_lib_uuid_uuid_is_null=yes
17269 $as_echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 ac_cv_lib_uuid_uuid_is_null=no
17275 rm -rf conftest.dSYM
17276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17277 conftest$ac_exeext conftest.$ac_ext
17278 LIBS=$ac_check_lib_save_LIBS
17280 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17281 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17282 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
17283 cat >>confdefs.h <<_ACEOF
17284 #define HAVE_LIBUUID 1
17287 LIBS="-luuid $LIBS"
17290 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17292 { { $as_echo "$as_me:$LINENO: error:
17293 *** uuid_is_null() missing, libuuid-devel package required
17294 See \`config.log' for more details." >&5
17295 $as_echo "$as_me: error:
17296 *** uuid_is_null() missing, libuuid-devel package required
17297 See \`config.log' for more details." >&2;}
17298 { (exit 1); exit 1; }; }; }
17305 cat >>confdefs.h <<\_ACEOF
17306 #define HAVE_LIBUUID 1
17312 # Check whether --with-blkid was given.
17313 if test "${with_blkid+set}" = set; then
17314 withval=$with_blkid;
17321 if test "x$with_blkid" != xno; then
17323 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
17324 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17325 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
17326 $as_echo_n "(cached) " >&6
17328 ac_check_lib_save_LIBS=$LIBS
17329 LIBS="-lblkid $LIBS"
17330 cat >conftest.$ac_ext <<_ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h. */
17337 /* Override any GCC internal prototype to avoid an error.
17338 Use char because int might match the return type of a GCC
17339 builtin and then its argument prototype would still apply. */
17343 char blkid_get_cache ();
17347 return blkid_get_cache ();
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17359 $as_echo "$ac_try_echo") >&5
17360 (eval "$ac_link") 2>conftest.er1
17362 grep -v '^ *+' conftest.er1 >conftest.err
17364 cat conftest.err >&5
17365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } && {
17367 test -z "$ac_c_werror_flag" ||
17368 test ! -s conftest.err
17369 } && test -s conftest$ac_exeext && {
17370 test "$cross_compiling" = yes ||
17371 $as_test_x conftest$ac_exeext
17373 ac_cv_lib_blkid_blkid_get_cache=yes
17375 $as_echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 ac_cv_lib_blkid_blkid_get_cache=no
17381 rm -rf conftest.dSYM
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383 conftest$ac_exeext conftest.$ac_ext
17384 LIBS=$ac_check_lib_save_LIBS
17386 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
17387 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
17388 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
17390 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
17391 $as_echo_n "checking for blkid zfs support... " >&6; }
17394 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
17395 >/dev/null 2>/dev/null
17396 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
17397 dd of=$ZFS_DEV bs=1k count=8 \
17398 seek=132 conv=notrunc &>/dev/null \
17399 >/dev/null 2>/dev/null
17401 saved_LDFLAGS="$LDFLAGS"
17404 if test "$cross_compiling" = yes; then
17405 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17407 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17408 See \`config.log' for more details." >&5
17409 $as_echo "$as_me: error: cannot run test program while cross compiling
17410 See \`config.log' for more details." >&2;}
17411 { (exit 1); exit 1; }; }; }
17413 cat >conftest.$ac_ext <<_ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17421 #include <blkid/blkid.h>
17430 if (blkid_get_cache(&cache, NULL) < 0)
17433 value = blkid_get_tag_value(cache, "TYPE",
17436 blkid_put_cache(cache);
17440 if (strcmp(value, "zfs")) {
17442 blkid_put_cache(cache);
17447 blkid_put_cache(cache);
17453 rm -f conftest$ac_exeext
17454 if { (ac_try="$ac_link"
17455 case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17460 $as_echo "$ac_try_echo") >&5
17461 (eval "$ac_link") 2>&5
17463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17465 { (case "(($ac_try" in
17466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467 *) ac_try_echo=$ac_try;;
17469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17470 $as_echo "$ac_try_echo") >&5
17471 (eval "$ac_try") 2>&5
17473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17477 { $as_echo "$as_me:$LINENO: result: yes" >&5
17478 $as_echo "yes" >&6; }
17482 cat >>confdefs.h <<\_ACEOF
17483 #define HAVE_LIBBLKID 1
17488 $as_echo "$as_me: program exited with status $ac_status" >&5
17489 $as_echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17492 ( exit $ac_status )
17495 { $as_echo "$as_me:$LINENO: result: no" >&5
17496 $as_echo "no" >&6; }
17497 if test "x$with_blkid" != xcheck; then
17498 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17500 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17501 See \`config.log' for more details." >&5
17502 $as_echo "$as_me: error: --with-blkid given but unavailable
17503 See \`config.log' for more details." >&2;}
17504 { (exit 1); exit 1; }; }; }
17509 rm -rf conftest.dSYM
17510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17515 LDFLAGS="$saved_LDFLAGS"
17519 if test "x$with_blkid" != xcheck; then
17520 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17522 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17523 See \`config.log' for more details." >&5
17524 $as_echo "$as_me: error: --with-blkid given but unavailable
17525 See \`config.log' for more details." >&2;}
17526 { (exit 1); exit 1; }; }; }
17539 # Check whether --with-selinux was given.
17540 if test "${with_selinux+set}" = set; then
17541 withval=$with_selinux;
17548 if test "x$with_selinux" != xno; then
17550 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17551 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
17552 $as_echo_n "checking for selinux/selinux.h... " >&6; }
17553 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17554 $as_echo_n "(cached) " >&6
17556 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
17557 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
17559 # Is the header compilable?
17560 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
17561 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
17562 cat >conftest.$ac_ext <<_ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17568 $ac_includes_default
17569 #include <selinux/selinux.h>
17571 rm -f conftest.$ac_objext
17572 if { (ac_try="$ac_compile"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17578 $as_echo "$ac_try_echo") >&5
17579 (eval "$ac_compile") 2>conftest.er1
17581 grep -v '^ *+' conftest.er1 >conftest.err
17583 cat conftest.err >&5
17584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } && {
17586 test -z "$ac_c_werror_flag" ||
17587 test ! -s conftest.err
17588 } && test -s conftest.$ac_objext; then
17589 ac_header_compiler=yes
17591 $as_echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 ac_header_compiler=no
17597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17598 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17599 $as_echo "$ac_header_compiler" >&6; }
17601 # Is the header present?
17602 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
17603 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
17604 cat >conftest.$ac_ext <<_ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17610 #include <selinux/selinux.h>
17612 if { (ac_try="$ac_cpp conftest.$ac_ext"
17613 case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17618 $as_echo "$ac_try_echo") >&5
17619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17621 grep -v '^ *+' conftest.er1 >conftest.err
17623 cat conftest.err >&5
17624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } >/dev/null && {
17626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17627 test ! -s conftest.err
17629 ac_header_preproc=yes
17631 $as_echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17634 ac_header_preproc=no
17637 rm -f conftest.err conftest.$ac_ext
17638 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17639 $as_echo "$ac_header_preproc" >&6; }
17641 # So? What about this header?
17642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17644 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
17645 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17646 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
17647 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
17648 ac_header_preproc=yes
17651 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
17652 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
17653 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
17654 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
17655 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
17656 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
17657 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
17658 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
17659 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
17660 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
17661 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
17662 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
17666 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
17667 $as_echo_n "checking for selinux/selinux.h... " >&6; }
17668 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17669 $as_echo_n "(cached) " >&6
17671 ac_cv_header_selinux_selinux_h=$ac_header_preproc
17673 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
17674 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
17677 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
17679 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
17680 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17681 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
17682 $as_echo_n "(cached) " >&6
17684 ac_check_lib_save_LIBS=$LIBS
17685 LIBS="-lselinux $LIBS"
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17693 /* Override any GCC internal prototype to avoid an error.
17694 Use char because int might match the return type of a GCC
17695 builtin and then its argument prototype would still apply. */
17699 char is_selinux_enabled ();
17703 return is_selinux_enabled ();
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (ac_try="$ac_link"
17710 case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17715 $as_echo "$ac_try_echo") >&5
17716 (eval "$ac_link") 2>conftest.er1
17718 grep -v '^ *+' conftest.er1 >conftest.err
17720 cat conftest.err >&5
17721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } && {
17723 test -z "$ac_c_werror_flag" ||
17724 test ! -s conftest.err
17725 } && test -s conftest$ac_exeext && {
17726 test "$cross_compiling" = yes ||
17727 $as_test_x conftest$ac_exeext
17729 ac_cv_lib_selinux_is_selinux_enabled=yes
17731 $as_echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17734 ac_cv_lib_selinux_is_selinux_enabled=no
17737 rm -rf conftest.dSYM
17738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17739 conftest$ac_exeext conftest.$ac_ext
17740 LIBS=$ac_check_lib_save_LIBS
17742 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17743 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17744 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
17746 LIBSELINUX="-lselinux"
17749 cat >>confdefs.h <<\_ACEOF
17750 #define HAVE_LIBSELINUX 1
17756 if test "x$with_selinux" != xcheck; then
17757 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17759 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
17760 See \`config.log' for more details." >&5
17761 $as_echo "$as_me: error: --with-selinux given but unavailable
17762 See \`config.log' for more details." >&2;}
17763 { (exit 1); exit 1; }; }; }
17773 if test "x$with_selinux" != xcheck; then
17774 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17776 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
17777 See \`config.log' for more details." >&5
17778 $as_echo "$as_me: error: --with-selinux given but unavailable
17779 See \`config.log' for more details." >&2;}
17780 { (exit 1); exit 1; }; }; }
17791 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
17792 $as_echo_n "checking for selinux support... " >&6; }
17793 { $as_echo "$as_me:$LINENO: result: no" >&5
17794 $as_echo "no" >&6; }
17800 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
17801 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
17803 saved_flags="$CFLAGS"
17804 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
17806 if test "$cross_compiling" = yes; then
17807 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17809 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17810 See \`config.log' for more details." >&5
17811 $as_echo "$as_me: error: cannot run test program while cross compiling
17812 See \`config.log' for more details." >&2;}
17813 { (exit 1); exit 1; }; }; }
17815 cat >conftest.$ac_ext <<_ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17830 rm -f conftest$ac_exeext
17831 if { (ac_try="$ac_link"
17832 case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17837 $as_echo "$ac_try_echo") >&5
17838 (eval "$ac_link") 2>&5
17840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17842 { (case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17847 $as_echo "$ac_try_echo") >&5
17848 (eval "$ac_try") 2>&5
17850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
17853 FRAME_LARGER_THAN=-Wframe-larger-than=1024
17854 { $as_echo "$as_me:$LINENO: result: yes" >&5
17855 $as_echo "yes" >&6; }
17858 $as_echo "$as_me: program exited with status $ac_status" >&5
17859 $as_echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 ( exit $ac_status )
17865 { $as_echo "$as_me:$LINENO: result: no" >&5
17866 $as_echo "no" >&6; }
17869 rm -rf conftest.dSYM
17870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17875 CFLAGS="$saved_flags"
17880 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
17881 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
17883 saved_CFLAGS="$CFLAGS"
17884 CFLAGS="-fstack-check"
17885 saved_LDFLAGS="$LDFLAGS"
17886 LDFLAGS="-lpthread"
17888 if test "$cross_compiling" = yes; then
17889 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17891 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17892 See \`config.log' for more details." >&5
17893 $as_echo "$as_me: error: cannot run test program while cross compiling
17894 See \`config.log' for more details." >&2;}
17895 { (exit 1); exit 1; }; }; }
17897 cat >conftest.$ac_ext <<_ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17904 #include <pthread.h>
17905 #include <sys/resource.h>
17906 #include <unistd.h>
17907 #include <bits/local_lim.h>
17909 #define PAGESIZE (sysconf(_SC_PAGESIZE))
17910 #define STACK_SIZE 8192
17911 #define BUFSIZE 4096
17913 void * func(void *arg)
17923 pthread_attr_t attr;
17928 setrlimit(RLIMIT_CORE, &l);
17929 pthread_attr_init(&attr);
17930 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
17931 pthread_attr_setguardsize(&attr, PAGESIZE);
17932 pthread_create(&tid, &attr, func, NULL);
17933 pthread_join(tid, NULL);
17939 rm -f conftest$ac_exeext
17940 if { (ac_try="$ac_link"
17941 case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17946 $as_echo "$ac_try_echo") >&5
17947 (eval "$ac_link") 2>&5
17949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17956 $as_echo "$ac_try_echo") >&5
17957 (eval "$ac_try") 2>&5
17959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17962 { $as_echo "$as_me:$LINENO: result: no" >&5
17963 $as_echo "no" >&6; }
17966 $as_echo "$as_me: program exited with status $ac_status" >&5
17967 $as_echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 ( exit $ac_status )
17973 cat >>confdefs.h <<\_ACEOF
17974 #define NPTL_GUARD_WITHIN_STACK 1
17977 { $as_echo "$as_me:$LINENO: result: yes" >&5
17978 $as_echo "yes" >&6; }
17981 rm -rf conftest.dSYM
17982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17986 CFLAGS="$saved_CFLAGS"
17987 LDFLAGS="$saved_LDFLAGS"
17993 # Check whether --with-linux was given.
17994 if test "${with_linux+set}" = set; then
17995 withval=$with_linux; kernelsrc="$withval"
18000 # Check whether --with-linux-obj was given.
18001 if test "${with_linux_obj+set}" = set; then
18002 withval=$with_linux_obj; kernelbuild="$withval"
18006 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
18007 $as_echo_n "checking kernel source directory... " >&6; }
18008 if test -z "$kernelsrc"; then
18010 if test -e "/lib/modules/$(uname -r)/source"; then
18012 headersdir="/lib/modules/$(uname -r)/source"
18013 sourcelink=$(readlink -f "$headersdir")
18015 elif test -e "/lib/modules/$(uname -r)/build"; then
18017 headersdir="/lib/modules/$(uname -r)/build"
18018 sourcelink=$(readlink -f "$headersdir")
18022 sourcelink=$(ls -1d /usr/src/kernels/* \
18024 2>/dev/null | grep -v obj | tail -1)
18029 if test -n "$sourcelink" && test -e ${sourcelink}; then
18031 kernelsrc=`readlink -f ${sourcelink}`
18035 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18036 $as_echo "Not found" >&6; }
18037 { { $as_echo "$as_me:$LINENO: error:
18038 *** Please make sure the kernel devel package for your distribution
18039 *** is installed then try again. If that fails you can specify the
18040 *** location of the kernel source with the '--with-linux=PATH' option." >&5
18041 $as_echo "$as_me: error:
18042 *** Please make sure the kernel devel package for your distribution
18043 *** is installed then try again. If that fails you can specify the
18044 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
18045 { (exit 1); exit 1; }; }
18052 if test "$kernelsrc" = "NONE"; then
18062 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
18063 $as_echo "$kernelsrc" >&6; }
18064 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
18065 $as_echo_n "checking kernel build directory... " >&6; }
18066 if test -z "$kernelbuild"; then
18068 if test -e "/lib/modules/$(uname -r)/build"; then
18070 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
18072 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
18074 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
18076 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
18078 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
18080 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
18082 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
18086 kernelbuild=${kernelsrc}
18093 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
18094 $as_echo "$kernelbuild" >&6; }
18096 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
18097 $as_echo_n "checking kernel source version... " >&6; }
18098 utsrelease1=$kernelbuild/include/linux/version.h
18099 utsrelease2=$kernelbuild/include/linux/utsrelease.h
18100 utsrelease3=$kernelbuild/include/generated/utsrelease.h
18101 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
18103 utsrelease=linux/version.h
18105 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
18107 utsrelease=linux/utsrelease.h
18109 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
18111 utsrelease=generated/utsrelease.h
18116 if test "$utsrelease"; then
18118 kernsrcver=`(echo "#include <$utsrelease>";
18119 echo "kernsrcver=UTS_RELEASE") |
18120 cpp -I $kernelbuild/include |
18121 grep "^kernsrcver=" | cut -d \" -f 2`
18123 if test -z "$kernsrcver"; then
18125 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18126 $as_echo "Not found" >&6; }
18127 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
18128 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
18129 { (exit 1); exit 1; }; }
18136 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18137 $as_echo "Not found" >&6; }
18138 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
18139 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
18140 { (exit 1); exit 1; }; }
18145 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
18146 $as_echo "$kernsrcver" >&6; }
18149 LINUX_OBJ=${kernelbuild}
18150 LINUX_VERSION=${kernsrcver}
18157 modpost=$LINUX/scripts/Makefile.modpost
18158 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
18159 $as_echo_n "checking kernel file name for module symbols... " >&6; }
18160 if test -f "$modpost"; then
18162 if grep -q Modules.symvers $modpost; then
18164 LINUX_SYMBOLS=Modules.symvers
18168 LINUX_SYMBOLS=Module.symvers
18173 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
18175 { { $as_echo "$as_me:$LINENO: error:
18176 *** Please make sure the kernel devel package for your distribution
18177 *** is installed. If your building with a custom kernel make sure the
18178 *** kernel is configured, built, and the '--with-linux=PATH' configure
18179 *** option refers to the location of the kernel source." >&5
18180 $as_echo "$as_me: error:
18181 *** Please make sure the kernel devel package for your distribution
18182 *** is installed. If your building with a custom kernel make sure the
18183 *** kernel is configured, built, and the '--with-linux=PATH' configure
18184 *** option refers to the location of the kernel source." >&2;}
18185 { (exit 1); exit 1; }; }
18196 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
18197 $as_echo "$LINUX_SYMBOLS" >&6; }
18203 # Check whether --with-spl was given.
18204 if test "${with_spl+set}" = set; then
18205 withval=$with_spl; splsrc="$withval"
18210 # Check whether --with-spl-obj was given.
18211 if test "${with_spl_obj+set}" = set; then
18212 withval=$with_spl_obj; splbuild="$withval"
18217 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
18218 $as_echo_n "checking spl source directory... " >&6; }
18219 if test -z "$splsrc"; then
18221 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
18222 2>/dev/null | tail -1`
18224 if test -z "$sourcelink" || test ! -e $sourcelink; then
18231 if test -e $sourcelink; then
18233 splsrc=`readlink -f ${sourcelink}`
18237 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18238 $as_echo "Not found" >&6; }
18239 { { $as_echo "$as_me:$LINENO: error:
18240 *** Please make sure the spl devel package for your distribution
18241 *** is installed then try again. If that fails you can specify the
18242 *** location of the spl source with the '--with-spl=PATH' option." >&5
18243 $as_echo "$as_me: error:
18244 *** Please make sure the spl devel package for your distribution
18245 *** is installed then try again. If that fails you can specify the
18246 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
18247 { (exit 1); exit 1; }; }
18254 if test "$splsrc" = "NONE"; then
18265 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
18266 $as_echo "$splsrc" >&6; }
18267 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
18268 $as_echo_n "checking spl build directory... " >&6; }
18269 if test -z "$splbuild"; then
18275 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
18276 $as_echo "$splbuild" >&6; }
18278 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
18279 $as_echo_n "checking spl source version... " >&6; }
18280 if test -r $splbuild/spl_config.h &&
18281 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
18284 splsrcver=`(echo "#include <spl_config.h>";
18285 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
18287 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
18292 if test -z "$splsrcver"; then
18294 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18295 $as_echo "Not found" >&6; }
18296 { { $as_echo "$as_me:$LINENO: error:
18297 *** Cannot determine the version of the spl source.
18298 *** Please prepare the spl source before running this script" >&5
18299 $as_echo "$as_me: error:
18300 *** Cannot determine the version of the spl source.
18301 *** Please prepare the spl source before running this script" >&2;}
18302 { (exit 1); exit 1; }; }
18307 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
18308 $as_echo "$splsrcver" >&6; }
18311 SPL_OBJ=${splbuild}
18312 SPL_VERSION=${splsrcver}
18319 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
18320 $as_echo_n "checking spl file name for module symbols... " >&6; }
18321 if test -r $SPL_OBJ/Module.symvers; then
18323 SPL_SYMBOLS=Module.symvers
18325 elif test -r $SPL_OBJ/Modules.symvers; then
18327 SPL_SYMBOLS=Modules.symvers
18329 elif test -r $SPL_OBJ/module/Module.symvers; then
18331 SPL_SYMBOLS=Module.symvers
18333 elif test -r $SPL_OBJ/module/Modules.symvers; then
18335 SPL_SYMBOLS=Modules.symvers
18339 SPL_SYMBOLS=$LINUX_SYMBOLS
18344 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
18345 $as_echo "$SPL_SYMBOLS" >&6; }
18351 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
18352 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
18355 cat confdefs.h - <<_ACEOF >conftest.c
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h. */
18363 #include <linux/module.h>
18369 #ifndef CONFIG_PREEMPT
18370 #error CONFIG_PREEMPT not #defined
18380 rm -Rf build && mkdir -p build
18381 echo "obj-m := conftest.o" >build/Makefile
18382 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; }; then
18394 { $as_echo "$as_me:$LINENO: result: yes" >&5
18395 $as_echo "yes" >&6; }
18396 { { $as_echo "$as_me:$LINENO: error:
18397 *** Kernel built with CONFIG_PREEMPT which is not supported.
18398 *** You must rebuild your kernel without this option." >&5
18399 $as_echo "$as_me: error:
18400 *** Kernel built with CONFIG_PREEMPT which is not supported.
18401 *** You must rebuild your kernel without this option." >&2;}
18402 { (exit 1); exit 1; }; }
18405 $as_echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18408 { $as_echo "$as_me:$LINENO: result: no" >&5
18409 $as_echo "no" >&6; }
18421 if test "$ZFS_META_LICENSE" = CDDL; then
18423 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
18424 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
18427 cat confdefs.h - <<_ACEOF >conftest.c
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18435 #include <linux/module.h>
18441 #ifndef CONFIG_DEBUG_LOCK_ALLOC
18442 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
18452 rm -Rf build && mkdir -p build
18453 echo "obj-m := conftest.o" >build/Makefile
18454 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461 (eval $ac_try) 2>&5
18463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; }; then
18466 { $as_echo "$as_me:$LINENO: result: yes" >&5
18467 $as_echo "yes" >&6; }
18468 { { $as_echo "$as_me:$LINENO: error:
18469 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
18470 *** incompatible with the CDDL license. You must rebuild
18471 *** your kernel without this option." >&5
18472 $as_echo "$as_me: error:
18473 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
18474 *** incompatible with the CDDL license. You must rebuild
18475 *** your kernel without this option." >&2;}
18476 { (exit 1); exit 1; }; }
18479 $as_echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18482 { $as_echo "$as_me:$LINENO: result: no" >&5
18483 $as_echo "no" >&6; }
18498 if test "$ZFS_META_LICENSE" = GPL; then
18501 cat >>confdefs.h <<\_ACEOF
18502 #define HAVE_GPL_ONLY_SYMBOLS 1
18510 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
18511 $as_echo_n "checking block device operation prototypes... " >&6; }
18512 tmp_flags="$EXTRA_KCFLAGS"
18513 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
18516 cat confdefs.h - <<_ACEOF >conftest.c
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18524 #include <linux/blkdev.h>
18530 int (*blk_open) (struct block_device *, fmode_t) = NULL;
18531 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
18532 int (*blk_ioctl) (struct block_device *, fmode_t,
18533 unsigned, unsigned long) = NULL;
18534 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
18535 unsigned, unsigned long) = NULL;
18536 struct block_device_operations blk_ops = {
18538 .release = blk_release,
18539 .ioctl = blk_ioctl,
18540 .compat_ioctl = blk_compat_ioctl,
18543 blk_ops.open(NULL, 0);
18544 blk_ops.release(NULL, 0);
18545 blk_ops.ioctl(NULL, 0, 0, 0);
18546 blk_ops.compat_ioctl(NULL, 0, 0, 0);
18555 rm -Rf build && mkdir -p build
18556 echo "obj-m := conftest.o" >build/Makefile
18557 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; }; then
18569 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
18570 $as_echo "struct block_device" >&6; }
18572 cat >>confdefs.h <<\_ACEOF
18573 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
18578 $as_echo "$as_me: failed program was:" >&5
18579 sed 's/^/| /' conftest.$ac_ext >&5
18581 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
18582 $as_echo "struct inode" >&6; }
18591 EXTRA_KCFLAGS="$tmp_flags"
18593 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
18594 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
18597 cat confdefs.h - <<_ACEOF >conftest.c
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18605 #include <linux/types.h>
18611 fmode_t *ptr __attribute__ ((unused));
18620 rm -Rf build && mkdir -p build
18621 echo "obj-m := conftest.o" >build/Makefile
18622 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; }; then
18634 { $as_echo "$as_me:$LINENO: result: yes" >&5
18635 $as_echo "yes" >&6; }
18637 cat >>confdefs.h <<\_ACEOF
18638 #define HAVE_FMODE_T 1
18643 $as_echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 { $as_echo "$as_me:$LINENO: result: no" >&5
18647 $as_echo "no" >&6; }
18658 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
18659 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
18662 cat confdefs.h - <<_ACEOF >conftest.c
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18670 #include <linux/kobject.h>
18676 int val __attribute__ ((unused));
18677 val = KOBJ_NAME_LEN;
18686 rm -Rf build && mkdir -p build
18687 echo "obj-m := conftest.o" >build/Makefile
18688 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18700 { $as_echo "$as_me:$LINENO: result: yes" >&5
18701 $as_echo "yes" >&6; }
18703 cat >>confdefs.h <<\_ACEOF
18704 #define HAVE_KOBJ_NAME_LEN 1
18709 $as_echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18712 { $as_echo "$as_me:$LINENO: result: no" >&5
18713 $as_echo "no" >&6; }
18724 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
18725 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
18726 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
18727 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18729 if test $rc -ne 0; then
18732 for file in fs/block_dev.c; do
18733 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
18735 if test $rc -eq 0; then
18743 if test $export -eq 0; then
18745 { $as_echo "$as_me:$LINENO: result: no" >&5
18746 $as_echo "no" >&6; }
18751 { $as_echo "$as_me:$LINENO: result: yes" >&5
18752 $as_echo "yes" >&6; }
18754 cat >>confdefs.h <<\_ACEOF
18755 #define HAVE_BLKDEV_GET_BY_PATH 1
18764 { $as_echo "$as_me:$LINENO: result: yes" >&5
18765 $as_echo "yes" >&6; }
18767 cat >>confdefs.h <<\_ACEOF
18768 #define HAVE_BLKDEV_GET_BY_PATH 1
18777 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
18778 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
18779 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
18780 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18782 if test $rc -ne 0; then
18785 for file in fs/block_dev.c; do
18786 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
18788 if test $rc -eq 0; then
18796 if test $export -eq 0; then
18798 { $as_echo "$as_me:$LINENO: result: no" >&5
18799 $as_echo "no" >&6; }
18804 { $as_echo "$as_me:$LINENO: result: yes" >&5
18805 $as_echo "yes" >&6; }
18807 cat >>confdefs.h <<\_ACEOF
18808 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
18817 { $as_echo "$as_me:$LINENO: result: yes" >&5
18818 $as_echo "yes" >&6; }
18820 cat >>confdefs.h <<\_ACEOF
18821 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
18830 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
18831 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
18834 cat confdefs.h - <<_ACEOF >conftest.c
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18842 #include <linux/buffer_head.h>
18848 struct block_device *bdev = NULL;
18849 invalidate_bdev(bdev);
18858 rm -Rf build && mkdir -p build
18859 echo "obj-m := conftest.o" >build/Makefile
18860 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18872 { $as_echo "$as_me:$LINENO: result: yes" >&5
18873 $as_echo "yes" >&6; }
18875 cat >>confdefs.h <<\_ACEOF
18876 #define HAVE_1ARG_INVALIDATE_BDEV 1
18881 $as_echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18884 { $as_echo "$as_me:$LINENO: result: no" >&5
18885 $as_echo "no" >&6; }
18896 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
18897 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
18898 tmp_flags="$EXTRA_KCFLAGS"
18899 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
18902 cat confdefs.h - <<_ACEOF >conftest.c
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18910 #include <linux/blkdev.h>
18916 struct block_device *bdev = NULL;
18917 bdev_logical_block_size(bdev);
18926 rm -Rf build && mkdir -p build
18927 echo "obj-m := conftest.o" >build/Makefile
18928 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18940 { $as_echo "$as_me:$LINENO: result: yes" >&5
18941 $as_echo "yes" >&6; }
18943 cat >>confdefs.h <<\_ACEOF
18944 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
18949 $as_echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18952 { $as_echo "$as_me:$LINENO: result: no" >&5
18953 $as_echo "no" >&6; }
18962 EXTRA_KCFLAGS="$tmp_flags"
18965 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
18966 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
18967 EXTRA_KCFLAGS="-Werror"
18970 cat confdefs.h - <<_ACEOF >conftest.c
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18978 #include <linux/bio.h>
18985 (void)bio_empty_barrier(&bio);
18994 rm -Rf build && mkdir -p build
18995 echo "obj-m := conftest.o" >build/Makefile
18996 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
19000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
19008 { $as_echo "$as_me:$LINENO: result: yes" >&5
19009 $as_echo "yes" >&6; }
19011 cat >>confdefs.h <<\_ACEOF
19012 #define HAVE_BIO_EMPTY_BARRIER 1
19017 $as_echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 { $as_echo "$as_me:$LINENO: result: no" >&5
19021 $as_echo "no" >&6; }
19032 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
19033 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
19036 cat confdefs.h - <<_ACEOF >conftest.c
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19044 #include <linux/bio.h>
19050 int flags __attribute__ ((unused));
19051 flags = (1 << BIO_RW_FAILFAST);
19060 rm -Rf build && mkdir -p build
19061 echo "obj-m := conftest.o" >build/Makefile
19062 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19074 { $as_echo "$as_me:$LINENO: result: yes" >&5
19075 $as_echo "yes" >&6; }
19077 cat >>confdefs.h <<\_ACEOF
19078 #define HAVE_BIO_RW_FAILFAST 1
19083 $as_echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19086 { $as_echo "$as_me:$LINENO: result: no" >&5
19087 $as_echo "no" >&6; }
19098 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
19099 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
19102 cat confdefs.h - <<_ACEOF >conftest.c
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19110 #include <linux/bio.h>
19116 int flags __attribute__ ((unused));
19117 flags = ((1 << BIO_RW_FAILFAST_DEV) |
19118 (1 << BIO_RW_FAILFAST_TRANSPORT) |
19119 (1 << BIO_RW_FAILFAST_DRIVER));
19128 rm -Rf build && mkdir -p build
19129 echo "obj-m := conftest.o" >build/Makefile
19130 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132 (eval $ac_try) 2>&5
19134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19142 { $as_echo "$as_me:$LINENO: result: yes" >&5
19143 $as_echo "yes" >&6; }
19145 cat >>confdefs.h <<\_ACEOF
19146 #define HAVE_BIO_RW_FAILFAST_DTD 1
19151 $as_echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 { $as_echo "$as_me:$LINENO: result: no" >&5
19155 $as_echo "no" >&6; }
19166 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
19167 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
19170 cat confdefs.h - <<_ACEOF >conftest.c
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h. */
19178 #include <linux/bio.h>
19184 int flags __attribute__ ((unused));
19185 flags = REQ_FAILFAST_MASK;
19194 rm -Rf build && mkdir -p build
19195 echo "obj-m := conftest.o" >build/Makefile
19196 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; }; then
19208 { $as_echo "$as_me:$LINENO: result: yes" >&5
19209 $as_echo "yes" >&6; }
19211 cat >>confdefs.h <<\_ACEOF
19212 #define HAVE_BIO_REQ_FAILFAST_MASK 1
19217 $as_echo "$as_me: failed program was:" >&5
19218 sed 's/^/| /' conftest.$ac_ext >&5
19220 { $as_echo "$as_me:$LINENO: result: no" >&5
19221 $as_echo "no" >&6; }
19232 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
19233 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
19234 tmp_flags="$EXTRA_KCFLAGS"
19235 EXTRA_KCFLAGS="-Werror"
19238 cat confdefs.h - <<_ACEOF >conftest.c
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19246 #include <linux/bio.h>
19252 void (*wanted_end_io)(struct bio *, int) = NULL;
19253 bio_end_io_t *local_end_io __attribute__ ((unused));
19255 local_end_io = wanted_end_io;
19264 rm -Rf build && mkdir -p build
19265 echo "obj-m := conftest.o" >build/Makefile
19266 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19278 { $as_echo "$as_me:$LINENO: result: yes" >&5
19279 $as_echo "yes" >&6; }
19281 cat >>confdefs.h <<\_ACEOF
19282 #define HAVE_2ARGS_BIO_END_IO_T 1
19287 $as_echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 { $as_echo "$as_me:$LINENO: result: no" >&5
19291 $as_echo "no" >&6; }
19300 EXTRA_KCFLAGS="$tmp_flags"
19303 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
19304 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
19307 cat confdefs.h - <<_ACEOF >conftest.c
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19315 #include <linux/bio.h>
19321 int flags __attribute__ ((unused));
19322 flags = BIO_RW_SYNC;
19331 rm -Rf build && mkdir -p build
19332 echo "obj-m := conftest.o" >build/Makefile
19333 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19345 { $as_echo "$as_me:$LINENO: result: yes" >&5
19346 $as_echo "yes" >&6; }
19348 cat >>confdefs.h <<\_ACEOF
19349 #define HAVE_BIO_RW_SYNC 1
19354 $as_echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19357 { $as_echo "$as_me:$LINENO: result: no" >&5
19358 $as_echo "no" >&6; }
19369 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
19370 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
19373 cat confdefs.h - <<_ACEOF >conftest.c
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19381 #include <linux/bio.h>
19387 int flags __attribute__ ((unused));
19388 flags = BIO_RW_SYNCIO;
19397 rm -Rf build && mkdir -p build
19398 echo "obj-m := conftest.o" >build/Makefile
19399 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; }; then
19411 { $as_echo "$as_me:$LINENO: result: yes" >&5
19412 $as_echo "yes" >&6; }
19414 cat >>confdefs.h <<\_ACEOF
19415 #define HAVE_BIO_RW_SYNCIO 1
19420 $as_echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19423 { $as_echo "$as_me:$LINENO: result: no" >&5
19424 $as_echo "no" >&6; }
19435 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
19436 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
19439 cat confdefs.h - <<_ACEOF >conftest.c
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h. */
19447 #include <linux/bio.h>
19453 int flags __attribute__ ((unused));
19463 rm -Rf build && mkdir -p build
19464 echo "obj-m := conftest.o" >build/Makefile
19465 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19477 { $as_echo "$as_me:$LINENO: result: yes" >&5
19478 $as_echo "yes" >&6; }
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE_REQ_SYNC 1
19486 $as_echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 { $as_echo "$as_me:$LINENO: result: no" >&5
19490 $as_echo "no" >&6; }
19501 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
19502 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
19503 tmp_flags="$EXTRA_KCFLAGS"
19504 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19507 cat confdefs.h - <<_ACEOF >conftest.c
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19515 #include <linux/blkdev.h>
19521 struct request *req = NULL;
19522 (void) blk_end_request(req, 0, 0);
19531 rm -Rf build && mkdir -p build
19532 echo "obj-m := conftest.o" >build/Makefile
19533 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19545 { $as_echo "$as_me:$LINENO: result: yes" >&5
19546 $as_echo "yes" >&6; }
19548 cat >>confdefs.h <<\_ACEOF
19549 #define HAVE_BLK_END_REQUEST 1
19554 $as_echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19557 { $as_echo "$as_me:$LINENO: result: no" >&5
19558 $as_echo "no" >&6; }
19568 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
19569 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
19572 cat confdefs.h - <<_ACEOF >conftest.c
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19580 #include <linux/module.h>
19581 #include <linux/blkdev.h>
19583 MODULE_LICENSE("CDDL");
19589 struct request *req = NULL;
19590 (void) blk_end_request(req, 0, 0);
19599 rm -Rf build && mkdir -p build
19600 echo "obj-m := conftest.o" >build/Makefile
19601 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19613 { $as_echo "$as_me:$LINENO: result: no" >&5
19614 $as_echo "no" >&6; }
19617 $as_echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19620 { $as_echo "$as_me:$LINENO: result: yes" >&5
19621 $as_echo "yes" >&6; }
19623 cat >>confdefs.h <<\_ACEOF
19624 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
19635 EXTRA_KCFLAGS="$tmp_flags"
19638 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
19639 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
19640 tmp_flags="$EXTRA_KCFLAGS"
19641 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19644 cat confdefs.h - <<_ACEOF >conftest.c
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19652 #include <linux/blkdev.h>
19658 struct request_queue *q = NULL;
19659 (void) blk_queue_flush(q, REQ_FLUSH);
19668 rm -Rf build && mkdir -p build
19669 echo "obj-m := conftest.o" >build/Makefile
19670 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 (eval $ac_try) 2>&5
19674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; }; then
19682 { $as_echo "$as_me:$LINENO: result: yes" >&5
19683 $as_echo "yes" >&6; }
19685 cat >>confdefs.h <<\_ACEOF
19686 #define HAVE_BLK_QUEUE_FLUSH 1
19691 $as_echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19694 { $as_echo "$as_me:$LINENO: result: no" >&5
19695 $as_echo "no" >&6; }
19705 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
19706 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
19709 cat confdefs.h - <<_ACEOF >conftest.c
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19717 #include <linux/module.h>
19718 #include <linux/blkdev.h>
19720 MODULE_LICENSE("CDDL");
19726 struct request_queue *q = NULL;
19727 (void) blk_queue_flush(q, REQ_FLUSH);
19736 rm -Rf build && mkdir -p build
19737 echo "obj-m := conftest.o" >build/Makefile
19738 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; }; then
19750 { $as_echo "$as_me:$LINENO: result: no" >&5
19751 $as_echo "no" >&6; }
19754 $as_echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19757 { $as_echo "$as_me:$LINENO: result: yes" >&5
19758 $as_echo "yes" >&6; }
19760 cat >>confdefs.h <<\_ACEOF
19761 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
19772 EXTRA_KCFLAGS="$tmp_flags"
19775 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
19776 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
19777 tmp_flags="$EXTRA_KCFLAGS"
19778 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19781 cat confdefs.h - <<_ACEOF >conftest.c
19784 cat confdefs.h >>conftest.$ac_ext
19785 cat >>conftest.$ac_ext <<_ACEOF
19786 /* end confdefs.h. */
19789 #include <linux/blkdev.h>
19795 struct request_queue *q = NULL;
19796 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
19805 rm -Rf build && mkdir -p build
19806 echo "obj-m := conftest.o" >build/Makefile
19807 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; }; then
19819 { $as_echo "$as_me:$LINENO: result: yes" >&5
19820 $as_echo "yes" >&6; }
19822 cat >>confdefs.h <<\_ACEOF
19823 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
19828 $as_echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19831 { $as_echo "$as_me:$LINENO: result: no" >&5
19832 $as_echo "no" >&6; }
19841 EXTRA_KCFLAGS="$tmp_flags"
19844 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
19845 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
19846 tmp_flags="$EXTRA_KCFLAGS"
19847 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19850 cat confdefs.h - <<_ACEOF >conftest.c
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19858 #include <linux/blkdev.h>
19864 struct request_queue *q = NULL;
19865 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
19874 rm -Rf build && mkdir -p build
19875 echo "obj-m := conftest.o" >build/Makefile
19876 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19888 { $as_echo "$as_me:$LINENO: result: yes" >&5
19889 $as_echo "yes" >&6; }
19891 cat >>confdefs.h <<\_ACEOF
19892 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
19897 $as_echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 { $as_echo "$as_me:$LINENO: result: no" >&5
19901 $as_echo "no" >&6; }
19910 EXTRA_KCFLAGS="$tmp_flags"
19913 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
19914 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
19915 tmp_flags="$EXTRA_KCFLAGS"
19916 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19919 cat confdefs.h - <<_ACEOF >conftest.c
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19927 #include <linux/blkdev.h>
19933 struct request_queue *q = NULL;
19934 unsigned short block_size = 1;
19935 (void) blk_queue_physical_block_size(q, block_size);
19944 rm -Rf build && mkdir -p build
19945 echo "obj-m := conftest.o" >build/Makefile
19946 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19958 { $as_echo "$as_me:$LINENO: result: yes" >&5
19959 $as_echo "yes" >&6; }
19961 cat >>confdefs.h <<\_ACEOF
19962 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
19967 $as_echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19970 { $as_echo "$as_me:$LINENO: result: no" >&5
19971 $as_echo "no" >&6; }
19980 EXTRA_KCFLAGS="$tmp_flags"
19983 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
19984 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
19985 tmp_flags="$EXTRA_KCFLAGS"
19986 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19989 cat confdefs.h - <<_ACEOF >conftest.c
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19997 #include <linux/blkdev.h>
20003 struct request_queue *q = NULL;
20004 unsigned int opt = 1;
20005 (void) blk_queue_io_opt(q, opt);
20014 rm -Rf build && mkdir -p build
20015 echo "obj-m := conftest.o" >build/Makefile
20016 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; }; then
20028 { $as_echo "$as_me:$LINENO: result: yes" >&5
20029 $as_echo "yes" >&6; }
20031 cat >>confdefs.h <<\_ACEOF
20032 #define HAVE_BLK_QUEUE_IO_OPT 1
20037 $as_echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 { $as_echo "$as_me:$LINENO: result: no" >&5
20041 $as_echo "no" >&6; }
20050 EXTRA_KCFLAGS="$tmp_flags"
20053 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
20054 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
20055 tmp_flags="$EXTRA_KCFLAGS"
20056 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20059 cat confdefs.h - <<_ACEOF >conftest.c
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20067 #include <linux/blkdev.h>
20073 struct request_queue *q = NULL;
20074 (void) blk_queue_nonrot(q);
20083 rm -Rf build && mkdir -p build
20084 echo "obj-m := conftest.o" >build/Makefile
20085 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20087 (eval $ac_try) 2>&5
20089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; }; then
20097 { $as_echo "$as_me:$LINENO: result: yes" >&5
20098 $as_echo "yes" >&6; }
20100 cat >>confdefs.h <<\_ACEOF
20101 #define HAVE_BLK_QUEUE_NONROT 1
20106 $as_echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20109 { $as_echo "$as_me:$LINENO: result: no" >&5
20110 $as_echo "no" >&6; }
20119 EXTRA_KCFLAGS="$tmp_flags"
20122 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
20123 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
20124 tmp_flags="$EXTRA_KCFLAGS"
20125 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20128 cat confdefs.h - <<_ACEOF >conftest.c
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20136 #include <linux/blkdev.h>
20142 struct request_queue *q = NULL;
20143 (void) blk_queue_discard(q);
20152 rm -Rf build && mkdir -p build
20153 echo "obj-m := conftest.o" >build/Makefile
20154 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161 (eval $ac_try) 2>&5
20163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
20166 { $as_echo "$as_me:$LINENO: result: yes" >&5
20167 $as_echo "yes" >&6; }
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE_BLK_QUEUE_DISCARD 1
20175 $as_echo "$as_me: failed program was:" >&5
20176 sed 's/^/| /' conftest.$ac_ext >&5
20178 { $as_echo "$as_me:$LINENO: result: no" >&5
20179 $as_echo "no" >&6; }
20188 EXTRA_KCFLAGS="$tmp_flags"
20191 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
20192 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
20193 tmp_flags="$EXTRA_KCFLAGS"
20194 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20197 cat confdefs.h - <<_ACEOF >conftest.c
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20205 #include <linux/blkdev.h>
20211 struct request_queue *q = NULL;
20212 (void) blk_fetch_request(q);
20221 rm -Rf build && mkdir -p build
20222 echo "obj-m := conftest.o" >build/Makefile
20223 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20235 { $as_echo "$as_me:$LINENO: result: yes" >&5
20236 $as_echo "yes" >&6; }
20238 cat >>confdefs.h <<\_ACEOF
20239 #define HAVE_BLK_FETCH_REQUEST 1
20244 $as_echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20247 { $as_echo "$as_me:$LINENO: result: no" >&5
20248 $as_echo "no" >&6; }
20257 EXTRA_KCFLAGS="$tmp_flags"
20260 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
20261 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
20262 tmp_flags="$EXTRA_KCFLAGS"
20263 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20266 cat confdefs.h - <<_ACEOF >conftest.c
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20274 #include <linux/blkdev.h>
20280 struct request_queue *q = NULL;
20281 struct request *req = NULL;
20282 blk_requeue_request(q, req);
20291 rm -Rf build && mkdir -p build
20292 echo "obj-m := conftest.o" >build/Makefile
20293 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20305 { $as_echo "$as_me:$LINENO: result: yes" >&5
20306 $as_echo "yes" >&6; }
20308 cat >>confdefs.h <<\_ACEOF
20309 #define HAVE_BLK_REQUEUE_REQUEST 1
20314 $as_echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 { $as_echo "$as_me:$LINENO: result: no" >&5
20318 $as_echo "no" >&6; }
20327 EXTRA_KCFLAGS="$tmp_flags"
20330 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
20331 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
20332 tmp_flags="$EXTRA_KCFLAGS"
20333 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20336 cat confdefs.h - <<_ACEOF >conftest.c
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20344 #include <linux/blkdev.h>
20350 struct request *req = NULL;
20351 (void) blk_rq_bytes(req);
20360 rm -Rf build && mkdir -p build
20361 echo "obj-m := conftest.o" >build/Makefile
20362 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20374 { $as_echo "$as_me:$LINENO: result: yes" >&5
20375 $as_echo "yes" >&6; }
20377 cat >>confdefs.h <<\_ACEOF
20378 #define HAVE_BLK_RQ_BYTES 1
20383 $as_echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20386 { $as_echo "$as_me:$LINENO: result: no" >&5
20387 $as_echo "no" >&6; }
20397 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
20398 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
20401 cat confdefs.h - <<_ACEOF >conftest.c
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20409 #include <linux/module.h>
20410 #include <linux/blkdev.h>
20412 MODULE_LICENSE("CDDL");
20418 struct request *req = NULL;
20419 (void) blk_rq_bytes(req);
20428 rm -Rf build && mkdir -p build
20429 echo "obj-m := conftest.o" >build/Makefile
20430 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20442 { $as_echo "$as_me:$LINENO: result: no" >&5
20443 $as_echo "no" >&6; }
20446 $as_echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 { $as_echo "$as_me:$LINENO: result: yes" >&5
20450 $as_echo "yes" >&6; }
20452 cat >>confdefs.h <<\_ACEOF
20453 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
20464 EXTRA_KCFLAGS="$tmp_flags"
20467 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
20468 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
20469 tmp_flags="$EXTRA_KCFLAGS"
20470 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20473 cat confdefs.h - <<_ACEOF >conftest.c
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20481 #include <linux/blkdev.h>
20487 struct request *req = NULL;
20488 (void) blk_rq_pos(req);
20497 rm -Rf build && mkdir -p build
20498 echo "obj-m := conftest.o" >build/Makefile
20499 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501 (eval $ac_try) 2>&5
20503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; }; then
20511 { $as_echo "$as_me:$LINENO: result: yes" >&5
20512 $as_echo "yes" >&6; }
20514 cat >>confdefs.h <<\_ACEOF
20515 #define HAVE_BLK_RQ_POS 1
20520 $as_echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20523 { $as_echo "$as_me:$LINENO: result: no" >&5
20524 $as_echo "no" >&6; }
20533 EXTRA_KCFLAGS="$tmp_flags"
20536 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
20537 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
20538 tmp_flags="$EXTRA_KCFLAGS"
20539 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20542 cat confdefs.h - <<_ACEOF >conftest.c
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h. */
20550 #include <linux/blkdev.h>
20556 struct request *req = NULL;
20557 (void) blk_rq_sectors(req);
20566 rm -Rf build && mkdir -p build
20567 echo "obj-m := conftest.o" >build/Makefile
20568 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575 (eval $ac_try) 2>&5
20577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; }; then
20580 { $as_echo "$as_me:$LINENO: result: yes" >&5
20581 $as_echo "yes" >&6; }
20583 cat >>confdefs.h <<\_ACEOF
20584 #define HAVE_BLK_RQ_SECTORS 1
20589 $as_echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20592 { $as_echo "$as_me:$LINENO: result: no" >&5
20593 $as_echo "no" >&6; }
20602 EXTRA_KCFLAGS="$tmp_flags"
20605 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
20606 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
20607 tmp_flags="$EXTRA_KCFLAGS"
20608 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20611 cat confdefs.h - <<_ACEOF >conftest.c
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h. */
20619 #include <linux/blkdev.h>
20625 struct gendisk *disk = NULL;
20626 (void) get_disk_ro(disk);
20635 rm -Rf build && mkdir -p build
20636 echo "obj-m := conftest.o" >build/Makefile
20637 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20649 { $as_echo "$as_me:$LINENO: result: yes" >&5
20650 $as_echo "yes" >&6; }
20652 cat >>confdefs.h <<\_ACEOF
20653 #define HAVE_GET_DISK_RO 1
20658 $as_echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 { $as_echo "$as_me:$LINENO: result: no" >&5
20662 $as_echo "no" >&6; }
20671 EXTRA_KCFLAGS="$tmp_flags"
20674 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
20675 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
20676 tmp_flags="$EXTRA_KCFLAGS"
20677 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20680 cat confdefs.h - <<_ACEOF >conftest.c
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20688 #include <linux/blkdev.h>
20694 struct request *req = NULL;
20695 (void) rq_is_sync(req);
20704 rm -Rf build && mkdir -p build
20705 echo "obj-m := conftest.o" >build/Makefile
20706 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708 (eval $ac_try) 2>&5
20710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713 (eval $ac_try) 2>&5
20715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; }; then
20718 { $as_echo "$as_me:$LINENO: result: yes" >&5
20719 $as_echo "yes" >&6; }
20721 cat >>confdefs.h <<\_ACEOF
20722 #define HAVE_RQ_IS_SYNC 1
20727 $as_echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730 { $as_echo "$as_me:$LINENO: result: no" >&5
20731 $as_echo "no" >&6; }
20740 EXTRA_KCFLAGS="$tmp_flags"
20743 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
20744 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
20745 tmp_flags="$EXTRA_KCFLAGS"
20746 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20749 cat confdefs.h - <<_ACEOF >conftest.c
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20757 #include <linux/blkdev.h>
20763 struct bio_vec *bv;
20764 struct req_iterator iter;
20765 struct request *req = NULL;
20766 rq_for_each_segment(bv, req, iter) { }
20775 rm -Rf build && mkdir -p build
20776 echo "obj-m := conftest.o" >build/Makefile
20777 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20789 { $as_echo "$as_me:$LINENO: result: yes" >&5
20790 $as_echo "yes" >&6; }
20792 cat >>confdefs.h <<\_ACEOF
20793 #define HAVE_RQ_FOR_EACH_SEGMENT 1
20798 $as_echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20801 { $as_echo "$as_me:$LINENO: result: no" >&5
20802 $as_echo "no" >&6; }
20811 EXTRA_KCFLAGS="$tmp_flags"
20813 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
20814 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
20817 cat confdefs.h - <<_ACEOF >conftest.c
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h. */
20825 #include <linux/fs.h>
20826 #include <linux/xattr.h>
20828 const struct xattr_handler xattr_test_handler = {
20834 const struct xattr_handler *xattr_handlers[] = {
20835 &xattr_test_handler,
20842 struct super_block sb __attribute__ ((unused));
20844 sb.s_xattr = xattr_handlers;
20853 rm -Rf build && mkdir -p build
20854 echo "obj-m := conftest.o" >build/Makefile
20855 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857 (eval $ac_try) 2>&5
20859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; }; then
20867 { $as_echo "$as_me:$LINENO: result: yes" >&5
20868 $as_echo "yes" >&6; }
20870 cat >>confdefs.h <<\_ACEOF
20871 #define HAVE_CONST_XATTR_HANDLER 1
20876 $as_echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 { $as_echo "$as_me:$LINENO: result: no" >&5
20880 $as_echo "no" >&6; }
20891 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
20892 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
20895 cat confdefs.h - <<_ACEOF >conftest.c
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20903 #include <linux/xattr.h>
20909 int (*get)(struct dentry *dentry, const char *name,
20910 void *buffer, size_t size, int handler_flags) = NULL;
20911 struct xattr_handler xops __attribute__ ((unused));
20922 rm -Rf build && mkdir -p build
20923 echo "obj-m := conftest.o" >build/Makefile
20924 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926 (eval $ac_try) 2>&5
20928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20936 { $as_echo "$as_me:$LINENO: result: yes" >&5
20937 $as_echo "yes" >&6; }
20939 cat >>confdefs.h <<\_ACEOF
20940 #define HAVE_DENTRY_XATTR_GET 1
20945 $as_echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 { $as_echo "$as_me:$LINENO: result: no" >&5
20949 $as_echo "no" >&6; }
20960 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
20961 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
20964 cat confdefs.h - <<_ACEOF >conftest.c
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20972 #include <linux/xattr.h>
20978 int (*set)(struct dentry *dentry, const char *name,
20979 const void *buffer, size_t size, int flags,
20980 int handler_flags) = NULL;
20981 struct xattr_handler xops __attribute__ ((unused));
20992 rm -Rf build && mkdir -p build
20993 echo "obj-m := conftest.o" >build/Makefile
20994 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; }; then
21006 { $as_echo "$as_me:$LINENO: result: yes" >&5
21007 $as_echo "yes" >&6; }
21009 cat >>confdefs.h <<\_ACEOF
21010 #define HAVE_DENTRY_XATTR_SET 1
21015 $as_echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21018 { $as_echo "$as_me:$LINENO: result: no" >&5
21019 $as_echo "no" >&6; }
21030 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
21031 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21035 cat confdefs.h - <<_ACEOF >conftest.c
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21043 #include <linux/fs.h>
21049 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
21050 struct super_operations sops __attribute__ ((unused));
21052 sops.show_options = show_options;
21061 rm -Rf build && mkdir -p build
21062 echo "obj-m := conftest.o" >build/Makefile
21063 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065 (eval $ac_try) 2>&5
21067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21075 { $as_echo "$as_me:$LINENO: result: yes" >&5
21076 $as_echo "yes" >&6; }
21078 cat >>confdefs.h <<\_ACEOF
21079 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
21084 $as_echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 { $as_echo "$as_me:$LINENO: result: no" >&5
21088 $as_echo "no" >&6; }
21099 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
21100 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
21104 cat confdefs.h - <<_ACEOF >conftest.c
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21112 #include <linux/fs.h>
21118 int (*fsync) (struct file *, struct dentry *, int) = NULL;
21119 struct file_operations fops __attribute__ ((unused));
21121 fops.fsync = fsync;
21130 rm -Rf build && mkdir -p build
21131 echo "obj-m := conftest.o" >build/Makefile
21132 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21134 (eval $ac_try) 2>&5
21136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139 (eval $ac_try) 2>&5
21141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; }; then
21144 { $as_echo "$as_me:$LINENO: result: dentry" >&5
21145 $as_echo "dentry" >&6; }
21147 cat >>confdefs.h <<\_ACEOF
21148 #define HAVE_FSYNC_WITH_DENTRY 1
21153 $as_echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21168 cat confdefs.h - <<_ACEOF >conftest.c
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h. */
21176 #include <linux/fs.h>
21182 int (*fsync) (struct file *, int) = NULL;
21183 struct file_operations fops __attribute__ ((unused));
21185 fops.fsync = fsync;
21194 rm -Rf build && mkdir -p build
21195 echo "obj-m := conftest.o" >build/Makefile
21196 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21208 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
21209 $as_echo "no dentry" >&6; }
21211 cat >>confdefs.h <<\_ACEOF
21212 #define HAVE_FSYNC_WITHOUT_DENTRY 1
21217 $as_echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21232 cat confdefs.h - <<_ACEOF >conftest.c
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21240 #include <linux/fs.h>
21246 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
21247 struct file_operations fops __attribute__ ((unused));
21249 fops.fsync = fsync;
21258 rm -Rf build && mkdir -p build
21259 echo "obj-m := conftest.o" >build/Makefile
21260 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262 (eval $ac_try) 2>&5
21264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21272 { $as_echo "$as_me:$LINENO: result: range" >&5
21273 $as_echo "range" >&6; }
21275 cat >>confdefs.h <<\_ACEOF
21276 #define HAVE_FSYNC_RANGE 1
21281 $as_echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21295 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
21296 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
21299 cat confdefs.h - <<_ACEOF >conftest.c
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21307 #include <linux/fs.h>
21313 void (*evict_inode) (struct inode *) = NULL;
21314 struct super_operations sops __attribute__ ((unused)) = {
21315 .evict_inode = evict_inode,
21325 rm -Rf build && mkdir -p build
21326 echo "obj-m := conftest.o" >build/Makefile
21327 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21329 (eval $ac_try) 2>&5
21331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; }; then
21339 { $as_echo "$as_me:$LINENO: result: yes" >&5
21340 $as_echo "yes" >&6; }
21342 cat >>confdefs.h <<\_ACEOF
21343 #define HAVE_EVICT_INODE 1
21348 $as_echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21351 { $as_echo "$as_me:$LINENO: result: no" >&5
21352 $as_echo "no" >&6; }
21363 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
21364 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
21367 cat confdefs.h - <<_ACEOF >conftest.c
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h. */
21375 #include <linux/fs.h>
21381 int (*nr_cached_objects)(struct super_block *)
21382 __attribute__ ((unused)) = NULL;
21383 struct super_operations sops __attribute__ ((unused)) = {
21384 .nr_cached_objects = nr_cached_objects,
21394 rm -Rf build && mkdir -p build
21395 echo "obj-m := conftest.o" >build/Makefile
21396 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398 (eval $ac_try) 2>&5
21400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21403 (eval $ac_try) 2>&5
21405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); }; }; then
21408 { $as_echo "$as_me:$LINENO: result: yes" >&5
21409 $as_echo "yes" >&6; }
21411 cat >>confdefs.h <<\_ACEOF
21412 #define HAVE_NR_CACHED_OBJECTS 1
21417 $as_echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21420 { $as_echo "$as_me:$LINENO: result: no" >&5
21421 $as_echo "no" >&6; }
21432 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
21433 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
21436 cat confdefs.h - <<_ACEOF >conftest.c
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21444 #include <linux/fs.h>
21450 void (*free_cached_objects)(struct super_block *, int)
21451 __attribute__ ((unused)) = NULL;
21452 struct super_operations sops __attribute__ ((unused)) = {
21453 .free_cached_objects = free_cached_objects,
21463 rm -Rf build && mkdir -p build
21464 echo "obj-m := conftest.o" >build/Makefile
21465 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21477 { $as_echo "$as_me:$LINENO: result: yes" >&5
21478 $as_echo "yes" >&6; }
21480 cat >>confdefs.h <<\_ACEOF
21481 #define HAVE_FREE_CACHED_OBJECTS 1
21486 $as_echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21489 { $as_echo "$as_me:$LINENO: result: no" >&5
21490 $as_echo "no" >&6; }
21502 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
21503 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
21506 cat confdefs.h - <<_ACEOF >conftest.c
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21514 #include <linux/fs.h>
21520 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
21521 struct file_operations fops __attribute__ ((unused)) = {
21522 .fallocate = fallocate,
21532 rm -Rf build && mkdir -p build
21533 echo "obj-m := conftest.o" >build/Makefile
21534 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; }; then
21546 { $as_echo "$as_me:$LINENO: result: yes" >&5
21547 $as_echo "yes" >&6; }
21549 cat >>confdefs.h <<\_ACEOF
21550 #define HAVE_FILE_FALLOCATE 1
21555 $as_echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 { $as_echo "$as_me:$LINENO: result: no" >&5
21559 $as_echo "no" >&6; }
21570 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
21571 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
21574 cat confdefs.h - <<_ACEOF >conftest.c
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21582 #include <linux/fs.h>
21588 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
21589 struct inode_operations fops __attribute__ ((unused)) = {
21590 .fallocate = fallocate,
21600 rm -Rf build && mkdir -p build
21601 echo "obj-m := conftest.o" >build/Makefile
21602 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604 (eval $ac_try) 2>&5
21606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21614 { $as_echo "$as_me:$LINENO: result: yes" >&5
21615 $as_echo "yes" >&6; }
21617 cat >>confdefs.h <<\_ACEOF
21618 #define HAVE_INODE_FALLOCATE 1
21623 $as_echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 { $as_echo "$as_me:$LINENO: result: no" >&5
21627 $as_echo "no" >&6; }
21639 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
21640 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21643 cat confdefs.h - <<_ACEOF >conftest.c
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21651 #include <linux/dcache.h>
21657 struct vfsmount *(*d_automount) (struct path *) = NULL;
21658 struct dentry_operations dops __attribute__ ((unused)) = {
21659 .d_automount = d_automount,
21669 rm -Rf build && mkdir -p build
21670 echo "obj-m := conftest.o" >build/Makefile
21671 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678 (eval $ac_try) 2>&5
21680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); }; }; then
21683 { $as_echo "$as_me:$LINENO: result: yes" >&5
21684 $as_echo "yes" >&6; }
21686 cat >>confdefs.h <<\_ACEOF
21687 #define HAVE_AUTOMOUNT 1
21692 $as_echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21695 { $as_echo "$as_me:$LINENO: result: no" >&5
21696 $as_echo "no" >&6; }
21707 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
21708 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
21709 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
21710 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21712 if test $rc -ne 0; then
21715 for file in fs/inode.c; do
21716 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
21718 if test $rc -eq 0; then
21726 if test $export -eq 0; then
21728 { $as_echo "$as_me:$LINENO: result: no" >&5
21729 $as_echo "no" >&6; }
21734 { $as_echo "$as_me:$LINENO: result: yes" >&5
21735 $as_echo "yes" >&6; }
21737 cat >>confdefs.h <<\_ACEOF
21738 #define HAVE_INSERT_INODE_LOCKED 1
21747 { $as_echo "$as_me:$LINENO: result: yes" >&5
21748 $as_echo "yes" >&6; }
21750 cat >>confdefs.h <<\_ACEOF
21751 #define HAVE_INSERT_INODE_LOCKED 1
21760 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
21761 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
21762 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
21763 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21765 if test $rc -ne 0; then
21768 for file in fs/dcache.c; do
21769 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
21771 if test $rc -eq 0; then
21779 if test $export -eq 0; then
21781 { $as_echo "$as_me:$LINENO: result: no" >&5
21782 $as_echo "no" >&6; }
21787 { $as_echo "$as_me:$LINENO: result: yes" >&5
21788 $as_echo "yes" >&6; }
21790 cat >>confdefs.h <<\_ACEOF
21791 #define HAVE_D_OBTAIN_ALIAS 1
21800 { $as_echo "$as_me:$LINENO: result: yes" >&5
21801 $as_echo "yes" >&6; }
21803 cat >>confdefs.h <<\_ACEOF
21804 #define HAVE_D_OBTAIN_ALIAS 1
21813 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
21814 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
21815 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
21816 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21818 if test $rc -ne 0; then
21821 for file in fs/block_dev.c; do
21822 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
21824 if test $rc -eq 0; then
21832 if test $export -eq 0; then
21834 { $as_echo "$as_me:$LINENO: result: no" >&5
21835 $as_echo "no" >&6; }
21840 { $as_echo "$as_me:$LINENO: result: yes" >&5
21841 $as_echo "yes" >&6; }
21843 cat >>confdefs.h <<\_ACEOF
21844 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
21853 { $as_echo "$as_me:$LINENO: result: yes" >&5
21854 $as_echo "yes" >&6; }
21856 cat >>confdefs.h <<\_ACEOF
21857 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
21866 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
21867 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
21868 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
21869 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21871 if test $rc -ne 0; then
21874 for file in mm/truncate.c; do
21875 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
21877 if test $rc -eq 0; then
21885 if test $export -eq 0; then
21887 { $as_echo "$as_me:$LINENO: result: no" >&5
21888 $as_echo "no" >&6; }
21893 { $as_echo "$as_me:$LINENO: result: yes" >&5
21894 $as_echo "yes" >&6; }
21896 cat >>confdefs.h <<\_ACEOF
21897 #define HAVE_TRUNCATE_SETSIZE 1
21906 { $as_echo "$as_me:$LINENO: result: yes" >&5
21907 $as_echo "yes" >&6; }
21909 cat >>confdefs.h <<\_ACEOF
21910 #define HAVE_TRUNCATE_SETSIZE 1
21919 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
21920 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
21921 tmp_flags="$EXTRA_KCFLAGS"
21922 EXTRA_KCFLAGS="-Werror"
21925 cat confdefs.h - <<_ACEOF >conftest.c
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21933 #include <linux/security.h>
21939 struct inode *ip __attribute__ ((unused)) = NULL;
21940 struct inode *dip __attribute__ ((unused)) = NULL;
21941 const struct qstr *str __attribute__ ((unused)) = NULL;
21942 char *name __attribute__ ((unused)) = NULL;
21943 void *value __attribute__ ((unused)) = NULL;
21944 size_t len __attribute__ ((unused)) = 0;
21946 security_inode_init_security(ip, dip, str, &name, &value, &len);
21955 rm -Rf build && mkdir -p build
21956 echo "obj-m := conftest.o" >build/Makefile
21957 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21959 (eval $ac_try) 2>&5
21961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; }; then
21969 { $as_echo "$as_me:$LINENO: result: yes" >&5
21970 $as_echo "yes" >&6; }
21972 cat >>confdefs.h <<\_ACEOF
21973 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
21978 $as_echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 { $as_echo "$as_me:$LINENO: result: no" >&5
21982 $as_echo "no" >&6; }
21991 EXTRA_KCFLAGS="$tmp_flags"
21994 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
21995 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
21996 tmp_flags="$EXTRA_KCFLAGS"
21997 EXTRA_KCFLAGS="-Werror"
22000 cat confdefs.h - <<_ACEOF >conftest.c
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22008 #include <linux/security.h>
22014 struct inode *ip __attribute__ ((unused)) = NULL;
22015 struct inode *dip __attribute__ ((unused)) = NULL;
22016 const struct qstr *str __attribute__ ((unused)) = NULL;
22017 initxattrs func __attribute__ ((unused)) = NULL;
22019 security_inode_init_security(ip, dip, str, func, NULL);
22028 rm -Rf build && mkdir -p build
22029 echo "obj-m := conftest.o" >build/Makefile
22030 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; }; then
22042 { $as_echo "$as_me:$LINENO: result: yes" >&5
22043 $as_echo "yes" >&6; }
22045 cat >>confdefs.h <<\_ACEOF
22046 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
22051 $as_echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22054 { $as_echo "$as_me:$LINENO: result: no" >&5
22055 $as_echo "no" >&6; }
22064 EXTRA_KCFLAGS="$tmp_flags"
22067 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
22068 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
22069 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
22070 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22072 if test $rc -ne 0; then
22075 for file in fs/super.c; do
22076 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
22078 if test $rc -eq 0; then
22086 if test $export -eq 0; then
22088 { $as_echo "$as_me:$LINENO: result: no" >&5
22089 $as_echo "no" >&6; }
22094 { $as_echo "$as_me:$LINENO: result: yes" >&5
22095 $as_echo "yes" >&6; }
22097 cat >>confdefs.h <<\_ACEOF
22098 #define HAVE_MOUNT_NODEV 1
22107 { $as_echo "$as_me:$LINENO: result: yes" >&5
22108 $as_echo "yes" >&6; }
22110 cat >>confdefs.h <<\_ACEOF
22111 #define HAVE_MOUNT_NODEV 1
22120 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
22121 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
22124 cat confdefs.h - <<_ACEOF >conftest.c
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h. */
22132 #include <linux/fs.h>
22138 int (*shrink)(struct shrinker *, struct shrink_control *sc)
22139 __attribute__ ((unused)) = NULL;
22140 struct super_block sb __attribute__ ((unused)) = {
22141 .s_shrink.shrink = shrink,
22142 .s_shrink.seeks = DEFAULT_SEEKS,
22143 .s_shrink.batch = 0,
22153 rm -Rf build && mkdir -p build
22154 echo "obj-m := conftest.o" >build/Makefile
22155 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157 (eval $ac_try) 2>&5
22159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; }; then
22167 { $as_echo "$as_me:$LINENO: result: yes" >&5
22168 $as_echo "yes" >&6; }
22170 cat >>confdefs.h <<\_ACEOF
22171 #define HAVE_SHRINK 1
22177 $as_echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22180 { $as_echo "$as_me:$LINENO: result: no" >&5
22181 $as_echo "no" >&6; }
22192 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
22193 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
22196 cat confdefs.h - <<_ACEOF >conftest.c
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22204 #include <linux/fs.h>
22210 struct super_block sb __attribute__ ((unused));
22220 rm -Rf build && mkdir -p build
22221 echo "obj-m := conftest.o" >build/Makefile
22222 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224 (eval $ac_try) 2>&5
22226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229 (eval $ac_try) 2>&5
22231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); }; }; then
22234 { $as_echo "$as_me:$LINENO: result: yes" >&5
22235 $as_echo "yes" >&6; }
22237 cat >>confdefs.h <<\_ACEOF
22243 $as_echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22246 { $as_echo "$as_me:$LINENO: result: no" >&5
22247 $as_echo "no" >&6; }
22258 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
22259 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
22260 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22261 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22263 if test $rc -ne 0; then
22266 for file in mm/backing-dev.c; do
22267 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
22269 if test $rc -eq 0; then
22277 if test $export -eq 0; then
22279 { $as_echo "$as_me:$LINENO: result: no" >&5
22280 $as_echo "no" >&6; }
22285 { $as_echo "$as_me:$LINENO: result: yes" >&5
22286 $as_echo "yes" >&6; }
22288 cat >>confdefs.h <<\_ACEOF
22289 #define HAVE_BDI_SETUP_AND_REGISTER 1
22298 { $as_echo "$as_me:$LINENO: result: yes" >&5
22299 $as_echo "yes" >&6; }
22301 cat >>confdefs.h <<\_ACEOF
22302 #define HAVE_BDI_SETUP_AND_REGISTER 1
22311 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
22312 $as_echo_n "checking whether set_nlink() is available... " >&6; }
22315 cat confdefs.h - <<_ACEOF >conftest.c
22318 cat confdefs.h >>conftest.$ac_ext
22319 cat >>conftest.$ac_ext <<_ACEOF
22320 /* end confdefs.h. */
22323 #include <linux/fs.h>
22330 unsigned int link = 0;
22331 (void) set_nlink(&node, link);
22340 rm -Rf build && mkdir -p build
22341 echo "obj-m := conftest.o" >build/Makefile
22342 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344 (eval $ac_try) 2>&5
22346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22354 { $as_echo "$as_me:$LINENO: result: yes" >&5
22355 $as_echo "yes" >&6; }
22357 cat >>confdefs.h <<\_ACEOF
22358 #define HAVE_SET_NLINK 1
22363 $as_echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22366 { $as_echo "$as_me:$LINENO: result: no" >&5
22367 $as_echo "no" >&6; }
22378 if test "$LINUX_OBJ" != "$LINUX"; then
22380 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
22387 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
22388 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
22389 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
22396 # Check whether --with-udevdir was given.
22397 if test "${with_udevdir+set}" = set; then
22398 withval=$with_udevdir; udevdir=$withval
22400 udevdir='${exec_prefix}/lib/udev'
22405 # Check whether --with-udevruledir was given.
22406 if test "${with_udevruledir+set}" = set; then
22407 withval=$with_udevruledir; udevruledir=$withval
22409 udevruledir='${udevdir}/rules.d'
22417 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
22418 $as_echo_n "checking for target asm dir... " >&6; }
22419 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
22421 case $TARGET_ARCH in
22423 TARGET_ASM_DIR=asm-${TARGET_ARCH}
22426 TARGET_ASM_DIR=asm-generic
22431 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
22432 $as_echo "$TARGET_ASM_DIR" >&6; }
22435 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
22436 $as_echo_n "checking for ioctl()... " >&6; }
22437 cat >conftest.$ac_ext <<_ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22443 #include <unistd.h>
22446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22447 $EGREP "ioctl" >/dev/null 2>&1; then
22454 cat >conftest.$ac_ext <<_ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22460 #include <sys/ioctl.h>
22463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22464 $EGREP "ioctl" >/dev/null 2>&1; then
22471 cat >conftest.$ac_ext <<_ACEOF
22474 cat confdefs.h >>conftest.$ac_ext
22475 cat >>conftest.$ac_ext <<_ACEOF
22476 /* end confdefs.h. */
22477 #include <stropts.h>
22480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22481 $EGREP "ioctl" >/dev/null 2>&1; then
22489 if test $is_unistd = yes; then
22492 cat >>confdefs.h <<\_ACEOF
22493 #define HAVE_IOCTL_IN_UNISTD_H 1
22498 if test $is_sys_ioctl = yes; then
22501 cat >>confdefs.h <<\_ACEOF
22502 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
22505 elif test $is_stropts = yes; then
22507 cat >>confdefs.h <<\_ACEOF
22508 #define HAVE_IOCTL_IN_STROPTS_H 1
22516 if test $result = no; then
22517 { $as_echo "$as_me:$LINENO: result: no" >&5
22518 $as_echo "no" >&6; }
22519 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
22520 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
22521 { (exit 1); exit 1; }; }
22523 { $as_echo "$as_me:$LINENO: result: yes" >&5
22524 $as_echo "yes" >&6; }
22530 if test "${ac_cv_header_zlib_h+set}" = set; then
22531 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
22532 $as_echo_n "checking for zlib.h... " >&6; }
22533 if test "${ac_cv_header_zlib_h+set}" = set; then
22534 $as_echo_n "(cached) " >&6
22536 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22537 $as_echo "$ac_cv_header_zlib_h" >&6; }
22539 # Is the header compilable?
22540 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
22541 $as_echo_n "checking zlib.h usability... " >&6; }
22542 cat >conftest.$ac_ext <<_ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 $ac_includes_default
22551 rm -f conftest.$ac_objext
22552 if { (ac_try="$ac_compile"
22553 case "(($ac_try" in
22554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555 *) ac_try_echo=$ac_try;;
22557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22558 $as_echo "$ac_try_echo") >&5
22559 (eval "$ac_compile") 2>conftest.er1
22561 grep -v '^ *+' conftest.er1 >conftest.err
22563 cat conftest.err >&5
22564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } && {
22566 test -z "$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 } && test -s conftest.$ac_objext; then
22569 ac_header_compiler=yes
22571 $as_echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22574 ac_header_compiler=no
22577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22578 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22579 $as_echo "$ac_header_compiler" >&6; }
22581 # Is the header present?
22582 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
22583 $as_echo_n "checking zlib.h presence... " >&6; }
22584 cat >conftest.$ac_ext <<_ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22592 if { (ac_try="$ac_cpp conftest.$ac_ext"
22593 case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22598 $as_echo "$ac_try_echo") >&5
22599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22601 grep -v '^ *+' conftest.er1 >conftest.err
22603 cat conftest.err >&5
22604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } >/dev/null && {
22606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22607 test ! -s conftest.err
22609 ac_header_preproc=yes
22611 $as_echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22614 ac_header_preproc=no
22617 rm -f conftest.err conftest.$ac_ext
22618 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22619 $as_echo "$ac_header_preproc" >&6; }
22621 # So? What about this header?
22622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22624 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22625 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22626 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22627 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22628 ac_header_preproc=yes
22631 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22632 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22633 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22634 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22635 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22636 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22637 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22638 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
22639 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22640 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22641 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22642 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22646 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
22647 $as_echo_n "checking for zlib.h... " >&6; }
22648 if test "${ac_cv_header_zlib_h+set}" = set; then
22649 $as_echo_n "(cached) " >&6
22651 ac_cv_header_zlib_h=$ac_header_preproc
22653 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22654 $as_echo "$ac_cv_header_zlib_h" >&6; }
22657 if test "x$ac_cv_header_zlib_h" = x""yes; then
22660 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22662 { { $as_echo "$as_me:$LINENO: error:
22663 *** zlib.h missing, zlib-devel package required
22664 See \`config.log' for more details." >&5
22665 $as_echo "$as_me: error:
22666 *** zlib.h missing, zlib-devel package required
22667 See \`config.log' for more details." >&2;}
22668 { (exit 1); exit 1; }; }; }
22674 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
22675 $as_echo_n "checking for compress2 in -lz... " >&6; }
22676 if test "${ac_cv_lib_z_compress2+set}" = set; then
22677 $as_echo_n "(cached) " >&6
22679 ac_check_lib_save_LIBS=$LIBS
22681 cat >conftest.$ac_ext <<_ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22688 /* Override any GCC internal prototype to avoid an error.
22689 Use char because int might match the return type of a GCC
22690 builtin and then its argument prototype would still apply. */
22698 return compress2 ();
22703 rm -f conftest.$ac_objext conftest$ac_exeext
22704 if { (ac_try="$ac_link"
22705 case "(($ac_try" in
22706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707 *) ac_try_echo=$ac_try;;
22709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22710 $as_echo "$ac_try_echo") >&5
22711 (eval "$ac_link") 2>conftest.er1
22713 grep -v '^ *+' conftest.er1 >conftest.err
22715 cat conftest.err >&5
22716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } && {
22718 test -z "$ac_c_werror_flag" ||
22719 test ! -s conftest.err
22720 } && test -s conftest$ac_exeext && {
22721 test "$cross_compiling" = yes ||
22722 $as_test_x conftest$ac_exeext
22724 ac_cv_lib_z_compress2=yes
22726 $as_echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22729 ac_cv_lib_z_compress2=no
22732 rm -rf conftest.dSYM
22733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22734 conftest$ac_exeext conftest.$ac_ext
22735 LIBS=$ac_check_lib_save_LIBS
22737 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
22738 $as_echo "$ac_cv_lib_z_compress2" >&6; }
22739 if test "x$ac_cv_lib_z_compress2" = x""yes; then
22740 cat >>confdefs.h <<_ACEOF
22741 #define HAVE_LIBZ 1
22747 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22749 { { $as_echo "$as_me:$LINENO: error:
22750 *** compress2() missing, zlib-devel package required
22751 See \`config.log' for more details." >&5
22752 $as_echo "$as_me: error:
22753 *** compress2() missing, zlib-devel package required
22754 See \`config.log' for more details." >&2;}
22755 { (exit 1); exit 1; }; }; }
22760 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
22761 $as_echo_n "checking for uncompress in -lz... " >&6; }
22762 if test "${ac_cv_lib_z_uncompress+set}" = set; then
22763 $as_echo_n "(cached) " >&6
22765 ac_check_lib_save_LIBS=$LIBS
22767 cat >conftest.$ac_ext <<_ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22774 /* Override any GCC internal prototype to avoid an error.
22775 Use char because int might match the return type of a GCC
22776 builtin and then its argument prototype would still apply. */
22780 char uncompress ();
22784 return uncompress ();
22789 rm -f conftest.$ac_objext conftest$ac_exeext
22790 if { (ac_try="$ac_link"
22791 case "(($ac_try" in
22792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793 *) ac_try_echo=$ac_try;;
22795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22796 $as_echo "$ac_try_echo") >&5
22797 (eval "$ac_link") 2>conftest.er1
22799 grep -v '^ *+' conftest.er1 >conftest.err
22801 cat conftest.err >&5
22802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } && {
22804 test -z "$ac_c_werror_flag" ||
22805 test ! -s conftest.err
22806 } && test -s conftest$ac_exeext && {
22807 test "$cross_compiling" = yes ||
22808 $as_test_x conftest$ac_exeext
22810 ac_cv_lib_z_uncompress=yes
22812 $as_echo "$as_me: failed program was:" >&5
22813 sed 's/^/| /' conftest.$ac_ext >&5
22815 ac_cv_lib_z_uncompress=no
22818 rm -rf conftest.dSYM
22819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22820 conftest$ac_exeext conftest.$ac_ext
22821 LIBS=$ac_check_lib_save_LIBS
22823 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
22824 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
22825 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
22826 cat >>confdefs.h <<_ACEOF
22827 #define HAVE_LIBZ 1
22833 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22835 { { $as_echo "$as_me:$LINENO: error:
22836 *** uncompress() missing, zlib-devel package required
22837 See \`config.log' for more details." >&5
22838 $as_echo "$as_me: error:
22839 *** uncompress() missing, zlib-devel package required
22840 See \`config.log' for more details." >&2;}
22841 { (exit 1); exit 1; }; }; }
22846 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
22847 $as_echo_n "checking for crc32 in -lz... " >&6; }
22848 if test "${ac_cv_lib_z_crc32+set}" = set; then
22849 $as_echo_n "(cached) " >&6
22851 ac_check_lib_save_LIBS=$LIBS
22853 cat >conftest.$ac_ext <<_ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h. */
22860 /* Override any GCC internal prototype to avoid an error.
22861 Use char because int might match the return type of a GCC
22862 builtin and then its argument prototype would still apply. */
22875 rm -f conftest.$ac_objext conftest$ac_exeext
22876 if { (ac_try="$ac_link"
22877 case "(($ac_try" in
22878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879 *) ac_try_echo=$ac_try;;
22881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22882 $as_echo "$ac_try_echo") >&5
22883 (eval "$ac_link") 2>conftest.er1
22885 grep -v '^ *+' conftest.er1 >conftest.err
22887 cat conftest.err >&5
22888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest$ac_exeext && {
22893 test "$cross_compiling" = yes ||
22894 $as_test_x conftest$ac_exeext
22896 ac_cv_lib_z_crc32=yes
22898 $as_echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22901 ac_cv_lib_z_crc32=no
22904 rm -rf conftest.dSYM
22905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22906 conftest$ac_exeext conftest.$ac_ext
22907 LIBS=$ac_check_lib_save_LIBS
22909 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
22910 $as_echo "$ac_cv_lib_z_crc32" >&6; }
22911 if test "x$ac_cv_lib_z_crc32" = x""yes; then
22912 cat >>confdefs.h <<_ACEOF
22913 #define HAVE_LIBZ 1
22919 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22921 { { $as_echo "$as_me:$LINENO: error:
22922 *** crc32() missing, zlib-devel package required
22923 See \`config.log' for more details." >&5
22924 $as_echo "$as_me: error:
22925 *** crc32() missing, zlib-devel package required
22926 See \`config.log' for more details." >&2;}
22927 { (exit 1); exit 1; }; }; }
22934 cat >>confdefs.h <<\_ACEOF
22935 #define HAVE_ZLIB 1
22942 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
22943 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
22944 $as_echo_n "checking for uuid/uuid.h... " >&6; }
22945 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
22946 $as_echo_n "(cached) " >&6
22948 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
22949 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
22951 # Is the header compilable?
22952 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
22953 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
22954 cat >conftest.$ac_ext <<_ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h. */
22960 $ac_includes_default
22961 #include <uuid/uuid.h>
22963 rm -f conftest.$ac_objext
22964 if { (ac_try="$ac_compile"
22965 case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22970 $as_echo "$ac_try_echo") >&5
22971 (eval "$ac_compile") 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest.$ac_objext; then
22981 ac_header_compiler=yes
22983 $as_echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 ac_header_compiler=no
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22991 $as_echo "$ac_header_compiler" >&6; }
22993 # Is the header present?
22994 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
22995 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
22996 cat >conftest.$ac_ext <<_ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h. */
23002 #include <uuid/uuid.h>
23004 if { (ac_try="$ac_cpp conftest.$ac_ext"
23005 case "(($ac_try" in
23006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007 *) ac_try_echo=$ac_try;;
23009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23010 $as_echo "$ac_try_echo") >&5
23011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23013 grep -v '^ *+' conftest.er1 >conftest.err
23015 cat conftest.err >&5
23016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } >/dev/null && {
23018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23021 ac_header_preproc=yes
23023 $as_echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 ac_header_preproc=no
23029 rm -f conftest.err conftest.$ac_ext
23030 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23031 $as_echo "$ac_header_preproc" >&6; }
23033 # So? What about this header?
23034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23036 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23037 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23038 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
23039 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
23040 ac_header_preproc=yes
23043 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
23044 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
23045 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
23046 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
23047 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
23048 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
23049 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
23050 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23051 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
23052 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
23053 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
23054 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
23058 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
23059 $as_echo_n "checking for uuid/uuid.h... " >&6; }
23060 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
23061 $as_echo_n "(cached) " >&6
23063 ac_cv_header_uuid_uuid_h=$ac_header_preproc
23065 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
23066 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
23069 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
23072 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23074 { { $as_echo "$as_me:$LINENO: error:
23075 *** uuid/uuid.h missing, libuuid-devel package required
23076 See \`config.log' for more details." >&5
23077 $as_echo "$as_me: error:
23078 *** uuid/uuid.h missing, libuuid-devel package required
23079 See \`config.log' for more details." >&2;}
23080 { (exit 1); exit 1; }; }; }
23086 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
23087 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
23088 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
23089 $as_echo_n "(cached) " >&6
23091 ac_check_lib_save_LIBS=$LIBS
23092 LIBS="-luuid $LIBS"
23093 cat >conftest.$ac_ext <<_ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23100 /* Override any GCC internal prototype to avoid an error.
23101 Use char because int might match the return type of a GCC
23102 builtin and then its argument prototype would still apply. */
23106 char uuid_generate ();
23110 return uuid_generate ();
23115 rm -f conftest.$ac_objext conftest$ac_exeext
23116 if { (ac_try="$ac_link"
23117 case "(($ac_try" in
23118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119 *) ac_try_echo=$ac_try;;
23121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23122 $as_echo "$ac_try_echo") >&5
23123 (eval "$ac_link") 2>conftest.er1
23125 grep -v '^ *+' conftest.er1 >conftest.err
23127 cat conftest.err >&5
23128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } && {
23130 test -z "$ac_c_werror_flag" ||
23131 test ! -s conftest.err
23132 } && test -s conftest$ac_exeext && {
23133 test "$cross_compiling" = yes ||
23134 $as_test_x conftest$ac_exeext
23136 ac_cv_lib_uuid_uuid_generate=yes
23138 $as_echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.$ac_ext >&5
23141 ac_cv_lib_uuid_uuid_generate=no
23144 rm -rf conftest.dSYM
23145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23146 conftest$ac_exeext conftest.$ac_ext
23147 LIBS=$ac_check_lib_save_LIBS
23149 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
23150 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
23151 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
23152 cat >>confdefs.h <<_ACEOF
23153 #define HAVE_LIBUUID 1
23156 LIBS="-luuid $LIBS"
23159 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23161 { { $as_echo "$as_me:$LINENO: error:
23162 *** uuid_generate() missing, libuuid-devel package required
23163 See \`config.log' for more details." >&5
23164 $as_echo "$as_me: error:
23165 *** uuid_generate() missing, libuuid-devel package required
23166 See \`config.log' for more details." >&2;}
23167 { (exit 1); exit 1; }; }; }
23172 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
23173 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
23174 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
23175 $as_echo_n "(cached) " >&6
23177 ac_check_lib_save_LIBS=$LIBS
23178 LIBS="-luuid $LIBS"
23179 cat >conftest.$ac_ext <<_ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h. */
23186 /* Override any GCC internal prototype to avoid an error.
23187 Use char because int might match the return type of a GCC
23188 builtin and then its argument prototype would still apply. */
23192 char uuid_is_null ();
23196 return uuid_is_null ();
23201 rm -f conftest.$ac_objext conftest$ac_exeext
23202 if { (ac_try="$ac_link"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23208 $as_echo "$ac_try_echo") >&5
23209 (eval "$ac_link") 2>conftest.er1
23211 grep -v '^ *+' conftest.er1 >conftest.err
23213 cat conftest.err >&5
23214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); } && {
23216 test -z "$ac_c_werror_flag" ||
23217 test ! -s conftest.err
23218 } && test -s conftest$ac_exeext && {
23219 test "$cross_compiling" = yes ||
23220 $as_test_x conftest$ac_exeext
23222 ac_cv_lib_uuid_uuid_is_null=yes
23224 $as_echo "$as_me: failed program was:" >&5
23225 sed 's/^/| /' conftest.$ac_ext >&5
23227 ac_cv_lib_uuid_uuid_is_null=no
23230 rm -rf conftest.dSYM
23231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23232 conftest$ac_exeext conftest.$ac_ext
23233 LIBS=$ac_check_lib_save_LIBS
23235 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
23236 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
23237 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
23238 cat >>confdefs.h <<_ACEOF
23239 #define HAVE_LIBUUID 1
23242 LIBS="-luuid $LIBS"
23245 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23247 { { $as_echo "$as_me:$LINENO: error:
23248 *** uuid_is_null() missing, libuuid-devel package required
23249 See \`config.log' for more details." >&5
23250 $as_echo "$as_me: error:
23251 *** uuid_is_null() missing, libuuid-devel package required
23252 See \`config.log' for more details." >&2;}
23253 { (exit 1); exit 1; }; }; }
23260 cat >>confdefs.h <<\_ACEOF
23261 #define HAVE_LIBUUID 1
23267 # Check whether --with-blkid was given.
23268 if test "${with_blkid+set}" = set; then
23269 withval=$with_blkid;
23276 if test "x$with_blkid" != xno; then
23278 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
23279 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
23280 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
23281 $as_echo_n "(cached) " >&6
23283 ac_check_lib_save_LIBS=$LIBS
23284 LIBS="-lblkid $LIBS"
23285 cat >conftest.$ac_ext <<_ACEOF
23288 cat confdefs.h >>conftest.$ac_ext
23289 cat >>conftest.$ac_ext <<_ACEOF
23290 /* end confdefs.h. */
23292 /* Override any GCC internal prototype to avoid an error.
23293 Use char because int might match the return type of a GCC
23294 builtin and then its argument prototype would still apply. */
23298 char blkid_get_cache ();
23302 return blkid_get_cache ();
23307 rm -f conftest.$ac_objext conftest$ac_exeext
23308 if { (ac_try="$ac_link"
23309 case "(($ac_try" in
23310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311 *) ac_try_echo=$ac_try;;
23313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23314 $as_echo "$ac_try_echo") >&5
23315 (eval "$ac_link") 2>conftest.er1
23317 grep -v '^ *+' conftest.er1 >conftest.err
23319 cat conftest.err >&5
23320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); } && {
23322 test -z "$ac_c_werror_flag" ||
23323 test ! -s conftest.err
23324 } && test -s conftest$ac_exeext && {
23325 test "$cross_compiling" = yes ||
23326 $as_test_x conftest$ac_exeext
23328 ac_cv_lib_blkid_blkid_get_cache=yes
23330 $as_echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23333 ac_cv_lib_blkid_blkid_get_cache=no
23336 rm -rf conftest.dSYM
23337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23338 conftest$ac_exeext conftest.$ac_ext
23339 LIBS=$ac_check_lib_save_LIBS
23341 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
23342 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
23343 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
23345 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
23346 $as_echo_n "checking for blkid zfs support... " >&6; }
23349 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
23350 >/dev/null 2>/dev/null
23351 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
23352 dd of=$ZFS_DEV bs=1k count=8 \
23353 seek=132 conv=notrunc &>/dev/null \
23354 >/dev/null 2>/dev/null
23356 saved_LDFLAGS="$LDFLAGS"
23359 if test "$cross_compiling" = yes; then
23360 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23362 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23363 See \`config.log' for more details." >&5
23364 $as_echo "$as_me: error: cannot run test program while cross compiling
23365 See \`config.log' for more details." >&2;}
23366 { (exit 1); exit 1; }; }; }
23368 cat >conftest.$ac_ext <<_ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h. */
23376 #include <blkid/blkid.h>
23385 if (blkid_get_cache(&cache, NULL) < 0)
23388 value = blkid_get_tag_value(cache, "TYPE",
23391 blkid_put_cache(cache);
23395 if (strcmp(value, "zfs")) {
23397 blkid_put_cache(cache);
23402 blkid_put_cache(cache);
23408 rm -f conftest$ac_exeext
23409 if { (ac_try="$ac_link"
23410 case "(($ac_try" in
23411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23412 *) ac_try_echo=$ac_try;;
23414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23415 $as_echo "$ac_try_echo") >&5
23416 (eval "$ac_link") 2>&5
23418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23420 { (case "(($ac_try" in
23421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422 *) ac_try_echo=$ac_try;;
23424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23425 $as_echo "$ac_try_echo") >&5
23426 (eval "$ac_try") 2>&5
23428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; }; then
23432 { $as_echo "$as_me:$LINENO: result: yes" >&5
23433 $as_echo "yes" >&6; }
23437 cat >>confdefs.h <<\_ACEOF
23438 #define HAVE_LIBBLKID 1
23443 $as_echo "$as_me: program exited with status $ac_status" >&5
23444 $as_echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23447 ( exit $ac_status )
23450 { $as_echo "$as_me:$LINENO: result: no" >&5
23451 $as_echo "no" >&6; }
23452 if test "x$with_blkid" != xcheck; then
23453 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23455 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
23456 See \`config.log' for more details." >&5
23457 $as_echo "$as_me: error: --with-blkid given but unavailable
23458 See \`config.log' for more details." >&2;}
23459 { (exit 1); exit 1; }; }; }
23464 rm -rf conftest.dSYM
23465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23470 LDFLAGS="$saved_LDFLAGS"
23474 if test "x$with_blkid" != xcheck; then
23475 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23477 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
23478 See \`config.log' for more details." >&5
23479 $as_echo "$as_me: error: --with-blkid given but unavailable
23480 See \`config.log' for more details." >&2;}
23481 { (exit 1); exit 1; }; }; }
23494 # Check whether --with-selinux was given.
23495 if test "${with_selinux+set}" = set; then
23496 withval=$with_selinux;
23503 if test "x$with_selinux" != xno; then
23505 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
23506 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
23507 $as_echo_n "checking for selinux/selinux.h... " >&6; }
23508 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
23509 $as_echo_n "(cached) " >&6
23511 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
23512 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
23514 # Is the header compilable?
23515 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
23516 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
23517 cat >conftest.$ac_ext <<_ACEOF
23520 cat confdefs.h >>conftest.$ac_ext
23521 cat >>conftest.$ac_ext <<_ACEOF
23522 /* end confdefs.h. */
23523 $ac_includes_default
23524 #include <selinux/selinux.h>
23526 rm -f conftest.$ac_objext
23527 if { (ac_try="$ac_compile"
23528 case "(($ac_try" in
23529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530 *) ac_try_echo=$ac_try;;
23532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23533 $as_echo "$ac_try_echo") >&5
23534 (eval "$ac_compile") 2>conftest.er1
23536 grep -v '^ *+' conftest.er1 >conftest.err
23538 cat conftest.err >&5
23539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } && {
23541 test -z "$ac_c_werror_flag" ||
23542 test ! -s conftest.err
23543 } && test -s conftest.$ac_objext; then
23544 ac_header_compiler=yes
23546 $as_echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.$ac_ext >&5
23549 ac_header_compiler=no
23552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23553 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23554 $as_echo "$ac_header_compiler" >&6; }
23556 # Is the header present?
23557 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
23558 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
23559 cat >conftest.$ac_ext <<_ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23565 #include <selinux/selinux.h>
23567 if { (ac_try="$ac_cpp conftest.$ac_ext"
23568 case "(($ac_try" in
23569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570 *) ac_try_echo=$ac_try;;
23572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23573 $as_echo "$ac_try_echo") >&5
23574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23576 grep -v '^ *+' conftest.er1 >conftest.err
23578 cat conftest.err >&5
23579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); } >/dev/null && {
23581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23582 test ! -s conftest.err
23584 ac_header_preproc=yes
23586 $as_echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23589 ac_header_preproc=no
23592 rm -f conftest.err conftest.$ac_ext
23593 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23594 $as_echo "$ac_header_preproc" >&6; }
23596 # So? What about this header?
23597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23599 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
23600 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23601 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
23602 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
23603 ac_header_preproc=yes
23606 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
23607 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
23608 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
23609 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
23610 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
23611 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
23612 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
23613 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
23614 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
23615 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
23616 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
23617 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
23621 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
23622 $as_echo_n "checking for selinux/selinux.h... " >&6; }
23623 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
23624 $as_echo_n "(cached) " >&6
23626 ac_cv_header_selinux_selinux_h=$ac_header_preproc
23628 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
23629 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
23632 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
23634 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
23635 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
23636 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
23637 $as_echo_n "(cached) " >&6
23639 ac_check_lib_save_LIBS=$LIBS
23640 LIBS="-lselinux $LIBS"
23641 cat >conftest.$ac_ext <<_ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h. */
23648 /* Override any GCC internal prototype to avoid an error.
23649 Use char because int might match the return type of a GCC
23650 builtin and then its argument prototype would still apply. */
23654 char is_selinux_enabled ();
23658 return is_selinux_enabled ();
23663 rm -f conftest.$ac_objext conftest$ac_exeext
23664 if { (ac_try="$ac_link"
23665 case "(($ac_try" in
23666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667 *) ac_try_echo=$ac_try;;
23669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23670 $as_echo "$ac_try_echo") >&5
23671 (eval "$ac_link") 2>conftest.er1
23673 grep -v '^ *+' conftest.er1 >conftest.err
23675 cat conftest.err >&5
23676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } && {
23678 test -z "$ac_c_werror_flag" ||
23679 test ! -s conftest.err
23680 } && test -s conftest$ac_exeext && {
23681 test "$cross_compiling" = yes ||
23682 $as_test_x conftest$ac_exeext
23684 ac_cv_lib_selinux_is_selinux_enabled=yes
23686 $as_echo "$as_me: failed program was:" >&5
23687 sed 's/^/| /' conftest.$ac_ext >&5
23689 ac_cv_lib_selinux_is_selinux_enabled=no
23692 rm -rf conftest.dSYM
23693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23694 conftest$ac_exeext conftest.$ac_ext
23695 LIBS=$ac_check_lib_save_LIBS
23697 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
23698 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
23699 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
23701 LIBSELINUX="-lselinux"
23704 cat >>confdefs.h <<\_ACEOF
23705 #define HAVE_LIBSELINUX 1
23711 if test "x$with_selinux" != xcheck; then
23712 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23714 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
23715 See \`config.log' for more details." >&5
23716 $as_echo "$as_me: error: --with-selinux given but unavailable
23717 See \`config.log' for more details." >&2;}
23718 { (exit 1); exit 1; }; }; }
23728 if test "x$with_selinux" != xcheck; then
23729 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23731 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
23732 See \`config.log' for more details." >&5
23733 $as_echo "$as_me: error: --with-selinux given but unavailable
23734 See \`config.log' for more details." >&2;}
23735 { (exit 1); exit 1; }; }; }
23746 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
23747 $as_echo_n "checking for selinux support... " >&6; }
23748 { $as_echo "$as_me:$LINENO: result: no" >&5
23749 $as_echo "no" >&6; }
23755 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
23756 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
23758 saved_flags="$CFLAGS"
23759 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
23761 if test "$cross_compiling" = yes; then
23762 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23764 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23765 See \`config.log' for more details." >&5
23766 $as_echo "$as_me: error: cannot run test program while cross compiling
23767 See \`config.log' for more details." >&2;}
23768 { (exit 1); exit 1; }; }; }
23770 cat >conftest.$ac_ext <<_ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h. */
23785 rm -f conftest$ac_exeext
23786 if { (ac_try="$ac_link"
23787 case "(($ac_try" in
23788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23789 *) ac_try_echo=$ac_try;;
23791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23792 $as_echo "$ac_try_echo") >&5
23793 (eval "$ac_link") 2>&5
23795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23797 { (case "(($ac_try" in
23798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23799 *) ac_try_echo=$ac_try;;
23801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23802 $as_echo "$ac_try_echo") >&5
23803 (eval "$ac_try") 2>&5
23805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); }; }; then
23808 FRAME_LARGER_THAN=-Wframe-larger-than=1024
23809 { $as_echo "$as_me:$LINENO: result: yes" >&5
23810 $as_echo "yes" >&6; }
23813 $as_echo "$as_me: program exited with status $ac_status" >&5
23814 $as_echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23817 ( exit $ac_status )
23820 { $as_echo "$as_me:$LINENO: result: no" >&5
23821 $as_echo "no" >&6; }
23824 rm -rf conftest.dSYM
23825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23830 CFLAGS="$saved_flags"
23835 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
23836 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
23838 saved_CFLAGS="$CFLAGS"
23839 CFLAGS="-fstack-check"
23840 saved_LDFLAGS="$LDFLAGS"
23841 LDFLAGS="-lpthread"
23843 if test "$cross_compiling" = yes; then
23844 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23846 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23847 See \`config.log' for more details." >&5
23848 $as_echo "$as_me: error: cannot run test program while cross compiling
23849 See \`config.log' for more details." >&2;}
23850 { (exit 1); exit 1; }; }; }
23852 cat >conftest.$ac_ext <<_ACEOF
23855 cat confdefs.h >>conftest.$ac_ext
23856 cat >>conftest.$ac_ext <<_ACEOF
23857 /* end confdefs.h. */
23859 #include <pthread.h>
23860 #include <sys/resource.h>
23861 #include <unistd.h>
23862 #include <bits/local_lim.h>
23864 #define PAGESIZE (sysconf(_SC_PAGESIZE))
23865 #define STACK_SIZE 8192
23866 #define BUFSIZE 4096
23868 void * func(void *arg)
23878 pthread_attr_t attr;
23883 setrlimit(RLIMIT_CORE, &l);
23884 pthread_attr_init(&attr);
23885 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
23886 pthread_attr_setguardsize(&attr, PAGESIZE);
23887 pthread_create(&tid, &attr, func, NULL);
23888 pthread_join(tid, NULL);
23894 rm -f conftest$ac_exeext
23895 if { (ac_try="$ac_link"
23896 case "(($ac_try" in
23897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898 *) ac_try_echo=$ac_try;;
23900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23901 $as_echo "$ac_try_echo") >&5
23902 (eval "$ac_link") 2>&5
23904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23906 { (case "(($ac_try" in
23907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908 *) ac_try_echo=$ac_try;;
23910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23911 $as_echo "$ac_try_echo") >&5
23912 (eval "$ac_try") 2>&5
23914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); }; }; then
23917 { $as_echo "$as_me:$LINENO: result: no" >&5
23918 $as_echo "no" >&6; }
23921 $as_echo "$as_me: program exited with status $ac_status" >&5
23922 $as_echo "$as_me: failed program was:" >&5
23923 sed 's/^/| /' conftest.$ac_ext >&5
23925 ( exit $ac_status )
23928 cat >>confdefs.h <<\_ACEOF
23929 #define NPTL_GUARD_WITHIN_STACK 1
23932 { $as_echo "$as_me:$LINENO: result: yes" >&5
23933 $as_echo "yes" >&6; }
23936 rm -rf conftest.dSYM
23937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23941 CFLAGS="$saved_CFLAGS"
23942 LDFLAGS="$saved_LDFLAGS"
23947 { $as_echo "$as_me:$LINENO: result: Error!" >&5
23948 $as_echo "Error!" >&6; }
23949 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
23950 user kernel|user|all|srpm" >&5
23951 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
23952 user kernel|user|all|srpm" >&2;}
23953 { (exit 1); exit 1; }; } ;;
23956 if test "$ZFS_CONFIG" = user ||
23957 test "$ZFS_CONFIG" = all; then
23959 CONFIG_USER_FALSE='#'
23961 CONFIG_USER_TRUE='#'
23965 if test "$ZFS_CONFIG" = kernel ||
23966 test "$ZFS_CONFIG" = all; then
23967 CONFIG_KERNEL_TRUE=
23968 CONFIG_KERNEL_FALSE='#'
23970 CONFIG_KERNEL_TRUE='#'
23971 CONFIG_KERNEL_FALSE=
23976 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
23977 $as_echo_n "checking whether debugging is enabled... " >&6; }
23978 # Check whether --enable-debug was given.
23979 if test "${enable_debug+set}" = set; then
23980 enableval=$enable_debug;
23986 if test "x$enable_debug" = xyes; then
23988 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
23989 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
23990 DEBUG_CFLAGS="-DDEBUG -Werror"
23991 DEBUG_STACKFLAGS="-fstack-check"
23992 DEBUG_ZFS="_with_debug"
23994 cat >>confdefs.h <<\_ACEOF
23995 #define ZFS_DEBUG 1
24001 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
24002 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
24003 DEBUG_CFLAGS="-DNDEBUG"
24004 DEBUG_STACKFLAGS=""
24005 DEBUG_ZFS="_without_debug"
24013 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
24014 $as_echo "$enable_debug" >&6; }
24017 ac_config_files="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_id/Makefile cmd/sas_switch_id/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/zpool-layout/Makefile scripts/common.sh zfs.spec zfs-modules.spec PKGBUILD-zfs PKGBUILD-zfs-modules zfs-script-config.sh"
24020 cat >confcache <<\_ACEOF
24021 # This file is a shell script that caches the results of configure
24022 # tests run on this system so they can be shared between configure
24023 # scripts and configure runs, see configure's option --config-cache.
24024 # It is not useful on other systems. If it contains results you don't
24025 # want to keep, you may remove or edit it.
24027 # config.status only pays attention to the cache file if you give it
24028 # the --recheck option to rerun configure.
24030 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24031 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24032 # following values.
24036 # The following way of writing the cache mishandles newlines in values,
24037 # but we know of no workaround that is simple, portable, and efficient.
24038 # So, we kill variables containing newlines.
24039 # Ultrix sh set writes to stderr and can't be redirected directly,
24040 # and sets the high bit in the cache file unless we assign to the vars.
24042 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24043 eval ac_val=\$$ac_var
24047 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
24048 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24051 _ | IFS | as_nl) ;; #(
24052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24053 *) $as_unset $ac_var ;;
24059 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24060 *${as_nl}ac_space=\ *)
24061 # `set' does not quote correctly, so add quotes (double-quote
24062 # substitution turns \\\\ into \\, and sed turns \\ into \).
24065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24068 # `set' quotes correctly as required by POSIX, so do not add quotes.
24069 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24078 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24080 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24082 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24083 if test -w "$cache_file"; then
24084 test "x$cache_file" != "x/dev/null" &&
24085 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
24086 $as_echo "$as_me: updating cache $cache_file" >&6;}
24087 cat confcache >$cache_file
24089 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24090 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24095 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24096 # Let make expand exec_prefix.
24097 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24099 DEFS=-DHAVE_CONFIG_H
24103 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24104 # 1. Remove the extension, and $U if already installed.
24105 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24106 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24108 # will be set to the directory where LIBOBJS objects are built.
24109 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24110 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24112 LIBOBJS=$ac_libobjs
24114 LTLIBOBJS=$ac_ltlibobjs
24117 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24118 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24119 Usually this means the macro was only invoked conditionally." >&5
24120 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24121 Usually this means the macro was only invoked conditionally." >&2;}
24122 { (exit 1); exit 1; }; }
24124 if test -n "$EXEEXT"; then
24126 am__EXEEXT_FALSE='#'
24128 am__EXEEXT_TRUE='#'
24132 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24133 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24134 Usually this means the macro was only invoked conditionally." >&5
24135 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
24136 Usually this means the macro was only invoked conditionally." >&2;}
24137 { (exit 1); exit 1; }; }
24139 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24140 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24141 Usually this means the macro was only invoked conditionally." >&5
24142 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24143 Usually this means the macro was only invoked conditionally." >&2;}
24144 { (exit 1); exit 1; }; }
24146 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
24147 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
24148 Usually this means the macro was only invoked conditionally." >&5
24149 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
24150 Usually this means the macro was only invoked conditionally." >&2;}
24151 { (exit 1); exit 1; }; }
24153 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
24154 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
24155 Usually this means the macro was only invoked conditionally." >&5
24156 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
24157 Usually this means the macro was only invoked conditionally." >&2;}
24158 { (exit 1); exit 1; }; }
24160 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
24161 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
24162 Usually this means the macro was only invoked conditionally." >&5
24163 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
24164 Usually this means the macro was only invoked conditionally." >&2;}
24165 { (exit 1); exit 1; }; }
24168 : ${CONFIG_STATUS=./config.status}
24170 ac_clean_files_save=$ac_clean_files
24171 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24172 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24173 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24174 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24176 # Generated by $as_me.
24177 # Run this file to recreate the current configuration.
24178 # Compiler output produced by configure, useful for debugging
24179 # configure, is in config.log if it exists.
24182 ac_cs_recheck=false
24184 SHELL=\${CONFIG_SHELL-$SHELL}
24187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24188 ## --------------------- ##
24189 ## M4sh Initialization. ##
24190 ## --------------------- ##
24192 # Be more Bourne compatible
24193 DUALCASE=1; export DUALCASE # for MKS sh
24194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24197 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24198 # is contrary to our usage. Disable this feature.
24199 alias -g '${1+"$@"}'='"$@"'
24200 setopt NO_GLOB_SUBST
24202 case `(set -o) 2>/dev/null` in
24203 *posix*) set -o posix ;;
24212 # Avoid depending upon Character Ranges.
24213 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24214 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24215 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24216 as_cr_digits='0123456789'
24217 as_cr_alnum=$as_cr_Letters$as_cr_digits
24222 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24223 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24224 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24226 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24227 as_echo='printf %s\n'
24228 as_echo_n='printf %s'
24230 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24231 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24232 as_echo_n='/usr/ucb/echo -n'
24234 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24235 as_echo_n_body='eval
24239 expr "X$arg" : "X\\(.*\\)$as_nl";
24240 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24242 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24244 export as_echo_n_body
24245 as_echo_n='sh -c $as_echo_n_body as_echo'
24247 export as_echo_body
24248 as_echo='sh -c $as_echo_body as_echo'
24251 # The user is always right.
24252 if test "${PATH_SEPARATOR+set}" != set; then
24254 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24255 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24260 # Support unset when possible.
24261 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24269 # We need space, tab and new line, in precisely that order. Quoting is
24270 # there to prevent editors from complaining about space-tab.
24271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24272 # splitting by setting IFS to empty value.)
24275 # Find who we are. Look in the path if we contain no directory separator.
24277 *[\\/]* ) as_myself=$0 ;;
24278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24279 for as_dir in $PATH
24282 test -z "$as_dir" && as_dir=.
24283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24289 # We did not find ourselves, most probably we were run as `sh COMMAND'
24290 # in which case we are not to be found in the path.
24291 if test "x$as_myself" = x; then
24294 if test ! -f "$as_myself"; then
24295 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24296 { (exit 1); exit 1; }
24299 # Work around bugs in pre-3.0 UWIN ksh.
24300 for as_var in ENV MAIL MAILPATH
24301 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24313 # Required to use basename.
24314 if expr a : '\(a\)' >/dev/null 2>&1 &&
24315 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24321 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24322 as_basename=basename
24328 # Name of the executable.
24329 as_me=`$as_basename -- "$0" ||
24330 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24331 X"$0" : 'X\(//\)$' \| \
24332 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24334 sed '/^.*\/\([^/][^/]*\)\/*$/{
24353 as_lineno_1=$LINENO
24354 as_lineno_2=$LINENO
24355 test "x$as_lineno_1" != "x$as_lineno_2" &&
24356 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24358 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24359 # uniformly replaced by the line number. The first 'sed' inserts a
24360 # line-number line after each line using $LINENO; the second 'sed'
24361 # does the real work. The second script uses 'N' to pair each
24362 # line-number line with the line containing $LINENO, and appends
24363 # trailing '-' during substitution so that $LINENO is not a special
24364 # case at line end.
24365 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24366 # scripts with optimization help from Paolo Bonzini. Blame Lee
24367 # E. McMahon (1931-1989) for sed's syntax. :-)
24379 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24382 ' >$as_me.lineno &&
24383 chmod +x "$as_me.lineno" ||
24384 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24385 { (exit 1); exit 1; }; }
24387 # Don't try to exec as it changes $[0], causing all sort of problems
24388 # (the dirname of $[0] is not the place where we might find the
24389 # original and so on. Autoconf is especially sensitive to this).
24390 . "./$as_me.lineno"
24391 # Exit status is that of the last command.
24396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24402 ECHO_C= ECHO_N= ECHO_T=
24403 case `echo -n x` in
24405 case `echo 'x\c'` in
24406 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24412 if expr a : '\(a\)' >/dev/null 2>&1 &&
24413 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24419 rm -f conf$$ conf$$.exe conf$$.file
24420 if test -d conf$$.dir; then
24421 rm -f conf$$.dir/conf$$.file
24424 mkdir conf$$.dir 2>/dev/null
24426 if (echo >conf$$.file) 2>/dev/null; then
24427 if ln -s conf$$.file conf$$ 2>/dev/null; then
24429 # ... but there are two gotchas:
24430 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24431 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24432 # In both cases, we have to default to `cp -p'.
24433 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24435 elif ln conf$$.file conf$$ 2>/dev/null; then
24443 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24444 rmdir conf$$.dir 2>/dev/null
24446 if mkdir -p . 2>/dev/null; then
24449 test -d ./-p && rmdir ./-p
24453 if test -x / >/dev/null 2>&1; then
24454 as_test_x='test -x'
24456 if ls -dL / >/dev/null 2>&1; then
24463 if test -d "$1"; then
24469 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24470 ???[sx]*):;;*)false;;esac;fi
24474 as_executable_p=$as_test_x
24476 # Sed expression to map a string onto a valid CPP name.
24477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24479 # Sed expression to map a string onto a valid variable name.
24480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24485 # Save the log message, to keep $[0] and so on meaningful, and to
24486 # report actual input values of CONFIG_FILES etc. instead of their
24487 # values after options handling.
24489 This file was extended by $as_me, which was
24490 generated by GNU Autoconf 2.63. Invocation command line was
24492 CONFIG_FILES = $CONFIG_FILES
24493 CONFIG_HEADERS = $CONFIG_HEADERS
24494 CONFIG_LINKS = $CONFIG_LINKS
24495 CONFIG_COMMANDS = $CONFIG_COMMANDS
24498 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24503 case $ac_config_files in *"
24504 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24507 case $ac_config_headers in *"
24508 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24513 # Files that config.status was made for.
24514 config_files="$ac_config_files"
24515 config_headers="$ac_config_headers"
24516 config_commands="$ac_config_commands"
24520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24522 \`$as_me' instantiates files from templates according to the
24523 current configuration.
24525 Usage: $0 [OPTION]... [FILE]...
24527 -h, --help print this help, then exit
24528 -V, --version print version number and configuration settings, then exit
24529 -q, --quiet, --silent
24530 do not print progress messages
24531 -d, --debug don't remove temporary files
24532 --recheck update $as_me by reconfiguring in the same conditions
24533 --file=FILE[:TEMPLATE]
24534 instantiate the configuration file FILE
24535 --header=FILE[:TEMPLATE]
24536 instantiate the configuration header FILE
24538 Configuration files:
24541 Configuration headers:
24544 Configuration commands:
24547 Report bugs to <bug-autoconf@gnu.org>."
24550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24553 configured by $0, generated by GNU Autoconf 2.63,
24554 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24556 Copyright (C) 2008 Free Software Foundation, Inc.
24557 This config.status script is free software; the Free Software Foundation
24558 gives unlimited permission to copy, distribute and modify it."
24565 test -n "\$AWK" || AWK=awk
24568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24569 # The default lists apply if the user does not specify any file.
24575 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24576 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24587 # Handling of the options.
24588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24590 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24591 $as_echo "$ac_cs_version"; exit ;;
24592 --debug | --debu | --deb | --de | --d | -d )
24594 --file | --fil | --fi | --f )
24597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24599 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24600 ac_need_defaults=false;;
24601 --header | --heade | --head | --hea )
24604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24606 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
24607 ac_need_defaults=false;;
24609 # Conflict between --help and --header
24610 { $as_echo "$as_me: error: ambiguous option: $1
24611 Try \`$0 --help' for more information." >&2
24612 { (exit 1); exit 1; }; };;
24613 --help | --hel | -h )
24614 $as_echo "$ac_cs_usage"; exit ;;
24615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24619 # This is an error.
24620 -*) { $as_echo "$as_me: error: unrecognized option: $1
24621 Try \`$0 --help' for more information." >&2
24622 { (exit 1); exit 1; }; } ;;
24624 *) ac_config_targets="$ac_config_targets $1"
24625 ac_need_defaults=false ;;
24631 ac_configure_extra_args=
24633 if $ac_cs_silent; then
24635 ac_configure_extra_args="$ac_configure_extra_args --silent"
24639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24640 if \$ac_cs_recheck; then
24641 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24643 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24644 CONFIG_SHELL='$SHELL'
24645 export CONFIG_SHELL
24650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24654 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24655 ## Running $as_me. ##
24661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24665 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24668 # The HP-UX ksh and POSIX shell print the target directory to stdout
24669 # if CDPATH is set.
24670 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24672 sed_quote_subst='$sed_quote_subst'
24673 double_quote_subst='$double_quote_subst'
24674 delay_variable_subst='$delay_variable_subst'
24675 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
24676 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
24677 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
24678 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
24679 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
24680 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
24681 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
24682 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
24683 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
24684 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
24685 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
24686 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
24687 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
24688 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
24689 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
24690 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
24691 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
24692 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
24693 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
24694 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
24695 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
24696 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
24697 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
24698 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
24699 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
24700 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
24701 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
24702 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24703 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
24704 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
24705 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
24706 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
24707 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
24708 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
24709 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
24710 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24711 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24712 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24713 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
24714 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
24715 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
24716 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
24717 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
24718 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
24719 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"`'
24720 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"`'
24721 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
24722 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
24723 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
24724 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
24725 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
24726 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
24727 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
24728 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
24729 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
24730 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
24731 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
24732 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
24733 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
24734 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
24735 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
24736 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
24737 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24738 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24739 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
24740 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
24741 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24742 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24743 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
24744 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24745 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24746 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24747 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24748 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24749 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24750 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
24751 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
24752 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
24753 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24754 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
24755 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
24756 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
24757 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
24758 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
24759 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24760 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
24761 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
24762 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
24763 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
24764 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
24765 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24766 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
24767 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
24768 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24769 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
24770 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
24771 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
24772 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
24773 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
24774 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24775 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24776 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
24777 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24778 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
24779 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24780 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24781 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24782 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24783 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
24784 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
24785 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24786 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24787 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
24788 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
24789 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
24790 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
24791 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
24792 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
24795 LTCFLAGS='$LTCFLAGS'
24796 compiler='$compiler_DEFAULT'
24798 # Quote evaled strings.
24810 deplibs_check_method \
24819 lt_cv_sys_global_symbol_pipe \
24820 lt_cv_sys_global_symbol_to_cdecl \
24821 lt_cv_sys_global_symbol_to_c_name_address \
24822 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24825 lt_prog_compiler_no_builtin_flag \
24826 lt_prog_compiler_wl \
24827 lt_prog_compiler_pic \
24828 lt_prog_compiler_static \
24829 lt_cv_prog_compiler_c_o \
24837 export_dynamic_flag_spec \
24838 whole_archive_flag_spec \
24839 compiler_needs_object \
24841 allow_undefined_flag \
24842 no_undefined_flag \
24843 hardcode_libdir_flag_spec \
24844 hardcode_libdir_flag_spec_ld \
24845 hardcode_libdir_separator \
24850 variables_saved_for_relink \
24852 library_names_spec \
24857 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
24858 *[\\\\\\\`\\"\\\$]*)
24859 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24862 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24867 # Double-quote double-evaled strings.
24868 for var in reload_cmds \
24869 old_postinstall_cmds \
24870 old_postuninstall_cmds \
24872 extract_expsyms_cmds \
24873 old_archive_from_new_cmds \
24874 old_archive_from_expsyms_cmds \
24876 archive_expsym_cmds \
24878 module_expsym_cmds \
24879 export_symbols_cmds \
24882 postuninstall_cmds \
24884 sys_lib_search_path_spec \
24885 sys_lib_dlsearch_path_spec; do
24886 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
24887 *[\\\\\\\`\\"\\\$]*)
24888 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24891 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24896 # Fix-up fallback echo if it was mangled by the above quoting rules.
24898 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
24902 ac_aux_dir='$ac_aux_dir'
24903 xsi_shell='$xsi_shell'
24904 lt_shell_append='$lt_shell_append'
24906 # See if we are running on zsh, and set the options which allow our
24907 # commands through without removal of \ escapes INIT.
24908 if test -n "\${ZSH_VERSION+set}" ; then
24909 setopt NO_GLOB_SUBST
24915 TIMESTAMP='$TIMESTAMP'
24924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24926 # Handling of arguments.
24927 for ac_config_target in $ac_config_targets
24929 case $ac_config_target in
24930 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
24931 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24932 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24934 "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
24935 "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
24936 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
24937 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
24938 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
24939 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
24940 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
24941 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24942 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
24943 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24944 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
24945 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
24946 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
24947 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
24948 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
24949 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
24950 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
24951 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
24952 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
24953 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
24954 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
24955 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
24956 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
24957 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
24958 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
24959 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
24960 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
24961 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
24962 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
24963 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
24964 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
24965 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
24966 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
24967 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
24968 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
24969 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
24970 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
24971 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
24972 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
24973 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
24974 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
24975 "cmd/sas_switch_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/sas_switch_id/Makefile" ;;
24976 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
24977 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
24978 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
24979 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
24980 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
24981 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
24982 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
24983 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24984 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
24985 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
24986 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
24987 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
24988 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
24989 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24990 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
24991 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
24992 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
24993 "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
24994 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
24995 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
24996 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
24997 "PKGBUILD-zfs") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs" ;;
24998 "PKGBUILD-zfs-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
24999 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
25001 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25002 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25003 { (exit 1); exit 1; }; };;
25008 # If the user did not use the arguments to specify the items to instantiate,
25009 # then the envvar interface is used. Set only those that are not.
25010 # We use the long form for the default assignment because of an extremely
25011 # bizarre bug on SunOS 4.1.3.
25012 if $ac_need_defaults; then
25013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25014 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25015 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25018 # Have a temporary directory for convenience. Make it in the build tree
25019 # simply because there is no reason against having it here, and in addition,
25020 # creating and moving files from /tmp can sometimes cause problems.
25021 # Hook for its removal unless debugging.
25022 # Note that there is a small window in which the directory will not be cleaned:
25023 # after its creation but before its name has been assigned to `$tmp'.
25027 trap 'exit_status=$?
25028 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25030 trap '{ (exit 1); exit 1; }' 1 2 13 15
25032 # Create a (secure) tmp directory for tmp files.
25035 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25036 test -n "$tmp" && test -d "$tmp"
25039 tmp=./conf$$-$RANDOM
25040 (umask 077 && mkdir "$tmp")
25043 $as_echo "$as_me: cannot create a temporary directory in ." >&2
25044 { (exit 1); exit 1; }
25047 # Set up the scripts for CONFIG_FILES section.
25048 # No need to generate them if there are no CONFIG_FILES.
25049 # This happens for instance with `./config.status config.h'.
25050 if test -n "$CONFIG_FILES"; then
25054 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25055 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25058 ac_cs_awk_cr=$ac_cr
25061 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25066 echo "cat >conf$$subs.awk <<_ACEOF" &&
25067 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25069 } >conf$$subs.sh ||
25070 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25071 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25072 { (exit 1); exit 1; }; }
25073 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25075 for ac_last_try in false false false false false :; do
25076 . ./conf$$subs.sh ||
25077 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25078 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25079 { (exit 1); exit 1; }; }
25081 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25082 if test $ac_delim_n = $ac_delim_num; then
25084 elif $ac_last_try; then
25085 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25086 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25087 { (exit 1); exit 1; }; }
25089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25092 rm -f conf$$subs.sh
25094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25095 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25099 s/^/S["/; s/!.*/"]=/
25109 s/\(.\{148\}\).*/\1/
25111 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25123 s/\(.\{148\}\).*/\1/
25125 s/["\\]/\\&/g; s/^/"/; s/$/"/
25129 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25134 ' <conf$$subs.awk | sed '
25139 ' >>$CONFIG_STATUS || ac_write_fail=1
25140 rm -f conf$$subs.awk
25141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25143 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25144 for (key in S) S_is_set[key] = 1
25150 nfields = split(line, field, "@")
25152 len = length(field[1])
25153 for (i = 2; i < nfields; i++) {
25155 keylen = length(key)
25156 if (S_is_set[key]) {
25158 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25159 len += length(value) + length(field[++i])
25170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25171 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25172 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25175 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25176 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
25177 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
25178 { (exit 1); exit 1; }; }
25181 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25182 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25183 # trailing colons and then remove the whole line if VPATH becomes empty
25184 # (actually we leave an empty line to preserve line numbers).
25185 if test "x$srcdir" = x.; then
25186 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25187 s/:*\$(srcdir):*/:/
25188 s/:*\${srcdir}:*/:/
25190 s/^\([^=]*=[ ]*\):*/\1/
25196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25197 fi # test -n "$CONFIG_FILES"
25199 # Set up the scripts for CONFIG_HEADERS section.
25200 # No need to generate them if there are no CONFIG_HEADERS.
25201 # This happens for instance with `./config.status Makefile'.
25202 if test -n "$CONFIG_HEADERS"; then
25203 cat >"$tmp/defines.awk" <<\_ACAWK ||
25207 # Transform confdefs.h into an awk script `defines.awk', embedded as
25208 # here-document in config.status, that substitutes the proper values into
25209 # config.h.in to produce config.h.
25211 # Create a delimiter string that does not exist in confdefs.h, to ease
25212 # handling of long lines.
25214 for ac_last_try in false false :; do
25215 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25216 if test -z "$ac_t"; then
25218 elif $ac_last_try; then
25219 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
25220 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
25221 { (exit 1); exit 1; }; }
25223 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25227 # For the awk script, D is an array of macro values keyed by name,
25228 # likewise P contains macro parameters if any. Preserve backslash
25229 # newline sequences.
25231 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25233 s/.\{148\}/&'"$ac_delim"'/g
25236 s/^[ ]*#[ ]*define[ ][ ]*/ /
25243 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25245 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25249 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25250 D["\1"]=" \3\\\\\\n"\\/p
25252 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25257 s/.\{148\}/&'"$ac_delim"'/g
25262 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25265 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25267 ' <confdefs.h | sed '
25268 s/'"$ac_delim"'/"\\\
25269 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25272 for (key in D) D_is_set[key] = 1
25275 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25277 split(line, arg, " ")
25278 if (arg[1] == "#") {
25282 defundef = substr(arg[1], 2)
25285 split(mac1, mac2, "(") #)
25287 prefix = substr(line, 1, index(line, defundef) - 1)
25288 if (D_is_set[macro]) {
25289 # Preserve the white space surrounding the "#".
25290 print prefix "define", macro P[macro] D[macro]
25293 # Replace #undef with comments. This is necessary, for example,
25294 # in the case of _POSIX_SOURCE, which is predefined and required
25295 # on some systems where configure will not decide to define it.
25296 if (defundef == "undef") {
25297 print "/*", prefix defundef, macro, "*/"
25305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25306 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
25307 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
25308 { (exit 1); exit 1; }; }
25309 fi # test -n "$CONFIG_HEADERS"
25312 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25317 :[FHLC]) ac_mode=$ac_tag; continue;;
25319 case $ac_mode$ac_tag in
25321 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
25322 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
25323 { (exit 1); exit 1; }; };;
25324 :[FH]-) ac_tag=-:-;;
25325 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25342 -) ac_f="$tmp/stdin";;
25343 *) # Look for the file first in the build tree, then in the source tree
25344 # (if the path is not absolute). The absolute path cannot be DOS-style,
25345 # because $ac_f cannot contain `:'.
25349 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25351 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25352 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25353 { (exit 1); exit 1; }; };;
25355 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25356 ac_file_inputs="$ac_file_inputs '$ac_f'"
25359 # Let's still pretend it is `configure' which instantiates (i.e., don't
25360 # use $as_me), people would be surprised to read:
25361 # /* config.h. Generated by config.status. */
25362 configure_input='Generated from '`
25363 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25365 if test x"$ac_file" != x-; then
25366 configure_input="$ac_file. $configure_input"
25367 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
25368 $as_echo "$as_me: creating $ac_file" >&6;}
25370 # Neutralize special characters interpreted by sed in replacement strings.
25371 case $configure_input in #(
25372 *\&* | *\|* | *\\* )
25373 ac_sed_conf_input=`$as_echo "$configure_input" |
25374 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25375 *) ac_sed_conf_input=$configure_input;;
25379 *:-:* | *:-) cat >"$tmp/stdin" \
25380 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25381 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25382 { (exit 1); exit 1; }; } ;;
25387 ac_dir=`$as_dirname -- "$ac_file" ||
25388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25389 X"$ac_file" : 'X\(//\)[^/]' \| \
25390 X"$ac_file" : 'X\(//\)$' \| \
25391 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25392 $as_echo X"$ac_file" |
25393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25397 /^X\(\/\/\)[^/].*/{
25412 -*) as_dir=./$as_dir;;
25414 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25418 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25419 *) as_qdir=$as_dir;;
25421 as_dirs="'$as_qdir' $as_dirs"
25422 as_dir=`$as_dirname -- "$as_dir" ||
25423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25424 X"$as_dir" : 'X\(//\)[^/]' \| \
25425 X"$as_dir" : 'X\(//\)$' \| \
25426 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25427 $as_echo X"$as_dir" |
25428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25432 /^X\(\/\/\)[^/].*/{
25445 test -d "$as_dir" && break
25447 test -z "$as_dirs" || eval "mkdir $as_dirs"
25448 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25449 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25450 { (exit 1); exit 1; }; }; }
25454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25457 # A ".." for each directory in $ac_dir_suffix.
25458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25459 case $ac_top_builddir_sub in
25460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25464 ac_abs_top_builddir=$ac_pwd
25465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25466 # for backward compatibility:
25467 ac_top_builddir=$ac_top_build_prefix
25470 .) # We are building in place.
25472 ac_top_srcdir=$ac_top_builddir_sub
25473 ac_abs_top_srcdir=$ac_pwd ;;
25474 [\\/]* | ?:[\\/]* ) # Absolute name.
25475 ac_srcdir=$srcdir$ac_dir_suffix;
25476 ac_top_srcdir=$srcdir
25477 ac_abs_top_srcdir=$srcdir ;;
25478 *) # Relative name.
25479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25480 ac_top_srcdir=$ac_top_build_prefix$srcdir
25481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25493 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25494 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25496 ac_MKDIR_P=$MKDIR_P
25498 [\\/$]* | ?:[\\/]* ) ;;
25499 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25504 # If the template does not know about datarootdir, expand it.
25505 # FIXME: This hack should be removed a few years after 2.60.
25506 ac_datarootdir_hack=; ac_datarootdir_seen=
25519 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25520 *datarootdir*) ac_datarootdir_seen=yes;;
25521 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25522 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25523 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25526 ac_datarootdir_hack='
25527 s&@datadir@&$datadir&g
25528 s&@docdir@&$docdir&g
25529 s&@infodir@&$infodir&g
25530 s&@localedir@&$localedir&g
25531 s&@mandir@&$mandir&g
25532 s&\\\${datarootdir}&$datarootdir&g' ;;
25536 # Neutralize VPATH when `$srcdir' = `.'.
25537 # Shell code in configure.ac might set extrasub.
25538 # FIXME: do we really want to maintain this feature?
25539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25540 ac_sed_extra="$ac_vpsub
25543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25546 s|@configure_input@|$ac_sed_conf_input|;t t
25547 s&@top_builddir@&$ac_top_builddir_sub&;t t
25548 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25549 s&@srcdir@&$ac_srcdir&;t t
25550 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25551 s&@top_srcdir@&$ac_top_srcdir&;t t
25552 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25553 s&@builddir@&$ac_builddir&;t t
25554 s&@abs_builddir@&$ac_abs_builddir&;t t
25555 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25556 s&@INSTALL@&$ac_INSTALL&;t t
25557 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25558 $ac_datarootdir_hack
25560 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25561 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25562 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25563 { (exit 1); exit 1; }; }
25565 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25566 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25567 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25568 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25569 which seems to be undefined. Please make sure it is defined." >&5
25570 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25571 which seems to be undefined. Please make sure it is defined." >&2;}
25575 -) cat "$tmp/out" && rm -f "$tmp/out";;
25576 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25578 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25579 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25580 { (exit 1); exit 1; }; }
25586 if test x"$ac_file" != x-; then
25588 $as_echo "/* $configure_input */" \
25589 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25590 } >"$tmp/config.h" \
25591 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25592 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25593 { (exit 1); exit 1; }; }
25594 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25595 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25596 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25599 mv "$tmp/config.h" "$ac_file" \
25600 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25601 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25602 { (exit 1); exit 1; }; }
25605 $as_echo "/* $configure_input */" \
25606 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25607 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25608 $as_echo "$as_me: error: could not create -" >&2;}
25609 { (exit 1); exit 1; }; }
25611 # Compute "$ac_file"'s index in $config_headers.
25614 for _am_header in $config_headers :; do
25615 case $_am_header in
25616 $_am_arg | $_am_arg:* )
25619 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25622 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25623 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25624 X"$_am_arg" : 'X\(//\)[^/]' \| \
25625 X"$_am_arg" : 'X\(//\)$' \| \
25626 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25627 $as_echo X"$_am_arg" |
25628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25632 /^X\(\/\/\)[^/].*/{
25644 s/.*/./; q'`/stamp-h$_am_stamp_count
25647 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25648 $as_echo "$as_me: executing $ac_file commands" >&6;}
25653 case $ac_file$ac_mode in
25655 (mv zfs_config.h zfs_config.h.tmp &&
25656 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
25657 rm zfs_config.h.tmp) || exit 1 ;;
25658 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25659 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25660 # are listed without --file. Let's play safe and only enable the eval
25661 # if we detect the quoting.
25662 case $CONFIG_FILES in
25663 *\'*) eval set x "$CONFIG_FILES" ;;
25664 *) set x $CONFIG_FILES ;;
25669 # Strip MF so we end up with the name of the file.
25670 mf=`echo "$mf" | sed -e 's/:.*$//'`
25671 # Check whether this is an Automake generated Makefile or not.
25672 # We used to match only the files named `Makefile.in', but
25673 # some people rename them; so instead we look at the file content.
25674 # Grep'ing the first line is not enough: some people post-process
25675 # each Makefile.in and add a new line on top of each file to say so.
25676 # Grep'ing the whole file is not good either: AIX grep has a line
25677 # limit of 2048, but all sed's we know have understand at least 4000.
25678 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25679 dirpart=`$as_dirname -- "$mf" ||
25680 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25681 X"$mf" : 'X\(//\)[^/]' \| \
25682 X"$mf" : 'X\(//\)$' \| \
25683 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25689 /^X\(\/\/\)[^/].*/{
25705 # Extract the definition of DEPDIR, am__include, and am__quote
25706 # from the Makefile without running `make'.
25707 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25708 test -z "$DEPDIR" && continue
25709 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25710 test -z "am__include" && continue
25711 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25712 # When using ansi2knr, U may be empty or an underscore; expand it
25713 U=`sed -n 's/^U = //p' < "$mf"`
25714 # Find all dependency output files, they are included files with
25715 # $(DEPDIR) in their names. We invoke sed twice because it is the
25716 # simplest approach to changing $(DEPDIR) to its actual value in the
25718 for file in `sed -n "
25719 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25720 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25721 # Make sure the directory exists.
25722 test -f "$dirpart/$file" && continue
25723 fdir=`$as_dirname -- "$file" ||
25724 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25725 X"$file" : 'X\(//\)[^/]' \| \
25726 X"$file" : 'X\(//\)$' \| \
25727 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25728 $as_echo X"$file" |
25729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25733 /^X\(\/\/\)[^/].*/{
25746 { as_dir=$dirpart/$fdir
25748 -*) as_dir=./$as_dir;;
25750 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25754 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25755 *) as_qdir=$as_dir;;
25757 as_dirs="'$as_qdir' $as_dirs"
25758 as_dir=`$as_dirname -- "$as_dir" ||
25759 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25760 X"$as_dir" : 'X\(//\)[^/]' \| \
25761 X"$as_dir" : 'X\(//\)$' \| \
25762 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25763 $as_echo X"$as_dir" |
25764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25768 /^X\(\/\/\)[^/].*/{
25781 test -d "$as_dir" && break
25783 test -z "$as_dirs" || eval "mkdir $as_dirs"
25784 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25785 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25786 { (exit 1); exit 1; }; }; }
25787 # echo "creating $dirpart/$file"
25788 echo '# dummy' > "$dirpart/$file"
25795 # See if we are running on zsh, and set the options which allow our
25796 # commands through without removal of \ escapes.
25797 if test -n "${ZSH_VERSION+set}" ; then
25798 setopt NO_GLOB_SUBST
25801 cfgfile="${ofile}T"
25802 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25805 cat <<_LT_EOF >> "$cfgfile"
25808 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25809 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25810 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25811 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25813 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25814 # 2006, 2007, 2008 Free Software Foundation, Inc.
25815 # Written by Gordon Matzigkeit, 1996
25817 # This file is part of GNU Libtool.
25819 # GNU Libtool is free software; you can redistribute it and/or
25820 # modify it under the terms of the GNU General Public License as
25821 # published by the Free Software Foundation; either version 2 of
25822 # the License, or (at your option) any later version.
25824 # As a special exception to the GNU General Public License,
25825 # if you distribute this file as part of a program or library that
25826 # is built using GNU Libtool, you may include this file under the
25827 # same distribution terms that you use for the rest of that program.
25829 # GNU Libtool is distributed in the hope that it will be useful,
25830 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25831 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25832 # GNU General Public License for more details.
25834 # You should have received a copy of the GNU General Public License
25835 # along with GNU Libtool; see the file COPYING. If not, a copy
25836 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25837 # obtained by writing to the Free Software Foundation, Inc.,
25838 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25841 # The names of the tagged configurations supported by this script.
25844 # ### BEGIN LIBTOOL CONFIG
25846 # Which release of libtool.m4 was used?
25847 macro_version=$macro_version
25848 macro_revision=$macro_revision
25850 # Whether or not to build shared libraries.
25851 build_libtool_libs=$enable_shared
25853 # Whether or not to build static libraries.
25854 build_old_libs=$enable_static
25856 # What type of objects to build.
25859 # Whether or not to optimize for fast installation.
25860 fast_install=$enable_fast_install
25863 host_alias=$host_alias
25867 # The build system.
25868 build_alias=$build_alias
25872 # A sed program that does not truncate output.
25875 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25876 Xsed="\$SED -e 1s/^X//"
25878 # A grep program that handles long lines.
25884 # A literal string matcher.
25887 # A BSD- or MS-compatible name lister.
25890 # Whether we need soft or hard links.
25893 # What is the maximum length of a command?
25894 max_cmd_len=$max_cmd_len
25896 # Object file suffix (normally "o").
25899 # Executable file suffix (normally "").
25902 # whether the shell understands "unset".
25905 # turn spaces into newlines.
25908 # turn newlines into spaces.
25911 # How to create reloadable object files.
25912 reload_flag=$lt_reload_flag
25913 reload_cmds=$lt_reload_cmds
25915 # An object symbol dumper.
25916 OBJDUMP=$lt_OBJDUMP
25918 # Method to check whether dependent libraries are shared objects.
25919 deplibs_check_method=$lt_deplibs_check_method
25921 # Command to use when deplibs_check_method == "file_magic".
25922 file_magic_cmd=$lt_file_magic_cmd
25926 AR_FLAGS=$lt_AR_FLAGS
25928 # A symbol stripping program.
25931 # Commands used to install an old-style archive.
25933 old_postinstall_cmds=$lt_old_postinstall_cmds
25934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25939 # LTCC compiler flags.
25940 LTCFLAGS=$lt_CFLAGS
25942 # Take the output of nm and produce a listing of raw symbols and C names.
25943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25945 # Transform the output of nm in a proper C declaration.
25946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25948 # Transform the output of nm in a C name address pair.
25949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25951 # Transform the output of nm in a C name address pair when lib prefix is needed.
25952 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25954 # The name of the directory that contains temporary libtool files.
25957 # Shell to use when invoking shell scripts.
25960 # An echo program that does not interpret backslashes.
25963 # Used to examine libraries when file_magic_cmd begins with "file".
25964 MAGIC_CMD=$MAGIC_CMD
25966 # Must we lock files when doing compilation?
25967 need_locks=$lt_need_locks
25969 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25970 DSYMUTIL=$lt_DSYMUTIL
25972 # Tool to change global to local symbols on Mac OS X.
25975 # Tool to manipulate fat objects and archives on Mac OS X.
25978 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25981 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25982 OTOOL64=$lt_OTOOL64
25984 # Old archive suffix (normally "a").
25987 # Shared library suffix (normally ".so").
25988 shrext_cmds=$lt_shrext_cmds
25990 # The commands to extract the exported symbol list from a shared archive.
25991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25993 # Variables whose values should be saved in libtool wrapper scripts and
25994 # restored at link time.
25995 variables_saved_for_relink=$lt_variables_saved_for_relink
25997 # Do we need the "lib" prefix for modules?
25998 need_lib_prefix=$need_lib_prefix
26000 # Do we need a version for libraries?
26001 need_version=$need_version
26003 # Library versioning type.
26004 version_type=$version_type
26006 # Shared library runtime path variable.
26007 runpath_var=$runpath_var
26009 # Shared library path variable.
26010 shlibpath_var=$shlibpath_var
26012 # Is shlibpath searched before the hard-coded library search path?
26013 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26015 # Format of library name prefix.
26016 libname_spec=$lt_libname_spec
26018 # List of archive names. First name is the real one, the rest are links.
26019 # The last name is the one that the linker finds with -lNAME
26020 library_names_spec=$lt_library_names_spec
26022 # The coded name of the library, if different from the real name.
26023 soname_spec=$lt_soname_spec
26025 # Command to use after installation of a shared archive.
26026 postinstall_cmds=$lt_postinstall_cmds
26028 # Command to use after uninstallation of a shared archive.
26029 postuninstall_cmds=$lt_postuninstall_cmds
26031 # Commands used to finish a libtool library installation in a directory.
26032 finish_cmds=$lt_finish_cmds
26034 # As "finish_cmds", except a single script fragment to be evaled but
26036 finish_eval=$lt_finish_eval
26038 # Whether we should hardcode library paths into libraries.
26039 hardcode_into_libs=$hardcode_into_libs
26041 # Compile-time system search path for libraries.
26042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26044 # Run-time system search path for libraries.
26045 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26047 # Whether dlopen is supported.
26048 dlopen_support=$enable_dlopen
26050 # Whether dlopen of programs is supported.
26051 dlopen_self=$enable_dlopen_self
26053 # Whether dlopen of statically linked programs is supported.
26054 dlopen_self_static=$enable_dlopen_self_static
26056 # Commands to strip libraries.
26057 old_striplib=$lt_old_striplib
26058 striplib=$lt_striplib
26061 # The linker used to build libraries.
26064 # Commands used to build an old-style archive.
26065 old_archive_cmds=$lt_old_archive_cmds
26067 # A language specific compiler.
26070 # Is the compiler the GNU compiler?
26073 # Compiler flag to turn off builtin functions.
26074 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26076 # How to pass a linker flag through the compiler.
26077 wl=$lt_lt_prog_compiler_wl
26079 # Additional compiler flags for building library objects.
26080 pic_flag=$lt_lt_prog_compiler_pic
26082 # Compiler flag to prevent dynamic linking.
26083 link_static_flag=$lt_lt_prog_compiler_static
26085 # Does compiler simultaneously support -c and -o options?
26086 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26088 # Whether or not to add -lc for building shared libraries.
26089 build_libtool_need_lc=$archive_cmds_need_lc
26091 # Whether or not to disallow shared libs when runtime libs are static.
26092 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26094 # Compiler flag to allow reflexive dlopens.
26095 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26097 # Compiler flag to generate shared objects directly from archives.
26098 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26100 # Whether the compiler copes with passing no objects directly.
26101 compiler_needs_object=$lt_compiler_needs_object
26103 # Create an old-style archive from a shared archive.
26104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26106 # Create a temporary old-style archive to link instead of a shared archive.
26107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26109 # Commands used to build a shared archive.
26110 archive_cmds=$lt_archive_cmds
26111 archive_expsym_cmds=$lt_archive_expsym_cmds
26113 # Commands used to build a loadable module if different from building
26114 # a shared archive.
26115 module_cmds=$lt_module_cmds
26116 module_expsym_cmds=$lt_module_expsym_cmds
26118 # Whether we are building with GNU ld or not.
26119 with_gnu_ld=$lt_with_gnu_ld
26121 # Flag that allows shared libraries with undefined symbols to be built.
26122 allow_undefined_flag=$lt_allow_undefined_flag
26124 # Flag that enforces no undefined symbols.
26125 no_undefined_flag=$lt_no_undefined_flag
26127 # Flag to hardcode \$libdir into a binary during linking.
26128 # This must work even if \$libdir does not exist
26129 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26131 # If ld is used when linking, flag to hardcode \$libdir into a binary
26132 # during linking. This must work even if \$libdir does not exist.
26133 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26135 # Whether we need a single "-rpath" flag with a separated argument.
26136 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26138 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26139 # DIR into the resulting binary.
26140 hardcode_direct=$hardcode_direct
26142 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26143 # DIR into the resulting binary and the resulting library dependency is
26144 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26145 # library is relocated.
26146 hardcode_direct_absolute=$hardcode_direct_absolute
26148 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26149 # into the resulting binary.
26150 hardcode_minus_L=$hardcode_minus_L
26152 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26153 # into the resulting binary.
26154 hardcode_shlibpath_var=$hardcode_shlibpath_var
26156 # Set to "yes" if building a shared library automatically hardcodes DIR
26157 # into the library and all subsequent libraries and executables linked
26159 hardcode_automatic=$hardcode_automatic
26161 # Set to yes if linker adds runtime paths of dependent libraries
26162 # to runtime path list.
26163 inherit_rpath=$inherit_rpath
26165 # Whether libtool must link a program against all its dependency libraries.
26166 link_all_deplibs=$link_all_deplibs
26168 # Fix the shell variable \$srcfile for the compiler.
26169 fix_srcfile_path=$lt_fix_srcfile_path
26171 # Set to "yes" if exported symbols are required.
26172 always_export_symbols=$always_export_symbols
26174 # The commands to list exported symbols.
26175 export_symbols_cmds=$lt_export_symbols_cmds
26177 # Symbols that should not be listed in the preloaded symbols.
26178 exclude_expsyms=$lt_exclude_expsyms
26180 # Symbols that must always be exported.
26181 include_expsyms=$lt_include_expsyms
26183 # Commands necessary for linking programs (against libraries) with templates.
26184 prelink_cmds=$lt_prelink_cmds
26186 # Specify filename containing input files.
26187 file_list_spec=$lt_file_list_spec
26189 # How to hardcode a shared library path into an executable.
26190 hardcode_action=$hardcode_action
26192 # ### END LIBTOOL CONFIG
26198 cat <<\_LT_EOF >> "$cfgfile"
26199 # AIX sometimes has problems with the GCC collect2 program. For some
26200 # reason, if we set the COLLECT_NAMES environment variable, the problems
26201 # vanish in a puff of smoke.
26202 if test "X${COLLECT_NAMES+set}" != Xset; then
26204 export COLLECT_NAMES
26211 ltmain="$ac_aux_dir/ltmain.sh"
26214 # We use sed instead of cat because bash on DJGPP gets confused if
26215 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26216 # text mode, it properly converts lines to CR/LF. This bash problem
26217 # is reportedly fixed, but why not run on old versions too?
26218 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
26219 || (rm -f "$cfgfile"; exit 1)
26223 cat << \_LT_EOF >> "$cfgfile"
26225 # func_dirname file append nondir_replacement
26226 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26227 # otherwise set result to NONDIR_REPLACEMENT.
26231 */*) func_dirname_result="${1%/*}${2}" ;;
26232 * ) func_dirname_result="${3}" ;;
26236 # func_basename file
26239 func_basename_result="${1##*/}"
26242 # func_dirname_and_basename file append nondir_replacement
26243 # perform func_basename and func_dirname in a single function
26245 # dirname: Compute the dirname of FILE. If nonempty,
26246 # add APPEND to the result, otherwise set result
26247 # to NONDIR_REPLACEMENT.
26248 # value returned in "$func_dirname_result"
26249 # basename: Compute filename of FILE.
26250 # value retuned in "$func_basename_result"
26251 # Implementation must be kept synchronized with func_dirname
26252 # and func_basename. For efficiency, we do not delegate to
26253 # those functions but instead duplicate the functionality here.
26254 func_dirname_and_basename ()
26257 */*) func_dirname_result="${1%/*}${2}" ;;
26258 * ) func_dirname_result="${3}" ;;
26260 func_basename_result="${1##*/}"
26263 # func_stripname prefix suffix name
26264 # strip PREFIX and SUFFIX off of NAME.
26265 # PREFIX and SUFFIX must not contain globbing or regex special
26266 # characters, hashes, percent signs, but SUFFIX may contain a leading
26267 # dot (in which case that matches only a dot).
26270 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
26271 # positional parameters, so assign one to ordinary parameter first.
26272 func_stripname_result=${3}
26273 func_stripname_result=${func_stripname_result#"${1}"}
26274 func_stripname_result=${func_stripname_result%"${2}"}
26280 func_opt_split_opt=${1%%=*}
26281 func_opt_split_arg=${1#*=}
26288 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
26289 *) func_lo2o_result=${1} ;;
26293 # func_xform libobj-or-source
26296 func_xform_result=${1%.*}.lo
26299 # func_arith arithmetic-term...
26302 func_arith_result=$(( $* ))
26306 # STRING may not start with a hyphen.
26309 func_len_result=${#1}
26314 *) # Bourne compatible functions.
26315 cat << \_LT_EOF >> "$cfgfile"
26317 # func_dirname file append nondir_replacement
26318 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26319 # otherwise set result to NONDIR_REPLACEMENT.
26322 # Extract subdirectory from the argument.
26323 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
26324 if test "X$func_dirname_result" = "X${1}"; then
26325 func_dirname_result="${3}"
26327 func_dirname_result="$func_dirname_result${2}"
26331 # func_basename file
26334 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
26338 # func_stripname prefix suffix name
26339 # strip PREFIX and SUFFIX off of NAME.
26340 # PREFIX and SUFFIX must not contain globbing or regex special
26341 # characters, hashes, percent signs, but SUFFIX may contain a leading
26342 # dot (in which case that matches only a dot).
26343 # func_strip_suffix prefix name
26347 .*) func_stripname_result=`$ECHO "X${3}" \
26348 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
26349 *) func_stripname_result=`$ECHO "X${3}" \
26350 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
26355 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
26356 my_sed_long_arg='1s/^-[^=]*=//'
26361 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
26362 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
26368 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
26371 # func_xform libobj-or-source
26374 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
26377 # func_arith arithmetic-term...
26380 func_arith_result=`expr "$@"`
26384 # STRING may not start with a hyphen.
26387 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
26393 case $lt_shell_append in
26395 cat << \_LT_EOF >> "$cfgfile"
26397 # func_append var value
26398 # Append VALUE to the end of shell variable VAR.
26406 cat << \_LT_EOF >> "$cfgfile"
26408 # func_append var value
26409 # Append VALUE to the end of shell variable VAR.
26420 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
26421 || (rm -f "$cfgfile"; exit 1)
26423 mv -f "$cfgfile" "$ofile" ||
26424 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26433 { (exit 0); exit 0; }
26435 chmod +x $CONFIG_STATUS
26436 ac_clean_files=$ac_clean_files_save
26438 test $ac_write_fail = 0 ||
26439 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26440 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26441 { (exit 1); exit 1; }; }
26444 # configure is writing to config.log, and then calls config.status.
26445 # config.status does its own redirection, appending to config.log.
26446 # Unfortunately, on DOS this fails, as config.log is still kept open
26447 # by configure, so config.status won't be able to write to it; its
26448 # output is simply discarded. So we exec the FD to /dev/null,
26449 # effectively closing config.log, so it can be properly (re)opened and
26450 # appended to by config.status. When coming back to configure, we
26451 # need to make the FD available again.
26452 if test "$no_create" != yes; then
26454 ac_config_status_args=
26455 test "$silent" = yes &&
26456 ac_config_status_args="$ac_config_status_args --quiet"
26458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26461 # would make configure fail if this is the last instruction.
26462 $ac_cs_success || { (exit 1); exit 1; }
26464 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26465 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26466 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}