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
870 INSTALL_STRIP_PROGRAM
888 MAINTAINER_MODE_FALSE
938 program_transform_name
950 enable_option_checking
951 enable_maintainer_mode
953 enable_dependency_tracking
966 enable_debug_kmem_tracking
967 enable_atomic_spinlocks
969 ac_precious_vars='build_alias
980 # Initialize some variables set by options.
982 ac_init_version=false
983 ac_unrecognized_opts=
985 # The variables have the same names as the options, with
986 # dashes changed to underlines.
994 program_transform_name=s,x,x,
1002 # Installation directory options.
1003 # These are left unexpanded so users can "make install exec_prefix=/foo"
1004 # and all the variables that are supposed to be based on exec_prefix
1005 # by default will actually change.
1006 # Use braces instead of parens because sh, perl, etc. also accept them.
1007 # (The list follows the same order as the GNU Coding Standards.)
1008 bindir='${exec_prefix}/bin'
1009 sbindir='${exec_prefix}/sbin'
1010 libexecdir='${exec_prefix}/libexec'
1011 datarootdir='${prefix}/share'
1012 datadir='${datarootdir}'
1013 sysconfdir='${prefix}/etc'
1014 sharedstatedir='${prefix}/com'
1015 localstatedir='${prefix}/var'
1016 includedir='${prefix}/include'
1017 oldincludedir='/usr/include'
1018 docdir='${datarootdir}/doc/${PACKAGE}'
1019 infodir='${datarootdir}/info'
1024 libdir='${exec_prefix}/lib'
1025 localedir='${datarootdir}/locale'
1026 mandir='${datarootdir}/man'
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
1034 eval $ac_prev=\$ac_option
1040 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1044 # Accept the important Cygnus configure options, so we can diagnose typos.
1046 case $ac_dashdash$ac_option in
1050 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1052 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053 bindir=$ac_optarg ;;
1055 -build | --build | --buil | --bui | --bu)
1056 ac_prev=build_alias ;;
1057 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058 build_alias=$ac_optarg ;;
1060 -cache-file | --cache-file | --cache-fil | --cache-fi \
1061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062 ac_prev=cache_file ;;
1063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065 cache_file=$ac_optarg ;;
1067 --config-cache | -C)
1068 cache_file=config.cache ;;
1070 -datadir | --datadir | --datadi | --datad)
1072 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1073 datadir=$ac_optarg ;;
1075 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076 | --dataroo | --dataro | --datar)
1077 ac_prev=datarootdir ;;
1078 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080 datarootdir=$ac_optarg ;;
1082 -disable-* | --disable-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1092 "enable_$ac_useropt"
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1097 eval enable_$ac_useropt=no ;;
1099 -docdir | --docdir | --docdi | --doc | --do)
1101 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1102 docdir=$ac_optarg ;;
1104 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1107 dvidir=$ac_optarg ;;
1109 -enable-* | --enable-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1114 { (exit 1); exit 1; }; }
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "enable_$ac_useropt"
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1124 eval enable_$ac_useropt=\$ac_optarg ;;
1126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1128 | --exec | --exe | --ex)
1129 ac_prev=exec_prefix ;;
1130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1132 | --exec=* | --exe=* | --ex=*)
1133 exec_prefix=$ac_optarg ;;
1135 -gas | --gas | --ga | --g)
1136 # Obsolete; use --with-gas.
1139 -help | --help | --hel | --he | -h)
1140 ac_init_help=long ;;
1141 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1142 ac_init_help=recursive ;;
1143 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1144 ac_init_help=short ;;
1146 -host | --host | --hos | --ho)
1147 ac_prev=host_alias ;;
1148 -host=* | --host=* | --hos=* | --ho=*)
1149 host_alias=$ac_optarg ;;
1151 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1153 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1155 htmldir=$ac_optarg ;;
1157 -includedir | --includedir | --includedi | --included | --include \
1158 | --includ | --inclu | --incl | --inc)
1159 ac_prev=includedir ;;
1160 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1161 | --includ=* | --inclu=* | --incl=* | --inc=*)
1162 includedir=$ac_optarg ;;
1164 -infodir | --infodir | --infodi | --infod | --info | --inf)
1166 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1167 infodir=$ac_optarg ;;
1169 -libdir | --libdir | --libdi | --libd)
1171 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1172 libdir=$ac_optarg ;;
1174 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1175 | --libexe | --libex | --libe)
1176 ac_prev=libexecdir ;;
1177 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1178 | --libexe=* | --libex=* | --libe=*)
1179 libexecdir=$ac_optarg ;;
1181 -localedir | --localedir | --localedi | --localed | --locale)
1182 ac_prev=localedir ;;
1183 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1184 localedir=$ac_optarg ;;
1186 -localstatedir | --localstatedir | --localstatedi | --localstated \
1187 | --localstate | --localstat | --localsta | --localst | --locals)
1188 ac_prev=localstatedir ;;
1189 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1190 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1191 localstatedir=$ac_optarg ;;
1193 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1195 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1196 mandir=$ac_optarg ;;
1198 -nfp | --nfp | --nf)
1199 # Obsolete; use --without-fp.
1202 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1203 | --no-cr | --no-c | -n)
1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1211 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1212 | --oldin | --oldi | --old | --ol | --o)
1213 ac_prev=oldincludedir ;;
1214 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1215 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1216 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1217 oldincludedir=$ac_optarg ;;
1219 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1221 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1222 prefix=$ac_optarg ;;
1224 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1225 | --program-pre | --program-pr | --program-p)
1226 ac_prev=program_prefix ;;
1227 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1228 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1229 program_prefix=$ac_optarg ;;
1231 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1232 | --program-suf | --program-su | --program-s)
1233 ac_prev=program_suffix ;;
1234 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1235 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1236 program_suffix=$ac_optarg ;;
1238 -program-transform-name | --program-transform-name \
1239 | --program-transform-nam | --program-transform-na \
1240 | --program-transform-n | --program-transform- \
1241 | --program-transform | --program-transfor \
1242 | --program-transfo | --program-transf \
1243 | --program-trans | --program-tran \
1244 | --progr-tra | --program-tr | --program-t)
1245 ac_prev=program_transform_name ;;
1246 -program-transform-name=* | --program-transform-name=* \
1247 | --program-transform-nam=* | --program-transform-na=* \
1248 | --program-transform-n=* | --program-transform-=* \
1249 | --program-transform=* | --program-transfor=* \
1250 | --program-transfo=* | --program-transf=* \
1251 | --program-trans=* | --program-tran=* \
1252 | --progr-tra=* | --program-tr=* | --program-t=*)
1253 program_transform_name=$ac_optarg ;;
1255 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1257 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1258 pdfdir=$ac_optarg ;;
1260 -psdir | --psdir | --psdi | --psd | --ps)
1262 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266 | -silent | --silent | --silen | --sile | --sil)
1269 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1271 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1273 sbindir=$ac_optarg ;;
1275 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1276 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1277 | --sharedst | --shareds | --shared | --share | --shar \
1279 ac_prev=sharedstatedir ;;
1280 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1281 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1282 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1284 sharedstatedir=$ac_optarg ;;
1286 -site | --site | --sit)
1288 -site=* | --site=* | --sit=*)
1291 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1293 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1294 srcdir=$ac_optarg ;;
1296 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1297 | --syscon | --sysco | --sysc | --sys | --sy)
1298 ac_prev=sysconfdir ;;
1299 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1300 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1301 sysconfdir=$ac_optarg ;;
1303 -target | --target | --targe | --targ | --tar | --ta | --t)
1304 ac_prev=target_alias ;;
1305 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1306 target_alias=$ac_optarg ;;
1308 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1311 -version | --version | --versio | --versi | --vers | -V)
1312 ac_init_version=: ;;
1315 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1319 { (exit 1); exit 1; }; }
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1329 eval with_$ac_useropt=\$ac_optarg ;;
1331 -without-* | --without-*)
1332 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1335 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1336 { (exit 1); exit 1; }; }
1337 ac_useropt_orig=$ac_useropt
1338 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339 case $ac_user_opts in
1343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1344 ac_unrecognized_sep=', ';;
1346 eval with_$ac_useropt=no ;;
1349 # Obsolete; use --with-x.
1352 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1353 | --x-incl | --x-inc | --x-in | --x-i)
1354 ac_prev=x_includes ;;
1355 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1356 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1357 x_includes=$ac_optarg ;;
1359 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1360 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1361 ac_prev=x_libraries ;;
1362 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1363 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1364 x_libraries=$ac_optarg ;;
1366 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1367 Try \`$0 --help' for more information." >&2
1368 { (exit 1); exit 1; }; }
1372 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1375 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1376 { (exit 1); exit 1; }; }
1377 eval $ac_envvar=\$ac_optarg
1378 export $ac_envvar ;;
1381 # FIXME: should be removed in autoconf 3.0.
1382 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1383 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1385 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1391 if test -n "$ac_prev"; then
1392 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1393 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1394 { (exit 1); exit 1; }; }
1397 if test -n "$ac_unrecognized_opts"; then
1398 case $enable_option_checking in
1400 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1401 { (exit 1); exit 1; }; } ;;
1402 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1406 # Check all directory arguments for consistency.
1407 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1408 datadir sysconfdir sharedstatedir localstatedir includedir \
1409 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1410 libdir localedir mandir
1412 eval ac_val=\$$ac_var
1413 # Remove trailing slashes.
1416 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1417 eval $ac_var=\$ac_val;;
1419 # Be sure to have absolute directory names.
1421 [\\/$]* | ?:[\\/]* ) continue;;
1422 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1424 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1425 { (exit 1); exit 1; }; }
1428 # There might be people who depend on the old broken behavior: `$host'
1429 # used to hold the argument of --host etc.
1430 # FIXME: To remove some day.
1433 target=$target_alias
1435 # FIXME: To remove some day.
1436 if test "x$host_alias" != x; then
1437 if test "x$build_alias" = x; then
1438 cross_compiling=maybe
1439 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1440 If a cross compiler is detected then cross compile mode will be used." >&2
1441 elif test "x$build_alias" != "x$host_alias"; then
1447 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1449 test "$silent" = yes && exec 6>/dev/null
1452 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1453 ac_ls_di=`ls -di .` &&
1454 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1455 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1456 { (exit 1); exit 1; }; }
1457 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1458 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1459 { (exit 1); exit 1; }; }
1462 # Find the source files, if location was not specified.
1463 if test -z "$srcdir"; then
1464 ac_srcdir_defaulted=yes
1465 # Try the directory containing this script, then the parent directory.
1466 ac_confdir=`$as_dirname -- "$as_myself" ||
1467 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1468 X"$as_myself" : 'X\(//\)[^/]' \| \
1469 X"$as_myself" : 'X\(//\)$' \| \
1470 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1471 $as_echo X"$as_myself" |
1472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1490 if test ! -r "$srcdir/$ac_unique_file"; then
1494 ac_srcdir_defaulted=no
1496 if test ! -r "$srcdir/$ac_unique_file"; then
1497 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1498 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1499 { (exit 1); exit 1; }; }
1501 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1503 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1504 { (exit 1); exit 1; }; }
1506 # When building in place, set srcdir=.
1507 if test "$ac_abs_confdir" = "$ac_pwd"; then
1510 # Remove unnecessary trailing slashes from srcdir.
1511 # Double slashes in file names in object file debugging info
1512 # mess up M-x gdb in Emacs.
1514 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1516 for ac_var in $ac_precious_vars; do
1517 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1518 eval ac_env_${ac_var}_value=\$${ac_var}
1519 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1524 # Report the --help message.
1526 if test "$ac_init_help" = "long"; then
1527 # Omit some internal or obsolete options to make the list less imposing.
1528 # This message is too long to be a string in the A/UX 3.1 sh.
1530 \`configure' configures this package to adapt to many kinds of systems.
1532 Usage: $0 [OPTION]... [VAR=VALUE]...
1534 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1535 VAR=VALUE. See below for descriptions of some of the useful variables.
1537 Defaults for the options are specified in brackets.
1540 -h, --help display this help and exit
1541 --help=short display options specific to this package
1542 --help=recursive display the short help of all the included packages
1543 -V, --version display version information and exit
1544 -q, --quiet, --silent do not print \`checking...' messages
1545 --cache-file=FILE cache test results in FILE [disabled]
1546 -C, --config-cache alias for \`--cache-file=config.cache'
1547 -n, --no-create do not create output files
1548 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1550 Installation directories:
1551 --prefix=PREFIX install architecture-independent files in PREFIX
1552 [$ac_default_prefix]
1553 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1556 By default, \`make install' will install all the files in
1557 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1558 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1559 for instance \`--prefix=\$HOME'.
1561 For better control, use the options below.
1563 Fine tuning of the installation directories:
1564 --bindir=DIR user executables [EPREFIX/bin]
1565 --sbindir=DIR system admin executables [EPREFIX/sbin]
1566 --libexecdir=DIR program executables [EPREFIX/libexec]
1567 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1568 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1569 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1570 --libdir=DIR object code libraries [EPREFIX/lib]
1571 --includedir=DIR C header files [PREFIX/include]
1572 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1573 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1574 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1575 --infodir=DIR info documentation [DATAROOTDIR/info]
1576 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1577 --mandir=DIR man documentation [DATAROOTDIR/man]
1578 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1579 --htmldir=DIR html documentation [DOCDIR]
1580 --dvidir=DIR dvi documentation [DOCDIR]
1581 --pdfdir=DIR pdf documentation [DOCDIR]
1582 --psdir=DIR ps documentation [DOCDIR]
1588 --program-prefix=PREFIX prepend PREFIX to installed program names
1589 --program-suffix=SUFFIX append SUFFIX to installed program names
1590 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1593 --build=BUILD configure for building on BUILD [guessed]
1594 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1595 --target=TARGET configure for building compilers for TARGET [HOST]
1599 if test -n "$ac_init_help"; then
1604 --disable-option-checking ignore unrecognized --enable/--with options
1605 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1606 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1607 --enable-maintainer-mode enable make rules and dependencies not useful
1608 (and sometimes confusing) to the casual installer
1609 --enable-silent-rules less verbose build output (undo: `make V=1')
1610 --disable-silent-rules verbose build output (undo: `make V=0')
1611 --disable-dependency-tracking speeds up one-time build
1612 --enable-dependency-tracking do not reject slow dependency extractors
1613 --enable-shared[=PKGS] build shared libraries [default=yes]
1614 --enable-static[=PKGS] build static libraries [default=yes]
1615 --enable-fast-install[=PKGS]
1616 optimize for fast installation [default=yes]
1617 --disable-libtool-lock avoid locking (might break parallel builds)
1618 --enable-debug Enable generic debug support [default=no]
1619 --enable-debug-log Enable basic debug logging [default=yes]
1620 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1621 --enable-debug-kmem-tracking
1622 Enable detailed kmem tracking [default=no]
1623 --enable-atomic-spinlocks
1624 Atomic types use spinlocks [default=check]
1627 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1628 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1629 --with-pic try to use only PIC/non-PIC objects [default=use
1631 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1632 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1633 --with-linux=PATH Path to kernel source
1634 --with-linux-obj=PATH Path to kernel build objects
1636 Some influential environment variables:
1637 CC C compiler command
1638 CFLAGS C compiler flags
1639 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1640 nonstandard directory <lib dir>
1641 LIBS libraries to pass to the linker, e.g. -l<library>
1642 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1643 you have headers in a nonstandard directory <include dir>
1646 Use these variables to override the choices made by `configure' or to help
1647 it to find libraries and programs with nonstandard names/locations.
1653 if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 test -d "$ac_dir" ||
1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1678 .) # We are building in place.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1712 generated by GNU Autoconf 2.63
1714 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1721 cat >config.log <<_ACEOF
1722 This file contains any messages produced by compilers while
1723 running configure, to aid debugging if configure makes a mistake.
1725 It was created by $as_me, which was
1726 generated by GNU Autoconf 2.63. Invocation command line was
1738 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1739 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1740 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1741 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1742 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1744 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1745 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1747 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1748 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1749 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1750 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1751 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1752 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1753 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 test -z "$as_dir" && as_dir=.
1762 $as_echo "PATH: $as_dir"
1778 # Keep a trace of the command line.
1779 # Strip out --no-create and --no-recursion so they do not pile up.
1780 # Strip out --silent because we don't want to record it for future runs.
1781 # Also quote any args containing shell meta-characters.
1782 # Make two passes to allow for proper duplicate-argument suppression.
1786 ac_must_keep_next=false
1792 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1794 | -silent | --silent | --silen | --sile | --sil)
1797 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1800 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1802 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1803 if test $ac_must_keep_next = true; then
1804 ac_must_keep_next=false # Got value, back to normal.
1807 *=* | --config-cache | -C | -disable-* | --disable-* \
1808 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1809 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1810 | -with-* | --with-* | -without-* | --without-* | --x)
1811 case "$ac_configure_args0 " in
1812 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1815 -* ) ac_must_keep_next=true ;;
1818 ac_configure_args="$ac_configure_args '$ac_arg'"
1823 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1824 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1826 # When interrupted or exit'd, cleanup temporary files, and complete
1827 # config.log. We remove comments because anyway the quotes in there
1828 # would cause problems or look ugly.
1829 # WARNING: Use '\'' to represent an apostrophe within the trap.
1830 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1831 trap 'exit_status=$?
1832 # Save into config.log some information that might help in debugging.
1837 ## ---------------- ##
1838 ## Cache variables. ##
1839 ## ---------------- ##
1842 # The following way of writing the cache mishandles newlines in values,
1844 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1845 eval ac_val=\$$ac_var
1849 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1850 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1853 _ | IFS | as_nl) ;; #(
1854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1855 *) $as_unset $ac_var ;;
1860 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1861 *${as_nl}ac_space=\ *)
1863 "s/'\''/'\''\\\\'\'''\''/g;
1864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1867 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1875 ## ----------------- ##
1876 ## Output variables. ##
1877 ## ----------------- ##
1880 for ac_var in $ac_subst_vars
1882 eval ac_val=\$$ac_var
1884 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1886 $as_echo "$ac_var='\''$ac_val'\''"
1890 if test -n "$ac_subst_files"; then
1892 ## ------------------- ##
1893 ## File substitutions. ##
1894 ## ------------------- ##
1897 for ac_var in $ac_subst_files
1899 eval ac_val=\$$ac_var
1901 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903 $as_echo "$ac_var='\''$ac_val'\''"
1908 if test -s confdefs.h; then
1918 test "$ac_signal" != 0 &&
1919 $as_echo "$as_me: caught signal $ac_signal"
1920 $as_echo "$as_me: exit $exit_status"
1922 rm -f core *.core core.conftest.* &&
1923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926 for ac_signal in 1 2 13 15; do
1927 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1931 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1932 rm -f -r conftest* confdefs.h
1934 # Predefined preprocessor variables.
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_NAME "$PACKAGE_NAME"
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_STRING "$PACKAGE_STRING"
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1961 # Let the site file select an alternate cache file if it wants to.
1962 # Prefer an explicitly selected file to automatically selected ones.
1965 if test -n "$CONFIG_SITE"; then
1966 ac_site_file1=$CONFIG_SITE
1967 elif test "x$prefix" != xNONE; then
1968 ac_site_file1=$prefix/share/config.site
1969 ac_site_file2=$prefix/etc/config.site
1971 ac_site_file1=$ac_default_prefix/share/config.site
1972 ac_site_file2=$ac_default_prefix/etc/config.site
1974 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1976 test "x$ac_site_file" = xNONE && continue
1977 if test -r "$ac_site_file"; then
1978 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1979 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1980 sed 's/^/| /' "$ac_site_file" >&5
1985 if test -r "$cache_file"; then
1986 # Some versions of bash will fail to source /dev/null (special
1987 # files actually), so we avoid doing that.
1988 if test -f "$cache_file"; then
1989 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1990 $as_echo "$as_me: loading cache $cache_file" >&6;}
1992 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1993 *) . "./$cache_file";;
1997 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1998 $as_echo "$as_me: creating cache $cache_file" >&6;}
2002 # Check that the precious variables saved in the cache have kept the same
2004 ac_cache_corrupted=false
2005 for ac_var in $ac_precious_vars; do
2006 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2007 eval ac_new_set=\$ac_env_${ac_var}_set
2008 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2009 eval ac_new_val=\$ac_env_${ac_var}_value
2010 case $ac_old_set,$ac_new_set in
2012 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2013 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2014 ac_cache_corrupted=: ;;
2016 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2017 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2018 ac_cache_corrupted=: ;;
2021 if test "x$ac_old_val" != "x$ac_new_val"; then
2022 # differences in whitespace do not lead to failure.
2023 ac_old_val_w=`echo x $ac_old_val`
2024 ac_new_val_w=`echo x $ac_new_val`
2025 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2026 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2027 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2028 ac_cache_corrupted=:
2030 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2031 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2032 eval $ac_var=\$ac_old_val
2034 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2035 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2036 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2037 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2040 # Pass precious variables to config.status.
2041 if test "$ac_new_set" = set; then
2043 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2044 *) ac_arg=$ac_var=$ac_new_val ;;
2046 case " $ac_configure_args " in
2047 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2048 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2052 if $ac_cache_corrupted; then
2053 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2055 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2056 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2057 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2058 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2059 { (exit 1); exit 1; }; }
2079 ac_cpp='$CPP $CPPFLAGS'
2080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2093 $as_echo_n "checking metadata... " >&6; }
2096 _spl_ac_meta_got_file=no
2097 if test -f "$META"; then
2098 _spl_ac_meta_got_file=yes
2100 SPL_META_NAME=`perl -n\
2101 -e "BEGIN { \\$key=shift @ARGV; }"\
2102 -e "next unless s/^\s*\\$key[:=]//i;"\
2103 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2106 -e "s/^(['\"])(.*)\1/\\$2/;"\
2108 -e "END { print \\$val if defined \\$val; }"\
2109 '(?:NAME|PROJECT|PACKAGE)' $META`;
2110 if test -n "$SPL_META_NAME"; then
2112 cat >>confdefs.h <<_ACEOF
2113 #define SPL_META_NAME "$SPL_META_NAME"
2119 SPL_META_VERSION=`perl -n\
2120 -e "BEGIN { \\$key=shift @ARGV; }"\
2121 -e "next unless s/^\s*\\$key[:=]//i;"\
2122 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2125 -e "s/^(['\"])(.*)\1/\\$2/;"\
2127 -e "END { print \\$val if defined \\$val; }"\
2129 if test -n "$SPL_META_VERSION"; then
2131 cat >>confdefs.h <<_ACEOF
2132 #define SPL_META_VERSION "$SPL_META_VERSION"
2138 SPL_META_RELEASE=`perl -n\
2139 -e "BEGIN { \\$key=shift @ARGV; }"\
2140 -e "next unless s/^\s*\\$key[:=]//i;"\
2141 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2144 -e "s/^(['\"])(.*)\1/\\$2/;"\
2146 -e "END { print \\$val if defined \\$val; }"\
2148 if test -n "$SPL_META_RELEASE"; then
2150 cat >>confdefs.h <<_ACEOF
2151 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2157 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2158 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2159 test -n "$SPL_META_RELEASE" &&
2160 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2162 cat >>confdefs.h <<_ACEOF
2163 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2169 SPL_META_DATA=`perl -n\
2170 -e "BEGIN { \\$key=shift @ARGV; }"\
2171 -e "next unless s/^\s*\\$key[:=]//i;"\
2172 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2175 -e "s/^(['\"])(.*)\1/\\$2/;"\
2177 -e "END { print \\$val if defined \\$val; }"\
2179 if test -n "$SPL_META_DATA"; then
2181 cat >>confdefs.h <<_ACEOF
2182 #define SPL_META_DATA "$SPL_META_DATA"
2188 SPL_META_AUTHOR=`perl -n\
2189 -e "BEGIN { \\$key=shift @ARGV; }"\
2190 -e "next unless s/^\s*\\$key[:=]//i;"\
2191 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2194 -e "s/^(['\"])(.*)\1/\\$2/;"\
2196 -e "END { print \\$val if defined \\$val; }"\
2198 if test -n "$SPL_META_AUTHOR"; then
2200 cat >>confdefs.h <<_ACEOF
2201 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2208 SPL_META_LT_CURRENT=`perl -n\
2209 -e "BEGIN { \\$key=shift @ARGV; }"\
2210 -e "next unless s/^\s*\\$key[:=]//i;"\
2211 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2214 -e "s/^(['\"])(.*)\1/\\$2/;"\
2216 -e "END { print \\$val if defined \\$val; }"\
2217 'LT_CURRENT' $META`;
2218 SPL_META_LT_REVISION=`perl -n\
2219 -e "BEGIN { \\$key=shift @ARGV; }"\
2220 -e "next unless s/^\s*\\$key[:=]//i;"\
2221 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2224 -e "s/^(['\"])(.*)\1/\\$2/;"\
2226 -e "END { print \\$val if defined \\$val; }"\
2227 'LT_REVISION' $META`;
2228 SPL_META_LT_AGE=`perl -n\
2229 -e "BEGIN { \\$key=shift @ARGV; }"\
2230 -e "next unless s/^\s*\\$key[:=]//i;"\
2231 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2234 -e "s/^(['\"])(.*)\1/\\$2/;"\
2236 -e "END { print \\$val if defined \\$val; }"\
2238 if test -n "$SPL_META_LT_CURRENT" \
2239 -o -n "$SPL_META_LT_REVISION" \
2240 -o -n "$SPL_META_LT_AGE"; then
2241 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2242 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2243 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2245 cat >>confdefs.h <<_ACEOF
2246 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2250 cat >>confdefs.h <<_ACEOF
2251 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2255 cat >>confdefs.h <<_ACEOF
2256 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2265 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2266 $as_echo "$_spl_ac_meta_got_file" >&6; }
2270 for ac_dir in config "$srcdir"/config; do
2271 if test -f "$ac_dir/install-sh"; then
2273 ac_install_sh="$ac_aux_dir/install-sh -c"
2275 elif test -f "$ac_dir/install.sh"; then
2277 ac_install_sh="$ac_aux_dir/install.sh -c"
2279 elif test -f "$ac_dir/shtool"; then
2281 ac_install_sh="$ac_aux_dir/shtool install -c"
2285 if test -z "$ac_aux_dir"; then
2286 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2287 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2288 { (exit 1); exit 1; }; }
2291 # These three variables are undocumented and unsupported,
2292 # and are intended to be withdrawn in a future Autoconf release.
2293 # They can cause serious problems if a builder's source tree is in a directory
2294 # whose full name contains unusual characters.
2295 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2296 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2297 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2300 # Make sure we can run config.sub.
2301 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2302 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2303 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2304 { (exit 1); exit 1; }; }
2306 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2307 $as_echo_n "checking build system type... " >&6; }
2308 if test "${ac_cv_build+set}" = set; then
2309 $as_echo_n "(cached) " >&6
2311 ac_build_alias=$build_alias
2312 test "x$ac_build_alias" = x &&
2313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2314 test "x$ac_build_alias" = x &&
2315 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2316 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2317 { (exit 1); exit 1; }; }
2318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2320 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2321 { (exit 1); exit 1; }; }
2324 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2325 $as_echo "$ac_cv_build" >&6; }
2326 case $ac_cv_build in
2328 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2329 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2330 { (exit 1); exit 1; }; };;
2333 ac_save_IFS=$IFS; IFS='-'
2339 # Remember, the first character of IFS is used to create $*,
2340 # except with old shells:
2343 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2346 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2347 $as_echo_n "checking host system type... " >&6; }
2348 if test "${ac_cv_host+set}" = set; then
2349 $as_echo_n "(cached) " >&6
2351 if test "x$host_alias" = x; then
2352 ac_cv_host=$ac_cv_build
2354 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2355 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2356 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2357 { (exit 1); exit 1; }; }
2361 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2362 $as_echo "$ac_cv_host" >&6; }
2365 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2366 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2367 { (exit 1); exit 1; }; };;
2370 ac_save_IFS=$IFS; IFS='-'
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2380 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2383 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2384 $as_echo_n "checking target system type... " >&6; }
2385 if test "${ac_cv_target+set}" = set; then
2386 $as_echo_n "(cached) " >&6
2388 if test "x$target_alias" = x; then
2389 ac_cv_target=$ac_cv_host
2391 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2392 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2393 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2394 { (exit 1); exit 1; }; }
2398 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2399 $as_echo "$ac_cv_target" >&6; }
2400 case $ac_cv_target in
2402 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2403 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2404 { (exit 1); exit 1; }; };;
2406 target=$ac_cv_target
2407 ac_save_IFS=$IFS; IFS='-'
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2417 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2420 # The aliases save the names the user supplied, while $host etc.
2421 # will get canonicalized.
2422 test -n "$target_alias" &&
2423 test "$program_prefix$program_suffix$program_transform_name" = \
2425 program_prefix=${target_alias}-
2427 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2428 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2429 # Check whether --enable-maintainer-mode was given.
2430 if test "${enable_maintainer_mode+set}" = set; then
2431 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2433 USE_MAINTAINER_MODE=no
2436 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2437 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2438 if test $USE_MAINTAINER_MODE = yes; then
2439 MAINTAINER_MODE_TRUE=
2440 MAINTAINER_MODE_FALSE='#'
2442 MAINTAINER_MODE_TRUE='#'
2443 MAINTAINER_MODE_FALSE=
2446 MAINT=$MAINTAINER_MODE_TRUE
2449 # Check whether --enable-silent-rules was given.
2450 if test "${enable_silent_rules+set}" = set; then
2451 enableval=$enable_silent_rules;
2454 case $enable_silent_rules in
2455 yes) AM_DEFAULT_VERBOSITY=0;;
2456 no) AM_DEFAULT_VERBOSITY=1;;
2457 *) AM_DEFAULT_VERBOSITY=1;;
2461 am__api_version='1.11'
2463 # Find a good install program. We prefer a C program (faster),
2464 # so one script is as good as another. But avoid the broken or
2465 # incompatible versions:
2466 # SysV /etc/install, /usr/sbin/install
2467 # SunOS /usr/etc/install
2468 # IRIX /sbin/install
2470 # AmigaOS /C/install, which installs bootblocks on floppy discs
2471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2474 # OS/2's system install, which has a completely different semantic
2475 # ./install, which can be erroneously created by make from ./install.sh.
2476 # Reject install programs that cannot install multiple files.
2477 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2478 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2479 if test -z "$INSTALL"; then
2480 if test "${ac_cv_path_install+set}" = set; then
2481 $as_echo_n "(cached) " >&6
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir=.
2488 # Account for people who put trailing slashes in PATH elements.
2490 ./ | .// | /cC/* | \
2491 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2492 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2495 # OSF1 and SCO ODT 3.0 have their own names for install.
2496 # Don't use installbsd from OSF since it installs stuff as root
2498 for ac_prog in ginstall scoinst install; do
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2501 if test $ac_prog = install &&
2502 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2503 # AIX install. It has an incompatible calling convention.
2505 elif test $ac_prog = install &&
2506 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507 # program-specific install script used by HP pwplus--don't use.
2510 rm -rf conftest.one conftest.two conftest.dir
2511 echo one > conftest.one
2512 echo two > conftest.two
2514 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2515 test -s conftest.one && test -s conftest.two &&
2516 test -s conftest.dir/conftest.one &&
2517 test -s conftest.dir/conftest.two
2519 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2532 rm -rf conftest.one conftest.two conftest.dir
2535 if test "${ac_cv_path_install+set}" = set; then
2536 INSTALL=$ac_cv_path_install
2538 # As a last resort, use the slow shell script. Don't cache a
2539 # value for INSTALL within a source directory, because that will
2540 # break other packages using the cache if that directory is
2541 # removed, or if the value is a relative name.
2542 INSTALL=$ac_install_sh
2545 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2546 $as_echo "$INSTALL" >&6; }
2548 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2549 # It thinks the first close brace ends the variable substitution.
2550 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2552 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2554 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2556 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2557 $as_echo_n "checking whether build environment is sane... " >&6; }
2560 echo timestamp > conftest.file
2561 # Reject unsafe characters in $srcdir or the absolute working directory
2562 # name. Accept space and tab only in the latter.
2566 *[\\\"\#\$\&\'\`$am_lf]*)
2567 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2568 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2569 { (exit 1); exit 1; }; };;
2572 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2573 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2574 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2575 { (exit 1); exit 1; }; };;
2578 # Do `set' in a subshell so we don't clobber the current shell's
2579 # arguments. Must try -L first in case configure is actually a
2580 # symlink; some systems play weird games with the mod time of symlinks
2581 # (eg FreeBSD returns the mod time of the symlink's containing
2584 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2585 if test "$*" = "X"; then
2587 set X `ls -t "$srcdir/configure" conftest.file`
2590 if test "$*" != "X $srcdir/configure conftest.file" \
2591 && test "$*" != "X conftest.file $srcdir/configure"; then
2593 # If neither matched, then we have a broken ls. This can happen
2594 # if, for instance, CONFIG_SHELL is bash and it inherits a
2595 # broken ls alias from the environment. This has actually
2596 # happened. Such a system could not be considered "sane".
2597 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&5
2599 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2600 alias in your environment" >&2;}
2601 { (exit 1); exit 1; }; }
2604 test "$2" = conftest.file
2610 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2611 Check your system clock" >&5
2612 $as_echo "$as_me: error: newly created file is older than distributed files!
2613 Check your system clock" >&2;}
2614 { (exit 1); exit 1; }; }
2616 { $as_echo "$as_me:$LINENO: result: yes" >&5
2617 $as_echo "yes" >&6; }
2618 test "$program_prefix" != NONE &&
2619 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2620 # Use a double $ so make ignores it.
2621 test "$program_suffix" != NONE &&
2622 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2623 # Double any \ or $.
2624 # By default was `s,x,x', remove it if useless.
2625 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2626 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2628 # expand $ac_aux_dir to an absolute path
2629 am_aux_dir=`cd $ac_aux_dir && pwd`
2631 if test x"${MISSING+set}" != xset; then
2634 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2636 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2639 # Use eval to expand $SHELL
2640 if eval "$MISSING --run true"; then
2641 am_missing_run="$MISSING --run "
2644 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2645 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2648 if test x"${install_sh}" != xset; then
2651 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2653 install_sh="\${SHELL} $am_aux_dir/install-sh"
2657 # Installed binaries are usually stripped using `strip' when the user
2658 # run `make install-strip'. However `strip' might not be the right
2659 # tool to use in cross-compilation environments, therefore Automake
2660 # will honor the `STRIP' environment variable to overrule this program.
2661 if test "$cross_compiling" != no; then
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}strip; ac_word=$2
2665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if test "${ac_cv_prog_STRIP+set}" = set; then
2668 $as_echo_n "(cached) " >&6
2670 if test -n "$STRIP"; then
2671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 STRIP=$ac_cv_prog_STRIP
2691 if test -n "$STRIP"; then
2692 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2693 $as_echo "$STRIP" >&6; }
2695 { $as_echo "$as_me:$LINENO: result: no" >&5
2696 $as_echo "no" >&6; }
2701 if test -z "$ac_cv_prog_STRIP"; then
2703 # Extract the first word of "strip", so it can be a program name with args.
2704 set dummy strip; ac_word=$2
2705 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2708 $as_echo_n "(cached) " >&6
2710 if test -n "$ac_ct_STRIP"; then
2711 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_ac_ct_STRIP="strip"
2721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2731 if test -n "$ac_ct_STRIP"; then
2732 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2733 $as_echo "$ac_ct_STRIP" >&6; }
2735 { $as_echo "$as_me:$LINENO: result: no" >&5
2736 $as_echo "no" >&6; }
2739 if test "x$ac_ct_STRIP" = x; then
2742 case $cross_compiling:$ac_tool_warned in
2744 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746 ac_tool_warned=yes ;;
2751 STRIP="$ac_cv_prog_STRIP"
2755 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2757 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2758 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2759 if test -z "$MKDIR_P"; then
2760 if test "${ac_cv_path_mkdir+set}" = set; then
2761 $as_echo_n "(cached) " >&6
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2767 test -z "$as_dir" && as_dir=.
2768 for ac_prog in mkdir gmkdir; do
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2771 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2772 'mkdir (GNU coreutils) '* | \
2773 'mkdir (coreutils) '* | \
2774 'mkdir (fileutils) '4.1*)
2775 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2785 if test "${ac_cv_path_mkdir+set}" = set; then
2786 MKDIR_P="$ac_cv_path_mkdir -p"
2788 # As a last resort, use the slow shell script. Don't cache a
2789 # value for MKDIR_P within a source directory, because that will
2790 # break other packages using the cache if that directory is
2791 # removed, or if the value is a relative name.
2792 test -d ./--version && rmdir ./--version
2793 MKDIR_P="$ac_install_sh -d"
2796 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2797 $as_echo "$MKDIR_P" >&6; }
2801 [\\/$]* | ?:[\\/]*) ;;
2802 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2805 for ac_prog in gawk mawk nawk awk
2807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2808 set dummy $ac_prog; ac_word=$2
2809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if test "${ac_cv_prog_AWK+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2814 if test -n "$AWK"; then
2815 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_AWK="$ac_prog"
2825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 if test -n "$AWK"; then
2836 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2837 $as_echo "$AWK" >&6; }
2839 { $as_echo "$as_me:$LINENO: result: no" >&5
2840 $as_echo "no" >&6; }
2844 test -n "$AWK" && break
2847 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2848 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2850 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2851 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2852 $as_echo_n "(cached) " >&6
2854 cat >conftest.make <<\_ACEOF
2857 @echo '@@@%%%=$(MAKE)=@@@%%%'
2859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2860 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2862 eval ac_cv_prog_make_${ac_make}_set=yes;;
2864 eval ac_cv_prog_make_${ac_make}_set=no;;
2868 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2869 { $as_echo "$as_me:$LINENO: result: yes" >&5
2870 $as_echo "yes" >&6; }
2873 { $as_echo "$as_me:$LINENO: result: no" >&5
2874 $as_echo "no" >&6; }
2875 SET_MAKE="MAKE=${MAKE-make}"
2878 rm -rf .tst 2>/dev/null
2879 mkdir .tst 2>/dev/null
2880 if test -d .tst; then
2885 rmdir .tst 2>/dev/null
2887 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2888 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2889 # is not polluted with repeated "-I."
2890 am__isrc=' -I$(srcdir)'
2891 # test to see if srcdir already configured
2892 if test -f $srcdir/config.status; then
2893 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2894 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2895 { (exit 1); exit 1; }; }
2899 # test whether we have cygpath
2900 if test -z "$CYGPATH_W"; then
2901 if (cygpath --version) >/dev/null 2>/dev/null; then
2902 CYGPATH_W='cygpath -w'
2909 # Define the identity of the package.
2910 PACKAGE=$SPL_META_NAME
2911 VERSION=$SPL_META_VERSION
2914 cat >>confdefs.h <<_ACEOF
2915 #define PACKAGE "$PACKAGE"
2919 cat >>confdefs.h <<_ACEOF
2920 #define VERSION "$VERSION"
2923 # Some tools Automake needs.
2925 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2928 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2931 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2934 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2937 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2939 # We need awk for the "check" target. The system "awk" is bad on
2941 # Always define AMTAR for backward compatibility.
2943 AMTAR=${AMTAR-"${am_missing_run}tar"}
2945 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2951 ac_config_headers="$ac_config_headers spl_config.h"
2954 # Find a good install program. We prefer a C program (faster),
2955 # so one script is as good as another. But avoid the broken or
2956 # incompatible versions:
2957 # SysV /etc/install, /usr/sbin/install
2958 # SunOS /usr/etc/install
2959 # IRIX /sbin/install
2961 # AmigaOS /C/install, which installs bootblocks on floppy discs
2962 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2963 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2964 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2965 # OS/2's system install, which has a completely different semantic
2966 # ./install, which can be erroneously created by make from ./install.sh.
2967 # Reject install programs that cannot install multiple files.
2968 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2969 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2970 if test -z "$INSTALL"; then
2971 if test "${ac_cv_path_install+set}" = set; then
2972 $as_echo_n "(cached) " >&6
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 # Account for people who put trailing slashes in PATH elements.
2981 ./ | .// | /cC/* | \
2982 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2986 # OSF1 and SCO ODT 3.0 have their own names for install.
2987 # Don't use installbsd from OSF since it installs stuff as root
2989 for ac_prog in ginstall scoinst install; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2992 if test $ac_prog = install &&
2993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994 # AIX install. It has an incompatible calling convention.
2996 elif test $ac_prog = install &&
2997 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998 # program-specific install script used by HP pwplus--don't use.
3001 rm -rf conftest.one conftest.two conftest.dir
3002 echo one > conftest.one
3003 echo two > conftest.two
3005 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3006 test -s conftest.one && test -s conftest.two &&
3007 test -s conftest.dir/conftest.one &&
3008 test -s conftest.dir/conftest.two
3010 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3023 rm -rf conftest.one conftest.two conftest.dir
3026 if test "${ac_cv_path_install+set}" = set; then
3027 INSTALL=$ac_cv_path_install
3029 # As a last resort, use the slow shell script. Don't cache a
3030 # value for INSTALL within a source directory, because that will
3031 # break other packages using the cache if that directory is
3032 # removed, or if the value is a relative name.
3033 INSTALL=$ac_install_sh
3036 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3037 $as_echo "$INSTALL" >&6; }
3039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3040 # It thinks the first close brace ends the variable substitution.
3041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3043 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3045 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3054 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_CC+set}" = set; then
3058 $as_echo_n "(cached) " >&6
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3085 { $as_echo "$as_me:$LINENO: result: no" >&5
3086 $as_echo "no" >&6; }
3091 if test -z "$ac_cv_prog_CC"; then
3093 # Extract the first word of "gcc", so it can be a program name with args.
3094 set dummy gcc; ac_word=$2
3095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$ac_ct_CC"; then
3101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_ac_ct_CC="gcc"
3111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121 if test -n "$ac_ct_CC"; then
3122 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3123 $as_echo "$ac_ct_CC" >&6; }
3125 { $as_echo "$as_me:$LINENO: result: no" >&5
3126 $as_echo "no" >&6; }
3129 if test "x$ac_ct_CC" = x; then
3132 case $cross_compiling:$ac_tool_warned in
3134 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136 ac_tool_warned=yes ;;
3144 if test -z "$CC"; then
3145 if test -n "$ac_tool_prefix"; then
3146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3147 set dummy ${ac_tool_prefix}cc; ac_word=$2
3148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if test "${ac_cv_prog_CC+set}" = set; then
3151 $as_echo_n "(cached) " >&6
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163 ac_cv_prog_CC="${ac_tool_prefix}cc"
3164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 if test -n "$CC"; then
3175 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3178 { $as_echo "$as_me:$LINENO: result: no" >&5
3179 $as_echo "no" >&6; }
3185 if test -z "$CC"; then
3186 # Extract the first word of "cc", so it can be a program name with args.
3187 set dummy cc; ac_word=$2
3188 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if test "${ac_cv_prog_CC+set}" = set; then
3191 $as_echo_n "(cached) " >&6
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3205 ac_prog_rejected=yes
3209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 if test $ac_prog_rejected = yes; then
3217 # We found a bogon in the path, so make sure we never use it.
3218 set dummy $ac_cv_prog_CC
3220 if test $# != 0; then
3221 # We chose a different compiler from the bogus one.
3222 # However, it has the same basename, so the bogon will be chosen
3223 # first if we set CC to just the basename; use the full file name.
3225 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3231 if test -n "$CC"; then
3232 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3235 { $as_echo "$as_me:$LINENO: result: no" >&5
3236 $as_echo "no" >&6; }
3241 if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
3243 for ac_prog in cl.exe
3245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_CC+set}" = set; then
3250 $as_echo_n "(cached) " >&6
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3277 { $as_echo "$as_me:$LINENO: result: no" >&5
3278 $as_echo "no" >&6; }
3282 test -n "$CC" && break
3285 if test -z "$CC"; then
3287 for ac_prog in cl.exe
3289 # Extract the first word of "$ac_prog", so it can be a program name with args.
3290 set dummy $ac_prog; ac_word=$2
3291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3294 $as_echo_n "(cached) " >&6
3296 if test -n "$ac_ct_CC"; then
3297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 ac_cv_prog_ac_ct_CC="$ac_prog"
3307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3317 if test -n "$ac_ct_CC"; then
3318 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3319 $as_echo "$ac_ct_CC" >&6; }
3321 { $as_echo "$as_me:$LINENO: result: no" >&5
3322 $as_echo "no" >&6; }
3326 test -n "$ac_ct_CC" && break
3329 if test "x$ac_ct_CC" = x; then
3332 case $cross_compiling:$ac_tool_warned in
3334 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336 ac_tool_warned=yes ;;
3345 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3348 See \`config.log' for more details." >&5
3349 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3350 See \`config.log' for more details." >&2;}
3351 { (exit 1); exit 1; }; }; }
3353 # Provide some information about the compiler.
3354 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3357 { (ac_try="$ac_compiler --version >&5"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compiler --version >&5") 2>&5
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }
3368 { (ac_try="$ac_compiler -v >&5"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3374 $as_echo "$ac_try_echo") >&5
3375 (eval "$ac_compiler -v >&5") 2>&5
3377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }
3379 { (ac_try="$ac_compiler -V >&5"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3385 $as_echo "$ac_try_echo") >&5
3386 (eval "$ac_compiler -V >&5") 2>&5
3388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3406 ac_clean_files_save=$ac_clean_files
3407 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3408 # Try to create an executable without -o first, disregard a.out.
3409 # It will help us diagnose broken compilers, and finding out an intuition
3411 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3412 $as_echo_n "checking for C compiler default output file name... " >&6; }
3413 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3415 # The possible output files:
3416 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3419 for ac_file in $ac_files
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3423 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3428 if { (ac_try="$ac_link_default"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3434 $as_echo "$ac_try_echo") >&5
3435 (eval "$ac_link_default") 2>&5
3437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; then
3439 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3440 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3441 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3442 # so that the user can short-circuit this test for compilers unknown to
3444 for ac_file in $ac_files ''
3446 test -f "$ac_file" || continue
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3451 # We found the default executable, but exeext='' is most
3455 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3457 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459 # We set ac_cv_exeext here because the later test for it is not
3460 # safe: cross compilers may not add the suffix if given an `-o'
3461 # argument, so we may need to know it at that point already.
3462 # Even if this section looks crufty: it has the advantage of
3469 test "$ac_cv_exeext" = no && ac_cv_exeext=
3475 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3476 $as_echo "$ac_file" >&6; }
3477 if test -z "$ac_file"; then
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3484 See \`config.log' for more details." >&5
3485 $as_echo "$as_me: error: C compiler cannot create executables
3486 See \`config.log' for more details." >&2;}
3487 { (exit 77); exit 77; }; }; }
3490 ac_exeext=$ac_cv_exeext
3492 # Check that the compiler produces executables we can run. If not, either
3493 # the compiler is broken, or we cross compile.
3494 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3495 $as_echo_n "checking whether the C compiler works... " >&6; }
3496 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3497 # If not cross compiling, check that we can run a simple program.
3498 if test "$cross_compiling" != yes; then
3499 if { ac_try='./$ac_file'
3500 { (case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3505 $as_echo "$ac_try_echo") >&5
3506 (eval "$ac_try") 2>&5
3508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3512 if test "$cross_compiling" = maybe; then
3515 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3518 If you meant to cross compile, use \`--host'.
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot run C compiled programs.
3521 If you meant to cross compile, use \`--host'.
3522 See \`config.log' for more details." >&2;}
3523 { (exit 1); exit 1; }; }; }
3527 { $as_echo "$as_me:$LINENO: result: yes" >&5
3528 $as_echo "yes" >&6; }
3530 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3531 ac_clean_files=$ac_clean_files_save
3532 # Check that the compiler produces executables we can run. If not, either
3533 # the compiler is broken, or we cross compile.
3534 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3535 $as_echo_n "checking whether we are cross compiling... " >&6; }
3536 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3537 $as_echo "$cross_compiling" >&6; }
3539 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3540 $as_echo_n "checking for suffix of executables... " >&6; }
3541 if { (ac_try="$ac_link"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3547 $as_echo "$ac_try_echo") >&5
3548 (eval "$ac_link") 2>&5
3550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; then
3552 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3553 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3554 # work properly (i.e., refer to `conftest.exe'), while it won't with
3556 for ac_file in conftest.exe conftest conftest.*; do
3557 test -f "$ac_file" || continue
3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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 compute suffix of executables: cannot compile and link
3569 See \`config.log' for more details." >&5
3570 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3571 See \`config.log' for more details." >&2;}
3572 { (exit 1); exit 1; }; }; }
3575 rm -f conftest$ac_cv_exeext
3576 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3577 $as_echo "$ac_cv_exeext" >&6; }
3579 rm -f conftest.$ac_ext
3580 EXEEXT=$ac_cv_exeext
3582 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3583 $as_echo_n "checking for suffix of object files... " >&6; }
3584 if test "${ac_cv_objext+set}" = set; then
3585 $as_echo_n "(cached) " >&6
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3602 rm -f conftest.o conftest.obj
3603 if { (ac_try="$ac_compile"
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3609 $as_echo "$ac_try_echo") >&5
3610 (eval "$ac_compile") 2>&5
3612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; then
3614 for ac_file in conftest.o conftest.obj conftest.*; do
3615 test -f "$ac_file" || continue;
3617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3618 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3623 $as_echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3629 See \`config.log' for more details." >&5
3630 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3631 See \`config.log' for more details." >&2;}
3632 { (exit 1); exit 1; }; }; }
3635 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3637 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3638 $as_echo "$ac_cv_objext" >&6; }
3639 OBJEXT=$ac_cv_objext
3641 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3642 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3643 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3644 $as_echo_n "(cached) " >&6
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3664 rm -f conftest.$ac_objext
3665 if { (ac_try="$ac_compile"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3671 $as_echo "$ac_try_echo") >&5
3672 (eval "$ac_compile") 2>conftest.er1
3674 grep -v '^ *+' conftest.er1 >conftest.err
3676 cat conftest.err >&5
3677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } && {
3679 test -z "$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3681 } && test -s conftest.$ac_objext; then
3684 $as_echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3694 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3696 if test $ac_compiler_gnu = yes; then
3701 ac_test_CFLAGS=${CFLAGS+set}
3702 ac_save_CFLAGS=$CFLAGS
3703 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3705 if test "${ac_cv_prog_cc_g+set}" = set; then
3706 $as_echo_n "(cached) " >&6
3708 ac_save_c_werror_flag=$ac_c_werror_flag
3709 ac_c_werror_flag=yes
3712 cat >conftest.$ac_ext <<_ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3727 rm -f conftest.$ac_objext
3728 if { (ac_try="$ac_compile"
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3734 $as_echo "$ac_try_echo") >&5
3735 (eval "$ac_compile") 2>conftest.er1
3737 grep -v '^ *+' conftest.er1 >conftest.err
3739 cat conftest.err >&5
3740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } && {
3742 test -z "$ac_c_werror_flag" ||
3743 test ! -s conftest.err
3744 } && test -s conftest.$ac_objext; then
3747 $as_echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3751 cat >conftest.$ac_ext <<_ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3766 rm -f conftest.$ac_objext
3767 if { (ac_try="$ac_compile"
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3773 $as_echo "$ac_try_echo") >&5
3774 (eval "$ac_compile") 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && {
3781 test -z "$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 } && test -s conftest.$ac_objext; then
3786 $as_echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3791 cat >conftest.$ac_ext <<_ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3806 rm -f conftest.$ac_objext
3807 if { (ac_try="$ac_compile"
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3813 $as_echo "$ac_try_echo") >&5
3814 (eval "$ac_compile") 2>conftest.er1
3816 grep -v '^ *+' conftest.er1 >conftest.err
3818 cat conftest.err >&5
3819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } && {
3821 test -z "$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3823 } && test -s conftest.$ac_objext; then
3826 $as_echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 ac_c_werror_flag=$ac_save_c_werror_flag
3841 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3842 $as_echo "$ac_cv_prog_cc_g" >&6; }
3843 if test "$ac_test_CFLAGS" = set; then
3844 CFLAGS=$ac_save_CFLAGS
3845 elif test $ac_cv_prog_cc_g = yes; then
3846 if test "$GCC" = yes; then
3852 if test "$GCC" = yes; then
3858 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3859 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3860 if test "${ac_cv_prog_cc_c89+set}" = set; then
3861 $as_echo_n "(cached) " >&6
3863 ac_cv_prog_cc_c89=no
3865 cat >conftest.$ac_ext <<_ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3873 #include <sys/types.h>
3874 #include <sys/stat.h>
3875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3876 struct buf { int x; };
3877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3878 static char *e (p, i)
3884 static char *f (char * (*g) (char **, int), char **p, ...)
3889 s = g (p, va_arg (v,int));
3894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3895 function prototypes and stuff, but not '\xHH' hex character constants.
3896 These don't provoke an error unfortunately, instead are silently treated
3897 as 'x'. The following induces an error, until -std is added to get
3898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3899 array size at least. It's necessary to write '\x00'==0 to get something
3900 that's true only with -std. */
3901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3904 inside strings and character constants. */
3906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3908 int test (int i, double x);
3909 struct s1 {int (*f) (int a);};
3910 struct s2 {int (*f) (double a);};
3911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3925 CC="$ac_save_CC $ac_arg"
3926 rm -f conftest.$ac_objext
3927 if { (ac_try="$ac_compile"
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3933 $as_echo "$ac_try_echo") >&5
3934 (eval "$ac_compile") 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest.$ac_objext; then
3944 ac_cv_prog_cc_c89=$ac_arg
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3952 rm -f core conftest.err conftest.$ac_objext
3953 test "x$ac_cv_prog_cc_c89" != "xno" && break
3955 rm -f conftest.$ac_ext
3960 case "x$ac_cv_prog_cc_c89" in
3962 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3963 $as_echo "none needed" >&6; } ;;
3965 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3966 $as_echo "unsupported" >&6; } ;;
3968 CC="$CC $ac_cv_prog_cc_c89"
3969 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3970 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 DEPDIR="${am__leading_dot}deps"
3981 ac_config_commands="$ac_config_commands depfiles"
3984 am_make=${MAKE-make}
3985 cat > confinc << 'END'
3987 @echo this is the am__doit target
3990 # If we don't find an include directive, just comment out the code.
3991 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3992 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3996 # First try GNU make style include.
3997 echo "include confinc" > confmf
3998 # Ignore all kinds of additional output from `make'.
3999 case `$am_make -s -f confmf 2> /dev/null` in #(
4000 *the\ am__doit\ target*)
4006 # Now try BSD make style include.
4007 if test "$am__include" = "#"; then
4008 echo '.include "confinc"' > confmf
4009 case `$am_make -s -f confmf 2> /dev/null` in #(
4010 *the\ am__doit\ target*)
4011 am__include=.include
4019 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4020 $as_echo "$_am_result" >&6; }
4021 rm -f confinc confmf
4023 # Check whether --enable-dependency-tracking was given.
4024 if test "${enable_dependency_tracking+set}" = set; then
4025 enableval=$enable_dependency_tracking;
4028 if test "x$enable_dependency_tracking" != xno; then
4029 am_depcomp="$ac_aux_dir/depcomp"
4032 if test "x$enable_dependency_tracking" != xno; then
4042 depcc="$CC" am_compiler_list=
4044 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4045 $as_echo_n "checking dependency style of $depcc... " >&6; }
4046 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4047 $as_echo_n "(cached) " >&6
4049 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4050 # We make a subdir and do the tests there. Otherwise we can end up
4051 # making bogus files that we don't know about and never remove. For
4052 # instance it was reported that on HP-UX the gcc test will end up
4053 # making a dummy file named `D' -- because `-MD' means `put the output
4056 # Copy depcomp to subdir because otherwise we won't find it if we're
4057 # using a relative directory.
4058 cp "$am_depcomp" conftest.dir
4060 # We will build objects and dependencies in a subdirectory because
4061 # it helps to detect inapplicable dependency modes. For instance
4062 # both Tru64's cc and ICC support -MD to output dependencies as a
4063 # side effect of compilation, but ICC will put the dependencies in
4064 # the current directory while Tru64 will put them in the object
4068 am_cv_CC_dependencies_compiler_type=none
4069 if test "$am_compiler_list" = ""; then
4070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4073 case " $depcc " in #(
4074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4077 for depmode in $am_compiler_list; do
4078 # Setup a source with many dependencies, because some compilers
4079 # like to wrap large dependency lists on column 80 (with \), and
4080 # we should not choose a depcomp mode which is confused by this.
4082 # We need to recreate these files for each test, as the compiler may
4083 # overwrite some of them when testing with obscure command lines.
4084 # This happens at least with the AIX C compiler.
4086 for i in 1 2 3 4 5 6; do
4087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4089 # Solaris 8's {/usr,}/bin/sh.
4090 touch sub/conftst$i.h
4092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4094 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4095 # mode. It turns out that the SunPro C++ compiler does not properly
4096 # handle `-M -o', and we need to detect this. Also, some Intel
4097 # versions had trouble with output in subdirs
4098 am__obj=sub/conftest.${OBJEXT-o}
4099 am__minus_obj="-o $am__obj"
4102 # This depmode causes a compiler race in universal mode.
4103 test "$am__universal" = false || continue
4106 # after this tag, mechanisms are not by side-effect, so they'll
4107 # only be used when explicitly requested
4108 if test "x$enable_dependency_tracking" = xyes; then
4114 msvisualcpp | msvcmsys)
4115 # This compiler won't grok `-c -o', but also, the minuso test has
4116 # not run yet. These depmodes are late enough in the game, and
4117 # so weak that their functioning should not be impacted.
4118 am__obj=conftest.${OBJEXT-o}
4123 if depmode=$depmode \
4124 source=sub/conftest.c object=$am__obj \
4125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4127 >/dev/null 2>conftest.err &&
4128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132 # icc doesn't choke on unknown options, it will just issue warnings
4133 # or remarks (even with -Werror). So we grep stderr for any message
4134 # that says an option was ignored or not supported.
4135 # When given -MP, icc 7.0 and 7.1 complain thusly:
4136 # icc: Command line warning: ignoring option '-M'; no argument required
4137 # The diagnosis changed in icc 8.0:
4138 # icc: Command line remark: option '-MP' not supported
4139 if (grep 'ignoring option' conftest.err ||
4140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141 am_cv_CC_dependencies_compiler_type=$depmode
4150 am_cv_CC_dependencies_compiler_type=none
4154 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4155 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4156 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4159 test "x$enable_dependency_tracking" != xno \
4160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4162 am__fastdepCC_FALSE='#'
4164 am__fastdepCC_TRUE='#'
4165 am__fastdepCC_FALSE=
4171 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4172 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4177 macro_version='2.2.6b'
4178 macro_revision='1.3017'
4192 ltmain="$ac_aux_dir/ltmain.sh"
4194 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4195 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4196 if test "${ac_cv_path_SED+set}" = set; then
4197 $as_echo_n "(cached) " >&6
4199 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4200 for ac_i in 1 2 3 4 5 6 7; do
4201 ac_script="$ac_script$as_nl$ac_script"
4203 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4204 $as_unset ac_script || ac_script=
4205 if test -z "$SED"; then
4206 ac_path_SED_found=false
4207 # Loop through the user's path and test for each of PROGNAME-LIST
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir=.
4213 for ac_prog in sed gsed; do
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4216 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4217 # Check for GNU ac_path_SED and select it if it is found.
4218 # Check for GNU $ac_path_SED
4219 case `"$ac_path_SED" --version 2>&1` in
4221 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4224 $as_echo_n 0123456789 >"conftest.in"
4227 cat "conftest.in" "conftest.in" >"conftest.tmp"
4228 mv "conftest.tmp" "conftest.in"
4229 cp "conftest.in" "conftest.nl"
4230 $as_echo '' >> "conftest.nl"
4231 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4233 ac_count=`expr $ac_count + 1`
4234 if test $ac_count -gt ${ac_path_SED_max-0}; then
4235 # Best one so far, save it but keep looking for a better one
4236 ac_cv_path_SED="$ac_path_SED"
4237 ac_path_SED_max=$ac_count
4239 # 10*(2^10) chars as input seems more than enough
4240 test $ac_count -gt 10 && break
4242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4245 $ac_path_SED_found && break 3
4250 if test -z "$ac_cv_path_SED"; then
4251 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4252 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4253 { (exit 1); exit 1; }; }
4260 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4261 $as_echo "$ac_cv_path_SED" >&6; }
4262 SED="$ac_cv_path_SED"
4265 test -z "$SED" && SED=sed
4266 Xsed="$SED -e 1s/^X//"
4278 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4279 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4280 if test "${ac_cv_path_GREP+set}" = set; then
4281 $as_echo_n "(cached) " >&6
4283 if test -z "$GREP"; then
4284 ac_path_GREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in grep ggrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4294 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4295 # Check for GNU ac_path_GREP and select it if it is found.
4296 # Check for GNU $ac_path_GREP
4297 case `"$ac_path_GREP" --version 2>&1` in
4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4302 $as_echo_n 0123456789 >"conftest.in"
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'GREP' >> "conftest.nl"
4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 ac_count=`expr $ac_count + 1`
4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_GREP="$ac_path_GREP"
4315 ac_path_GREP_max=$ac_count
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4323 $ac_path_GREP_found && break 3
4328 if test -z "$ac_cv_path_GREP"; then
4329 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4330 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4331 { (exit 1); exit 1; }; }
4334 ac_cv_path_GREP=$GREP
4338 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4339 $as_echo "$ac_cv_path_GREP" >&6; }
4340 GREP="$ac_cv_path_GREP"
4343 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4344 $as_echo_n "checking for egrep... " >&6; }
4345 if test "${ac_cv_path_EGREP+set}" = set; then
4346 $as_echo_n "(cached) " >&6
4348 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4349 then ac_cv_path_EGREP="$GREP -E"
4351 if test -z "$EGREP"; then
4352 ac_path_EGREP_found=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in egrep; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4362 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4363 # Check for GNU ac_path_EGREP and select it if it is found.
4364 # Check for GNU $ac_path_EGREP
4365 case `"$ac_path_EGREP" --version 2>&1` in
4367 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4370 $as_echo_n 0123456789 >"conftest.in"
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 $as_echo 'EGREP' >> "conftest.nl"
4377 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379 ac_count=`expr $ac_count + 1`
4380 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_EGREP="$ac_path_EGREP"
4383 ac_path_EGREP_max=$ac_count
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391 $ac_path_EGREP_found && break 3
4396 if test -z "$ac_cv_path_EGREP"; then
4397 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4398 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4399 { (exit 1); exit 1; }; }
4402 ac_cv_path_EGREP=$EGREP
4407 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4408 $as_echo "$ac_cv_path_EGREP" >&6; }
4409 EGREP="$ac_cv_path_EGREP"
4412 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4413 $as_echo_n "checking for fgrep... " >&6; }
4414 if test "${ac_cv_path_FGREP+set}" = set; then
4415 $as_echo_n "(cached) " >&6
4417 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4418 then ac_cv_path_FGREP="$GREP -F"
4420 if test -z "$FGREP"; then
4421 ac_path_FGREP_found=false
4422 # Loop through the user's path and test for each of PROGNAME-LIST
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4427 test -z "$as_dir" && as_dir=.
4428 for ac_prog in fgrep; do
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4431 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4432 # Check for GNU ac_path_FGREP and select it if it is found.
4433 # Check for GNU $ac_path_FGREP
4434 case `"$ac_path_FGREP" --version 2>&1` in
4436 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4439 $as_echo_n 0123456789 >"conftest.in"
4442 cat "conftest.in" "conftest.in" >"conftest.tmp"
4443 mv "conftest.tmp" "conftest.in"
4444 cp "conftest.in" "conftest.nl"
4445 $as_echo 'FGREP' >> "conftest.nl"
4446 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4448 ac_count=`expr $ac_count + 1`
4449 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4450 # Best one so far, save it but keep looking for a better one
4451 ac_cv_path_FGREP="$ac_path_FGREP"
4452 ac_path_FGREP_max=$ac_count
4454 # 10*(2^10) chars as input seems more than enough
4455 test $ac_count -gt 10 && break
4457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4460 $ac_path_FGREP_found && break 3
4465 if test -z "$ac_cv_path_FGREP"; then
4466 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4467 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4468 { (exit 1); exit 1; }; }
4471 ac_cv_path_FGREP=$FGREP
4476 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4477 $as_echo "$ac_cv_path_FGREP" >&6; }
4478 FGREP="$ac_cv_path_FGREP"
4481 test -z "$GREP" && GREP=grep
4501 # Check whether --with-gnu-ld was given.
4502 if test "${with_gnu_ld+set}" = set; then
4503 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4509 if test "$GCC" = yes; then
4510 # Check if gcc -print-prog-name=ld gives a path.
4511 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4512 $as_echo_n "checking for ld used by $CC... " >&6; }
4515 # gcc leaves a trailing carriage return which upsets mingw
4516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4521 # Accept absolute paths.
4523 re_direlt='/[^/][^/]*/\.\./'
4524 # Canonicalize the pathname of ld
4525 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4526 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4527 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4529 test -z "$LD" && LD="$ac_prog"
4532 # If it fails, then pretend we aren't using GCC.
4536 # If it is relative, then search for the first ld in PATH.
4540 elif test "$with_gnu_ld" = yes; then
4541 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4542 $as_echo_n "checking for GNU ld... " >&6; }
4544 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4545 $as_echo_n "checking for non-GNU ld... " >&6; }
4547 if test "${lt_cv_path_LD+set}" = set; then
4548 $as_echo_n "(cached) " >&6
4550 if test -z "$LD"; then
4551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4552 for ac_dir in $PATH; do
4554 test -z "$ac_dir" && ac_dir=.
4555 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4556 lt_cv_path_LD="$ac_dir/$ac_prog"
4557 # Check to see if the program is GNU ld. I'd rather use --version,
4558 # but apparently some variants of GNU ld only accept -v.
4559 # Break only if it was the GNU/non-GNU ld that we prefer.
4560 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4561 *GNU* | *'with BFD'*)
4562 test "$with_gnu_ld" != no && break
4565 test "$with_gnu_ld" != yes && break
4572 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4577 if test -n "$LD"; then
4578 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4579 $as_echo "$LD" >&6; }
4581 { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4584 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4585 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4586 { (exit 1); exit 1; }; }
4587 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4588 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4589 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4590 $as_echo_n "(cached) " >&6
4592 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4593 case `$LD -v 2>&1 </dev/null` in
4594 *GNU* | *'with BFD'*)
4595 lt_cv_prog_gnu_ld=yes
4598 lt_cv_prog_gnu_ld=no
4602 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4603 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4604 with_gnu_ld=$lt_cv_prog_gnu_ld
4614 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4615 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4616 if test "${lt_cv_path_NM+set}" = set; then
4617 $as_echo_n "(cached) " >&6
4619 if test -n "$NM"; then
4620 # Let the user override the test.
4623 lt_nm_to_check="${ac_tool_prefix}nm"
4624 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4625 lt_nm_to_check="$lt_nm_to_check nm"
4627 for lt_tmp_nm in $lt_nm_to_check; do
4628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4629 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4631 test -z "$ac_dir" && ac_dir=.
4632 tmp_nm="$ac_dir/$lt_tmp_nm"
4633 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4634 # Check to see if the nm accepts a BSD-compat flag.
4635 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4636 # nm: unknown option "B" ignored
4637 # Tru64's nm complains that /dev/null is an invalid object file
4638 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4639 */dev/null* | *'Invalid file or object type'*)
4640 lt_cv_path_NM="$tmp_nm -B"
4644 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4646 lt_cv_path_NM="$tmp_nm -p"
4650 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4651 continue # so that we can try to find one that supports BSD flags
4660 : ${lt_cv_path_NM=no}
4663 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4664 $as_echo "$lt_cv_path_NM" >&6; }
4665 if test "$lt_cv_path_NM" != "no"; then
4668 # Didn't find any BSD compatible name lister, look for dumpbin.
4669 if test -n "$ac_tool_prefix"; then
4670 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4677 $as_echo_n "(cached) " >&6
4679 if test -n "$DUMPBIN"; then
4680 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4690 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 DUMPBIN=$ac_cv_prog_DUMPBIN
4700 if test -n "$DUMPBIN"; then
4701 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4702 $as_echo "$DUMPBIN" >&6; }
4704 { $as_echo "$as_me:$LINENO: result: no" >&5
4705 $as_echo "no" >&6; }
4709 test -n "$DUMPBIN" && break
4712 if test -z "$DUMPBIN"; then
4713 ac_ct_DUMPBIN=$DUMPBIN
4714 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy $ac_prog; ac_word=$2
4718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4721 $as_echo_n "(cached) " >&6
4723 if test -n "$ac_ct_DUMPBIN"; then
4724 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4744 if test -n "$ac_ct_DUMPBIN"; then
4745 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4746 $as_echo "$ac_ct_DUMPBIN" >&6; }
4748 { $as_echo "$as_me:$LINENO: result: no" >&5
4749 $as_echo "no" >&6; }
4753 test -n "$ac_ct_DUMPBIN" && break
4756 if test "x$ac_ct_DUMPBIN" = x; then
4759 case $cross_compiling:$ac_tool_warned in
4761 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned=yes ;;
4765 DUMPBIN=$ac_ct_DUMPBIN
4770 if test "$DUMPBIN" != ":"; then
4774 test -z "$NM" && NM=nm
4781 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4782 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4783 if test "${lt_cv_nm_interface+set}" = set; then
4784 $as_echo_n "(cached) " >&6
4786 lt_cv_nm_interface="BSD nm"
4787 echo "int some_variable = 0;" > conftest.$ac_ext
4788 (eval echo "\"\$as_me:4788: $ac_compile\"" >&5)
4789 (eval "$ac_compile" 2>conftest.err)
4790 cat conftest.err >&5
4791 (eval echo "\"\$as_me:4791: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4792 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4793 cat conftest.err >&5
4794 (eval echo "\"\$as_me:4794: output\"" >&5)
4795 cat conftest.out >&5
4796 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4797 lt_cv_nm_interface="MS dumpbin"
4801 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4802 $as_echo "$lt_cv_nm_interface" >&6; }
4804 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4805 $as_echo_n "checking whether ln -s works... " >&6; }
4807 if test "$LN_S" = "ln -s"; then
4808 { $as_echo "$as_me:$LINENO: result: yes" >&5
4809 $as_echo "yes" >&6; }
4811 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4812 $as_echo "no, using $LN_S" >&6; }
4815 # find the maximum length of command line arguments
4816 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4817 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4818 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4819 $as_echo_n "(cached) " >&6
4826 # On DJGPP, this test can blow up pretty badly due to problems in libc
4827 # (any single argument exceeding 2000 bytes causes a buffer overrun
4828 # during glob expansion). Even if it were fixed, the result of this
4829 # check would be larger than it should be.
4830 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4834 # Under GNU Hurd, this test is not required because there is
4835 # no limit to the length of command line arguments.
4836 # Libtool will interpret -1 as no limit whatsoever
4837 lt_cv_sys_max_cmd_len=-1;
4840 cygwin* | mingw* | cegcc*)
4841 # On Win9x/ME, this test blows up -- it succeeds, but takes
4842 # about 5 minutes as the teststring grows exponentially.
4843 # Worse, since 9x/ME are not pre-emptively multitasking,
4844 # you end up with a "frozen" computer, even though with patience
4845 # the test eventually succeeds (with a max line length of 256k).
4846 # Instead, let's just punt: use the minimum linelength reported by
4847 # all of the supported platforms: 8192 (on NT/2K/XP).
4848 lt_cv_sys_max_cmd_len=8192;
4852 # On AmigaOS with pdksh, this test takes hours, literally.
4853 # So we just punt and use a minimum line length of 8192.
4854 lt_cv_sys_max_cmd_len=8192;
4857 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4858 # This has been around since 386BSD, at least. Likely further.
4859 if test -x /sbin/sysctl; then
4860 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4861 elif test -x /usr/sbin/sysctl; then
4862 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4864 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4866 # And add a safety zone
4867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4872 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4873 lt_cv_sys_max_cmd_len=196608
4877 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4878 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4879 # nice to cause kernel panics so lets avoid the loop below.
4880 # First set a reasonable default.
4881 lt_cv_sys_max_cmd_len=16384
4883 if test -x /sbin/sysconfig; then
4884 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4885 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4890 lt_cv_sys_max_cmd_len=102400
4892 sysv5* | sco5v6* | sysv4.2uw2*)
4893 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4894 if test -n "$kargmax"; then
4895 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4897 lt_cv_sys_max_cmd_len=32768
4901 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4902 if test -n "$lt_cv_sys_max_cmd_len"; then
4903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4906 # Make teststring a little bigger before we do anything with it.
4907 # a 1K string should be a reasonable start.
4908 for i in 1 2 3 4 5 6 7 8 ; do
4909 teststring=$teststring$teststring
4911 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4912 # If test is not a shell built-in, we'll probably end up computing a
4913 # maximum length that is only half of the actual maximum length, but
4915 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4916 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4917 test $i != 17 # 1/2 MB should be enough
4920 teststring=$teststring$teststring
4922 # Only check the string length outside the loop.
4923 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4925 # Add a significant safety factor because C++ compilers can tack on
4926 # massive amounts of additional arguments before passing them to the
4927 # linker. It appears as though 1/2 is a usable value.
4928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4935 if test -n $lt_cv_sys_max_cmd_len ; then
4936 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4937 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4939 { $as_echo "$as_me:$LINENO: result: none" >&5
4940 $as_echo "none" >&6; }
4942 max_cmd_len=$lt_cv_sys_max_cmd_len
4953 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4954 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4955 # Try some XSI features
4958 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4960 && eval 'test $(( 1 + 1 )) -eq 2 \
4961 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4963 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4964 $as_echo "$xsi_shell" >&6; }
4967 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4968 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4970 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4972 && lt_shell_append=yes
4973 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4974 $as_echo "$lt_shell_append" >&6; }
4977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4987 # test EBCDIC or ASCII
4988 case `echo X|tr X '\101'` in
4989 A) # ASCII based system
4990 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4991 lt_SP2NL='tr \040 \012'
4992 lt_NL2SP='tr \015\012 \040\040'
4994 *) # EBCDIC based system
4995 lt_SP2NL='tr \100 \n'
4996 lt_NL2SP='tr \r\n \100\100'
5008 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5009 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5010 if test "${lt_cv_ld_reload_flag+set}" = set; then
5011 $as_echo_n "(cached) " >&6
5013 lt_cv_ld_reload_flag='-r'
5015 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5016 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5017 reload_flag=$lt_cv_ld_reload_flag
5018 case $reload_flag in
5020 *) reload_flag=" $reload_flag" ;;
5022 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5025 if test "$GCC" = yes; then
5026 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5028 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5041 if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5043 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5047 $as_echo_n "(cached) " >&6
5049 if test -n "$OBJDUMP"; then
5050 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 OBJDUMP=$ac_cv_prog_OBJDUMP
5070 if test -n "$OBJDUMP"; then
5071 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5072 $as_echo "$OBJDUMP" >&6; }
5074 { $as_echo "$as_me:$LINENO: result: no" >&5
5075 $as_echo "no" >&6; }
5080 if test -z "$ac_cv_prog_OBJDUMP"; then
5081 ac_ct_OBJDUMP=$OBJDUMP
5082 # Extract the first word of "objdump", so it can be a program name with args.
5083 set dummy objdump; ac_word=$2
5084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5087 $as_echo_n "(cached) " >&6
5089 if test -n "$ac_ct_OBJDUMP"; then
5090 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5110 if test -n "$ac_ct_OBJDUMP"; then
5111 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5112 $as_echo "$ac_ct_OBJDUMP" >&6; }
5114 { $as_echo "$as_me:$LINENO: result: no" >&5
5115 $as_echo "no" >&6; }
5118 if test "x$ac_ct_OBJDUMP" = x; then
5121 case $cross_compiling:$ac_tool_warned in
5123 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5125 ac_tool_warned=yes ;;
5127 OBJDUMP=$ac_ct_OBJDUMP
5130 OBJDUMP="$ac_cv_prog_OBJDUMP"
5133 test -z "$OBJDUMP" && OBJDUMP=objdump
5143 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5144 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5145 if test "${lt_cv_deplibs_check_method+set}" = set; then
5146 $as_echo_n "(cached) " >&6
5148 lt_cv_file_magic_cmd='$MAGIC_CMD'
5149 lt_cv_file_magic_test_file=
5150 lt_cv_deplibs_check_method='unknown'
5151 # Need to set the preceding variable on all platforms that support
5152 # interlibrary dependencies.
5153 # 'none' -- dependencies not supported.
5154 # `unknown' -- same as none, but documents that we really don't know.
5155 # 'pass_all' -- all dependencies passed with no checks.
5156 # 'test_compile' -- check by making test program.
5157 # 'file_magic [[regex]]' -- check by looking for files in library path
5158 # which responds to the $file_magic_cmd with a given extended regex.
5159 # If you have `file' or equivalent on your system and you're not sure
5160 # whether `pass_all' will *always* work, you probably want this one.
5164 lt_cv_deplibs_check_method=pass_all
5168 lt_cv_deplibs_check_method=pass_all
5172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5173 lt_cv_file_magic_cmd='/usr/bin/file -L'
5174 lt_cv_file_magic_test_file=/shlib/libc.so
5178 # func_win32_libid is a shell function defined in ltmain.sh
5179 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5180 lt_cv_file_magic_cmd='func_win32_libid'
5184 # Base MSYS/MinGW do not provide the 'file' command needed by
5185 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5186 # unless we find 'file', for example because we are cross-compiling.
5187 if ( file / ) >/dev/null 2>&1; then
5188 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5189 lt_cv_file_magic_cmd='func_win32_libid'
5191 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5192 lt_cv_file_magic_cmd='$OBJDUMP -f'
5197 # use the weaker test based on 'objdump'. See mingw*.
5198 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5199 lt_cv_file_magic_cmd='$OBJDUMP -f'
5202 darwin* | rhapsody*)
5203 lt_cv_deplibs_check_method=pass_all
5206 freebsd* | dragonfly*)
5207 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5210 # Not sure whether the presence of OpenBSD here was a mistake.
5211 # Let's accept both of them until this is cleared up.
5212 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5213 lt_cv_file_magic_cmd=/usr/bin/file
5214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5218 lt_cv_deplibs_check_method=pass_all
5223 lt_cv_deplibs_check_method=pass_all
5226 hpux10.20* | hpux11*)
5227 lt_cv_file_magic_cmd=/usr/bin/file
5230 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5231 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5234 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]'
5235 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5238 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5239 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5245 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5249 irix5* | irix6* | nonstopux*)
5251 *-32|*"-32 ") libmagic=32-bit;;
5252 *-n32|*"-n32 ") libmagic=N32;;
5253 *-64|*"-64 ") libmagic=64-bit;;
5254 *) libmagic=never-match;;
5256 lt_cv_deplibs_check_method=pass_all
5259 # This must be Linux ELF.
5260 linux* | k*bsd*-gnu)
5261 lt_cv_deplibs_check_method=pass_all
5265 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5274 lt_cv_file_magic_cmd=/usr/bin/file
5275 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5279 lt_cv_deplibs_check_method=pass_all
5283 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5290 osf3* | osf4* | osf5*)
5291 lt_cv_deplibs_check_method=pass_all
5295 lt_cv_deplibs_check_method=pass_all
5299 lt_cv_deplibs_check_method=pass_all
5302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5303 lt_cv_deplibs_check_method=pass_all
5307 case $host_vendor in
5309 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]'
5310 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5313 lt_cv_deplibs_check_method=pass_all
5316 lt_cv_file_magic_cmd='/bin/file'
5317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5320 lt_cv_file_magic_cmd='/bin/file'
5321 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5322 lt_cv_file_magic_test_file=/lib/libc.so
5325 lt_cv_deplibs_check_method=pass_all
5328 lt_cv_deplibs_check_method=pass_all
5334 lt_cv_deplibs_check_method=pass_all
5339 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5340 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5341 file_magic_cmd=$lt_cv_file_magic_cmd
5342 deplibs_check_method=$lt_cv_deplibs_check_method
5343 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}ar; ac_word=$2
5359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if test "${ac_cv_prog_AR+set}" = set; then
5362 $as_echo_n "(cached) " >&6
5364 if test -n "$AR"; then
5365 ac_cv_prog_AR="$AR" # Let the user override the test.
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374 ac_cv_prog_AR="${ac_tool_prefix}ar"
5375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 if test -n "$AR"; then
5386 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5387 $as_echo "$AR" >&6; }
5389 { $as_echo "$as_me:$LINENO: result: no" >&5
5390 $as_echo "no" >&6; }
5395 if test -z "$ac_cv_prog_AR"; then
5397 # Extract the first word of "ar", so it can be a program name with args.
5398 set dummy ar; ac_word=$2
5399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5402 $as_echo_n "(cached) " >&6
5404 if test -n "$ac_ct_AR"; then
5405 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_ac_ct_AR="ar"
5415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5425 if test -n "$ac_ct_AR"; then
5426 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5427 $as_echo "$ac_ct_AR" >&6; }
5429 { $as_echo "$as_me:$LINENO: result: no" >&5
5430 $as_echo "no" >&6; }
5433 if test "x$ac_ct_AR" = x; then
5436 case $cross_compiling:$ac_tool_warned in
5438 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440 ac_tool_warned=yes ;;
5448 test -z "$AR" && AR=ar
5449 test -z "$AR_FLAGS" && AR_FLAGS=cru
5461 if test -n "$ac_tool_prefix"; then
5462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5463 set dummy ${ac_tool_prefix}strip; ac_word=$2
5464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if test "${ac_cv_prog_STRIP+set}" = set; then
5467 $as_echo_n "(cached) " >&6
5469 if test -n "$STRIP"; then
5470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 STRIP=$ac_cv_prog_STRIP
5490 if test -n "$STRIP"; then
5491 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5492 $as_echo "$STRIP" >&6; }
5494 { $as_echo "$as_me:$LINENO: result: no" >&5
5495 $as_echo "no" >&6; }
5500 if test -z "$ac_cv_prog_STRIP"; then
5502 # Extract the first word of "strip", so it can be a program name with args.
5503 set dummy strip; ac_word=$2
5504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5507 $as_echo_n "(cached) " >&6
5509 if test -n "$ac_ct_STRIP"; then
5510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_ac_ct_STRIP="strip"
5520 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5530 if test -n "$ac_ct_STRIP"; then
5531 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5532 $as_echo "$ac_ct_STRIP" >&6; }
5534 { $as_echo "$as_me:$LINENO: result: no" >&5
5535 $as_echo "no" >&6; }
5538 if test "x$ac_ct_STRIP" = x; then
5541 case $cross_compiling:$ac_tool_warned in
5543 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5550 STRIP="$ac_cv_prog_STRIP"
5553 test -z "$STRIP" && STRIP=:
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if test "${ac_cv_prog_RANLIB+set}" = set; then
5566 $as_echo_n "(cached) " >&6
5568 if test -n "$RANLIB"; then
5569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 RANLIB=$ac_cv_prog_RANLIB
5589 if test -n "$RANLIB"; then
5590 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5591 $as_echo "$RANLIB" >&6; }
5593 { $as_echo "$as_me:$LINENO: result: no" >&5
5594 $as_echo "no" >&6; }
5599 if test -z "$ac_cv_prog_RANLIB"; then
5600 ac_ct_RANLIB=$RANLIB
5601 # Extract the first word of "ranlib", so it can be a program name with args.
5602 set dummy ranlib; ac_word=$2
5603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5606 $as_echo_n "(cached) " >&6
5608 if test -n "$ac_ct_RANLIB"; then
5609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_ac_ct_RANLIB="ranlib"
5619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5629 if test -n "$ac_ct_RANLIB"; then
5630 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5631 $as_echo "$ac_ct_RANLIB" >&6; }
5633 { $as_echo "$as_me:$LINENO: result: no" >&5
5634 $as_echo "no" >&6; }
5637 if test "x$ac_ct_RANLIB" = x; then
5640 case $cross_compiling:$ac_tool_warned in
5642 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned=yes ;;
5646 RANLIB=$ac_ct_RANLIB
5649 RANLIB="$ac_cv_prog_RANLIB"
5652 test -z "$RANLIB" && RANLIB=:
5659 # Determine commands to create old-style static archives.
5660 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5661 old_postinstall_cmds='chmod 644 $oldlib'
5662 old_postuninstall_cmds=
5664 if test -n "$RANLIB"; then
5667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5670 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5673 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5709 # If no C compiler was specified, use CC.
5712 # If no C compiler flags were specified, use CFLAGS.
5713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5715 # Allow CC to be a program name with arguments.
5719 # Check for command to grab the raw symbol name followed by C symbol from nm.
5720 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5721 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5722 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5723 $as_echo_n "(cached) " >&6
5726 # These are sane defaults that work on at least a few old systems.
5727 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5729 # Character class describing NM global symbol codes.
5730 symcode='[BCDEGRST]'
5732 # Regexp to match symbols that can be accessed directly from C.
5733 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5735 # Define system-specific variables.
5740 cygwin* | mingw* | pw32* | cegcc*)
5741 symcode='[ABCDGISTW]'
5744 if test "$host_cpu" = ia64; then
5745 symcode='[ABCDEGRST]'
5749 symcode='[BCDEGRST]'
5752 symcode='[BCDEGQRST]'
5763 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5771 # If we're using GNU nm, then use its standard symbol codes.
5772 case `$NM -V 2>&1` in
5773 *GNU* | *'with BFD'*)
5774 symcode='[ABCDGIRSTW]' ;;
5777 # Transform an extracted symbol line into a proper C declaration.
5778 # Some systems (esp. on ia64) link data and code symbols differently,
5779 # so use this general approach.
5780 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5782 # Transform an extracted symbol line into symbol name and symbol address
5783 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5784 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'"
5786 # Handle CRLF in mingw tool chain
5790 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5794 # Try without a prefix underscore, then with it.
5795 for ac_symprfx in "" "_"; do
5797 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5798 symxfrm="\\1 $ac_symprfx\\2 \\2"
5800 # Write the raw and C identifiers.
5801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5802 # Fake it for dumpbin and say T for any non-static function
5803 # and D for any global variable.
5804 # Also find C++ and __fastcall symbols from MSVC++,
5805 # which start with @ or ?.
5806 lt_cv_sys_global_symbol_pipe="$AWK '"\
5807 " {last_section=section; section=\$ 3};"\
5808 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5809 " \$ 0!~/External *\|/{next};"\
5810 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5811 " {if(hide[section]) next};"\
5812 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5813 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5814 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5815 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5816 " ' prfx=^$ac_symprfx"
5818 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5821 # Check to see that the pipe works correctly.
5825 cat > conftest.$ac_ext <<_LT_EOF
5830 void nm_test_func(void);
5831 void nm_test_func(void){}
5835 int main(){nm_test_var='a';nm_test_func();return(0);}
5838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839 (eval $ac_compile) 2>&5
5841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; then
5843 # Now try to grab the symbols.
5845 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5846 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && test -s "$nlist"; then
5850 # Try sorting and uniquifying the output.
5851 if sort "$nlist" | uniq > "$nlist"T; then
5852 mv -f "$nlist"T "$nlist"
5857 # Make sure that we snagged all the symbols we need.
5858 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5859 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5860 cat <<_LT_EOF > conftest.$ac_ext
5866 # Now generate the symbol file.
5867 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5869 cat <<_LT_EOF >> conftest.$ac_ext
5871 /* The mapping between symbol names and symbols. */
5876 lt__PROGRAM__LTX_preloaded_symbols[] =
5878 { "@PROGRAM@", (void *) 0 },
5880 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5881 cat <<\_LT_EOF >> conftest.$ac_ext
5885 /* This works around a problem in FreeBSD linker */
5886 #ifdef FREEBSD_WORKAROUND
5887 static const void *lt_preloaded_setup() {
5888 return lt__PROGRAM__LTX_preloaded_symbols;
5896 # Now try linking the two files.
5897 mv conftest.$ac_objext conftstm.$ac_objext
5898 lt_save_LIBS="$LIBS"
5899 lt_save_CFLAGS="$CFLAGS"
5900 LIBS="conftstm.$ac_objext"
5901 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5903 (eval $ac_link) 2>&5
5905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5909 LIBS="$lt_save_LIBS"
5910 CFLAGS="$lt_save_CFLAGS"
5912 echo "cannot find nm_test_func in $nlist" >&5
5915 echo "cannot find nm_test_var in $nlist" >&5
5918 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5921 echo "$progname: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5924 rm -rf conftest* conftst*
5926 # Do not use the global_symbol_pipe unless it works.
5927 if test "$pipe_works" = yes; then
5930 lt_cv_sys_global_symbol_pipe=
5936 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5937 lt_cv_sys_global_symbol_to_cdecl=
5939 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5940 { $as_echo "$as_me:$LINENO: result: failed" >&5
5941 $as_echo "failed" >&6; }
5943 { $as_echo "$as_me:$LINENO: result: ok" >&5
5944 $as_echo "ok" >&6; }
5969 # Check whether --enable-libtool-lock was given.
5970 if test "${enable_libtool_lock+set}" = set; then
5971 enableval=$enable_libtool_lock;
5974 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5976 # Some flags need to be propagated to the compiler or linker for good
5980 # Find out which ABI we are using.
5981 echo 'int i;' > conftest.$ac_ext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>&5
5985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; then
5987 case `/usr/bin/file conftest.$ac_objext` in
5999 # Find out which ABI we are using.
6000 echo '#line 6000 "configure"' > conftest.$ac_ext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>&5
6004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; then
6006 if test "$lt_cv_prog_gnu_ld" = yes; then
6007 case `/usr/bin/file conftest.$ac_objext` in
6009 LD="${LD-ld} -melf32bsmip"
6012 LD="${LD-ld} -melf32bmipn32"
6015 LD="${LD-ld} -melf64bmip"
6019 case `/usr/bin/file conftest.$ac_objext` in
6035 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6036 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6037 # Find out which ABI we are using.
6038 echo 'int i;' > conftest.$ac_ext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>&5
6042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; then
6044 case `/usr/bin/file conftest.o` in
6047 x86_64-*kfreebsd*-gnu)
6048 LD="${LD-ld} -m elf_i386_fbsd"
6051 LD="${LD-ld} -m elf_i386"
6053 ppc64-*linux*|powerpc64-*linux*)
6054 LD="${LD-ld} -m elf32ppclinux"
6057 LD="${LD-ld} -m elf_s390"
6060 LD="${LD-ld} -m elf32_sparc"
6066 x86_64-*kfreebsd*-gnu)
6067 LD="${LD-ld} -m elf_x86_64_fbsd"
6070 LD="${LD-ld} -m elf_x86_64"
6072 ppc*-*linux*|powerpc*-*linux*)
6073 LD="${LD-ld} -m elf64ppc"
6075 s390*-*linux*|s390*-*tpf*)
6076 LD="${LD-ld} -m elf64_s390"
6079 LD="${LD-ld} -m elf64_sparc"
6089 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6090 SAVE_CFLAGS="$CFLAGS"
6091 CFLAGS="$CFLAGS -belf"
6092 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6093 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6094 if test "${lt_cv_cc_needs_belf+set}" = set; then
6095 $as_echo_n "(cached) " >&6
6098 ac_cpp='$CPP $CPPFLAGS'
6099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6103 cat >conftest.$ac_ext <<_ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (ac_try="$ac_link"
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6125 $as_echo "$ac_try_echo") >&5
6126 (eval "$ac_link") 2>conftest.er1
6128 grep -v '^ *+' conftest.er1 >conftest.err
6130 cat conftest.err >&5
6131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } && {
6133 test -z "$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest$ac_exeext && {
6136 test "$cross_compiling" = yes ||
6137 $as_test_x conftest$ac_exeext
6139 lt_cv_cc_needs_belf=yes
6141 $as_echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 lt_cv_cc_needs_belf=no
6147 rm -rf conftest.dSYM
6148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6149 conftest$ac_exeext conftest.$ac_ext
6151 ac_cpp='$CPP $CPPFLAGS'
6152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6158 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6159 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6160 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6161 CFLAGS="$SAVE_CFLAGS"
6165 # Find out which ABI we are using.
6166 echo 'int i;' > conftest.$ac_ext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168 (eval $ac_compile) 2>&5
6170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; then
6172 case `/usr/bin/file conftest.o` in
6174 case $lt_cv_prog_gnu_ld in
6175 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6177 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6189 need_locks="$enable_libtool_lock"
6193 rhapsody* | darwin*)
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6200 $as_echo_n "(cached) " >&6
6202 if test -n "$DSYMUTIL"; then
6203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6223 if test -n "$DSYMUTIL"; then
6224 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6225 $as_echo "$DSYMUTIL" >&6; }
6227 { $as_echo "$as_me:$LINENO: result: no" >&5
6228 $as_echo "no" >&6; }
6233 if test -z "$ac_cv_prog_DSYMUTIL"; then
6234 ac_ct_DSYMUTIL=$DSYMUTIL
6235 # Extract the first word of "dsymutil", so it can be a program name with args.
6236 set dummy dsymutil; ac_word=$2
6237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6240 $as_echo_n "(cached) " >&6
6242 if test -n "$ac_ct_DSYMUTIL"; then
6243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6263 if test -n "$ac_ct_DSYMUTIL"; then
6264 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6265 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6267 { $as_echo "$as_me:$LINENO: result: no" >&5
6268 $as_echo "no" >&6; }
6271 if test "x$ac_ct_DSYMUTIL" = x; then
6274 case $cross_compiling:$ac_tool_warned in
6276 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6280 DSYMUTIL=$ac_ct_DSYMUTIL
6283 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6292 $as_echo_n "(cached) " >&6
6294 if test -n "$NMEDIT"; then
6295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 NMEDIT=$ac_cv_prog_NMEDIT
6315 if test -n "$NMEDIT"; then
6316 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6317 $as_echo "$NMEDIT" >&6; }
6319 { $as_echo "$as_me:$LINENO: result: no" >&5
6320 $as_echo "no" >&6; }
6325 if test -z "$ac_cv_prog_NMEDIT"; then
6326 ac_ct_NMEDIT=$NMEDIT
6327 # Extract the first word of "nmedit", so it can be a program name with args.
6328 set dummy nmedit; ac_word=$2
6329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6332 $as_echo_n "(cached) " >&6
6334 if test -n "$ac_ct_NMEDIT"; then
6335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6355 if test -n "$ac_ct_NMEDIT"; then
6356 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6357 $as_echo "$ac_ct_NMEDIT" >&6; }
6359 { $as_echo "$as_me:$LINENO: result: no" >&5
6360 $as_echo "no" >&6; }
6363 if test "x$ac_ct_NMEDIT" = x; then
6366 case $cross_compiling:$ac_tool_warned in
6368 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6372 NMEDIT=$ac_ct_NMEDIT
6375 NMEDIT="$ac_cv_prog_NMEDIT"
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if test "${ac_cv_prog_LIPO+set}" = set; then
6384 $as_echo_n "(cached) " >&6
6386 if test -n "$LIPO"; then
6387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 LIPO=$ac_cv_prog_LIPO
6407 if test -n "$LIPO"; then
6408 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6409 $as_echo "$LIPO" >&6; }
6411 { $as_echo "$as_me:$LINENO: result: no" >&5
6412 $as_echo "no" >&6; }
6417 if test -z "$ac_cv_prog_LIPO"; then
6419 # Extract the first word of "lipo", so it can be a program name with args.
6420 set dummy lipo; ac_word=$2
6421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6424 $as_echo_n "(cached) " >&6
6426 if test -n "$ac_ct_LIPO"; then
6427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_ac_ct_LIPO="lipo"
6437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6447 if test -n "$ac_ct_LIPO"; then
6448 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6449 $as_echo "$ac_ct_LIPO" >&6; }
6451 { $as_echo "$as_me:$LINENO: result: no" >&5
6452 $as_echo "no" >&6; }
6455 if test "x$ac_ct_LIPO" = x; then
6458 case $cross_compiling:$ac_tool_warned in
6460 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6467 LIPO="$ac_cv_prog_LIPO"
6470 if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}otool; ac_word=$2
6473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if test "${ac_cv_prog_OTOOL+set}" = set; then
6476 $as_echo_n "(cached) " >&6
6478 if test -n "$OTOOL"; then
6479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 OTOOL=$ac_cv_prog_OTOOL
6499 if test -n "$OTOOL"; then
6500 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6501 $as_echo "$OTOOL" >&6; }
6503 { $as_echo "$as_me:$LINENO: result: no" >&5
6504 $as_echo "no" >&6; }
6509 if test -z "$ac_cv_prog_OTOOL"; then
6511 # Extract the first word of "otool", so it can be a program name with args.
6512 set dummy otool; ac_word=$2
6513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6516 $as_echo_n "(cached) " >&6
6518 if test -n "$ac_ct_OTOOL"; then
6519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_ac_ct_OTOOL="otool"
6529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6539 if test -n "$ac_ct_OTOOL"; then
6540 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6541 $as_echo "$ac_ct_OTOOL" >&6; }
6543 { $as_echo "$as_me:$LINENO: result: no" >&5
6544 $as_echo "no" >&6; }
6547 if test "x$ac_ct_OTOOL" = x; then
6550 case $cross_compiling:$ac_tool_warned in
6552 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554 ac_tool_warned=yes ;;
6559 OTOOL="$ac_cv_prog_OTOOL"
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6568 $as_echo_n "(cached) " >&6
6570 if test -n "$OTOOL64"; then
6571 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 OTOOL64=$ac_cv_prog_OTOOL64
6591 if test -n "$OTOOL64"; then
6592 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6593 $as_echo "$OTOOL64" >&6; }
6595 { $as_echo "$as_me:$LINENO: result: no" >&5
6596 $as_echo "no" >&6; }
6601 if test -z "$ac_cv_prog_OTOOL64"; then
6602 ac_ct_OTOOL64=$OTOOL64
6603 # Extract the first word of "otool64", so it can be a program name with args.
6604 set dummy otool64; ac_word=$2
6605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6608 $as_echo_n "(cached) " >&6
6610 if test -n "$ac_ct_OTOOL64"; then
6611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_OTOOL64="otool64"
6621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6631 if test -n "$ac_ct_OTOOL64"; then
6632 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6633 $as_echo "$ac_ct_OTOOL64" >&6; }
6635 { $as_echo "$as_me:$LINENO: result: no" >&5
6636 $as_echo "no" >&6; }
6639 if test "x$ac_ct_OTOOL64" = x; then
6642 case $cross_compiling:$ac_tool_warned in
6644 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6648 OTOOL64=$ac_ct_OTOOL64
6651 OTOOL64="$ac_cv_prog_OTOOL64"
6680 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6681 $as_echo_n "checking for -single_module linker flag... " >&6; }
6682 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6683 $as_echo_n "(cached) " >&6
6685 lt_cv_apple_cc_single_mod=no
6686 if test -z "${LT_MULTI_MODULE}"; then
6687 # By default we will add the -single_module flag. You can override
6688 # by either setting the environment variable LT_MULTI_MODULE
6689 # non-empty at configure time, or by adding -multi_module to the
6691 rm -rf libconftest.dylib*
6692 echo "int foo(void){return 1;}" > conftest.c
6693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6694 -dynamiclib -Wl,-single_module conftest.c" >&5
6695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6698 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6699 lt_cv_apple_cc_single_mod=yes
6701 cat conftest.err >&5
6703 rm -rf libconftest.dylib*
6707 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6708 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6709 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6710 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6711 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6712 $as_echo_n "(cached) " >&6
6714 lt_cv_ld_exported_symbols_list=no
6715 save_LDFLAGS=$LDFLAGS
6716 echo "_main" > conftest.sym
6717 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6733 rm -f conftest.$ac_objext conftest$ac_exeext
6734 if { (ac_try="$ac_link"
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6740 $as_echo "$ac_try_echo") >&5
6741 (eval "$ac_link") 2>conftest.er1
6743 grep -v '^ *+' conftest.er1 >conftest.err
6745 cat conftest.err >&5
6746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } && {
6748 test -z "$ac_c_werror_flag" ||
6749 test ! -s conftest.err
6750 } && test -s conftest$ac_exeext && {
6751 test "$cross_compiling" = yes ||
6752 $as_test_x conftest$ac_exeext
6754 lt_cv_ld_exported_symbols_list=yes
6756 $as_echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6759 lt_cv_ld_exported_symbols_list=no
6762 rm -rf conftest.dSYM
6763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6764 conftest$ac_exeext conftest.$ac_ext
6765 LDFLAGS="$save_LDFLAGS"
6768 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6769 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6771 rhapsody* | darwin1.[012])
6772 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6774 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6775 darwin*) # darwin 5.x on
6776 # if running on 10.5 or later, the deployment target defaults
6777 # to the OS version, if on x86, and 10.4, the deployment
6778 # target defaults to 10.4. Don't you love it?
6779 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6780 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6781 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6783 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6785 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6789 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6790 _lt_dar_single_mod='$single_module'
6792 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6793 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6795 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6797 if test "$DSYMUTIL" != ":"; then
6798 _lt_dsymutil='~$DSYMUTIL $lib || :'
6806 ac_cpp='$CPP $CPPFLAGS'
6807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6811 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6812 # On Suns, sometimes $CPP names a directory.
6813 if test -n "$CPP" && test -d "$CPP"; then
6816 if test -z "$CPP"; then
6817 if test "${ac_cv_prog_CPP+set}" = set; then
6818 $as_echo_n "(cached) " >&6
6820 # Double quotes because CPP needs to be expanded
6821 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6824 for ac_c_preproc_warn_flag in '' yes
6826 # Use a header file that comes with gcc, so configuring glibc
6827 # with a fresh cross-compiler works.
6828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6829 # <limits.h> exists even on freestanding compilers.
6830 # On the NeXT, cc -E runs the code through the compiler's parser,
6831 # not just through cpp. "Syntax error" is here to catch this case.
6832 cat >conftest.$ac_ext <<_ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6839 # include <limits.h>
6841 # include <assert.h>
6845 if { (ac_try="$ac_cpp conftest.$ac_ext"
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6851 $as_echo "$ac_try_echo") >&5
6852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6854 grep -v '^ *+' conftest.er1 >conftest.err
6856 cat conftest.err >&5
6857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } >/dev/null && {
6859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6864 $as_echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6867 # Broken: fails on valid input.
6871 rm -f conftest.err conftest.$ac_ext
6873 # OK, works on sane cases. Now check whether nonexistent headers
6874 # can be detected and how.
6875 cat >conftest.$ac_ext <<_ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 #include <ac_nonexistent.h>
6883 if { (ac_try="$ac_cpp conftest.$ac_ext"
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6889 $as_echo "$ac_try_echo") >&5
6890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6892 grep -v '^ *+' conftest.er1 >conftest.err
6894 cat conftest.err >&5
6895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } >/dev/null && {
6897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6900 # Broken: success on invalid input.
6903 $as_echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6906 # Passes both tests.
6911 rm -f conftest.err conftest.$ac_ext
6914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6915 rm -f conftest.err conftest.$ac_ext
6916 if $ac_preproc_ok; then
6928 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6929 $as_echo "$CPP" >&6; }
6931 for ac_c_preproc_warn_flag in '' yes
6933 # Use a header file that comes with gcc, so configuring glibc
6934 # with a fresh cross-compiler works.
6935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6936 # <limits.h> exists even on freestanding compilers.
6937 # On the NeXT, cc -E runs the code through the compiler's parser,
6938 # not just through cpp. "Syntax error" is here to catch this case.
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6946 # include <limits.h>
6948 # include <assert.h>
6952 if { (ac_try="$ac_cpp conftest.$ac_ext"
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6958 $as_echo "$ac_try_echo") >&5
6959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6961 grep -v '^ *+' conftest.er1 >conftest.err
6963 cat conftest.err >&5
6964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } >/dev/null && {
6966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6971 $as_echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6974 # Broken: fails on valid input.
6978 rm -f conftest.err conftest.$ac_ext
6980 # OK, works on sane cases. Now check whether nonexistent headers
6981 # can be detected and how.
6982 cat >conftest.$ac_ext <<_ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 #include <ac_nonexistent.h>
6990 if { (ac_try="$ac_cpp conftest.$ac_ext"
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6996 $as_echo "$ac_try_echo") >&5
6997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6999 grep -v '^ *+' conftest.er1 >conftest.err
7001 cat conftest.err >&5
7002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } >/dev/null && {
7004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7007 # Broken: success on invalid input.
7010 $as_echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7013 # Passes both tests.
7018 rm -f conftest.err conftest.$ac_ext
7021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7022 rm -f conftest.err conftest.$ac_ext
7023 if $ac_preproc_ok; then
7026 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7028 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7029 See \`config.log' for more details." >&5
7030 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7031 See \`config.log' for more details." >&2;}
7032 { (exit 1); exit 1; }; }; }
7036 ac_cpp='$CPP $CPPFLAGS'
7037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7042 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7043 $as_echo_n "checking for ANSI C header files... " >&6; }
7044 if test "${ac_cv_header_stdc+set}" = set; then
7045 $as_echo_n "(cached) " >&6
7047 cat >conftest.$ac_ext <<_ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7066 rm -f conftest.$ac_objext
7067 if { (ac_try="$ac_compile"
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7073 $as_echo "$ac_try_echo") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7076 grep -v '^ *+' conftest.er1 >conftest.err
7078 cat conftest.err >&5
7079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 ac_cv_header_stdc=yes
7086 $as_echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 ac_cv_header_stdc=no
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 if test $ac_cv_header_stdc = yes; then
7095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7096 cat >conftest.$ac_ext <<_ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7106 $EGREP "memchr" >/dev/null 2>&1; then
7109 ac_cv_header_stdc=no
7115 if test $ac_cv_header_stdc = yes; then
7116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7117 cat >conftest.$ac_ext <<_ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7127 $EGREP "free" >/dev/null 2>&1; then
7130 ac_cv_header_stdc=no
7136 if test $ac_cv_header_stdc = yes; then
7137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7138 if test "$cross_compiling" = yes; then
7141 cat >conftest.$ac_ext <<_ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7149 #if ((' ' & 0x0FF) == 0x020)
7150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7153 # define ISLOWER(c) \
7154 (('a' <= (c) && (c) <= 'i') \
7155 || ('j' <= (c) && (c) <= 'r') \
7156 || ('s' <= (c) && (c) <= 'z'))
7157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7165 for (i = 0; i < 256; i++)
7166 if (XOR (islower (i), ISLOWER (i))
7167 || toupper (i) != TOUPPER (i))
7172 rm -f conftest$ac_exeext
7173 if { (ac_try="$ac_link"
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7179 $as_echo "$ac_try_echo") >&5
7180 (eval "$ac_link") 2>&5
7182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7184 { (case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7189 $as_echo "$ac_try_echo") >&5
7190 (eval "$ac_try") 2>&5
7192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7196 $as_echo "$as_me: program exited with status $ac_status" >&5
7197 $as_echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7201 ac_cv_header_stdc=no
7203 rm -rf conftest.dSYM
7204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7210 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7211 $as_echo "$ac_cv_header_stdc" >&6; }
7212 if test $ac_cv_header_stdc = yes; then
7214 cat >>confdefs.h <<\_ACEOF
7215 #define STDC_HEADERS 1
7220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7231 inttypes.h stdint.h unistd.h
7233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7234 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7235 $as_echo_n "checking for $ac_header... " >&6; }
7236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7237 $as_echo_n "(cached) " >&6
7239 cat >conftest.$ac_ext <<_ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7247 #include <$ac_header>
7249 rm -f conftest.$ac_objext
7250 if { (ac_try="$ac_compile"
7252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253 *) ac_try_echo=$ac_try;;
7255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7256 $as_echo "$ac_try_echo") >&5
7257 (eval "$ac_compile") 2>conftest.er1
7259 grep -v '^ *+' conftest.er1 >conftest.err
7261 cat conftest.err >&5
7262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } && {
7264 test -z "$ac_c_werror_flag" ||
7265 test ! -s conftest.err
7266 } && test -s conftest.$ac_objext; then
7267 eval "$as_ac_Header=yes"
7269 $as_echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7272 eval "$as_ac_Header=no"
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277 ac_res=`eval 'as_val=${'$as_ac_Header'}
7278 $as_echo "$as_val"'`
7279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7280 $as_echo "$ac_res" >&6; }
7281 as_val=`eval 'as_val=${'$as_ac_Header'}
7282 $as_echo "$as_val"'`
7283 if test "x$as_val" = x""yes; then
7284 cat >>confdefs.h <<_ACEOF
7285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7294 for ac_header in dlfcn.h
7296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7298 $as_echo_n "checking for $ac_header... " >&6; }
7299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7300 $as_echo_n "(cached) " >&6
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7310 #include <$ac_header>
7312 rm -f conftest.$ac_objext
7313 if { (ac_try="$ac_compile"
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7319 $as_echo "$ac_try_echo") >&5
7320 (eval "$ac_compile") 2>conftest.er1
7322 grep -v '^ *+' conftest.er1 >conftest.err
7324 cat conftest.err >&5
7325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } && {
7327 test -z "$ac_c_werror_flag" ||
7328 test ! -s conftest.err
7329 } && test -s conftest.$ac_objext; then
7330 eval "$as_ac_Header=yes"
7332 $as_echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7335 eval "$as_ac_Header=no"
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340 ac_res=`eval 'as_val=${'$as_ac_Header'}
7341 $as_echo "$as_val"'`
7342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7343 $as_echo "$ac_res" >&6; }
7344 as_val=`eval 'as_val=${'$as_ac_Header'}
7345 $as_echo "$as_val"'`
7346 if test "x$as_val" = x""yes; then
7347 cat >>confdefs.h <<_ACEOF
7348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7367 # Check whether --enable-shared was given.
7368 if test "${enable_shared+set}" = set; then
7369 enableval=$enable_shared; p=${PACKAGE-default}
7371 yes) enable_shared=yes ;;
7372 no) enable_shared=no ;;
7375 # Look at the argument we got. We use all the common list separators.
7376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7377 for pkg in $enableval; do
7379 if test "X$pkg" = "X$p"; then
7398 # Check whether --enable-static was given.
7399 if test "${enable_static+set}" = set; then
7400 enableval=$enable_static; p=${PACKAGE-default}
7402 yes) enable_static=yes ;;
7403 no) enable_static=no ;;
7406 # Look at the argument we got. We use all the common list separators.
7407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7408 for pkg in $enableval; do
7410 if test "X$pkg" = "X$p"; then
7430 # Check whether --with-pic was given.
7431 if test "${with_pic+set}" = set; then
7432 withval=$with_pic; pic_mode="$withval"
7438 test -z "$pic_mode" && pic_mode=default
7446 # Check whether --enable-fast-install was given.
7447 if test "${enable_fast_install+set}" = set; then
7448 enableval=$enable_fast_install; p=${PACKAGE-default}
7450 yes) enable_fast_install=yes ;;
7451 no) enable_fast_install=no ;;
7453 enable_fast_install=no
7454 # Look at the argument we got. We use all the common list separators.
7455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7456 for pkg in $enableval; do
7458 if test "X$pkg" = "X$p"; then
7459 enable_fast_install=yes
7466 enable_fast_install=yes
7479 # This can be used to rebuild libtool when needed
7480 LIBTOOL_DEPS="$ltmain"
7482 # Always use our own libtool.
7483 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7509 test -z "$LN_S" && LN_S="ln -s"
7524 if test -n "${ZSH_VERSION+set}" ; then
7525 setopt NO_GLOB_SUBST
7528 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7529 $as_echo_n "checking for objdir... " >&6; }
7530 if test "${lt_cv_objdir+set}" = set; then
7531 $as_echo_n "(cached) " >&6
7533 rm -f .libs 2>/dev/null
7534 mkdir .libs 2>/dev/null
7535 if test -d .libs; then
7538 # MS-DOS does not allow filenames that begin with a dot.
7541 rmdir .libs 2>/dev/null
7543 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7544 $as_echo "$lt_cv_objdir" >&6; }
7545 objdir=$lt_cv_objdir
7551 cat >>confdefs.h <<_ACEOF
7552 #define LT_OBJDIR "$lt_cv_objdir/"
7573 # AIX sometimes has problems with the GCC collect2 program. For some
7574 # reason, if we set the COLLECT_NAMES environment variable, the problems
7575 # vanish in a puff of smoke.
7576 if test "X${COLLECT_NAMES+set}" != Xset; then
7578 export COLLECT_NAMES
7583 # Sed substitution that helps us do robust quoting. It backslashifies
7584 # metacharacters that are still active within double-quoted strings.
7585 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7587 # Same as above, but do not quote variable references.
7588 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7590 # Sed substitution to delay expansion of an escaped shell variable in a
7591 # double_quote_subst'ed string.
7592 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7594 # Sed substitution to delay expansion of an escaped single quote.
7595 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7597 # Sed substitution to avoid accidental globbing in evaled expressions
7598 no_glob_subst='s/\*/\\\*/g'
7602 can_build_shared=yes
7604 # All known linkers require a `.a' archive for static linking (except MSVC,
7605 # which needs '.lib').
7608 with_gnu_ld="$lt_cv_prog_gnu_ld"
7611 old_CFLAGS="$CFLAGS"
7613 # Set sane defaults for various variables
7614 test -z "$CC" && CC=cc
7615 test -z "$LTCC" && LTCC=$CC
7616 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7617 test -z "$LD" && LD=ld
7618 test -z "$ac_objext" && ac_objext=o
7620 for cc_temp in $compiler""; do
7622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7628 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7631 # Only perform the check for file, if the check method requires it
7632 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7633 case $deplibs_check_method in
7635 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7636 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7637 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7638 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7639 $as_echo_n "(cached) " >&6
7643 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7646 lt_save_MAGIC_CMD="$MAGIC_CMD"
7647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7648 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7649 for ac_dir in $ac_dummy; do
7651 test -z "$ac_dir" && ac_dir=.
7652 if test -f $ac_dir/${ac_tool_prefix}file; then
7653 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7654 if test -n "$file_magic_test_file"; then
7655 case $deplibs_check_method in
7657 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7659 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7660 $EGREP "$file_magic_regex" > /dev/null; then
7665 *** Warning: the command libtool uses to detect shared libraries,
7666 *** $file_magic_cmd, produces output that libtool cannot recognize.
7667 *** The result is that libtool may fail to recognize shared libraries
7668 *** as such. This will affect the creation of libtool libraries that
7669 *** depend on shared libraries, but programs linked with such libtool
7670 *** libraries will work regardless of this problem. Nevertheless, you
7671 *** may want to report the problem to your system manager and/or to
7672 *** bug-libtool@gnu.org
7682 MAGIC_CMD="$lt_save_MAGIC_CMD"
7687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7688 if test -n "$MAGIC_CMD"; then
7689 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7690 $as_echo "$MAGIC_CMD" >&6; }
7692 { $as_echo "$as_me:$LINENO: result: no" >&5
7693 $as_echo "no" >&6; }
7700 if test -z "$lt_cv_path_MAGIC_CMD"; then
7701 if test -n "$ac_tool_prefix"; then
7702 { $as_echo "$as_me:$LINENO: checking for file" >&5
7703 $as_echo_n "checking for file... " >&6; }
7704 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7705 $as_echo_n "(cached) " >&6
7709 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7712 lt_save_MAGIC_CMD="$MAGIC_CMD"
7713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7714 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7715 for ac_dir in $ac_dummy; do
7717 test -z "$ac_dir" && ac_dir=.
7718 if test -f $ac_dir/file; then
7719 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7720 if test -n "$file_magic_test_file"; then
7721 case $deplibs_check_method in
7723 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7725 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7726 $EGREP "$file_magic_regex" > /dev/null; then
7731 *** Warning: the command libtool uses to detect shared libraries,
7732 *** $file_magic_cmd, produces output that libtool cannot recognize.
7733 *** The result is that libtool may fail to recognize shared libraries
7734 *** as such. This will affect the creation of libtool libraries that
7735 *** depend on shared libraries, but programs linked with such libtool
7736 *** libraries will work regardless of this problem. Nevertheless, you
7737 *** may want to report the problem to your system manager and/or to
7738 *** bug-libtool@gnu.org
7748 MAGIC_CMD="$lt_save_MAGIC_CMD"
7753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7754 if test -n "$MAGIC_CMD"; then
7755 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7756 $as_echo "$MAGIC_CMD" >&6; }
7758 { $as_echo "$as_me:$LINENO: result: no" >&5
7759 $as_echo "no" >&6; }
7772 # Use C for the default configuration in the libtool script
7776 ac_cpp='$CPP $CPPFLAGS'
7777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782 # Source file extension for C test sources.
7785 # Object file extension for compiled C test sources.
7789 # Code to be used in simple compile tests
7790 lt_simple_compile_test_code="int some_variable = 0;"
7792 # Code to be used in simple link tests
7793 lt_simple_link_test_code='int main(){return(0);}'
7801 # If no C compiler was specified, use CC.
7804 # If no C compiler flags were specified, use CFLAGS.
7805 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7807 # Allow CC to be a program name with arguments.
7810 # Save the default compiler, since it gets overwritten when the other
7811 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7812 compiler_DEFAULT=$CC
7814 # save warnings/boilerplate of simple test code
7815 ac_outfile=conftest.$ac_objext
7816 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7817 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7818 _lt_compiler_boilerplate=`cat conftest.err`
7821 ac_outfile=conftest.$ac_objext
7822 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7823 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7824 _lt_linker_boilerplate=`cat conftest.err`
7828 if test -n "$compiler"; then
7830 lt_prog_compiler_no_builtin_flag=
7832 if test "$GCC" = yes; then
7833 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7835 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7836 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7837 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7838 $as_echo_n "(cached) " >&6
7840 lt_cv_prog_compiler_rtti_exceptions=no
7841 ac_outfile=conftest.$ac_objext
7842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7843 lt_compiler_flag="-fno-rtti -fno-exceptions"
7844 # Insert the option either (1) after the last *FLAGS variable, or
7845 # (2) before a word containing "conftest.", or (3) at the end.
7846 # Note that $ac_compile itself does not contain backslashes and begins
7847 # with a dollar sign (not a hyphen), so the echo should work correctly.
7848 # The option is referenced via a variable to avoid confusing sed.
7849 lt_compile=`echo "$ac_compile" | $SED \
7850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7852 -e 's:$: $lt_compiler_flag:'`
7853 (eval echo "\"\$as_me:7853: $lt_compile\"" >&5)
7854 (eval "$lt_compile" 2>conftest.err)
7856 cat conftest.err >&5
7857 echo "$as_me:7857: \$? = $ac_status" >&5
7858 if (exit $ac_status) && test -s "$ac_outfile"; then
7859 # The compiler can only warn and ignore the option if not recognized
7860 # So say no if there are warnings other than the usual output.
7861 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7864 lt_cv_prog_compiler_rtti_exceptions=yes
7870 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7871 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7873 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7874 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7886 lt_prog_compiler_wl=
7887 lt_prog_compiler_pic=
7888 lt_prog_compiler_static=
7890 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7891 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7893 if test "$GCC" = yes; then
7894 lt_prog_compiler_wl='-Wl,'
7895 lt_prog_compiler_static='-static'
7899 # All AIX code is PIC.
7900 if test "$host_cpu" = ia64; then
7901 # AIX 5 now supports IA64 processor
7902 lt_prog_compiler_static='-Bstatic'
7909 # see comment about AmigaOS4 .so support
7910 lt_prog_compiler_pic='-fPIC'
7913 # FIXME: we need at least 68020 code to build shared libraries, but
7914 # adding the `-m68020' flag to GCC prevents building anything better,
7916 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7921 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7922 # PIC is the default for these OSes.
7925 mingw* | cygwin* | pw32* | os2* | cegcc*)
7926 # This hack is so that the source file can tell whether it is being
7927 # built for inclusion in a dll (and should export symbols for example).
7928 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7929 # (--disable-auto-import) libraries
7930 lt_prog_compiler_pic='-DDLL_EXPORT'
7933 darwin* | rhapsody*)
7934 # PIC is the default on this platform
7935 # Common symbols not allowed in MH_DYLIB files
7936 lt_prog_compiler_pic='-fno-common'
7940 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7941 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7942 # sets the default TLS model and affects inlining.
7948 lt_prog_compiler_pic='-fPIC'
7954 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7955 # Instead, we relocate shared libraries at runtime.
7959 # Just because we use GCC doesn't mean we suddenly get shared libraries
7960 # on systems that don't support them.
7961 lt_prog_compiler_can_build_shared=no
7966 # QNX uses GNU C++, but need to define -shared option too, otherwise
7968 lt_prog_compiler_pic='-fPIC -shared'
7972 if test -d /usr/nec; then
7973 lt_prog_compiler_pic=-Kconform_pic
7978 lt_prog_compiler_pic='-fPIC'
7982 # PORTME Check for flag to pass linker flags through the system compiler.
7985 lt_prog_compiler_wl='-Wl,'
7986 if test "$host_cpu" = ia64; then
7987 # AIX 5 now supports IA64 processor
7988 lt_prog_compiler_static='-Bstatic'
7990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7994 mingw* | cygwin* | pw32* | os2* | cegcc*)
7995 # This hack is so that the source file can tell whether it is being
7996 # built for inclusion in a dll (and should export symbols for example).
7997 lt_prog_compiler_pic='-DDLL_EXPORT'
8000 hpux9* | hpux10* | hpux11*)
8001 lt_prog_compiler_wl='-Wl,'
8002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8009 lt_prog_compiler_pic='+Z'
8012 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8013 lt_prog_compiler_static='${wl}-a ${wl}archive'
8016 irix5* | irix6* | nonstopux*)
8017 lt_prog_compiler_wl='-Wl,'
8018 # PIC (with -KPIC) is the default.
8019 lt_prog_compiler_static='-non_shared'
8022 linux* | k*bsd*-gnu)
8023 case $cc_basename in
8024 # old Intel for x86_64 which still supported -KPIC.
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_pic='-KPIC'
8028 lt_prog_compiler_static='-static'
8030 # icc used to be incompatible with GCC.
8031 # ICC 10 doesn't accept -KPIC any more.
8033 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_pic='-fPIC'
8035 lt_prog_compiler_static='-static'
8037 # Lahey Fortran 8.1.
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='--shared'
8041 lt_prog_compiler_static='--static'
8043 pgcc* | pgf77* | pgf90* | pgf95*)
8044 # Portland Group compilers (*not* the Pentium gcc compiler,
8045 # which looks to be a dead project)
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_pic='-fpic'
8048 lt_prog_compiler_static='-Bstatic'
8051 lt_prog_compiler_wl='-Wl,'
8052 # All Alpha code is PIC.
8053 lt_prog_compiler_static='-non_shared'
8056 # IBM XL C 8.0/Fortran 10.1 on PPC
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-qpic'
8059 lt_prog_compiler_static='-qstaticlink'
8062 case `$CC -V 2>&1 | sed 5q` in
8065 lt_prog_compiler_pic='-KPIC'
8066 lt_prog_compiler_static='-Bstatic'
8067 lt_prog_compiler_wl='-Wl,'
8070 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8071 lt_prog_compiler_pic='-KPIC'
8072 lt_prog_compiler_static='-Bstatic'
8073 lt_prog_compiler_wl=''
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-Bstatic'
8086 # QNX uses GNU C++, but need to define -shared option too, otherwise
8088 lt_prog_compiler_pic='-fPIC -shared'
8091 osf3* | osf4* | osf5*)
8092 lt_prog_compiler_wl='-Wl,'
8093 # All OSF/1 code is PIC.
8094 lt_prog_compiler_static='-non_shared'
8098 lt_prog_compiler_static='-non_shared'
8102 lt_prog_compiler_pic='-KPIC'
8103 lt_prog_compiler_static='-Bstatic'
8104 case $cc_basename in
8106 lt_prog_compiler_wl='-Qoption ld ';;
8108 lt_prog_compiler_wl='-Wl,';;
8113 lt_prog_compiler_wl='-Qoption ld '
8114 lt_prog_compiler_pic='-PIC'
8115 lt_prog_compiler_static='-Bstatic'
8118 sysv4 | sysv4.2uw2* | sysv4.3*)
8119 lt_prog_compiler_wl='-Wl,'
8120 lt_prog_compiler_pic='-KPIC'
8121 lt_prog_compiler_static='-Bstatic'
8125 if test -d /usr/nec ;then
8126 lt_prog_compiler_pic='-Kconform_pic'
8127 lt_prog_compiler_static='-Bstatic'
8131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8132 lt_prog_compiler_wl='-Wl,'
8133 lt_prog_compiler_pic='-KPIC'
8134 lt_prog_compiler_static='-Bstatic'
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_can_build_shared=no
8143 lt_prog_compiler_pic='-pic'
8144 lt_prog_compiler_static='-Bstatic'
8148 lt_prog_compiler_can_build_shared=no
8154 # For platforms which do not support PIC, -DPIC is meaningless:
8156 lt_prog_compiler_pic=
8159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8162 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8163 $as_echo "$lt_prog_compiler_pic" >&6; }
8171 # Check to make sure the PIC flag actually works.
8173 if test -n "$lt_prog_compiler_pic"; then
8174 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8175 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8176 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8177 $as_echo_n "(cached) " >&6
8179 lt_cv_prog_compiler_pic_works=no
8180 ac_outfile=conftest.$ac_objext
8181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8182 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8183 # Insert the option either (1) after the last *FLAGS variable, or
8184 # (2) before a word containing "conftest.", or (3) at the end.
8185 # Note that $ac_compile itself does not contain backslashes and begins
8186 # with a dollar sign (not a hyphen), so the echo should work correctly.
8187 # The option is referenced via a variable to avoid confusing sed.
8188 lt_compile=`echo "$ac_compile" | $SED \
8189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8191 -e 's:$: $lt_compiler_flag:'`
8192 (eval echo "\"\$as_me:8192: $lt_compile\"" >&5)
8193 (eval "$lt_compile" 2>conftest.err)
8195 cat conftest.err >&5
8196 echo "$as_me:8196: \$? = $ac_status" >&5
8197 if (exit $ac_status) && test -s "$ac_outfile"; then
8198 # The compiler can only warn and ignore the option if not recognized
8199 # So say no if there are warnings other than the usual output.
8200 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8203 lt_cv_prog_compiler_pic_works=yes
8209 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8210 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8212 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8213 case $lt_prog_compiler_pic in
8215 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8218 lt_prog_compiler_pic=
8219 lt_prog_compiler_can_build_shared=no
8230 # Check to make sure the static flag actually works.
8232 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8233 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8234 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8235 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8236 $as_echo_n "(cached) " >&6
8238 lt_cv_prog_compiler_static_works=no
8239 save_LDFLAGS="$LDFLAGS"
8240 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8241 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8243 # The linker can only warn and ignore the option if not recognized
8244 # So say no if there are warnings
8245 if test -s conftest.err; then
8246 # Append any errors to the config.log.
8247 cat conftest.err 1>&5
8248 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8250 if diff conftest.exp conftest.er2 >/dev/null; then
8251 lt_cv_prog_compiler_static_works=yes
8254 lt_cv_prog_compiler_static_works=yes
8258 LDFLAGS="$save_LDFLAGS"
8261 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8262 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8264 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8267 lt_prog_compiler_static=
8276 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8278 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8279 $as_echo_n "(cached) " >&6
8281 lt_cv_prog_compiler_c_o=no
8282 $RM -r conftest 2>/dev/null
8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8288 lt_compiler_flag="-o out/conftest2.$ac_objext"
8289 # Insert the option either (1) after the last *FLAGS variable, or
8290 # (2) before a word containing "conftest.", or (3) at the end.
8291 # Note that $ac_compile itself does not contain backslashes and begins
8292 # with a dollar sign (not a hyphen), so the echo should work correctly.
8293 lt_compile=`echo "$ac_compile" | $SED \
8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296 -e 's:$: $lt_compiler_flag:'`
8297 (eval echo "\"\$as_me:8297: $lt_compile\"" >&5)
8298 (eval "$lt_compile" 2>out/conftest.err)
8300 cat out/conftest.err >&5
8301 echo "$as_me:8301: \$? = $ac_status" >&5
8302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8304 # The compiler can only warn and ignore the option if not recognized
8305 # So say no if there are warnings
8306 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8309 lt_cv_prog_compiler_c_o=yes
8314 # SGI C++ compiler will create directory out/ii_files/ for
8315 # template instantiation
8316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8317 $RM out/* && rmdir out
8323 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8324 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8331 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8332 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8333 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8334 $as_echo_n "(cached) " >&6
8336 lt_cv_prog_compiler_c_o=no
8337 $RM -r conftest 2>/dev/null
8341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8343 lt_compiler_flag="-o out/conftest2.$ac_objext"
8344 # Insert the option either (1) after the last *FLAGS variable, or
8345 # (2) before a word containing "conftest.", or (3) at the end.
8346 # Note that $ac_compile itself does not contain backslashes and begins
8347 # with a dollar sign (not a hyphen), so the echo should work correctly.
8348 lt_compile=`echo "$ac_compile" | $SED \
8349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8351 -e 's:$: $lt_compiler_flag:'`
8352 (eval echo "\"\$as_me:8352: $lt_compile\"" >&5)
8353 (eval "$lt_compile" 2>out/conftest.err)
8355 cat out/conftest.err >&5
8356 echo "$as_me:8356: \$? = $ac_status" >&5
8357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8359 # The compiler can only warn and ignore the option if not recognized
8360 # So say no if there are warnings
8361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8364 lt_cv_prog_compiler_c_o=yes
8369 # SGI C++ compiler will create directory out/ii_files/ for
8370 # template instantiation
8371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8372 $RM out/* && rmdir out
8378 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8379 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8384 hard_links="nottested"
8385 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8386 # do not overwrite the value of need_locks provided by the user
8387 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8388 $as_echo_n "checking if we can lock with hard links... " >&6; }
8391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8393 ln conftest.a conftest.b 2>&5 || hard_links=no
8394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8395 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8396 $as_echo "$hard_links" >&6; }
8397 if test "$hard_links" = no; then
8398 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8399 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8411 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8412 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8415 allow_undefined_flag=
8416 always_export_symbols=no
8418 archive_expsym_cmds=
8419 compiler_needs_object=no
8420 enable_shared_with_static_runtimes=no
8421 export_dynamic_flag_spec=
8422 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8423 hardcode_automatic=no
8425 hardcode_direct_absolute=no
8426 hardcode_libdir_flag_spec=
8427 hardcode_libdir_flag_spec_ld=
8428 hardcode_libdir_separator=
8430 hardcode_shlibpath_var=unsupported
8432 link_all_deplibs=unknown
8435 old_archive_from_new_cmds=
8436 old_archive_from_expsyms_cmds=
8437 thread_safe_flag_spec=
8438 whole_archive_flag_spec=
8439 # include_expsyms should be a list of space-separated symbols to be *always*
8440 # included in the symbol list
8442 # exclude_expsyms can be an extended regexp of symbols to exclude
8443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8445 # as well as any symbol that contains `d'.
8446 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8448 # platforms (ab)use it in PIC code, but their linkers get confused if
8449 # the symbol is explicitly referenced. Since portable code cannot
8450 # rely on this symbol name, it's probably fine to never include it in
8451 # preloaded symbol tables.
8452 # Exclude shared library initialization/finalization symbols.
8453 extract_expsyms_cmds=
8456 cygwin* | mingw* | pw32* | cegcc*)
8457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8458 # When not using gcc, we currently assume that we are using
8459 # Microsoft Visual C++.
8460 if test "$GCC" != yes; then
8465 # we just hope/assume this is gcc and not c89 (= MSVC++)
8474 if test "$with_gnu_ld" = yes; then
8475 # If archive_cmds runs LD, not CC, wlarc should be empty
8478 # Set some defaults for GNU ld with shared library support. These
8479 # are reset later if shared libraries are not supported. Putting them
8480 # here allows them to be overridden if necessary.
8481 runpath_var=LD_RUN_PATH
8482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8483 export_dynamic_flag_spec='${wl}--export-dynamic'
8484 # ancient GNU ld didn't support --whole-archive et. al.
8485 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8486 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8488 whole_archive_flag_spec=
8490 supports_anon_versioning=no
8491 case `$LD -v 2>&1` in
8492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8495 *\ 2.11.*) ;; # other 2.11 versions
8496 *) supports_anon_versioning=yes ;;
8499 # See if GNU ld supports shared libraries.
8502 # On AIX/PPC, the GNU linker is very broken
8503 if test "$host_cpu" != ia64; then
8507 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8508 *** to be unable to reliably create shared libraries on AIX.
8509 *** Therefore, libtool is disabling shared libraries support. If you
8510 *** really care for shared libraries, you may want to modify your PATH
8511 *** so that a non-GNU linker is found, and then restart.
8520 # see comment about AmigaOS4 .so support
8521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8522 archive_expsym_cmds=''
8525 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)'
8526 hardcode_libdir_flag_spec='-L$libdir'
8527 hardcode_minus_L=yes
8533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8534 allow_undefined_flag=unsupported
8535 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8536 # support --undefined. This deserves some investigation. FIXME
8537 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543 cygwin* | mingw* | pw32* | cegcc*)
8544 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8545 # as there is no search path for DLLs.
8546 hardcode_libdir_flag_spec='-L$libdir'
8547 allow_undefined_flag=unsupported
8548 always_export_symbols=no
8549 enable_shared_with_static_runtimes=yes
8550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8552 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8554 # If the export-symbols file already is a .def file (1st line
8555 # is EXPORTS), use it as is; otherwise, prepend...
8556 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8557 cp $export_symbols $output_objdir/$soname.def;
8559 echo EXPORTS > $output_objdir/$soname.def;
8560 cat $export_symbols >> $output_objdir/$soname.def;
8562 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8570 hardcode_shlibpath_var=no
8571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8572 export_dynamic_flag_spec='${wl}-E'
8573 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8574 # Instead, shared libraries are loaded at an image base (0x10000000 by
8575 # default) and relocated if they conflict, which is a slow very memory
8576 # consuming and fragmenting process. To avoid this, we pick a random,
8577 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8578 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8579 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8580 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'
8583 gnu* | linux* | tpf* | k*bsd*-gnu)
8585 if test "$host_os" = linux-dietlibc; then
8586 case $cc_basename in
8587 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8590 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8591 && test "$tmp_diet" = no
8594 tmp_sharedflag='-shared'
8595 case $cc_basename,$host_cpu in
8596 pgcc*) # Portland Group C compiler
8597 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'
8598 tmp_addflag=' $pic_flag'
8600 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8601 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'
8602 tmp_addflag=' $pic_flag -Mnomain' ;;
8603 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8604 tmp_addflag=' -i_dynamic' ;;
8605 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8606 tmp_addflag=' -i_dynamic -nofor_main' ;;
8607 ifc* | ifort*) # Intel Fortran compiler
8608 tmp_addflag=' -nofor_main' ;;
8609 lf95*) # Lahey Fortran 8.1
8610 whole_archive_flag_spec=
8611 tmp_sharedflag='--shared' ;;
8612 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8613 tmp_sharedflag='-qmkshrobj'
8616 case `$CC -V 2>&1 | sed 5q` in
8617 *Sun\ C*) # Sun C 5.9
8618 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'
8619 compiler_needs_object=yes
8620 tmp_sharedflag='-G' ;;
8621 *Sun\ F*) # Sun Fortran 8.3
8622 tmp_sharedflag='-G' ;;
8624 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8626 if test "x$supports_anon_versioning" = xyes; then
8627 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8629 echo "local: *; };" >> $output_objdir/$libname.ver~
8630 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8633 case $cc_basename in
8635 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8636 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8637 hardcode_libdir_flag_spec=
8638 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8639 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8640 if test "x$supports_anon_versioning" = xyes; then
8641 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8642 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8643 echo "local: *; };" >> $output_objdir/$libname.ver~
8644 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8655 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8664 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8668 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8669 *** create shared libraries on Solaris systems. Therefore, libtool
8670 *** is disabling shared libraries support. We urge you to upgrade GNU
8671 *** binutils to release 2.9.1 or newer. Another option is to modify
8672 *** your PATH or compiler configuration so that the native linker is
8673 *** used, and then restart.
8676 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8685 case `$LD -v 2>&1` in
8686 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8690 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8691 *** reliably create shared libraries on SCO systems. Therefore, libtool
8692 *** is disabling shared libraries support. We urge you to upgrade GNU
8693 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8694 *** your PATH or compiler configuration so that the native linker is
8695 *** used, and then restart.
8700 # For security reasons, it is highly recommended that you always
8701 # use absolute paths for naming shared libraries, and exclude the
8702 # DT_RUNPATH tag from executables and libraries. But doing so
8703 # requires that you compile everything twice, which is a pain.
8704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8716 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8719 hardcode_shlibpath_var=no
8723 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8732 if test "$ld_shlibs" = no; then
8734 hardcode_libdir_flag_spec=
8735 export_dynamic_flag_spec=
8736 whole_archive_flag_spec=
8739 # PORTME fill in a description of your system's linker (not GNU ld)
8742 allow_undefined_flag=unsupported
8743 always_export_symbols=yes
8744 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'
8745 # Note: this linker hardcodes the directories in LIBPATH if there
8746 # are no directories specified by -L.
8747 hardcode_minus_L=yes
8748 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8749 # Neither direct hardcoding nor static linking is supported with a
8751 hardcode_direct=unsupported
8756 if test "$host_cpu" = ia64; then
8757 # On IA64, the linker does run time linking by default, so we don't
8758 # have to do anything special.
8759 aix_use_runtimelinking=no
8760 exp_sym_flag='-Bexport'
8763 # If we're using GNU nm, then we don't want the "-C" option.
8764 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8765 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8766 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'
8768 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'
8770 aix_use_runtimelinking=no
8772 # Test if we are trying to use run time linking or normal
8773 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8774 # need to do runtime linking.
8775 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8776 for ld_flag in $LDFLAGS; do
8777 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8778 aix_use_runtimelinking=yes
8785 exp_sym_flag='-bexport'
8786 no_entry_flag='-bnoentry'
8789 # When large executables or shared objects are built, AIX ld can
8790 # have problems creating the table of contents. If linking a library
8791 # or program results in "error TOC overflow" add -mminimal-toc to
8792 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8793 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8797 hardcode_direct_absolute=yes
8798 hardcode_libdir_separator=':'
8799 link_all_deplibs=yes
8800 file_list_spec='${wl}-f,'
8802 if test "$GCC" = yes; then
8803 case $host_os in aix4.[012]|aix4.[012].*)
8804 # We only want to do this on AIX 4.2 and lower, the check
8805 # below for broken collect2 doesn't work under 4.3+
8806 collect2name=`${CC} -print-prog-name=collect2`
8807 if test -f "$collect2name" &&
8808 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8810 # We have reworked collect2
8813 # We have old collect2
8814 hardcode_direct=unsupported
8815 # It fails to find uninstalled libraries when the uninstalled
8816 # path is not listed in the libpath. Setting hardcode_minus_L
8817 # to unsupported forces relinking
8818 hardcode_minus_L=yes
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 hardcode_libdir_separator=
8824 shared_flag='-shared'
8825 if test "$aix_use_runtimelinking" = yes; then
8826 shared_flag="$shared_flag "'${wl}-G'
8830 if test "$host_cpu" = ia64; then
8831 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8832 # chokes on -Wl,-G. The following line is correct:
8835 if test "$aix_use_runtimelinking" = yes; then
8836 shared_flag='${wl}-G'
8838 shared_flag='${wl}-bM:SRE'
8843 export_dynamic_flag_spec='${wl}-bexpall'
8844 # It seems that -bexpall does not export symbols beginning with
8845 # underscore (_), so it is better to generate a list of symbols to export.
8846 always_export_symbols=yes
8847 if test "$aix_use_runtimelinking" = yes; then
8848 # Warning - without using the other runtime loading flags (-brtl),
8849 # -berok will link without error, but may produce a broken library.
8850 allow_undefined_flag='-berok'
8851 # Determine the default libpath from the value encoded in an
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8868 rm -f conftest.$ac_objext conftest$ac_exeext
8869 if { (ac_try="$ac_link"
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8875 $as_echo "$ac_try_echo") >&5
8876 (eval "$ac_link") 2>conftest.er1
8878 grep -v '^ *+' conftest.er1 >conftest.err
8880 cat conftest.err >&5
8881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && {
8883 test -z "$ac_c_werror_flag" ||
8884 test ! -s conftest.err
8885 } && test -s conftest$ac_exeext && {
8886 test "$cross_compiling" = yes ||
8887 $as_test_x conftest$ac_exeext
8890 lt_aix_libpath_sed='
8891 /Import File Strings/,/^$/ {
8897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8898 # Check for a 64-bit object if we didn't find anything.
8899 if test -z "$aix_libpath"; then
8900 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8903 $as_echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8909 rm -rf conftest.dSYM
8910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8911 conftest$ac_exeext conftest.$ac_ext
8912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8914 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8915 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"
8917 if test "$host_cpu" = ia64; then
8918 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8919 allow_undefined_flag="-z nodefs"
8920 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"
8922 # Determine the default libpath from the value encoded in an
8924 cat >conftest.$ac_ext <<_ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8939 rm -f conftest.$ac_objext conftest$ac_exeext
8940 if { (ac_try="$ac_link"
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8946 $as_echo "$ac_try_echo") >&5
8947 (eval "$ac_link") 2>conftest.er1
8949 grep -v '^ *+' conftest.er1 >conftest.err
8951 cat conftest.err >&5
8952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } && {
8954 test -z "$ac_c_werror_flag" ||
8955 test ! -s conftest.err
8956 } && test -s conftest$ac_exeext && {
8957 test "$cross_compiling" = yes ||
8958 $as_test_x conftest$ac_exeext
8961 lt_aix_libpath_sed='
8962 /Import File Strings/,/^$/ {
8968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8969 # Check for a 64-bit object if we didn't find anything.
8970 if test -z "$aix_libpath"; then
8971 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8974 $as_echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8980 rm -rf conftest.dSYM
8981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8982 conftest$ac_exeext conftest.$ac_ext
8983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8986 # Warning - without using the other run time loading flags,
8987 # -berok will link without error, but may produce a broken library.
8988 no_undefined_flag=' ${wl}-bernotok'
8989 allow_undefined_flag=' ${wl}-berok'
8990 # Exported symbols can be pulled into shared objects from archives
8991 whole_archive_flag_spec='$convenience'
8992 archive_cmds_need_lc=yes
8993 # This is similar to how AIX traditionally builds its shared libraries.
8994 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'
9002 # see comment about AmigaOS4 .so support
9003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004 archive_expsym_cmds=''
9007 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)'
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 hardcode_minus_L=yes
9015 export_dynamic_flag_spec=-rdynamic
9018 cygwin* | mingw* | pw32* | cegcc*)
9019 # When not using gcc, we currently assume that we are using
9020 # Microsoft Visual C++.
9021 # hardcode_libdir_flag_spec is actually meaningless, as there is
9022 # no search path for DLLs.
9023 hardcode_libdir_flag_spec=' '
9024 allow_undefined_flag=unsupported
9025 # Tell ltmain to make .lib files, not .a files.
9027 # Tell ltmain to make .dll files, not .so files.
9029 # FIXME: Setting linknames here is a bad hack.
9030 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9031 # The linker will automatically build a .lib file if we build a DLL.
9032 old_archive_from_new_cmds='true'
9033 # FIXME: Should let the user specify the lib program.
9034 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9035 fix_srcfile_path='`cygpath -w "$srcfile"`'
9036 enable_shared_with_static_runtimes=yes
9039 darwin* | rhapsody*)
9042 archive_cmds_need_lc=no
9044 hardcode_automatic=yes
9045 hardcode_shlibpath_var=unsupported
9046 whole_archive_flag_spec=''
9047 link_all_deplibs=yes
9048 allow_undefined_flag="$_lt_dar_allow_undefined"
9049 case $cc_basename in
9050 ifort*) _lt_dar_can_shared=yes ;;
9051 *) _lt_dar_can_shared=$GCC ;;
9053 if test "$_lt_dar_can_shared" = "yes"; then
9054 output_verbose_link_cmd=echo
9055 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9056 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9057 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}"
9058 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}"
9067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_libdir_flag_spec='-L$libdir'
9069 hardcode_shlibpath_var=no
9076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9077 # support. Future versions do this automatically, but an explicit c++rt0.o
9078 # does not break anything, and helps significantly (at the cost of a little
9081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9082 hardcode_libdir_flag_spec='-R$libdir'
9084 hardcode_shlibpath_var=no
9087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9091 hardcode_minus_L=yes
9092 hardcode_shlibpath_var=no
9095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9096 freebsd* | dragonfly*)
9097 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9098 hardcode_libdir_flag_spec='-R$libdir'
9100 hardcode_shlibpath_var=no
9104 if test "$GCC" = yes; then
9105 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'
9107 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'
9109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110 hardcode_libdir_separator=:
9113 # hardcode_minus_L: Not really in the search PATH,
9114 # but as the default location of the library.
9115 hardcode_minus_L=yes
9116 export_dynamic_flag_spec='${wl}-E'
9120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9123 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9125 if test "$with_gnu_ld" = no; then
9126 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9127 hardcode_libdir_flag_spec_ld='+b $libdir'
9128 hardcode_libdir_separator=:
9130 hardcode_direct_absolute=yes
9131 export_dynamic_flag_spec='${wl}-E'
9132 # hardcode_minus_L: Not really in the search PATH,
9133 # but as the default location of the library.
9134 hardcode_minus_L=yes
9139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9142 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9148 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9154 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9157 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9164 if test "$with_gnu_ld" = no; then
9165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166 hardcode_libdir_separator=:
9171 hardcode_shlibpath_var=no
9175 hardcode_direct_absolute=yes
9176 export_dynamic_flag_spec='${wl}-E'
9178 # hardcode_minus_L: Not really in the search PATH,
9179 # but as the default location of the library.
9180 hardcode_minus_L=yes
9186 irix5* | irix6* | nonstopux*)
9187 if test "$GCC" = yes; then
9188 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'
9189 # Try to use the -exported_symbol ld option, if it does not
9190 # work, assume that -exports_file does not work either and
9191 # implicitly export all symbols.
9192 save_LDFLAGS="$LDFLAGS"
9193 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9194 cat >conftest.$ac_ext <<_ACEOF
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (ac_try="$ac_link"
9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9204 $as_echo "$ac_try_echo") >&5
9205 (eval "$ac_link") 2>conftest.er1
9207 grep -v '^ *+' conftest.er1 >conftest.err
9209 cat conftest.err >&5
9210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } && {
9212 test -z "$ac_c_werror_flag" ||
9213 test ! -s conftest.err
9214 } && test -s conftest$ac_exeext && {
9215 test "$cross_compiling" = yes ||
9216 $as_test_x conftest$ac_exeext
9218 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'
9221 $as_echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9227 rm -rf conftest.dSYM
9228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9229 conftest$ac_exeext conftest.$ac_ext
9230 LDFLAGS="$save_LDFLAGS"
9232 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'
9233 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'
9235 archive_cmds_need_lc='no'
9236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9237 hardcode_libdir_separator=:
9239 link_all_deplibs=yes
9243 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9246 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9248 hardcode_libdir_flag_spec='-R$libdir'
9250 hardcode_shlibpath_var=no
9254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9257 hardcode_libdir_separator=:
9258 hardcode_shlibpath_var=no
9265 if test -f /usr/libexec/ld.so; then
9267 hardcode_shlibpath_var=no
9268 hardcode_direct_absolute=yes
9269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9271 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9273 export_dynamic_flag_spec='${wl}-E'
9276 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9278 hardcode_libdir_flag_spec='-R$libdir'
9281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9292 hardcode_libdir_flag_spec='-L$libdir'
9293 hardcode_minus_L=yes
9294 allow_undefined_flag=unsupported
9295 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'
9296 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9300 if test "$GCC" = yes; then
9301 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9302 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'
9304 allow_undefined_flag=' -expect_unresolved \*'
9305 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'
9307 archive_cmds_need_lc='no'
9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309 hardcode_libdir_separator=:
9312 osf4* | osf5*) # as osf3* with the addition of -msym flag
9313 if test "$GCC" = yes; then
9314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9315 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'
9316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9318 allow_undefined_flag=' -expect_unresolved \*'
9319 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'
9320 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~
9321 $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'
9323 # Both c and cxx compiler support -rpath directly
9324 hardcode_libdir_flag_spec='-rpath $libdir'
9326 archive_cmds_need_lc='no'
9327 hardcode_libdir_separator=:
9331 no_undefined_flag=' -z defs'
9332 if test "$GCC" = yes; then
9334 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9336 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9338 case `$CC -V 2>&1` in
9341 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9347 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9349 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9353 hardcode_libdir_flag_spec='-R$libdir'
9354 hardcode_shlibpath_var=no
9356 solaris2.[0-5] | solaris2.[0-5].*) ;;
9358 # The compiler driver will combine and reorder linker options,
9359 # but understands `-z linker_flag'. GCC discards it without `$wl',
9360 # but is careful enough not to reorder.
9361 # Supported since Solaris 2.6 (maybe 2.5.1?)
9362 if test "$GCC" = yes; then
9363 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9365 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9369 link_all_deplibs=yes
9373 if test "x$host_vendor" = xsequent; then
9374 # Use $CC to link under sequent, because it throws in some extra .o
9375 # files that make .init and .fini sections work.
9376 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9378 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_libdir_flag_spec='-L$libdir'
9382 hardcode_minus_L=yes
9383 hardcode_shlibpath_var=no
9387 case $host_vendor in
9389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390 hardcode_direct=yes # is this really true???
9393 ## LD is ld it makes a PLAMLIB
9394 ## CC just makes a GrossModule.
9395 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9396 reload_cmds='$CC -r -o $output$reload_objs'
9400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9404 runpath_var='LD_RUN_PATH'
9405 hardcode_shlibpath_var=no
9409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_shlibpath_var=no
9411 export_dynamic_flag_spec='-Bexport'
9415 if test -d /usr/nec; then
9416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_shlibpath_var=no
9418 runpath_var=LD_RUN_PATH
9419 hardcode_runpath_var=yes
9424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9425 no_undefined_flag='${wl}-z,text'
9426 archive_cmds_need_lc=no
9427 hardcode_shlibpath_var=no
9428 runpath_var='LD_RUN_PATH'
9430 if test "$GCC" = yes; then
9431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 sysv5* | sco3.2v5* | sco5v6*)
9440 # Note: We can NOT use -z defs as we might desire, because we do not
9441 # link with -lc, and that would cause any symbols used from libc to
9442 # always be unresolved, which means just about no library would
9443 # ever link correctly. If we're not using GNU ld we use -z text
9444 # though, which does catch some bad symbols but isn't as heavy-handed
9446 no_undefined_flag='${wl}-z,text'
9447 allow_undefined_flag='${wl}-z,nodefs'
9448 archive_cmds_need_lc=no
9449 hardcode_shlibpath_var=no
9450 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9451 hardcode_libdir_separator=':'
9452 link_all_deplibs=yes
9453 export_dynamic_flag_spec='${wl}-Bexport'
9454 runpath_var='LD_RUN_PATH'
9456 if test "$GCC" = yes; then
9457 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9460 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9461 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_libdir_flag_spec='-L$libdir'
9468 hardcode_shlibpath_var=no
9476 if test x$host_vendor = xsni; then
9478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9479 export_dynamic_flag_spec='${wl}-Blargedynsym'
9485 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9486 $as_echo "$ld_shlibs" >&6; }
9487 test "$ld_shlibs" = no && can_build_shared=no
9489 with_gnu_ld=$with_gnu_ld
9506 # Do we need to explicitly link libc?
9508 case "x$archive_cmds_need_lc" in
9510 # Assume -lc should be added
9511 archive_cmds_need_lc=yes
9513 if test "$enable_shared" = yes && test "$GCC" = yes; then
9514 case $archive_cmds in
9516 # FIXME: we may have to deal with multi-command sequences.
9519 # Test whether the compiler implicitly links with -lc since on some
9520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9521 # to ld, don't add -lc before -lgcc.
9522 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9523 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9528 (eval $ac_compile) 2>&5
9530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } 2>conftest.err; then
9534 libobjs=conftest.$ac_objext
9536 wl=$lt_prog_compiler_wl
9537 pic_flag=$lt_prog_compiler_pic
9543 lt_save_allow_undefined_flag=$allow_undefined_flag
9544 allow_undefined_flag=
9545 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9546 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }
9551 archive_cmds_need_lc=no
9553 archive_cmds_need_lc=yes
9555 allow_undefined_flag=$lt_save_allow_undefined_flag
9557 cat conftest.err 1>&5
9560 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9561 $as_echo "$archive_cmds_need_lc" >&6; }
9724 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9725 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9727 if test "$GCC" = yes; then
9729 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9730 *) lt_awk_arg="/^libraries:/" ;;
9732 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9733 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9734 # if the path contains ";" then we assume it to be the separator
9735 # otherwise default to the standard path separator (i.e. ":") - it is
9736 # assumed that no part of a normal pathname contains ";" but that should
9737 # okay in the real world where ";" in dirpaths is itself problematic.
9738 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9740 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9742 # Ok, now we have the path, separated by spaces, we can step through it
9743 # and add multilib dir if necessary.
9744 lt_tmp_lt_search_path_spec=
9745 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9746 for lt_sys_path in $lt_search_path_spec; do
9747 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9748 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9750 test -d "$lt_sys_path" && \
9751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9754 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9755 BEGIN {RS=" "; FS="/|\n";} {
9758 for (lt_i = NF; lt_i > 0; lt_i--) {
9759 if ($lt_i != "" && $lt_i != ".") {
9760 if ($lt_i == "..") {
9763 if (lt_count == 0) {
9764 lt_foo="/" $lt_i lt_foo;
9771 if (lt_foo != "") { lt_freq[lt_foo]++; }
9772 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9774 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9776 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9779 libname_spec='lib$name'
9787 shlibpath_overrides_runpath=unknown
9789 dynamic_linker="$host_os ld.so"
9790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9791 need_lib_prefix=unknown
9792 hardcode_into_libs=no
9794 # when you set need_version to no, make sure it does not cause -set_version
9795 # flags to be left without arguments
9796 need_version=unknown
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9802 shlibpath_var=LIBPATH
9804 # AIX 3 has no versioning support, so we append a major version to the name.
9805 soname_spec='${libname}${release}${shared_ext}$major'
9812 hardcode_into_libs=yes
9813 if test "$host_cpu" = ia64; then
9814 # AIX 5 supports IA64
9815 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9816 shlibpath_var=LD_LIBRARY_PATH
9818 # With GCC up to 2.95.x, collect2 would create an import file
9819 # for dependence libraries. The import file would start with
9820 # the line `#! .'. This would cause the generated library to
9821 # depend on `.', always an invalid library. This was fixed in
9822 # development snapshots of GCC prior to 3.0.
9824 aix4 | aix4.[01] | aix4.[01].*)
9825 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9827 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9834 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9835 # soname into executable. Probably we can add versioning support to
9836 # collect2, so additional links can be useful in future.
9837 if test "$aix_use_runtimelinking" = yes; then
9838 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9839 # instead of lib<name>.a to let people know that these are not
9840 # typical AIX shared libraries.
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9843 # We preserve .a as extension for shared libraries through AIX4.2
9844 # and later when we are not doing run time linking.
9845 library_names_spec='${libname}${release}.a $libname.a'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9848 shlibpath_var=LIBPATH
9855 # Since July 2007 AmigaOS4 officially supports .so libraries.
9856 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 library_names_spec='$libname.ixlibrary $libname.a'
9861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9862 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'
9868 library_names_spec='${libname}${shared_ext}'
9869 dynamic_linker="$host_os ld.so"
9870 shlibpath_var=LIBRARY_PATH
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877 soname_spec='${libname}${release}${shared_ext}$major'
9878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9879 shlibpath_var=LD_LIBRARY_PATH
9880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9882 # the default ld.so.conf also contains /usr/contrib/lib and
9883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9884 # libtool to hard-code these into programs
9887 cygwin* | mingw* | pw32* | cegcc*)
9888 version_type=windows
9893 case $GCC,$host_os in
9894 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9895 library_names_spec='$libname.dll.a'
9896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9897 postinstall_cmds='base_file=`basename \${file}`~
9898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9899 dldir=$destdir/`dirname \$dlpath`~
9900 test -d \$dldir || mkdir -p \$dldir~
9901 $install_prog $dir/$dlname \$dldir/$dlname~
9902 chmod a+x \$dldir/$dlname~
9903 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9904 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9907 dlpath=$dir/\$dldll~
9909 shlibpath_overrides_runpath=yes
9913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9915 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9918 # MinGW DLLs use traditional 'lib' prefix
9919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9920 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9921 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9922 # It is most probably a Windows format PATH printed by
9923 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9924 # path with ; separators, and with drive letters. We can handle the
9925 # drive letters (cygwin fileutils understands them), so leave them,
9926 # especially as we might pass files found there to a mingw objdump,
9927 # which wouldn't understand a cygwinified path. Ahh.
9928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9930 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9934 # pw32 DLLs use 'pw' prefix rather than 'lib'
9935 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9941 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9944 dynamic_linker='Win32 ld.exe'
9945 # FIXME: first we should search . and the directory the executable is in
9949 darwin* | rhapsody*)
9950 dynamic_linker="$host_os dyld"
9954 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9955 soname_spec='${libname}${release}${major}$shared_ext'
9956 shlibpath_overrides_runpath=yes
9957 shlibpath_var=DYLD_LIBRARY_PATH
9958 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9960 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9961 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 shlibpath_var=LD_LIBRARY_PATH
9977 freebsd* | dragonfly*)
9978 # DragonFly does not have aout. When/if they implement a new
9979 # versioning mechanism, adjust this.
9980 if test -x /usr/bin/objformat; then
9981 objformat=`/usr/bin/objformat`
9984 freebsd[123]*) objformat=aout ;;
9988 version_type=freebsd-$objformat
9989 case $version_type in
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10000 shlibpath_var=LD_LIBRARY_PATH
10003 shlibpath_overrides_runpath=yes
10005 freebsd3.[01]* | freebsdelf3.[01]*)
10006 shlibpath_overrides_runpath=yes
10007 hardcode_into_libs=yes
10009 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10010 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10011 shlibpath_overrides_runpath=no
10012 hardcode_into_libs=yes
10014 *) # from 4.6 on, and DragonFly
10015 shlibpath_overrides_runpath=yes
10016 hardcode_into_libs=yes
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10026 soname_spec='${libname}${release}${shared_ext}$major'
10027 shlibpath_var=LD_LIBRARY_PATH
10028 hardcode_into_libs=yes
10031 hpux9* | hpux10* | hpux11*)
10032 # Give a soname corresponding to the major version so that dld.sl refuses to
10033 # link against other versions.
10040 hardcode_into_libs=yes
10041 dynamic_linker="$host_os dld.so"
10042 shlibpath_var=LD_LIBRARY_PATH
10043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 if test "X$HPUX_IA64_MODE" = X32; then
10047 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10049 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10055 hardcode_into_libs=yes
10056 dynamic_linker="$host_os dld.sl"
10057 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10058 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060 soname_spec='${libname}${release}${shared_ext}$major'
10061 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10066 dynamic_linker="$host_os dld.sl"
10067 shlibpath_var=SHLIB_PATH
10068 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10073 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10074 postinstall_cmds='chmod 555 $lib'
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 shlibpath_overrides_runpath=no
10086 hardcode_into_libs=yes
10089 irix5* | irix6* | nonstopux*)
10091 nonstopux*) version_type=nonstopux ;;
10093 if test "$lt_cv_prog_gnu_ld" = yes; then
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10104 irix5* | nonstopux*)
10105 libsuff= shlibsuff=
10108 case $LD in # libtool.m4 will add one of these switches to LD
10109 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10110 libsuff= shlibsuff= libmagic=32-bit;;
10111 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10112 libsuff=32 shlibsuff=N32 libmagic=N32;;
10113 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10114 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10115 *) libsuff= shlibsuff= libmagic=never-match;;
10119 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10120 shlibpath_overrides_runpath=no
10121 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10122 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10123 hardcode_into_libs=yes
10126 # No shared lib support for Linux oldld, aout, or coff.
10127 linux*oldld* | linux*aout* | linux*coff*)
10131 # This must be Linux ELF.
10132 linux* | k*bsd*-gnu)
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 shlibpath_overrides_runpath=no
10141 # Some binutils ld are patched to set DT_RUNPATH
10142 save_LDFLAGS=$LDFLAGS
10143 save_libdir=$libdir
10144 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10145 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10146 cat >conftest.$ac_ext <<_ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10168 $as_echo "$ac_try_echo") >&5
10169 (eval "$ac_link") 2>conftest.er1
10171 grep -v '^ *+' conftest.er1 >conftest.err
10173 cat conftest.err >&5
10174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && {
10176 test -z "$ac_c_werror_flag" ||
10177 test ! -s conftest.err
10178 } && test -s conftest$ac_exeext && {
10179 test "$cross_compiling" = yes ||
10180 $as_test_x conftest$ac_exeext
10182 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10183 shlibpath_overrides_runpath=yes
10187 $as_echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10193 rm -rf conftest.dSYM
10194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10195 conftest$ac_exeext conftest.$ac_ext
10196 LDFLAGS=$save_LDFLAGS
10197 libdir=$save_libdir
10199 # This implies no fast_install, which is unacceptable.
10200 # Some rework will be needed to allow for fast_install
10201 # before this can be enabled.
10202 hardcode_into_libs=yes
10204 # Add ABI-specific directories to the system library path.
10205 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10207 # Append ld.so.conf contents to the search path
10208 if test -f /etc/ld.so.conf; then
10209 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' ' '`
10210 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10213 # We used to test for /lib/ld.so.1 and disable shared libraries on
10214 # powerpc, because MkLinux only supported shared libraries with the
10215 # GNU dynamic linker. Since this was broken with cross compilers,
10216 # most powerpc-linux boxes support dynamic linking these days and
10217 # people can always --disable-shared, the test was removed, and we
10218 # assume the GNU/Linux dynamic linker is in use.
10219 dynamic_linker='GNU/Linux ld.so'
10226 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10229 dynamic_linker='NetBSD (a.out) ld.so'
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 dynamic_linker='NetBSD ld.elf_so'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=yes
10237 hardcode_into_libs=yes
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 shlibpath_overrides_runpath=yes
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 shlibpath_var=LD_LIBRARY_PATH
10254 shlibpath_overrides_runpath=no
10255 hardcode_into_libs=yes
10256 dynamic_linker='ldqnx.so'
10261 sys_lib_dlsearch_path_spec="/usr/lib"
10263 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10265 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10266 *) need_version=no ;;
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10270 shlibpath_var=LD_LIBRARY_PATH
10271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10273 openbsd2.[89] | openbsd2.[89].*)
10274 shlibpath_overrides_runpath=no
10277 shlibpath_overrides_runpath=yes
10281 shlibpath_overrides_runpath=yes
10286 libname_spec='$name'
10289 library_names_spec='$libname${shared_ext} $libname.a'
10290 dynamic_linker='OS/2 ld.exe'
10291 shlibpath_var=LIBPATH
10294 osf3* | osf4* | osf5*)
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes
10317 hardcode_into_libs=yes
10318 # ldd complains unless libraries are executable
10319 postinstall_cmds='chmod +x $lib'
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=yes
10328 if test "$with_gnu_ld" = yes; then
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 case $host_vendor in
10341 shlibpath_overrides_runpath=no
10343 runpath_var=LD_RUN_PATH
10351 shlibpath_overrides_runpath=no
10352 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10358 if test -d /usr/nec ;then
10360 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10361 soname_spec='$libname${shared_ext}.$major'
10362 shlibpath_var=LD_LIBRARY_PATH
10366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10367 version_type=freebsd-elf
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=yes
10374 hardcode_into_libs=yes
10375 if test "$with_gnu_ld" = yes; then
10376 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10378 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10381 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10385 sys_lib_dlsearch_path_spec='/usr/lib'
10389 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 shlibpath_overrides_runpath=no
10396 hardcode_into_libs=yes
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 shlibpath_var=LD_LIBRARY_PATH
10410 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10411 $as_echo "$dynamic_linker" >&6; }
10412 test "$dynamic_linker" = no && can_build_shared=no
10414 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10415 if test "$GCC" = yes; then
10416 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10419 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10420 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10422 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10423 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10512 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10513 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10515 if test -n "$hardcode_libdir_flag_spec" ||
10516 test -n "$runpath_var" ||
10517 test "X$hardcode_automatic" = "Xyes" ; then
10519 # We can hardcode non-existent directories.
10520 if test "$hardcode_direct" != no &&
10521 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10522 # have to relink, otherwise we might link with an installed library
10523 # when we should be linking with a yet-to-be-installed one
10524 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10525 test "$hardcode_minus_L" != no; then
10526 # Linking always hardcodes the temporary library directory.
10527 hardcode_action=relink
10529 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10530 hardcode_action=immediate
10533 # We cannot hardcode anything, or else we can only hardcode existing
10535 hardcode_action=unsupported
10537 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10538 $as_echo "$hardcode_action" >&6; }
10540 if test "$hardcode_action" = relink ||
10541 test "$inherit_rpath" = yes; then
10542 # Fast installation is not supported
10543 enable_fast_install=no
10544 elif test "$shlibpath_overrides_runpath" = yes ||
10545 test "$enable_shared" = no; then
10546 # Fast installation is not necessary
10547 enable_fast_install=needless
10555 if test "x$enable_dlopen" != xyes; then
10556 enable_dlopen=unknown
10557 enable_dlopen_self=unknown
10558 enable_dlopen_self_static=unknown
10565 lt_cv_dlopen="load_add_on"
10567 lt_cv_dlopen_self=yes
10570 mingw* | pw32* | cegcc*)
10571 lt_cv_dlopen="LoadLibrary"
10576 lt_cv_dlopen="dlopen"
10581 # if libdl is installed we need to link against it
10582 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10583 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10584 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10585 $as_echo_n "(cached) " >&6
10587 ac_check_lib_save_LIBS=$LIBS
10589 cat >conftest.$ac_ext <<_ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10596 /* Override any GCC internal prototype to avoid an error.
10597 Use char because int might match the return type of a GCC
10598 builtin and then its argument prototype would still apply. */
10611 rm -f conftest.$ac_objext conftest$ac_exeext
10612 if { (ac_try="$ac_link"
10613 case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619 (eval "$ac_link") 2>conftest.er1
10621 grep -v '^ *+' conftest.er1 >conftest.err
10623 cat conftest.err >&5
10624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } && {
10626 test -z "$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10628 } && test -s conftest$ac_exeext && {
10629 test "$cross_compiling" = yes ||
10630 $as_test_x conftest$ac_exeext
10632 ac_cv_lib_dl_dlopen=yes
10634 $as_echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10637 ac_cv_lib_dl_dlopen=no
10640 rm -rf conftest.dSYM
10641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10642 conftest$ac_exeext conftest.$ac_ext
10643 LIBS=$ac_check_lib_save_LIBS
10645 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10646 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10647 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10651 lt_cv_dlopen="dyld"
10653 lt_cv_dlopen_self=yes
10660 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10661 $as_echo_n "checking for shl_load... " >&6; }
10662 if test "${ac_cv_func_shl_load+set}" = set; then
10663 $as_echo_n "(cached) " >&6
10665 cat >conftest.$ac_ext <<_ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10673 #define shl_load innocuous_shl_load
10675 /* System header to define __stub macros and hopefully few prototypes,
10676 which can conflict with char shl_load (); below.
10677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10678 <limits.h> exists even on freestanding compilers. */
10681 # include <limits.h>
10683 # include <assert.h>
10688 /* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
10695 /* The GNU C library defines this for functions which it implements
10696 to always fail with ENOSYS. Some functions are actually named
10697 something starting with __ and the normal name is an alias. */
10698 #if defined __stub_shl_load || defined __stub___shl_load
10705 return shl_load ();
10710 rm -f conftest.$ac_objext conftest$ac_exeext
10711 if { (ac_try="$ac_link"
10712 case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10717 $as_echo "$ac_try_echo") >&5
10718 (eval "$ac_link") 2>conftest.er1
10720 grep -v '^ *+' conftest.er1 >conftest.err
10722 cat conftest.err >&5
10723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 } && test -s conftest$ac_exeext && {
10728 test "$cross_compiling" = yes ||
10729 $as_test_x conftest$ac_exeext
10731 ac_cv_func_shl_load=yes
10733 $as_echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10736 ac_cv_func_shl_load=no
10739 rm -rf conftest.dSYM
10740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10741 conftest$ac_exeext conftest.$ac_ext
10743 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10744 $as_echo "$ac_cv_func_shl_load" >&6; }
10745 if test "x$ac_cv_func_shl_load" = x""yes; then
10746 lt_cv_dlopen="shl_load"
10748 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10749 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10750 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10751 $as_echo_n "(cached) " >&6
10753 ac_check_lib_save_LIBS=$LIBS
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10762 /* Override any GCC internal prototype to avoid an error.
10763 Use char because int might match the return type of a GCC
10764 builtin and then its argument prototype would still apply. */
10772 return shl_load ();
10777 rm -f conftest.$ac_objext conftest$ac_exeext
10778 if { (ac_try="$ac_link"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10784 $as_echo "$ac_try_echo") >&5
10785 (eval "$ac_link") 2>conftest.er1
10787 grep -v '^ *+' conftest.er1 >conftest.err
10789 cat conftest.err >&5
10790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest$ac_exeext && {
10795 test "$cross_compiling" = yes ||
10796 $as_test_x conftest$ac_exeext
10798 ac_cv_lib_dld_shl_load=yes
10800 $as_echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_cv_lib_dld_shl_load=no
10806 rm -rf conftest.dSYM
10807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10808 conftest$ac_exeext conftest.$ac_ext
10809 LIBS=$ac_check_lib_save_LIBS
10811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10812 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10813 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10814 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10816 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10817 $as_echo_n "checking for dlopen... " >&6; }
10818 if test "${ac_cv_func_dlopen+set}" = set; then
10819 $as_echo_n "(cached) " >&6
10821 cat >conftest.$ac_ext <<_ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10829 #define dlopen innocuous_dlopen
10831 /* System header to define __stub macros and hopefully few prototypes,
10832 which can conflict with char dlopen (); below.
10833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10834 <limits.h> exists even on freestanding compilers. */
10837 # include <limits.h>
10839 # include <assert.h>
10844 /* Override any GCC internal prototype to avoid an error.
10845 Use char because int might match the return type of a GCC
10846 builtin and then its argument prototype would still apply. */
10851 /* The GNU C library defines this for functions which it implements
10852 to always fail with ENOSYS. Some functions are actually named
10853 something starting with __ and the normal name is an alias. */
10854 #if defined __stub_dlopen || defined __stub___dlopen
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (ac_try="$ac_link"
10868 case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10873 $as_echo "$ac_try_echo") >&5
10874 (eval "$ac_link") 2>conftest.er1
10876 grep -v '^ *+' conftest.er1 >conftest.err
10878 cat conftest.err >&5
10879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } && {
10881 test -z "$ac_c_werror_flag" ||
10882 test ! -s conftest.err
10883 } && test -s conftest$ac_exeext && {
10884 test "$cross_compiling" = yes ||
10885 $as_test_x conftest$ac_exeext
10887 ac_cv_func_dlopen=yes
10889 $as_echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 ac_cv_func_dlopen=no
10895 rm -rf conftest.dSYM
10896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10897 conftest$ac_exeext conftest.$ac_ext
10899 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10900 $as_echo "$ac_cv_func_dlopen" >&6; }
10901 if test "x$ac_cv_func_dlopen" = x""yes; then
10902 lt_cv_dlopen="dlopen"
10904 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10905 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10906 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10907 $as_echo_n "(cached) " >&6
10909 ac_check_lib_save_LIBS=$LIBS
10911 cat >conftest.$ac_ext <<_ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10918 /* Override any GCC internal prototype to avoid an error.
10919 Use char because int might match the return type of a GCC
10920 builtin and then its argument prototype would still apply. */
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (ac_try="$ac_link"
10935 case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10940 $as_echo "$ac_try_echo") >&5
10941 (eval "$ac_link") 2>conftest.er1
10943 grep -v '^ *+' conftest.er1 >conftest.err
10945 cat conftest.err >&5
10946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } && {
10948 test -z "$ac_c_werror_flag" ||
10949 test ! -s conftest.err
10950 } && test -s conftest$ac_exeext && {
10951 test "$cross_compiling" = yes ||
10952 $as_test_x conftest$ac_exeext
10954 ac_cv_lib_dl_dlopen=yes
10956 $as_echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10959 ac_cv_lib_dl_dlopen=no
10962 rm -rf conftest.dSYM
10963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10964 conftest$ac_exeext conftest.$ac_ext
10965 LIBS=$ac_check_lib_save_LIBS
10967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10968 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10969 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10972 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10973 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10974 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10975 $as_echo_n "(cached) " >&6
10977 ac_check_lib_save_LIBS=$LIBS
10978 LIBS="-lsvld $LIBS"
10979 cat >conftest.$ac_ext <<_ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
11001 rm -f conftest.$ac_objext conftest$ac_exeext
11002 if { (ac_try="$ac_link"
11003 case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11008 $as_echo "$ac_try_echo") >&5
11009 (eval "$ac_link") 2>conftest.er1
11011 grep -v '^ *+' conftest.er1 >conftest.err
11013 cat conftest.err >&5
11014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && {
11016 test -z "$ac_c_werror_flag" ||
11017 test ! -s conftest.err
11018 } && test -s conftest$ac_exeext && {
11019 test "$cross_compiling" = yes ||
11020 $as_test_x conftest$ac_exeext
11022 ac_cv_lib_svld_dlopen=yes
11024 $as_echo "$as_me: failed program was:" >&5
11025 sed 's/^/| /' conftest.$ac_ext >&5
11027 ac_cv_lib_svld_dlopen=no
11030 rm -rf conftest.dSYM
11031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032 conftest$ac_exeext conftest.$ac_ext
11033 LIBS=$ac_check_lib_save_LIBS
11035 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11036 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11037 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11040 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11041 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11042 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11043 $as_echo_n "(cached) " >&6
11045 ac_check_lib_save_LIBS=$LIBS
11047 cat >conftest.$ac_ext <<_ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11054 /* Override any GCC internal prototype to avoid an error.
11055 Use char because int might match the return type of a GCC
11056 builtin and then its argument prototype would still apply. */
11064 return dld_link ();
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (ac_try="$ac_link"
11071 case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11076 $as_echo "$ac_try_echo") >&5
11077 (eval "$ac_link") 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } && {
11084 test -z "$ac_c_werror_flag" ||
11085 test ! -s conftest.err
11086 } && test -s conftest$ac_exeext && {
11087 test "$cross_compiling" = yes ||
11088 $as_test_x conftest$ac_exeext
11090 ac_cv_lib_dld_dld_link=yes
11092 $as_echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11095 ac_cv_lib_dld_dld_link=no
11098 rm -rf conftest.dSYM
11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_lib_save_LIBS
11103 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11104 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11105 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11106 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11127 if test "x$lt_cv_dlopen" != xno; then
11133 case $lt_cv_dlopen in
11135 save_CPPFLAGS="$CPPFLAGS"
11136 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11138 save_LDFLAGS="$LDFLAGS"
11139 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11142 LIBS="$lt_cv_dlopen_libs $LIBS"
11144 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11145 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11146 if test "${lt_cv_dlopen_self+set}" = set; then
11147 $as_echo_n "(cached) " >&6
11149 if test "$cross_compiling" = yes; then :
11150 lt_cv_dlopen_self=cross
11152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11153 lt_status=$lt_dlunknown
11154 cat > conftest.$ac_ext <<_LT_EOF
11155 #line 11155 "configure"
11156 #include "confdefs.h"
11165 # define LT_DLGLOBAL RTLD_GLOBAL
11168 # define LT_DLGLOBAL DL_GLOBAL
11170 # define LT_DLGLOBAL 0
11174 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11175 find out it does not work in some platform. */
11176 #ifndef LT_DLLAZY_OR_NOW
11178 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11181 # define LT_DLLAZY_OR_NOW DL_LAZY
11184 # define LT_DLLAZY_OR_NOW RTLD_NOW
11187 # define LT_DLLAZY_OR_NOW DL_NOW
11189 # define LT_DLLAZY_OR_NOW 0
11196 void fnord() { int i=42;}
11199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11200 int status = $lt_dlunknown;
11204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11205 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11206 /* dlclose (self); */
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215 (eval $ac_link) 2>&5
11217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11219 (./conftest; exit; ) >&5 2>/dev/null
11221 case x$lt_status in
11222 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11223 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11224 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11227 # compilation failed
11228 lt_cv_dlopen_self=no
11235 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11236 $as_echo "$lt_cv_dlopen_self" >&6; }
11238 if test "x$lt_cv_dlopen_self" = xyes; then
11239 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11240 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11241 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11242 if test "${lt_cv_dlopen_self_static+set}" = set; then
11243 $as_echo_n "(cached) " >&6
11245 if test "$cross_compiling" = yes; then :
11246 lt_cv_dlopen_self_static=cross
11248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11249 lt_status=$lt_dlunknown
11250 cat > conftest.$ac_ext <<_LT_EOF
11251 #line 11251 "configure"
11252 #include "confdefs.h"
11261 # define LT_DLGLOBAL RTLD_GLOBAL
11264 # define LT_DLGLOBAL DL_GLOBAL
11266 # define LT_DLGLOBAL 0
11270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11271 find out it does not work in some platform. */
11272 #ifndef LT_DLLAZY_OR_NOW
11274 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11277 # define LT_DLLAZY_OR_NOW DL_LAZY
11280 # define LT_DLLAZY_OR_NOW RTLD_NOW
11283 # define LT_DLLAZY_OR_NOW DL_NOW
11285 # define LT_DLLAZY_OR_NOW 0
11292 void fnord() { int i=42;}
11295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11296 int status = $lt_dlunknown;
11300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11301 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11302 /* dlclose (self); */
11310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11311 (eval $ac_link) 2>&5
11313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11315 (./conftest; exit; ) >&5 2>/dev/null
11317 case x$lt_status in
11318 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11319 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11320 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11323 # compilation failed
11324 lt_cv_dlopen_self_static=no
11331 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11332 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11335 CPPFLAGS="$save_CPPFLAGS"
11336 LDFLAGS="$save_LDFLAGS"
11341 case $lt_cv_dlopen_self in
11342 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11343 *) enable_dlopen_self=unknown ;;
11346 case $lt_cv_dlopen_self_static in
11347 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11348 *) enable_dlopen_self_static=unknown ;;
11370 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11371 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11372 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11373 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11374 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11375 { $as_echo "$as_me:$LINENO: result: yes" >&5
11376 $as_echo "yes" >&6; }
11378 # FIXME - insert some real tests, host_os isn't really good enough
11381 if test -n "$STRIP" ; then
11382 striplib="$STRIP -x"
11383 old_striplib="$STRIP -S"
11384 { $as_echo "$as_me:$LINENO: result: yes" >&5
11385 $as_echo "yes" >&6; }
11387 { $as_echo "$as_me:$LINENO: result: no" >&5
11388 $as_echo "no" >&6; }
11392 { $as_echo "$as_me:$LINENO: result: no" >&5
11393 $as_echo "no" >&6; }
11409 # Report which library types will actually be built
11410 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11411 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11412 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11413 $as_echo "$can_build_shared" >&6; }
11415 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11416 $as_echo_n "checking whether to build shared libraries... " >&6; }
11417 test "$can_build_shared" = "no" && enable_shared=no
11419 # On AIX, shared libraries and static libraries use the same namespace, and
11420 # are all built from PIC.
11423 test "$enable_shared" = yes && enable_static=no
11424 if test -n "$RANLIB"; then
11425 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11426 postinstall_cmds='$RANLIB $lib'
11431 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11432 test "$enable_shared" = yes && enable_static=no
11436 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11437 $as_echo "$enable_shared" >&6; }
11439 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11440 $as_echo_n "checking whether to build static libraries... " >&6; }
11441 # Make sure either enable_shared or enable_static is yes.
11442 test "$enable_shared" = yes || enable_static=yes
11443 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11444 $as_echo "$enable_static" >&6; }
11451 ac_cpp='$CPP $CPPFLAGS'
11452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11470 ac_config_commands="$ac_config_commands libtool"
11475 # Only expand once:
11480 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11481 $as_echo_n "checking spl license... " >&6; }
11483 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11484 $as_echo "$LICENSE" >&6; }
11485 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11490 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11491 $as_echo_n "checking linux distribution... " >&6; }
11492 if test -f /etc/redhat-release ; then
11494 elif test -f /etc/fedora-release ; then
11496 elif test -f /etc/arch-release ; then
11498 elif test -f /etc/lsb-release ; then
11500 elif test -f /etc/debian_version ; then
11502 elif test -f /etc/SuSE-release ; then
11504 elif test -f /etc/slackware-version ; then
11506 elif test -f /etc/gentoo-release ; then
11511 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11512 $as_echo "$VENDOR" >&6; }
11515 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11516 $as_echo_n "checking default package type... " >&6; }
11518 fedora) DEFAULT_PACKAGE=rpm ;;
11519 redhat) DEFAULT_PACKAGE=rpm ;;
11520 sles) DEFAULT_PACKAGE=rpm ;;
11521 ubuntu) DEFAULT_PACKAGE=deb ;;
11522 debian) DEFAULT_PACKAGE=deb ;;
11523 slackware) DEFAULT_PACKAGE=tgz ;;
11524 arch) DEFAULT_PACKAGE=arch;;
11525 *) DEFAULT_PACKAGE=rpm ;;
11528 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11529 $as_echo "$DEFAULT_PACKAGE" >&6; }
11536 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11537 $as_echo_n "checking whether $RPM is available... " >&6; }
11538 if tmp=$($RPM --version 2>/dev/null); then
11540 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11542 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11543 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11548 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11549 $as_echo "$HAVE_RPM" >&6; }
11554 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11555 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11556 if tmp=$($RPMBUILD --version 2>/dev/null); then
11558 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11560 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11561 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11566 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11567 $as_echo "$HAVE_RPMBUILD" >&6; }
11582 DPKGBUILD=dpkg-buildpackage
11584 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11585 $as_echo_n "checking whether $DPKG is available... " >&6; }
11586 if tmp=$($DPKG --version 2>/dev/null); then
11588 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11590 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11591 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11596 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11597 $as_echo "$HAVE_DPKG" >&6; }
11602 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11603 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11604 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11606 DPKGBUILD_VERSION=$(echo $tmp | \
11607 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11609 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11610 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11615 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11616 $as_echo "$HAVE_DPKGBUILD" >&6; }
11632 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11633 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11634 if tmp=$($ALIEN --version 2>/dev/null); then
11636 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11638 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11639 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11644 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11645 $as_echo "$HAVE_ALIEN" >&6; }
11655 if test "$VENDOR" = "arch"; then
11660 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11661 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11662 tmp=$($PACMAN --version 2>/dev/null)
11663 if test -n "$tmp"; then
11665 PACMAN_VERSION=$(echo $tmp |
11666 $AWK '/Pacman/ { print $3 }' |
11669 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11670 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11675 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11676 $as_echo "$HAVE_PACMAN" >&6; }
11681 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11682 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11683 tmp=$($MAKEPKG --version 2>/dev/null)
11684 if test -n "$tmp"; then
11686 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11688 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11689 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11694 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11695 $as_echo "$HAVE_MAKEPKG" >&6; }
11714 # Check whether --with-config was given.
11715 if test "${with_config+set}" = set; then
11716 withval=$with_config; SPL_CONFIG="$withval"
11720 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11721 $as_echo_n "checking spl config... " >&6; }
11722 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11723 $as_echo "$SPL_CONFIG" >&6; };
11726 case "$SPL_CONFIG" in
11730 # Check whether --with-linux was given.
11731 if test "${with_linux+set}" = set; then
11732 withval=$with_linux; kernelsrc="$withval"
11737 # Check whether --with-linux-obj was given.
11738 if test "${with_linux_obj+set}" = set; then
11739 withval=$with_linux_obj; kernelbuild="$withval"
11743 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11744 $as_echo_n "checking kernel source directory... " >&6; }
11745 if test -z "$kernelsrc"; then
11746 if test -e "/lib/modules/$(uname -r)/source"; then
11747 headersdir="/lib/modules/$(uname -r)/source"
11748 sourcelink=$(readlink -f "$headersdir")
11749 elif test -e "/lib/modules/$(uname -r)/build"; then
11750 headersdir="/lib/modules/$(uname -r)/build"
11751 sourcelink=$(readlink -f "$headersdir")
11753 sourcelink=$(ls -1d /usr/src/kernels/* \
11755 2>/dev/null | grep -v obj | tail -1)
11758 if test -n "$sourcelink" && test -e ${sourcelink}; then
11759 kernelsrc=`readlink -f ${sourcelink}`
11761 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11762 $as_echo "Not found" >&6; }
11763 { { $as_echo "$as_me:$LINENO: error:
11764 *** Please make sure the kernel devel package for your distribution
11765 *** is installed then try again. If that fails you can specify the
11766 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11767 $as_echo "$as_me: error:
11768 *** Please make sure the kernel devel package for your distribution
11769 *** is installed then try again. If that fails you can specify the
11770 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11771 { (exit 1); exit 1; }; }
11774 if test "$kernelsrc" = "NONE"; then
11779 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11780 $as_echo "$kernelsrc" >&6; }
11781 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11782 $as_echo_n "checking kernel build directory... " >&6; }
11783 if test -z "$kernelbuild"; then
11784 if test -e "/lib/modules/$(uname -r)/build"; then
11785 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11786 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11787 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11788 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11789 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11790 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11791 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11793 kernelbuild=${kernelsrc}
11796 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11797 $as_echo "$kernelbuild" >&6; }
11799 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11800 $as_echo_n "checking kernel source version... " >&6; }
11801 utsrelease1=$kernelbuild/include/linux/version.h
11802 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11803 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11804 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11805 utsrelease=linux/version.h
11806 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11807 utsrelease=linux/utsrelease.h
11808 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11809 utsrelease=generated/utsrelease.h
11812 if test "$utsrelease"; then
11813 kernsrcver=`(echo "#include <$utsrelease>";
11814 echo "kernsrcver=UTS_RELEASE") |
11815 cpp -I $kernelbuild/include |
11816 grep "^kernsrcver=" | cut -d \" -f 2`
11818 if test -z "$kernsrcver"; then
11819 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11820 $as_echo "Not found" >&6; }
11821 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11822 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11823 { (exit 1); exit 1; }; }
11826 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11827 $as_echo "Not found" >&6; }
11828 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11829 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11830 { (exit 1); exit 1; }; }
11833 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11834 $as_echo "$kernsrcver" >&6; }
11837 LINUX_OBJ=${kernelbuild}
11838 LINUX_VERSION=${kernsrcver}
11845 modpost=$LINUX/scripts/Makefile.modpost
11846 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11847 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11848 if test -f "$modpost"; then
11849 if grep -q Modules.symvers $modpost; then
11850 LINUX_SYMBOLS=Modules.symvers
11852 LINUX_SYMBOLS=Module.symvers
11855 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11856 { { $as_echo "$as_me:$LINENO: error:
11857 *** Please make sure the kernel devel package for your distribution
11858 *** is installed. If your building with a custom kernel make sure the
11859 *** kernel is configured, built, and the '--with-linux=PATH' configure
11860 *** option refers to the location of the kernel source." >&5
11861 $as_echo "$as_me: error:
11862 *** Please make sure the kernel devel package for your distribution
11863 *** is installed. If your building with a custom kernel make sure the
11864 *** kernel is configured, built, and the '--with-linux=PATH' configure
11865 *** option refers to the location of the kernel source." >&2;}
11866 { (exit 1); exit 1; }; }
11871 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11872 $as_echo "$LINUX_SYMBOLS" >&6; }
11877 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
11878 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
11881 cat confdefs.h - <<_ACEOF >conftest.c
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11889 #include <linux/module.h>
11895 #ifndef CONFIG_PREEMPT
11896 #error CONFIG_PREEMPT not #defined
11906 rm -Rf build && mkdir -p build
11907 echo "obj-m := conftest.o" >build/Makefile
11908 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; }; then
11920 { $as_echo "$as_me:$LINENO: result: yes" >&5
11921 $as_echo "yes" >&6; }
11922 { { $as_echo "$as_me:$LINENO: error:
11923 *** Kernel built with CONFIG_PREEMPT which is not supported.
11924 ** You must rebuild your kernel without this option." >&5
11925 $as_echo "$as_me: error:
11926 *** Kernel built with CONFIG_PREEMPT which is not supported.
11927 ** You must rebuild your kernel without this option." >&2;}
11928 { (exit 1); exit 1; }; }
11931 $as_echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11934 { $as_echo "$as_me:$LINENO: result: no" >&5
11935 $as_echo "no" >&6; }
11948 if test "${LINUX_OBJ}" != "${LINUX}"; then
11949 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11953 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11957 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11958 $as_echo_n "checking whether debugging is enabled... " >&6; }
11959 # Check whether --enable-debug was given.
11960 if test "${enable_debug+set}" = set; then
11961 enableval=$enable_debug;
11967 if test "x$enable_debug" = xyes; then
11969 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11970 DEBUG_CFLAGS="-DDEBUG -Werror"
11974 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11975 DEBUG_CFLAGS="-DNDEBUG"
11981 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11982 $as_echo "$enable_debug" >&6; }
11985 # Check whether --enable-debug-log was given.
11986 if test "${enable_debug_log+set}" = set; then
11987 enableval=$enable_debug_log;
11989 enable_debug_log=yes
11993 if test "x$enable_debug_log" = xyes; then
11995 cat >>confdefs.h <<\_ACEOF
11996 #define DEBUG_LOG 1
11999 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG"
12003 { $as_echo "$as_me:$LINENO: checking whether basic debug logging is enabled" >&5
12004 $as_echo_n "checking whether basic debug logging is enabled... " >&6; }
12005 { $as_echo "$as_me:$LINENO: result: $enable_debug_log" >&5
12006 $as_echo "$enable_debug_log" >&6; }
12009 # Check whether --enable-debug-kmem was given.
12010 if test "${enable_debug_kmem+set}" = set; then
12011 enableval=$enable_debug_kmem;
12013 enable_debug_kmem=yes
12017 if test "x$enable_debug_kmem" = xyes; then
12019 cat >>confdefs.h <<\_ACEOF
12020 #define DEBUG_KMEM 1
12023 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
12027 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
12028 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
12029 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
12030 $as_echo "$enable_debug_kmem" >&6; }
12033 # Check whether --enable-debug-kmem-tracking was given.
12034 if test "${enable_debug_kmem_tracking+set}" = set; then
12035 enableval=$enable_debug_kmem_tracking;
12037 enable_debug_kmem_tracking=no
12041 if test "x$enable_debug_kmem_tracking" = xyes; then
12043 cat >>confdefs.h <<\_ACEOF
12044 #define DEBUG_KMEM_TRACKING 1
12047 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
12051 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
12052 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
12053 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
12054 $as_echo "$enable_debug_kmem_tracking" >&6; }
12057 # Check whether --enable-atomic-spinlocks was given.
12058 if test "${enable_atomic_spinlocks+set}" = set; then
12059 enableval=$enable_atomic_spinlocks;
12061 enable_atomic_spinlocks=check
12067 cat confdefs.h - <<_ACEOF >conftest.c
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12075 #include <asm/atomic.h>
12081 atomic64_t *ptr __attribute__ ((unused));
12090 rm -Rf build && mkdir -p build
12091 echo "obj-m := conftest.o" >build/Makefile
12092 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12104 have_atomic64_t=yes
12106 cat >>confdefs.h <<\_ACEOF
12107 #define HAVE_ATOMIC64_T 1
12112 $as_echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12125 if test "x$enable_atomic_spinlocks" = xcheck; then
12127 if test "x$have_atomic64_t" = xyes; then
12129 enable_atomic_spinlocks=no
12133 enable_atomic_spinlocks=yes
12141 if test "x$enable_atomic_spinlocks" = xyes; then
12144 cat >>confdefs.h <<\_ACEOF
12145 #define ATOMIC_SPINLOCK 1
12151 if test "x$have_atomic64_t" = xno; then
12153 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12155 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12156 See \`config.log' for more details." >&5
12157 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12158 See \`config.log' for more details." >&2;}
12159 { (exit 1); exit 1; }; }; }
12167 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
12168 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12169 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
12170 $as_echo "$enable_atomic_spinlocks" >&6; }
12172 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
12173 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12174 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
12175 $as_echo "$have_atomic64_t" >&6; }
12177 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
12178 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
12181 cat confdefs.h - <<_ACEOF >conftest.c
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12189 #include <asm/atomic.h>
12190 #include <asm/system.h>
12196 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
12205 rm -Rf build && mkdir -p build
12206 echo "obj-m := conftest.o" >build/Makefile
12207 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12219 { $as_echo "$as_me:$LINENO: result: yes" >&5
12220 $as_echo "yes" >&6; }
12222 cat >>confdefs.h <<\_ACEOF
12223 #define HAVE_ATOMIC64_CMPXCHG 1
12228 $as_echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 { $as_echo "$as_me:$LINENO: result: no" >&5
12232 $as_echo "no" >&6; }
12242 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
12243 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
12246 cat confdefs.h - <<_ACEOF >conftest.c
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12254 #include <asm/atomic.h>
12260 atomic64_xchg((atomic64_t *)NULL, 0);
12269 rm -Rf build && mkdir -p build
12270 echo "obj-m := conftest.o" >build/Makefile
12271 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12283 { $as_echo "$as_me:$LINENO: result: yes" >&5
12284 $as_echo "yes" >&6; }
12286 cat >>confdefs.h <<\_ACEOF
12287 #define HAVE_ATOMIC64_XCHG 1
12292 $as_echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12295 { $as_echo "$as_me:$LINENO: result: no" >&5
12296 $as_echo "no" >&6; }
12306 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
12307 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
12310 cat confdefs.h - <<_ACEOF >conftest.c
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12318 #include <linux/types.h>
12324 uintptr_t *ptr __attribute__ ((unused));
12333 rm -Rf build && mkdir -p build
12334 echo "obj-m := conftest.o" >build/Makefile
12335 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12347 { $as_echo "$as_me:$LINENO: result: yes" >&5
12348 $as_echo "yes" >&6; }
12350 cat >>confdefs.h <<\_ACEOF
12351 #define HAVE_UINTPTR_T 1
12356 $as_echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 { $as_echo "$as_me:$LINENO: result: no" >&5
12360 $as_echo "no" >&6; }
12370 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12371 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
12374 cat confdefs.h - <<_ACEOF >conftest.c
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12382 #include <linux/workqueue.h>
12388 struct work_struct work __attribute__ ((unused));
12389 INIT_WORK(&work, NULL, NULL);
12398 rm -Rf build && mkdir -p build
12399 echo "obj-m := conftest.o" >build/Makefile
12400 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12412 { $as_echo "$as_me:$LINENO: result: yes" >&5
12413 $as_echo "yes" >&6; }
12415 cat >>confdefs.h <<\_ACEOF
12416 #define HAVE_3ARGS_INIT_WORK 1
12421 $as_echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12424 { $as_echo "$as_me:$LINENO: result: no" >&5
12425 $as_echo "no" >&6; }
12435 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12436 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
12439 cat confdefs.h - <<_ACEOF >conftest.c
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12447 #include <linux/sysctl.h>
12453 (void) register_sysctl_table(NULL, 0);
12462 rm -Rf build && mkdir -p build
12463 echo "obj-m := conftest.o" >build/Makefile
12464 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12476 { $as_echo "$as_me:$LINENO: result: yes" >&5
12477 $as_echo "yes" >&6; }
12479 cat >>confdefs.h <<\_ACEOF
12480 #define HAVE_2ARGS_REGISTER_SYSCTL 1
12485 $as_echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 { $as_echo "$as_me:$LINENO: result: no" >&5
12489 $as_echo "no" >&6; }
12500 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12501 $as_echo_n "checking whether set_shrinker() available... " >&6; }
12504 cat confdefs.h - <<_ACEOF >conftest.c
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12512 #include <linux/mm.h>
12518 return set_shrinker(DEFAULT_SEEKS, NULL);
12527 rm -Rf build && mkdir -p build
12528 echo "obj-m := conftest.o" >build/Makefile
12529 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12541 { $as_echo "$as_me:$LINENO: result: yes" >&5
12542 $as_echo "yes" >&6; }
12544 cat >>confdefs.h <<\_ACEOF
12545 #define HAVE_SET_SHRINKER 1
12550 $as_echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12553 { $as_echo "$as_me:$LINENO: result: no" >&5
12554 $as_echo "no" >&6; }
12564 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
12565 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
12566 tmp_flags="$EXTRA_KCFLAGS"
12567 EXTRA_KCFLAGS="-Werror"
12570 cat confdefs.h - <<_ACEOF >conftest.c
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12578 #include <linux/mm.h>
12580 int shrinker_cb(struct shrinker *, int, unsigned int);
12586 struct shrinker cache_shrinker = {
12587 .shrink = shrinker_cb,
12588 .seeks = DEFAULT_SEEKS,
12590 register_shrinker(&cache_shrinker);
12599 rm -Rf build && mkdir -p build
12600 echo "obj-m := conftest.o" >build/Makefile
12601 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12613 { $as_echo "$as_me:$LINENO: result: yes" >&5
12614 $as_echo "yes" >&6; }
12616 cat >>confdefs.h <<\_ACEOF
12617 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
12622 $as_echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12625 { $as_echo "$as_me:$LINENO: result: no" >&5
12626 $as_echo "no" >&6; }
12635 EXTRA_KCFLAGS="$tmp_flags"
12637 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12638 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
12641 cat confdefs.h - <<_ACEOF >conftest.c
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12649 #include <linux/namei.h>
12655 struct nameidata nd __attribute__ ((unused));
12657 nd.path.mnt = NULL;
12658 nd.path.dentry = NULL;
12667 rm -Rf build && mkdir -p build
12668 echo "obj-m := conftest.o" >build/Makefile
12669 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12681 { $as_echo "$as_me:$LINENO: result: yes" >&5
12682 $as_echo "yes" >&6; }
12684 cat >>confdefs.h <<\_ACEOF
12685 #define HAVE_PATH_IN_NAMEIDATA 1
12690 $as_echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 { $as_echo "$as_me:$LINENO: result: no" >&5
12694 $as_echo "no" >&6; }
12705 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12706 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
12707 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12708 $LINUX_OBJ/Module*.symvers 2>/dev/null
12710 if test $rc -ne 0; then
12712 for file in kernel/sched.c; do
12713 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12714 "$LINUX_OBJ/$file" 2>/dev/null
12716 if test $rc -eq 0; then
12721 if test $export -eq 0; then
12722 { $as_echo "$as_me:$LINENO: result: no" >&5
12723 $as_echo "no" >&6; }
12726 { $as_echo "$as_me:$LINENO: result: yes" >&5
12727 $as_echo "yes" >&6; }
12729 cat >>confdefs.h <<\_ACEOF
12730 #define HAVE_TASK_CURR 1
12735 { $as_echo "$as_me:$LINENO: result: yes" >&5
12736 $as_echo "yes" >&6; }
12738 cat >>confdefs.h <<\_ACEOF
12739 #define HAVE_TASK_CURR 1
12745 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12746 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
12749 cat confdefs.h - <<_ACEOF >conftest.c
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12757 #include <linux/sysctl.h>
12763 #ifndef CTL_UNNUMBERED
12764 #error CTL_UNNUMBERED undefined
12774 rm -Rf build && mkdir -p build
12775 echo "obj-m := conftest.o" >build/Makefile
12776 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12788 { $as_echo "$as_me:$LINENO: result: yes" >&5
12789 $as_echo "yes" >&6; }
12791 cat >>confdefs.h <<\_ACEOF
12792 #define HAVE_CTL_UNNUMBERED 1
12797 $as_echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12800 { $as_echo "$as_me:$LINENO: result: no" >&5
12801 $as_echo "no" >&6; }
12812 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12813 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12816 cat confdefs.h - <<_ACEOF >conftest.c
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12824 #include <linux/sysctl.h>
12830 struct ctl_table ctl __attribute__ ((unused));
12840 rm -Rf build && mkdir -p build
12841 echo "obj-m := conftest.o" >build/Makefile
12842 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12854 { $as_echo "$as_me:$LINENO: result: yes" >&5
12855 $as_echo "yes" >&6; }
12857 cat >>confdefs.h <<\_ACEOF
12858 #define HAVE_CTL_NAME 1
12863 $as_echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 { $as_echo "$as_me:$LINENO: result: no" >&5
12867 $as_echo "no" >&6; }
12877 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12878 $as_echo_n "checking whether fls64() is available... " >&6; }
12881 cat confdefs.h - <<_ACEOF >conftest.c
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12889 #include <linux/bitops.h>
12904 rm -Rf build && mkdir -p build
12905 echo "obj-m := conftest.o" >build/Makefile
12906 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12918 { $as_echo "$as_me:$LINENO: result: yes" >&5
12919 $as_echo "yes" >&6; }
12921 cat >>confdefs.h <<\_ACEOF
12922 #define HAVE_FLS64 1
12927 $as_echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12930 { $as_echo "$as_me:$LINENO: result: no" >&5
12931 $as_echo "no" >&6; }
12942 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12943 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
12944 grep -q -E '[[:space:]]device_create[[:space:]]' \
12945 $LINUX_OBJ/Module*.symvers 2>/dev/null
12947 if test $rc -ne 0; then
12949 for file in drivers/base/core.c; do
12950 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12951 "$LINUX_OBJ/$file" 2>/dev/null
12953 if test $rc -eq 0; then
12958 if test $export -eq 0; then
12959 { $as_echo "$as_me:$LINENO: result: no" >&5
12960 $as_echo "no" >&6; }
12963 { $as_echo "$as_me:$LINENO: result: yes" >&5
12964 $as_echo "yes" >&6; }
12966 cat >>confdefs.h <<\_ACEOF
12967 #define HAVE_DEVICE_CREATE 1
12972 { $as_echo "$as_me:$LINENO: result: yes" >&5
12973 $as_echo "yes" >&6; }
12975 cat >>confdefs.h <<\_ACEOF
12976 #define HAVE_DEVICE_CREATE 1
12983 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12984 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
12985 tmp_flags="$EXTRA_KCFLAGS"
12986 EXTRA_KCFLAGS="-Werror"
12989 cat confdefs.h - <<_ACEOF >conftest.c
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12997 #include <linux/device.h>
13003 device_create(NULL, NULL, 0, NULL, "%d", 1);
13012 rm -Rf build && mkdir -p build
13013 echo "obj-m := conftest.o" >build/Makefile
13014 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13026 { $as_echo "$as_me:$LINENO: result: yes" >&5
13027 $as_echo "yes" >&6; }
13029 cat >>confdefs.h <<\_ACEOF
13030 #define HAVE_5ARGS_DEVICE_CREATE 1
13035 $as_echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13038 { $as_echo "$as_me:$LINENO: result: no" >&5
13039 $as_echo "no" >&6; }
13048 EXTRA_KCFLAGS="$tmp_flags"
13051 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
13052 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
13053 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
13054 $LINUX_OBJ/Module*.symvers 2>/dev/null
13056 if test $rc -ne 0; then
13058 for file in drivers/base/class.c; do
13059 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
13060 "$LINUX_OBJ/$file" 2>/dev/null
13062 if test $rc -eq 0; then
13067 if test $export -eq 0; then
13068 { $as_echo "$as_me:$LINENO: result: no" >&5
13069 $as_echo "no" >&6; }
13072 { $as_echo "$as_me:$LINENO: result: yes" >&5
13073 $as_echo "yes" >&6; }
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_CLASS_DEVICE_CREATE 1
13081 { $as_echo "$as_me:$LINENO: result: yes" >&5
13082 $as_echo "yes" >&6; }
13084 cat >>confdefs.h <<\_ACEOF
13085 #define HAVE_CLASS_DEVICE_CREATE 1
13092 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
13093 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
13094 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
13095 $LINUX_OBJ/Module*.symvers 2>/dev/null
13097 if test $rc -ne 0; then
13099 for file in kernel/time.c; do
13100 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
13101 "$LINUX_OBJ/$file" 2>/dev/null
13103 if test $rc -eq 0; then
13108 if test $export -eq 0; then
13109 { $as_echo "$as_me:$LINENO: result: no" >&5
13110 $as_echo "no" >&6; }
13113 { $as_echo "$as_me:$LINENO: result: yes" >&5
13114 $as_echo "yes" >&6; }
13116 cat >>confdefs.h <<\_ACEOF
13117 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13122 { $as_echo "$as_me:$LINENO: result: yes" >&5
13123 $as_echo "yes" >&6; }
13125 cat >>confdefs.h <<\_ACEOF
13126 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13133 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
13134 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
13137 cat confdefs.h - <<_ACEOF >conftest.c
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13145 #include <linux/time.h>
13146 void set_normalized_timespec(struct timespec *ts,
13147 time_t sec, long nsec) { }
13160 rm -Rf build && mkdir -p build
13161 echo "obj-m := conftest.o" >build/Makefile
13162 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13174 { $as_echo "$as_me:$LINENO: result: no" >&5
13175 $as_echo "no" >&6; }
13178 $as_echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13181 { $as_echo "$as_me:$LINENO: result: yes" >&5
13182 $as_echo "yes" >&6; }
13184 cat >>confdefs.h <<\_ACEOF
13185 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
13198 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
13199 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
13202 cat confdefs.h - <<_ACEOF >conftest.c
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13210 #include <linux/time.h>
13216 struct timespec a = { 0 };
13217 struct timespec b = { 0 };
13218 struct timespec c __attribute__ ((unused));
13219 c = timespec_sub(a, b);
13228 rm -Rf build && mkdir -p build
13229 echo "obj-m := conftest.o" >build/Makefile
13230 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13242 { $as_echo "$as_me:$LINENO: result: yes" >&5
13243 $as_echo "yes" >&6; }
13245 cat >>confdefs.h <<\_ACEOF
13246 #define HAVE_TIMESPEC_SUB 1
13251 $as_echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13254 { $as_echo "$as_me:$LINENO: result: no" >&5
13255 $as_echo "no" >&6; }
13266 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
13267 $as_echo_n "checking whether init_utsname() is available... " >&6; }
13270 cat confdefs.h - <<_ACEOF >conftest.c
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13278 #include <linux/utsname.h>
13284 struct new_utsname *a __attribute__ ((unused));
13285 a = init_utsname();
13294 rm -Rf build && mkdir -p build
13295 echo "obj-m := conftest.o" >build/Makefile
13296 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5
13300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13308 { $as_echo "$as_me:$LINENO: result: yes" >&5
13309 $as_echo "yes" >&6; }
13311 cat >>confdefs.h <<\_ACEOF
13312 #define HAVE_INIT_UTSNAME 1
13317 $as_echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 { $as_echo "$as_me:$LINENO: result: no" >&5
13321 $as_echo "no" >&6; }
13332 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
13333 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
13336 cat confdefs.h - <<_ACEOF >conftest.c
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13344 #include <linux/fdtable.h>
13359 rm -Rf build && mkdir -p build
13360 echo "obj-m := conftest.o" >build/Makefile
13361 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13374 cat >>confdefs.h <<\_ACEOF
13375 #define HAVE_FDTABLE_HEADER 1
13378 { $as_echo "$as_me:$LINENO: result: yes" >&5
13379 $as_echo "yes" >&6; }
13383 $as_echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 { $as_echo "$as_me:$LINENO: result: no" >&5
13387 $as_echo "no" >&6; }
13400 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
13401 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
13404 cat confdefs.h - <<_ACEOF >conftest.c
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13412 #include <linux/sched.h>
13413 #include <linux/file.h>
13414 #ifdef HAVE_FDTABLE_HEADER
13415 #include <linux/fdtable.h>
13422 struct files_struct *files = current->files;
13423 struct fdtable *fdt __attribute__ ((unused));
13424 fdt = files_fdtable(files);
13433 rm -Rf build && mkdir -p build
13434 echo "obj-m := conftest.o" >build/Makefile
13435 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13447 { $as_echo "$as_me:$LINENO: result: yes" >&5
13448 $as_echo "yes" >&6; }
13450 cat >>confdefs.h <<\_ACEOF
13451 #define HAVE_FILES_FDTABLE 1
13456 $as_echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13459 { $as_echo "$as_me:$LINENO: result: no" >&5
13460 $as_echo "no" >&6; }
13471 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13472 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
13475 cat confdefs.h - <<_ACEOF >conftest.c
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13483 #include <linux/uaccess.h>
13498 rm -Rf build && mkdir -p build
13499 echo "obj-m := conftest.o" >build/Makefile
13500 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13513 cat >>confdefs.h <<\_ACEOF
13514 #define HAVE_UACCESS_HEADER 1
13517 { $as_echo "$as_me:$LINENO: result: yes" >&5
13518 $as_echo "yes" >&6; }
13522 $as_echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13525 { $as_echo "$as_me:$LINENO: result: no" >&5
13526 $as_echo "no" >&6; }
13539 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13540 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
13543 cat confdefs.h - <<_ACEOF >conftest.c
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13551 #include <linux/slab.h>
13557 void *a __attribute__ ((unused));
13558 a = kmalloc_node(1, GFP_KERNEL, 0);
13567 rm -Rf build && mkdir -p build
13568 echo "obj-m := conftest.o" >build/Makefile
13569 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13581 { $as_echo "$as_me:$LINENO: result: yes" >&5
13582 $as_echo "yes" >&6; }
13584 cat >>confdefs.h <<\_ACEOF
13585 #define HAVE_KMALLOC_NODE 1
13590 $as_echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13593 { $as_echo "$as_me:$LINENO: result: no" >&5
13594 $as_echo "no" >&6; }
13605 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13606 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
13607 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13608 $LINUX_OBJ/Module*.symvers 2>/dev/null
13610 if test $rc -ne 0; then
13613 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13614 "$LINUX_OBJ/$file" 2>/dev/null
13616 if test $rc -eq 0; then
13621 if test $export -eq 0; then
13622 { $as_echo "$as_me:$LINENO: result: no" >&5
13623 $as_echo "no" >&6; }
13626 { $as_echo "$as_me:$LINENO: result: yes" >&5
13627 $as_echo "yes" >&6; }
13629 cat >>confdefs.h <<\_ACEOF
13630 #define HAVE_MONOTONIC_CLOCK 1
13635 { $as_echo "$as_me:$LINENO: result: yes" >&5
13636 $as_echo "yes" >&6; }
13638 cat >>confdefs.h <<\_ACEOF
13639 #define HAVE_MONOTONIC_CLOCK 1
13646 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13647 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
13650 cat confdefs.h - <<_ACEOF >conftest.c
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13658 #include <linux/fs.h>
13659 #include <linux/mutex.h>
13666 mutex_init(&i.i_mutex);
13675 rm -Rf build && mkdir -p build
13676 echo "obj-m := conftest.o" >build/Makefile
13677 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13689 { $as_echo "$as_me:$LINENO: result: yes" >&5
13690 $as_echo "yes" >&6; }
13692 cat >>confdefs.h <<\_ACEOF
13693 #define HAVE_INODE_I_MUTEX 1
13698 $as_echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 { $as_echo "$as_me:$LINENO: result: no" >&5
13702 $as_echo "no" >&6; }
13713 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13714 $as_echo_n "checking whether struct mutex has owner... " >&6; }
13717 cat confdefs.h - <<_ACEOF >conftest.c
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13725 #include <linux/mutex.h>
13731 struct mutex mtx __attribute__ ((unused));
13741 rm -Rf build && mkdir -p build
13742 echo "obj-m := conftest.o" >build/Makefile
13743 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13755 { $as_echo "$as_me:$LINENO: result: yes" >&5
13756 $as_echo "yes" >&6; }
13758 cat >>confdefs.h <<\_ACEOF
13759 #define HAVE_MUTEX_OWNER 1
13764 $as_echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13767 { $as_echo "$as_me:$LINENO: result: no" >&5
13768 $as_echo "no" >&6; }
13779 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
13780 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
13781 tmp_flags="$EXTRA_KCFLAGS"
13782 EXTRA_KCFLAGS="-Werror"
13785 cat confdefs.h - <<_ACEOF >conftest.c
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13793 #include <linux/mutex.h>
13799 struct mutex mtx __attribute__ ((unused));
13800 mtx.owner = current;
13809 rm -Rf build && mkdir -p build
13810 echo "obj-m := conftest.o" >build/Makefile
13811 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13823 { $as_echo "$as_me:$LINENO: result: yes" >&5
13824 $as_echo "yes" >&6; }
13826 cat >>confdefs.h <<\_ACEOF
13827 #define HAVE_MUTEX_OWNER_TASK_STRUCT 1
13832 $as_echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13835 { $as_echo "$as_me:$LINENO: result: no" >&5
13836 $as_echo "no" >&6; }
13845 EXTRA_KCFLAGS="$tmp_flags"
13848 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13849 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
13852 cat confdefs.h - <<_ACEOF >conftest.c
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13860 #include <linux/mutex.h>
13866 struct mutex mutex;
13867 mutex_init(&mutex);
13868 mutex_lock_nested(&mutex, 0);
13877 rm -Rf build && mkdir -p build
13878 echo "obj-m := conftest.o" >build/Makefile
13879 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13891 { $as_echo "$as_me:$LINENO: result: yes" >&5
13892 $as_echo "yes" >&6; }
13894 cat >>confdefs.h <<\_ACEOF
13895 #define HAVE_MUTEX_LOCK_NESTED 1
13900 $as_echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13903 { $as_echo "$as_me:$LINENO: result: no" >&5
13904 $as_echo "no" >&6; }
13915 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13916 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
13919 cat confdefs.h - <<_ACEOF >conftest.c
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13927 #include <linux/smp.h>
13933 on_each_cpu(NULL, NULL, 0);
13942 rm -Rf build && mkdir -p build
13943 echo "obj-m := conftest.o" >build/Makefile
13944 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13956 { $as_echo "$as_me:$LINENO: result: yes" >&5
13957 $as_echo "yes" >&6; }
13959 cat >>confdefs.h <<\_ACEOF
13960 #define HAVE_3ARGS_ON_EACH_CPU 1
13965 $as_echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 { $as_echo "$as_me:$LINENO: result: no" >&5
13969 $as_echo "no" >&6; }
13980 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13981 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
13982 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13983 $LINUX_OBJ/Module*.symvers 2>/dev/null
13985 if test $rc -ne 0; then
13988 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13989 "$LINUX_OBJ/$file" 2>/dev/null
13991 if test $rc -eq 0; then
13996 if test $export -eq 0; then
13997 { $as_echo "$as_me:$LINENO: result: no" >&5
13998 $as_echo "no" >&6; }
14001 { $as_echo "$as_me:$LINENO: result: yes" >&5
14002 $as_echo "yes" >&6; }
14004 cat >>confdefs.h <<\_ACEOF
14005 #define HAVE_KALLSYMS_LOOKUP_NAME 1
14010 { $as_echo "$as_me:$LINENO: result: yes" >&5
14011 $as_echo "yes" >&6; }
14013 cat >>confdefs.h <<\_ACEOF
14014 #define HAVE_KALLSYMS_LOOKUP_NAME 1
14021 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
14022 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
14023 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
14024 $LINUX_OBJ/Module*.symvers 2>/dev/null
14026 if test $rc -ne 0; then
14029 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
14030 "$LINUX_OBJ/$file" 2>/dev/null
14032 if test $rc -eq 0; then
14037 if test $export -eq 0; then
14038 { $as_echo "$as_me:$LINENO: result: no" >&5
14039 $as_echo "no" >&6; }
14042 { $as_echo "$as_me:$LINENO: result: yes" >&5
14043 $as_echo "yes" >&6; }
14045 cat >>confdefs.h <<\_ACEOF
14046 #define HAVE_GET_VMALLOC_INFO 1
14051 { $as_echo "$as_me:$LINENO: result: yes" >&5
14052 $as_echo "yes" >&6; }
14054 cat >>confdefs.h <<\_ACEOF
14055 #define HAVE_GET_VMALLOC_INFO 1
14062 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
14063 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
14064 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
14066 if test $rc -eq 0; then
14067 { $as_echo "$as_me:$LINENO: result: yes" >&5
14068 $as_echo "yes" >&6; }
14070 cat >>confdefs.h <<\_ACEOF
14071 #define HAVE_PGDAT_HELPERS 1
14075 { $as_echo "$as_me:$LINENO: result: no" >&5
14076 $as_echo "no" >&6; }
14080 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
14081 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
14082 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
14083 $LINUX_OBJ/Module*.symvers 2>/dev/null
14085 if test $rc -ne 0; then
14088 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
14089 "$LINUX_OBJ/$file" 2>/dev/null
14091 if test $rc -eq 0; then
14096 if test $export -eq 0; then
14097 { $as_echo "$as_me:$LINENO: result: no" >&5
14098 $as_echo "no" >&6; }
14101 { $as_echo "$as_me:$LINENO: result: yes" >&5
14102 $as_echo "yes" >&6; }
14104 cat >>confdefs.h <<\_ACEOF
14105 #define HAVE_FIRST_ONLINE_PGDAT 1
14110 { $as_echo "$as_me:$LINENO: result: yes" >&5
14111 $as_echo "yes" >&6; }
14113 cat >>confdefs.h <<\_ACEOF
14114 #define HAVE_FIRST_ONLINE_PGDAT 1
14121 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
14122 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
14123 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
14124 $LINUX_OBJ/Module*.symvers 2>/dev/null
14126 if test $rc -ne 0; then
14129 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
14130 "$LINUX_OBJ/$file" 2>/dev/null
14132 if test $rc -eq 0; then
14137 if test $export -eq 0; then
14138 { $as_echo "$as_me:$LINENO: result: no" >&5
14139 $as_echo "no" >&6; }
14142 { $as_echo "$as_me:$LINENO: result: yes" >&5
14143 $as_echo "yes" >&6; }
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_NEXT_ONLINE_PGDAT 1
14151 { $as_echo "$as_me:$LINENO: result: yes" >&5
14152 $as_echo "yes" >&6; }
14154 cat >>confdefs.h <<\_ACEOF
14155 #define HAVE_NEXT_ONLINE_PGDAT 1
14162 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
14163 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
14164 grep -q -E '[[:space:]]next_zone[[:space:]]' \
14165 $LINUX_OBJ/Module*.symvers 2>/dev/null
14167 if test $rc -ne 0; then
14170 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
14171 "$LINUX_OBJ/$file" 2>/dev/null
14173 if test $rc -eq 0; then
14178 if test $export -eq 0; then
14179 { $as_echo "$as_me:$LINENO: result: no" >&5
14180 $as_echo "no" >&6; }
14183 { $as_echo "$as_me:$LINENO: result: yes" >&5
14184 $as_echo "yes" >&6; }
14186 cat >>confdefs.h <<\_ACEOF
14187 #define HAVE_NEXT_ZONE 1
14192 { $as_echo "$as_me:$LINENO: result: yes" >&5
14193 $as_echo "yes" >&6; }
14195 cat >>confdefs.h <<\_ACEOF
14196 #define HAVE_NEXT_ZONE 1
14203 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
14204 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
14205 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
14206 $LINUX_OBJ/Module*.symvers 2>/dev/null
14208 if test $rc -ne 0; then
14211 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
14212 "$LINUX_OBJ/$file" 2>/dev/null
14214 if test $rc -eq 0; then
14219 if test $export -eq 0; then
14220 { $as_echo "$as_me:$LINENO: result: no" >&5
14221 $as_echo "no" >&6; }
14224 { $as_echo "$as_me:$LINENO: result: yes" >&5
14225 $as_echo "yes" >&6; }
14227 cat >>confdefs.h <<\_ACEOF
14228 #define HAVE_PGDAT_LIST 1
14233 { $as_echo "$as_me:$LINENO: result: yes" >&5
14234 $as_echo "yes" >&6; }
14236 cat >>confdefs.h <<\_ACEOF
14237 #define HAVE_PGDAT_LIST 1
14244 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
14245 $as_echo_n "checking whether global_page_state() is available... " >&6; }
14248 cat confdefs.h - <<_ACEOF >conftest.c
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14256 #include <linux/mm.h>
14262 unsigned long state __attribute__ ((unused));
14263 state = global_page_state(0);
14272 rm -Rf build && mkdir -p build
14273 echo "obj-m := conftest.o" >build/Makefile
14274 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14286 { $as_echo "$as_me:$LINENO: result: yes" >&5
14287 $as_echo "yes" >&6; }
14289 cat >>confdefs.h <<\_ACEOF
14290 #define HAVE_GLOBAL_PAGE_STATE 1
14295 $as_echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 { $as_echo "$as_me:$LINENO: result: no" >&5
14299 $as_echo "no" >&6; }
14310 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
14311 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
14314 cat confdefs.h - <<_ACEOF >conftest.c
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14322 #include <linux/mm.h>
14328 enum zone_stat_item zsi __attribute__ ((unused));
14329 zsi = NR_FREE_PAGES;
14338 rm -Rf build && mkdir -p build
14339 echo "obj-m := conftest.o" >build/Makefile
14340 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; }; then
14352 { $as_echo "$as_me:$LINENO: result: yes" >&5
14353 $as_echo "yes" >&6; }
14355 cat >>confdefs.h <<\_ACEOF
14356 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
14361 $as_echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 { $as_echo "$as_me:$LINENO: result: no" >&5
14365 $as_echo "no" >&6; }
14376 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
14377 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
14380 cat confdefs.h - <<_ACEOF >conftest.c
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14388 #include <linux/mm.h>
14394 enum zone_stat_item zsi __attribute__ ((unused));
14404 rm -Rf build && mkdir -p build
14405 echo "obj-m := conftest.o" >build/Makefile
14406 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14418 { $as_echo "$as_me:$LINENO: result: yes" >&5
14419 $as_echo "yes" >&6; }
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
14427 $as_echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 { $as_echo "$as_me:$LINENO: result: no" >&5
14431 $as_echo "no" >&6; }
14441 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14442 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
14445 cat confdefs.h - <<_ACEOF >conftest.c
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14453 #include <linux/mm.h>
14459 enum zone_stat_item zsi __attribute__ ((unused));
14460 zsi = NR_INACTIVE_ANON;
14469 rm -Rf build && mkdir -p build
14470 echo "obj-m := conftest.o" >build/Makefile
14471 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14483 { $as_echo "$as_me:$LINENO: result: yes" >&5
14484 $as_echo "yes" >&6; }
14486 cat >>confdefs.h <<\_ACEOF
14487 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
14492 $as_echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 { $as_echo "$as_me:$LINENO: result: no" >&5
14496 $as_echo "no" >&6; }
14506 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14507 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
14510 cat confdefs.h - <<_ACEOF >conftest.c
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14518 #include <linux/mm.h>
14524 enum zone_stat_item zsi __attribute__ ((unused));
14525 zsi = NR_INACTIVE_FILE;
14534 rm -Rf build && mkdir -p build
14535 echo "obj-m := conftest.o" >build/Makefile
14536 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; }; then
14548 { $as_echo "$as_me:$LINENO: result: yes" >&5
14549 $as_echo "yes" >&6; }
14551 cat >>confdefs.h <<\_ACEOF
14552 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
14557 $as_echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14560 { $as_echo "$as_me:$LINENO: result: no" >&5
14561 $as_echo "no" >&6; }
14572 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14573 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
14576 cat confdefs.h - <<_ACEOF >conftest.c
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14584 #include <linux/mm.h>
14590 enum zone_stat_item zsi __attribute__ ((unused));
14600 rm -Rf build && mkdir -p build
14601 echo "obj-m := conftest.o" >build/Makefile
14602 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; }; then
14614 { $as_echo "$as_me:$LINENO: result: yes" >&5
14615 $as_echo "yes" >&6; }
14617 cat >>confdefs.h <<\_ACEOF
14618 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
14623 $as_echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14626 { $as_echo "$as_me:$LINENO: result: no" >&5
14627 $as_echo "no" >&6; }
14637 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14638 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
14641 cat confdefs.h - <<_ACEOF >conftest.c
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14649 #include <linux/mm.h>
14655 enum zone_stat_item zsi __attribute__ ((unused));
14656 zsi = NR_ACTIVE_ANON;
14665 rm -Rf build && mkdir -p build
14666 echo "obj-m := conftest.o" >build/Makefile
14667 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14679 { $as_echo "$as_me:$LINENO: result: yes" >&5
14680 $as_echo "yes" >&6; }
14682 cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
14688 $as_echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14691 { $as_echo "$as_me:$LINENO: result: no" >&5
14692 $as_echo "no" >&6; }
14702 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14703 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
14706 cat confdefs.h - <<_ACEOF >conftest.c
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14714 #include <linux/mm.h>
14720 enum zone_stat_item zsi __attribute__ ((unused));
14721 zsi = NR_ACTIVE_FILE;
14730 rm -Rf build && mkdir -p build
14731 echo "obj-m := conftest.o" >build/Makefile
14732 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14744 { $as_echo "$as_me:$LINENO: result: yes" >&5
14745 $as_echo "yes" >&6; }
14747 cat >>confdefs.h <<\_ACEOF
14748 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14753 $as_echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 { $as_echo "$as_me:$LINENO: result: no" >&5
14757 $as_echo "no" >&6; }
14768 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14769 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
14772 cat confdefs.h - <<_ACEOF >conftest.c
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14785 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14786 #error "global_page_state needs NR_FREE_PAGES"
14789 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14790 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14791 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14792 #error "global_page_state needs NR_ACTIVE*"
14795 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14796 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14797 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14798 #error "global_page_state needs NR_INACTIVE*"
14808 rm -Rf build && mkdir -p build
14809 echo "obj-m := conftest.o" >build/Makefile
14810 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14822 { $as_echo "$as_me:$LINENO: result: no" >&5
14823 $as_echo "no" >&6; }
14826 $as_echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 { $as_echo "$as_me:$LINENO: result: yes" >&5
14830 $as_echo "yes" >&6; }
14832 cat >>confdefs.h <<\_ACEOF
14833 #define NEED_GET_ZONE_COUNTS 1
14837 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14838 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
14839 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14840 $LINUX_OBJ/Module*.symvers 2>/dev/null
14842 if test $rc -ne 0; then
14845 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14846 "$LINUX_OBJ/$file" 2>/dev/null
14848 if test $rc -eq 0; then
14853 if test $export -eq 0; then
14854 { $as_echo "$as_me:$LINENO: result: no" >&5
14855 $as_echo "no" >&6; }
14858 { $as_echo "$as_me:$LINENO: result: yes" >&5
14859 $as_echo "yes" >&6; }
14861 cat >>confdefs.h <<\_ACEOF
14862 #define HAVE_GET_ZONE_COUNTS 1
14867 { $as_echo "$as_me:$LINENO: result: yes" >&5
14868 $as_echo "yes" >&6; }
14870 cat >>confdefs.h <<\_ACEOF
14871 #define HAVE_GET_ZONE_COUNTS 1
14886 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
14887 $as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
14888 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14889 $LINUX_OBJ/Module*.symvers 2>/dev/null
14891 if test $rc -ne 0; then
14894 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14895 "$LINUX_OBJ/$file" 2>/dev/null
14897 if test $rc -eq 0; then
14902 if test $export -eq 0; then
14903 { $as_echo "$as_me:$LINENO: result: no" >&5
14904 $as_echo "no" >&6; }
14907 { $as_echo "$as_me:$LINENO: result: yes" >&5
14908 $as_echo "yes" >&6; }
14910 cat >>confdefs.h <<\_ACEOF
14911 #define HAVE_USER_PATH_DIR 1
14916 { $as_echo "$as_me:$LINENO: result: yes" >&5
14917 $as_echo "yes" >&6; }
14919 cat >>confdefs.h <<\_ACEOF
14920 #define HAVE_USER_PATH_DIR 1
14927 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14928 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
14929 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14930 $LINUX_OBJ/Module*.symvers 2>/dev/null
14932 if test $rc -ne 0; then
14935 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14936 "$LINUX_OBJ/$file" 2>/dev/null
14938 if test $rc -eq 0; then
14943 if test $export -eq 0; then
14944 { $as_echo "$as_me:$LINENO: result: no" >&5
14945 $as_echo "no" >&6; }
14948 { $as_echo "$as_me:$LINENO: result: yes" >&5
14949 $as_echo "yes" >&6; }
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_SET_FS_PWD 1
14957 { $as_echo "$as_me:$LINENO: result: yes" >&5
14958 $as_echo "yes" >&6; }
14960 cat >>confdefs.h <<\_ACEOF
14961 #define HAVE_SET_FS_PWD 1
14967 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14968 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
14971 cat confdefs.h - <<_ACEOF >conftest.c
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14979 #include <linux/sched.h>
14980 #include <linux/fs_struct.h>
14986 set_fs_pwd(NULL, NULL);
14995 rm -Rf build && mkdir -p build
14996 echo "obj-m := conftest.o" >build/Makefile
14997 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15009 { $as_echo "$as_me:$LINENO: result: yes" >&5
15010 $as_echo "yes" >&6; }
15012 cat >>confdefs.h <<\_ACEOF
15013 #define HAVE_2ARGS_SET_FS_PWD 1
15018 $as_echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15021 { $as_echo "$as_me:$LINENO: result: no" >&5
15022 $as_echo "no" >&6; }
15032 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
15033 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
15036 cat confdefs.h - <<_ACEOF >conftest.c
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15044 #include <linux/fs.h>
15050 vfs_unlink(NULL, NULL);
15059 rm -Rf build && mkdir -p build
15060 echo "obj-m := conftest.o" >build/Makefile
15061 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }; then
15073 { $as_echo "$as_me:$LINENO: result: yes" >&5
15074 $as_echo "yes" >&6; }
15076 cat >>confdefs.h <<\_ACEOF
15077 #define HAVE_2ARGS_VFS_UNLINK 1
15082 $as_echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15085 { $as_echo "$as_me:$LINENO: result: no" >&5
15086 $as_echo "no" >&6; }
15096 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
15097 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
15100 cat confdefs.h - <<_ACEOF >conftest.c
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15108 #include <linux/fs.h>
15114 vfs_rename(NULL, NULL, NULL, NULL);
15123 rm -Rf build && mkdir -p build
15124 echo "obj-m := conftest.o" >build/Makefile
15125 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15137 { $as_echo "$as_me:$LINENO: result: yes" >&5
15138 $as_echo "yes" >&6; }
15140 cat >>confdefs.h <<\_ACEOF
15141 #define HAVE_4ARGS_VFS_RENAME 1
15146 $as_echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15149 { $as_echo "$as_me:$LINENO: result: no" >&5
15150 $as_echo "no" >&6; }
15161 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
15162 $as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
15163 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
15164 $LINUX_OBJ/Module*.symvers 2>/dev/null
15166 if test $rc -ne 0; then
15168 for file in fs/sync.c; do
15169 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
15170 "$LINUX_OBJ/$file" 2>/dev/null
15172 if test $rc -eq 0; then
15177 if test $export -eq 0; then
15178 { $as_echo "$as_me:$LINENO: result: no" >&5
15179 $as_echo "no" >&6; }
15182 { $as_echo "$as_me:$LINENO: result: yes" >&5
15183 $as_echo "yes" >&6; }
15185 cat >>confdefs.h <<\_ACEOF
15186 #define HAVE_VFS_FSYNC 1
15191 { $as_echo "$as_me:$LINENO: result: yes" >&5
15192 $as_echo "yes" >&6; }
15194 cat >>confdefs.h <<\_ACEOF
15195 #define HAVE_VFS_FSYNC 1
15202 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
15203 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
15206 cat confdefs.h - <<_ACEOF >conftest.c
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15214 #include <linux/fs.h>
15220 vfs_fsync(NULL, 0);
15229 rm -Rf build && mkdir -p build
15230 echo "obj-m := conftest.o" >build/Makefile
15231 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15243 { $as_echo "$as_me:$LINENO: result: yes" >&5
15244 $as_echo "yes" >&6; }
15246 cat >>confdefs.h <<\_ACEOF
15247 #define HAVE_2ARGS_VFS_FSYNC 1
15252 $as_echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 { $as_echo "$as_me:$LINENO: result: no" >&5
15256 $as_echo "no" >&6; }
15267 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
15268 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
15269 tmp_flags="$EXTRA_KCFLAGS"
15270 EXTRA_KCFLAGS="-Werror"
15273 cat confdefs.h - <<_ACEOF >conftest.c
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15281 #include <linux/sched.h>
15282 #include <linux/fs_struct.h>
15288 struct fs_struct fs;
15289 spin_lock_init(&fs.lock);
15298 rm -Rf build && mkdir -p build
15299 echo "obj-m := conftest.o" >build/Makefile
15300 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
15312 { $as_echo "$as_me:$LINENO: result: yes" >&5
15313 $as_echo "yes" >&6; }
15315 cat >>confdefs.h <<\_ACEOF
15316 #define HAVE_FS_STRUCT_SPINLOCK 1
15321 $as_echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 { $as_echo "$as_me:$LINENO: result: no" >&5
15325 $as_echo "no" >&6; }
15334 EXTRA_KCFLAGS="$tmp_flags"
15337 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
15338 $as_echo_n "checking whether struct cred exists... " >&6; }
15341 cat confdefs.h - <<_ACEOF >conftest.c
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15349 #include <linux/cred.h>
15355 struct cred *cr __attribute__ ((unused));
15365 rm -Rf build && mkdir -p build
15366 echo "obj-m := conftest.o" >build/Makefile
15367 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
15379 { $as_echo "$as_me:$LINENO: result: yes" >&5
15380 $as_echo "yes" >&6; }
15382 cat >>confdefs.h <<\_ACEOF
15383 #define HAVE_CRED_STRUCT 1
15388 $as_echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15391 { $as_echo "$as_me:$LINENO: result: no" >&5
15392 $as_echo "no" >&6; }
15403 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
15404 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
15405 grep -q -E '[[:space:]]groups_search[[:space:]]' \
15406 $LINUX_OBJ/Module*.symvers 2>/dev/null
15408 if test $rc -ne 0; then
15411 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
15412 "$LINUX_OBJ/$file" 2>/dev/null
15414 if test $rc -eq 0; then
15419 if test $export -eq 0; then
15420 { $as_echo "$as_me:$LINENO: result: no" >&5
15421 $as_echo "no" >&6; }
15424 { $as_echo "$as_me:$LINENO: result: yes" >&5
15425 $as_echo "yes" >&6; }
15427 cat >>confdefs.h <<\_ACEOF
15428 #define HAVE_GROUPS_SEARCH 1
15433 { $as_echo "$as_me:$LINENO: result: yes" >&5
15434 $as_echo "yes" >&6; }
15436 cat >>confdefs.h <<\_ACEOF
15437 #define HAVE_GROUPS_SEARCH 1
15444 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
15445 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
15446 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
15447 $LINUX_OBJ/Module*.symvers 2>/dev/null
15449 if test $rc -ne 0; then
15452 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
15453 "$LINUX_OBJ/$file" 2>/dev/null
15455 if test $rc -eq 0; then
15460 if test $export -eq 0; then
15461 { $as_echo "$as_me:$LINENO: result: no" >&5
15462 $as_echo "no" >&6; }
15465 { $as_echo "$as_me:$LINENO: result: yes" >&5
15466 $as_echo "yes" >&6; }
15468 cat >>confdefs.h <<\_ACEOF
15469 #define HAVE_PUT_TASK_STRUCT 1
15474 { $as_echo "$as_me:$LINENO: result: yes" >&5
15475 $as_echo "yes" >&6; }
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_PUT_TASK_STRUCT 1
15485 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
15486 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
15489 cat confdefs.h - <<_ACEOF >conftest.c
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15497 #include <linux/sysctl.h>
15503 proc_dostring(NULL, 0, NULL, NULL, NULL);
15512 rm -Rf build && mkdir -p build
15513 echo "obj-m := conftest.o" >build/Makefile
15514 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521 (eval $ac_try) 2>&5
15523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); }; }; then
15526 { $as_echo "$as_me:$LINENO: result: yes" >&5
15527 $as_echo "yes" >&6; }
15529 cat >>confdefs.h <<\_ACEOF
15530 #define HAVE_5ARGS_PROC_HANDLER 1
15535 $as_echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15538 { $as_echo "$as_me:$LINENO: result: no" >&5
15539 $as_echo "no" >&6; }
15550 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
15551 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
15552 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
15553 $LINUX_OBJ/Module*.symvers 2>/dev/null
15555 if test $rc -ne 0; then
15558 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
15559 "$LINUX_OBJ/$file" 2>/dev/null
15561 if test $rc -eq 0; then
15566 if test $export -eq 0; then
15567 { $as_echo "$as_me:$LINENO: result: no" >&5
15568 $as_echo "no" >&6; }
15571 { $as_echo "$as_me:$LINENO: result: yes" >&5
15572 $as_echo "yes" >&6; }
15574 cat >>confdefs.h <<\_ACEOF
15575 #define HAVE_KVASPRINTF 1
15580 { $as_echo "$as_me:$LINENO: result: yes" >&5
15581 $as_echo "yes" >&6; }
15583 cat >>confdefs.h <<\_ACEOF
15584 #define HAVE_KVASPRINTF 1
15591 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
15592 $as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
15593 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
15594 $LINUX_OBJ/Module*.symvers 2>/dev/null
15596 if test $rc -ne 0; then
15598 for file in lib/rwsem-spinlock.c; do
15599 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
15600 "$LINUX_OBJ/$file" 2>/dev/null
15602 if test $rc -eq 0; then
15607 if test $export -eq 0; then
15608 { $as_echo "$as_me:$LINENO: result: no" >&5
15609 $as_echo "no" >&6; }
15612 { $as_echo "$as_me:$LINENO: result: yes" >&5
15613 $as_echo "yes" >&6; }
15615 cat >>confdefs.h <<\_ACEOF
15616 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15621 { $as_echo "$as_me:$LINENO: result: yes" >&5
15622 $as_echo "yes" >&6; }
15624 cat >>confdefs.h <<\_ACEOF
15625 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15632 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
15633 $as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
15634 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
15635 $LINUX_OBJ/Module*.symvers 2>/dev/null
15637 if test $rc -ne 0; then
15640 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
15641 "$LINUX_OBJ/$file" 2>/dev/null
15643 if test $rc -eq 0; then
15648 if test $export -eq 0; then
15649 { $as_echo "$as_me:$LINENO: result: no" >&5
15650 $as_echo "no" >&6; }
15653 { $as_echo "$as_me:$LINENO: result: yes" >&5
15654 $as_echo "yes" >&6; }
15656 cat >>confdefs.h <<\_ACEOF
15657 #define HAVE_INVALIDATE_INODES 1
15662 { $as_echo "$as_me:$LINENO: result: yes" >&5
15663 $as_echo "yes" >&6; }
15665 cat >>confdefs.h <<\_ACEOF
15666 #define HAVE_INVALIDATE_INODES 1
15671 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
15672 $as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
15673 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
15674 $LINUX_OBJ/Module*.symvers 2>/dev/null
15676 if test $rc -ne 0; then
15679 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
15680 "$LINUX_OBJ/$file" 2>/dev/null
15682 if test $rc -eq 0; then
15687 if test $export -eq 0; then
15688 { $as_echo "$as_me:$LINENO: result: no" >&5
15689 $as_echo "no" >&6; }
15692 { $as_echo "$as_me:$LINENO: result: yes" >&5
15693 $as_echo "yes" >&6; }
15695 cat >>confdefs.h <<\_ACEOF
15696 #define HAVE_INVALIDATE_INODES_CHECK 1
15701 { $as_echo "$as_me:$LINENO: result: yes" >&5
15702 $as_echo "yes" >&6; }
15704 cat >>confdefs.h <<\_ACEOF
15705 #define HAVE_INVALIDATE_INODES_CHECK 1
15711 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
15712 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
15715 cat confdefs.h - <<_ACEOF >conftest.c
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15723 #include <linux/fs.h>
15729 return __invalidate_device(NULL, 0);
15738 rm -Rf build && mkdir -p build
15739 echo "obj-m := conftest.o" >build/Makefile
15740 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15752 { $as_echo "$as_me:$LINENO: result: yes" >&5
15753 $as_echo "yes" >&6; }
15755 cat >>confdefs.h <<\_ACEOF
15756 #define HAVE_2ARGS_INVALIDATE_INODES 1
15761 $as_echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 { $as_echo "$as_me:$LINENO: result: no" >&5
15765 $as_echo "no" >&6; }
15776 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
15777 $as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
15778 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
15779 $LINUX_OBJ/Module*.symvers 2>/dev/null
15781 if test $rc -ne 0; then
15783 for file in fs/dcache.c; do
15784 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
15785 "$LINUX_OBJ/$file" 2>/dev/null
15787 if test $rc -eq 0; then
15792 if test $export -eq 0; then
15793 { $as_echo "$as_me:$LINENO: result: no" >&5
15794 $as_echo "no" >&6; }
15797 { $as_echo "$as_me:$LINENO: result: yes" >&5
15798 $as_echo "yes" >&6; }
15800 cat >>confdefs.h <<\_ACEOF
15801 #define HAVE_SHRINK_DCACHE_MEMORY 1
15806 { $as_echo "$as_me:$LINENO: result: yes" >&5
15807 $as_echo "yes" >&6; }
15809 cat >>confdefs.h <<\_ACEOF
15810 #define HAVE_SHRINK_DCACHE_MEMORY 1
15817 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
15818 $as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
15819 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
15820 $LINUX_OBJ/Module*.symvers 2>/dev/null
15822 if test $rc -ne 0; then
15824 for file in fs/inode.c; do
15825 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
15826 "$LINUX_OBJ/$file" 2>/dev/null
15828 if test $rc -eq 0; then
15833 if test $export -eq 0; then
15834 { $as_echo "$as_me:$LINENO: result: no" >&5
15835 $as_echo "no" >&6; }
15838 { $as_echo "$as_me:$LINENO: result: yes" >&5
15839 $as_echo "yes" >&6; }
15841 cat >>confdefs.h <<\_ACEOF
15842 #define HAVE_SHRINK_ICACHE_MEMORY 1
15847 { $as_echo "$as_me:$LINENO: result: yes" >&5
15848 $as_echo "yes" >&6; }
15850 cat >>confdefs.h <<\_ACEOF
15851 #define HAVE_SHRINK_ICACHE_MEMORY 1
15859 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
15860 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
15862 for file in include/linux/namei.h; do
15863 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
15865 if test $rc -eq 0; then
15870 if test $header -eq 0; then
15871 { $as_echo "$as_me:$LINENO: result: no" >&5
15872 $as_echo "no" >&6; }
15875 { $as_echo "$as_me:$LINENO: result: yes" >&5
15876 $as_echo "yes" >&6; }
15878 cat >>confdefs.h <<\_ACEOF
15879 #define HAVE_KERN_PATH_PARENT_HEADER 1
15886 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
15887 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
15888 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
15889 $LINUX_OBJ/Module*.symvers 2>/dev/null
15891 if test $rc -ne 0; then
15893 for file in fs/namei.c; do
15894 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
15895 "$LINUX_OBJ/$file" 2>/dev/null
15897 if test $rc -eq 0; then
15902 if test $export -eq 0; then
15903 { $as_echo "$as_me:$LINENO: result: no" >&5
15904 $as_echo "no" >&6; }
15907 { $as_echo "$as_me:$LINENO: result: yes" >&5
15908 $as_echo "yes" >&6; }
15910 cat >>confdefs.h <<\_ACEOF
15911 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
15916 { $as_echo "$as_me:$LINENO: result: yes" >&5
15917 $as_echo "yes" >&6; }
15919 cat >>confdefs.h <<\_ACEOF
15920 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
15926 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
15927 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
15930 cat confdefs.h - <<_ACEOF >conftest.c
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15938 #include <linux/zlib.h>
15944 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
15953 rm -Rf build && mkdir -p build
15954 echo "obj-m := conftest.o" >build/Makefile
15955 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15967 { $as_echo "$as_me:$LINENO: result: yes" >&5
15968 $as_echo "yes" >&6; }
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
15976 $as_echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15979 { $as_echo "$as_me:$LINENO: result: no" >&5
15980 $as_echo "no" >&6; }
15991 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
15992 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
15995 cat confdefs.h - <<_ACEOF >conftest.c
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16003 #include <linux/mm.h>
16009 struct shrink_control sc __attribute__ ((unused));
16012 sc.gfp_mask = GFP_KERNEL;
16021 rm -Rf build && mkdir -p build
16022 echo "obj-m := conftest.o" >build/Makefile
16023 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; }; then
16035 { $as_echo "$as_me:$LINENO: result: yes" >&5
16036 $as_echo "yes" >&6; }
16038 cat >>confdefs.h <<\_ACEOF
16039 #define HAVE_SHRINK_CONTROL_STRUCT 1
16044 $as_echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 { $as_echo "$as_me:$LINENO: result: no" >&5
16048 $as_echo "no" >&6; }
16059 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
16060 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
16061 tmp_flags="$EXTRA_KCFLAGS"
16062 EXTRA_KCFLAGS="-Werror"
16065 cat confdefs.h - <<_ACEOF >conftest.c
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16073 #include <linux/rwsem.h>
16079 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
16080 raw_spinlock_t dummy_lock __attribute__ ((unused));
16081 dummy_semaphore.wait_lock = dummy_lock;
16090 rm -Rf build && mkdir -p build
16091 echo "obj-m := conftest.o" >build/Makefile
16092 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16104 { $as_echo "$as_me:$LINENO: result: yes" >&5
16105 $as_echo "yes" >&6; }
16107 cat >>confdefs.h <<\_ACEOF
16108 #define RWSEM_SPINLOCK_IS_RAW 1
16113 $as_echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 { $as_echo "$as_me:$LINENO: result: no" >&5
16117 $as_echo "no" >&6; }
16126 EXTRA_KCFLAGS="$tmp_flags"
16133 # Check whether --with-linux was given.
16134 if test "${with_linux+set}" = set; then
16135 withval=$with_linux; kernelsrc="$withval"
16140 # Check whether --with-linux-obj was given.
16141 if test "${with_linux_obj+set}" = set; then
16142 withval=$with_linux_obj; kernelbuild="$withval"
16146 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16147 $as_echo_n "checking kernel source directory... " >&6; }
16148 if test -z "$kernelsrc"; then
16149 if test -e "/lib/modules/$(uname -r)/source"; then
16150 headersdir="/lib/modules/$(uname -r)/source"
16151 sourcelink=$(readlink -f "$headersdir")
16152 elif test -e "/lib/modules/$(uname -r)/build"; then
16153 headersdir="/lib/modules/$(uname -r)/build"
16154 sourcelink=$(readlink -f "$headersdir")
16156 sourcelink=$(ls -1d /usr/src/kernels/* \
16158 2>/dev/null | grep -v obj | tail -1)
16161 if test -n "$sourcelink" && test -e ${sourcelink}; then
16162 kernelsrc=`readlink -f ${sourcelink}`
16164 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16165 $as_echo "Not found" >&6; }
16166 { { $as_echo "$as_me:$LINENO: error:
16167 *** Please make sure the kernel devel package for your distribution
16168 *** is installed then try again. If that fails you can specify the
16169 *** location of the kernel source with the '--with-linux=PATH' option." >&5
16170 $as_echo "$as_me: error:
16171 *** Please make sure the kernel devel package for your distribution
16172 *** is installed then try again. If that fails you can specify the
16173 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
16174 { (exit 1); exit 1; }; }
16177 if test "$kernelsrc" = "NONE"; then
16182 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16183 $as_echo "$kernelsrc" >&6; }
16184 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16185 $as_echo_n "checking kernel build directory... " >&6; }
16186 if test -z "$kernelbuild"; then
16187 if test -e "/lib/modules/$(uname -r)/build"; then
16188 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16189 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16190 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16191 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16192 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16193 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16194 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
16196 kernelbuild=${kernelsrc}
16199 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16200 $as_echo "$kernelbuild" >&6; }
16202 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16203 $as_echo_n "checking kernel source version... " >&6; }
16204 utsrelease1=$kernelbuild/include/linux/version.h
16205 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16206 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16207 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16208 utsrelease=linux/version.h
16209 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16210 utsrelease=linux/utsrelease.h
16211 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16212 utsrelease=generated/utsrelease.h
16215 if test "$utsrelease"; then
16216 kernsrcver=`(echo "#include <$utsrelease>";
16217 echo "kernsrcver=UTS_RELEASE") |
16218 cpp -I $kernelbuild/include |
16219 grep "^kernsrcver=" | cut -d \" -f 2`
16221 if test -z "$kernsrcver"; then
16222 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16223 $as_echo "Not found" >&6; }
16224 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16225 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16226 { (exit 1); exit 1; }; }
16229 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16230 $as_echo "Not found" >&6; }
16231 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16232 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16233 { (exit 1); exit 1; }; }
16236 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16237 $as_echo "$kernsrcver" >&6; }
16240 LINUX_OBJ=${kernelbuild}
16241 LINUX_VERSION=${kernsrcver}
16248 modpost=$LINUX/scripts/Makefile.modpost
16249 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16250 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16251 if test -f "$modpost"; then
16252 if grep -q Modules.symvers $modpost; then
16253 LINUX_SYMBOLS=Modules.symvers
16255 LINUX_SYMBOLS=Module.symvers
16258 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16259 { { $as_echo "$as_me:$LINENO: error:
16260 *** Please make sure the kernel devel package for your distribution
16261 *** is installed. If your building with a custom kernel make sure the
16262 *** kernel is configured, built, and the '--with-linux=PATH' configure
16263 *** option refers to the location of the kernel source." >&5
16264 $as_echo "$as_me: error:
16265 *** Please make sure the kernel devel package for your distribution
16266 *** is installed. If your building with a custom kernel make sure the
16267 *** kernel is configured, built, and the '--with-linux=PATH' configure
16268 *** option refers to the location of the kernel source." >&2;}
16269 { (exit 1); exit 1; }; }
16274 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16275 $as_echo "$LINUX_SYMBOLS" >&6; }
16280 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16281 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16284 cat confdefs.h - <<_ACEOF >conftest.c
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16292 #include <linux/module.h>
16298 #ifndef CONFIG_PREEMPT
16299 #error CONFIG_PREEMPT not #defined
16309 rm -Rf build && mkdir -p build
16310 echo "obj-m := conftest.o" >build/Makefile
16311 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16323 { $as_echo "$as_me:$LINENO: result: yes" >&5
16324 $as_echo "yes" >&6; }
16325 { { $as_echo "$as_me:$LINENO: error:
16326 *** Kernel built with CONFIG_PREEMPT which is not supported.
16327 ** You must rebuild your kernel without this option." >&5
16328 $as_echo "$as_me: error:
16329 *** Kernel built with CONFIG_PREEMPT which is not supported.
16330 ** You must rebuild your kernel without this option." >&2;}
16331 { (exit 1); exit 1; }; }
16334 $as_echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 { $as_echo "$as_me:$LINENO: result: no" >&5
16338 $as_echo "no" >&6; }
16351 if test "${LINUX_OBJ}" != "${LINUX}"; then
16352 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16356 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
16360 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
16361 $as_echo_n "checking whether debugging is enabled... " >&6; }
16362 # Check whether --enable-debug was given.
16363 if test "${enable_debug+set}" = set; then
16364 enableval=$enable_debug;
16370 if test "x$enable_debug" = xyes; then
16372 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
16373 DEBUG_CFLAGS="-DDEBUG -Werror"
16377 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
16378 DEBUG_CFLAGS="-DNDEBUG"
16384 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
16385 $as_echo "$enable_debug" >&6; }
16388 # Check whether --enable-debug-log was given.
16389 if test "${enable_debug_log+set}" = set; then
16390 enableval=$enable_debug_log;
16392 enable_debug_log=yes
16396 if test "x$enable_debug_log" = xyes; then
16398 cat >>confdefs.h <<\_ACEOF
16399 #define DEBUG_LOG 1
16402 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG"
16406 { $as_echo "$as_me:$LINENO: checking whether basic debug logging is enabled" >&5
16407 $as_echo_n "checking whether basic debug logging is enabled... " >&6; }
16408 { $as_echo "$as_me:$LINENO: result: $enable_debug_log" >&5
16409 $as_echo "$enable_debug_log" >&6; }
16412 # Check whether --enable-debug-kmem was given.
16413 if test "${enable_debug_kmem+set}" = set; then
16414 enableval=$enable_debug_kmem;
16416 enable_debug_kmem=yes
16420 if test "x$enable_debug_kmem" = xyes; then
16422 cat >>confdefs.h <<\_ACEOF
16423 #define DEBUG_KMEM 1
16426 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
16430 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
16431 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
16432 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
16433 $as_echo "$enable_debug_kmem" >&6; }
16436 # Check whether --enable-debug-kmem-tracking was given.
16437 if test "${enable_debug_kmem_tracking+set}" = set; then
16438 enableval=$enable_debug_kmem_tracking;
16440 enable_debug_kmem_tracking=no
16444 if test "x$enable_debug_kmem_tracking" = xyes; then
16446 cat >>confdefs.h <<\_ACEOF
16447 #define DEBUG_KMEM_TRACKING 1
16450 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
16454 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
16455 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
16456 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
16457 $as_echo "$enable_debug_kmem_tracking" >&6; }
16460 # Check whether --enable-atomic-spinlocks was given.
16461 if test "${enable_atomic_spinlocks+set}" = set; then
16462 enableval=$enable_atomic_spinlocks;
16464 enable_atomic_spinlocks=check
16470 cat confdefs.h - <<_ACEOF >conftest.c
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16478 #include <asm/atomic.h>
16484 atomic64_t *ptr __attribute__ ((unused));
16493 rm -Rf build && mkdir -p build
16494 echo "obj-m := conftest.o" >build/Makefile
16495 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16507 have_atomic64_t=yes
16509 cat >>confdefs.h <<\_ACEOF
16510 #define HAVE_ATOMIC64_T 1
16515 $as_echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16528 if test "x$enable_atomic_spinlocks" = xcheck; then
16530 if test "x$have_atomic64_t" = xyes; then
16532 enable_atomic_spinlocks=no
16536 enable_atomic_spinlocks=yes
16544 if test "x$enable_atomic_spinlocks" = xyes; then
16547 cat >>confdefs.h <<\_ACEOF
16548 #define ATOMIC_SPINLOCK 1
16554 if test "x$have_atomic64_t" = xno; then
16556 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16558 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
16559 See \`config.log' for more details." >&5
16560 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
16561 See \`config.log' for more details." >&2;}
16562 { (exit 1); exit 1; }; }; }
16570 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
16571 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
16572 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
16573 $as_echo "$enable_atomic_spinlocks" >&6; }
16575 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
16576 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
16577 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
16578 $as_echo "$have_atomic64_t" >&6; }
16580 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
16581 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
16584 cat confdefs.h - <<_ACEOF >conftest.c
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16592 #include <asm/atomic.h>
16593 #include <asm/system.h>
16599 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
16608 rm -Rf build && mkdir -p build
16609 echo "obj-m := conftest.o" >build/Makefile
16610 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; }; then
16622 { $as_echo "$as_me:$LINENO: result: yes" >&5
16623 $as_echo "yes" >&6; }
16625 cat >>confdefs.h <<\_ACEOF
16626 #define HAVE_ATOMIC64_CMPXCHG 1
16631 $as_echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16634 { $as_echo "$as_me:$LINENO: result: no" >&5
16635 $as_echo "no" >&6; }
16645 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
16646 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
16649 cat confdefs.h - <<_ACEOF >conftest.c
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16657 #include <asm/atomic.h>
16663 atomic64_xchg((atomic64_t *)NULL, 0);
16672 rm -Rf build && mkdir -p build
16673 echo "obj-m := conftest.o" >build/Makefile
16674 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16686 { $as_echo "$as_me:$LINENO: result: yes" >&5
16687 $as_echo "yes" >&6; }
16689 cat >>confdefs.h <<\_ACEOF
16690 #define HAVE_ATOMIC64_XCHG 1
16695 $as_echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16698 { $as_echo "$as_me:$LINENO: result: no" >&5
16699 $as_echo "no" >&6; }
16709 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
16710 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
16713 cat confdefs.h - <<_ACEOF >conftest.c
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16721 #include <linux/types.h>
16727 uintptr_t *ptr __attribute__ ((unused));
16736 rm -Rf build && mkdir -p build
16737 echo "obj-m := conftest.o" >build/Makefile
16738 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
16750 { $as_echo "$as_me:$LINENO: result: yes" >&5
16751 $as_echo "yes" >&6; }
16753 cat >>confdefs.h <<\_ACEOF
16754 #define HAVE_UINTPTR_T 1
16759 $as_echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16762 { $as_echo "$as_me:$LINENO: result: no" >&5
16763 $as_echo "no" >&6; }
16773 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
16774 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
16777 cat confdefs.h - <<_ACEOF >conftest.c
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h. */
16785 #include <linux/workqueue.h>
16791 struct work_struct work __attribute__ ((unused));
16792 INIT_WORK(&work, NULL, NULL);
16801 rm -Rf build && mkdir -p build
16802 echo "obj-m := conftest.o" >build/Makefile
16803 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16815 { $as_echo "$as_me:$LINENO: result: yes" >&5
16816 $as_echo "yes" >&6; }
16818 cat >>confdefs.h <<\_ACEOF
16819 #define HAVE_3ARGS_INIT_WORK 1
16824 $as_echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 { $as_echo "$as_me:$LINENO: result: no" >&5
16828 $as_echo "no" >&6; }
16838 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
16839 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
16842 cat confdefs.h - <<_ACEOF >conftest.c
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16850 #include <linux/sysctl.h>
16856 (void) register_sysctl_table(NULL, 0);
16865 rm -Rf build && mkdir -p build
16866 echo "obj-m := conftest.o" >build/Makefile
16867 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16879 { $as_echo "$as_me:$LINENO: result: yes" >&5
16880 $as_echo "yes" >&6; }
16882 cat >>confdefs.h <<\_ACEOF
16883 #define HAVE_2ARGS_REGISTER_SYSCTL 1
16888 $as_echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 { $as_echo "$as_me:$LINENO: result: no" >&5
16892 $as_echo "no" >&6; }
16903 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
16904 $as_echo_n "checking whether set_shrinker() available... " >&6; }
16907 cat confdefs.h - <<_ACEOF >conftest.c
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16915 #include <linux/mm.h>
16921 return set_shrinker(DEFAULT_SEEKS, NULL);
16930 rm -Rf build && mkdir -p build
16931 echo "obj-m := conftest.o" >build/Makefile
16932 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16934 (eval $ac_try) 2>&5
16936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16944 { $as_echo "$as_me:$LINENO: result: yes" >&5
16945 $as_echo "yes" >&6; }
16947 cat >>confdefs.h <<\_ACEOF
16948 #define HAVE_SET_SHRINKER 1
16953 $as_echo "$as_me: failed program was:" >&5
16954 sed 's/^/| /' conftest.$ac_ext >&5
16956 { $as_echo "$as_me:$LINENO: result: no" >&5
16957 $as_echo "no" >&6; }
16967 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
16968 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
16969 tmp_flags="$EXTRA_KCFLAGS"
16970 EXTRA_KCFLAGS="-Werror"
16973 cat confdefs.h - <<_ACEOF >conftest.c
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16981 #include <linux/mm.h>
16983 int shrinker_cb(struct shrinker *, int, unsigned int);
16989 struct shrinker cache_shrinker = {
16990 .shrink = shrinker_cb,
16991 .seeks = DEFAULT_SEEKS,
16993 register_shrinker(&cache_shrinker);
17002 rm -Rf build && mkdir -p build
17003 echo "obj-m := conftest.o" >build/Makefile
17004 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17016 { $as_echo "$as_me:$LINENO: result: yes" >&5
17017 $as_echo "yes" >&6; }
17019 cat >>confdefs.h <<\_ACEOF
17020 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
17025 $as_echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17028 { $as_echo "$as_me:$LINENO: result: no" >&5
17029 $as_echo "no" >&6; }
17038 EXTRA_KCFLAGS="$tmp_flags"
17040 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
17041 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
17044 cat confdefs.h - <<_ACEOF >conftest.c
17047 cat confdefs.h >>conftest.$ac_ext
17048 cat >>conftest.$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17052 #include <linux/namei.h>
17058 struct nameidata nd __attribute__ ((unused));
17060 nd.path.mnt = NULL;
17061 nd.path.dentry = NULL;
17070 rm -Rf build && mkdir -p build
17071 echo "obj-m := conftest.o" >build/Makefile
17072 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17084 { $as_echo "$as_me:$LINENO: result: yes" >&5
17085 $as_echo "yes" >&6; }
17087 cat >>confdefs.h <<\_ACEOF
17088 #define HAVE_PATH_IN_NAMEIDATA 1
17093 $as_echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17096 { $as_echo "$as_me:$LINENO: result: no" >&5
17097 $as_echo "no" >&6; }
17108 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
17109 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
17110 grep -q -E '[[:space:]]task_curr[[:space:]]' \
17111 $LINUX_OBJ/Module*.symvers 2>/dev/null
17113 if test $rc -ne 0; then
17115 for file in kernel/sched.c; do
17116 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
17117 "$LINUX_OBJ/$file" 2>/dev/null
17119 if test $rc -eq 0; then
17124 if test $export -eq 0; then
17125 { $as_echo "$as_me:$LINENO: result: no" >&5
17126 $as_echo "no" >&6; }
17129 { $as_echo "$as_me:$LINENO: result: yes" >&5
17130 $as_echo "yes" >&6; }
17132 cat >>confdefs.h <<\_ACEOF
17133 #define HAVE_TASK_CURR 1
17138 { $as_echo "$as_me:$LINENO: result: yes" >&5
17139 $as_echo "yes" >&6; }
17141 cat >>confdefs.h <<\_ACEOF
17142 #define HAVE_TASK_CURR 1
17148 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
17149 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
17152 cat confdefs.h - <<_ACEOF >conftest.c
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17160 #include <linux/sysctl.h>
17166 #ifndef CTL_UNNUMBERED
17167 #error CTL_UNNUMBERED undefined
17177 rm -Rf build && mkdir -p build
17178 echo "obj-m := conftest.o" >build/Makefile
17179 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17191 { $as_echo "$as_me:$LINENO: result: yes" >&5
17192 $as_echo "yes" >&6; }
17194 cat >>confdefs.h <<\_ACEOF
17195 #define HAVE_CTL_UNNUMBERED 1
17200 $as_echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17203 { $as_echo "$as_me:$LINENO: result: no" >&5
17204 $as_echo "no" >&6; }
17215 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
17216 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
17219 cat confdefs.h - <<_ACEOF >conftest.c
17222 cat confdefs.h >>conftest.$ac_ext
17223 cat >>conftest.$ac_ext <<_ACEOF
17224 /* end confdefs.h. */
17227 #include <linux/sysctl.h>
17233 struct ctl_table ctl __attribute__ ((unused));
17243 rm -Rf build && mkdir -p build
17244 echo "obj-m := conftest.o" >build/Makefile
17245 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17257 { $as_echo "$as_me:$LINENO: result: yes" >&5
17258 $as_echo "yes" >&6; }
17260 cat >>confdefs.h <<\_ACEOF
17261 #define HAVE_CTL_NAME 1
17266 $as_echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17269 { $as_echo "$as_me:$LINENO: result: no" >&5
17270 $as_echo "no" >&6; }
17280 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
17281 $as_echo_n "checking whether fls64() is available... " >&6; }
17284 cat confdefs.h - <<_ACEOF >conftest.c
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17292 #include <linux/bitops.h>
17307 rm -Rf build && mkdir -p build
17308 echo "obj-m := conftest.o" >build/Makefile
17309 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17321 { $as_echo "$as_me:$LINENO: result: yes" >&5
17322 $as_echo "yes" >&6; }
17324 cat >>confdefs.h <<\_ACEOF
17325 #define HAVE_FLS64 1
17330 $as_echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 { $as_echo "$as_me:$LINENO: result: no" >&5
17334 $as_echo "no" >&6; }
17345 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
17346 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
17347 grep -q -E '[[:space:]]device_create[[:space:]]' \
17348 $LINUX_OBJ/Module*.symvers 2>/dev/null
17350 if test $rc -ne 0; then
17352 for file in drivers/base/core.c; do
17353 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
17354 "$LINUX_OBJ/$file" 2>/dev/null
17356 if test $rc -eq 0; then
17361 if test $export -eq 0; then
17362 { $as_echo "$as_me:$LINENO: result: no" >&5
17363 $as_echo "no" >&6; }
17366 { $as_echo "$as_me:$LINENO: result: yes" >&5
17367 $as_echo "yes" >&6; }
17369 cat >>confdefs.h <<\_ACEOF
17370 #define HAVE_DEVICE_CREATE 1
17375 { $as_echo "$as_me:$LINENO: result: yes" >&5
17376 $as_echo "yes" >&6; }
17378 cat >>confdefs.h <<\_ACEOF
17379 #define HAVE_DEVICE_CREATE 1
17386 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
17387 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
17388 tmp_flags="$EXTRA_KCFLAGS"
17389 EXTRA_KCFLAGS="-Werror"
17392 cat confdefs.h - <<_ACEOF >conftest.c
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17400 #include <linux/device.h>
17406 device_create(NULL, NULL, 0, NULL, "%d", 1);
17415 rm -Rf build && mkdir -p build
17416 echo "obj-m := conftest.o" >build/Makefile
17417 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17429 { $as_echo "$as_me:$LINENO: result: yes" >&5
17430 $as_echo "yes" >&6; }
17432 cat >>confdefs.h <<\_ACEOF
17433 #define HAVE_5ARGS_DEVICE_CREATE 1
17438 $as_echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 { $as_echo "$as_me:$LINENO: result: no" >&5
17442 $as_echo "no" >&6; }
17451 EXTRA_KCFLAGS="$tmp_flags"
17454 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
17455 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
17456 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
17457 $LINUX_OBJ/Module*.symvers 2>/dev/null
17459 if test $rc -ne 0; then
17461 for file in drivers/base/class.c; do
17462 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
17463 "$LINUX_OBJ/$file" 2>/dev/null
17465 if test $rc -eq 0; then
17470 if test $export -eq 0; then
17471 { $as_echo "$as_me:$LINENO: result: no" >&5
17472 $as_echo "no" >&6; }
17475 { $as_echo "$as_me:$LINENO: result: yes" >&5
17476 $as_echo "yes" >&6; }
17478 cat >>confdefs.h <<\_ACEOF
17479 #define HAVE_CLASS_DEVICE_CREATE 1
17484 { $as_echo "$as_me:$LINENO: result: yes" >&5
17485 $as_echo "yes" >&6; }
17487 cat >>confdefs.h <<\_ACEOF
17488 #define HAVE_CLASS_DEVICE_CREATE 1
17495 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
17496 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
17497 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
17498 $LINUX_OBJ/Module*.symvers 2>/dev/null
17500 if test $rc -ne 0; then
17502 for file in kernel/time.c; do
17503 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
17504 "$LINUX_OBJ/$file" 2>/dev/null
17506 if test $rc -eq 0; then
17511 if test $export -eq 0; then
17512 { $as_echo "$as_me:$LINENO: result: no" >&5
17513 $as_echo "no" >&6; }
17516 { $as_echo "$as_me:$LINENO: result: yes" >&5
17517 $as_echo "yes" >&6; }
17519 cat >>confdefs.h <<\_ACEOF
17520 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17525 { $as_echo "$as_me:$LINENO: result: yes" >&5
17526 $as_echo "yes" >&6; }
17528 cat >>confdefs.h <<\_ACEOF
17529 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17536 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
17537 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
17540 cat confdefs.h - <<_ACEOF >conftest.c
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17548 #include <linux/time.h>
17549 void set_normalized_timespec(struct timespec *ts,
17550 time_t sec, long nsec) { }
17563 rm -Rf build && mkdir -p build
17564 echo "obj-m := conftest.o" >build/Makefile
17565 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17577 { $as_echo "$as_me:$LINENO: result: no" >&5
17578 $as_echo "no" >&6; }
17581 $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17584 { $as_echo "$as_me:$LINENO: result: yes" >&5
17585 $as_echo "yes" >&6; }
17587 cat >>confdefs.h <<\_ACEOF
17588 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
17601 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
17602 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
17605 cat confdefs.h - <<_ACEOF >conftest.c
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17613 #include <linux/time.h>
17619 struct timespec a = { 0 };
17620 struct timespec b = { 0 };
17621 struct timespec c __attribute__ ((unused));
17622 c = timespec_sub(a, b);
17631 rm -Rf build && mkdir -p build
17632 echo "obj-m := conftest.o" >build/Makefile
17633 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17645 { $as_echo "$as_me:$LINENO: result: yes" >&5
17646 $as_echo "yes" >&6; }
17648 cat >>confdefs.h <<\_ACEOF
17649 #define HAVE_TIMESPEC_SUB 1
17654 $as_echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 { $as_echo "$as_me:$LINENO: result: no" >&5
17658 $as_echo "no" >&6; }
17669 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
17670 $as_echo_n "checking whether init_utsname() is available... " >&6; }
17673 cat confdefs.h - <<_ACEOF >conftest.c
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17681 #include <linux/utsname.h>
17687 struct new_utsname *a __attribute__ ((unused));
17688 a = init_utsname();
17697 rm -Rf build && mkdir -p build
17698 echo "obj-m := conftest.o" >build/Makefile
17699 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; }; then
17711 { $as_echo "$as_me:$LINENO: result: yes" >&5
17712 $as_echo "yes" >&6; }
17714 cat >>confdefs.h <<\_ACEOF
17715 #define HAVE_INIT_UTSNAME 1
17720 $as_echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17723 { $as_echo "$as_me:$LINENO: result: no" >&5
17724 $as_echo "no" >&6; }
17735 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
17736 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
17739 cat confdefs.h - <<_ACEOF >conftest.c
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17747 #include <linux/fdtable.h>
17762 rm -Rf build && mkdir -p build
17763 echo "obj-m := conftest.o" >build/Makefile
17764 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17777 cat >>confdefs.h <<\_ACEOF
17778 #define HAVE_FDTABLE_HEADER 1
17781 { $as_echo "$as_me:$LINENO: result: yes" >&5
17782 $as_echo "yes" >&6; }
17786 $as_echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 { $as_echo "$as_me:$LINENO: result: no" >&5
17790 $as_echo "no" >&6; }
17803 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
17804 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
17807 cat confdefs.h - <<_ACEOF >conftest.c
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17815 #include <linux/sched.h>
17816 #include <linux/file.h>
17817 #ifdef HAVE_FDTABLE_HEADER
17818 #include <linux/fdtable.h>
17825 struct files_struct *files = current->files;
17826 struct fdtable *fdt __attribute__ ((unused));
17827 fdt = files_fdtable(files);
17836 rm -Rf build && mkdir -p build
17837 echo "obj-m := conftest.o" >build/Makefile
17838 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17850 { $as_echo "$as_me:$LINENO: result: yes" >&5
17851 $as_echo "yes" >&6; }
17853 cat >>confdefs.h <<\_ACEOF
17854 #define HAVE_FILES_FDTABLE 1
17859 $as_echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 { $as_echo "$as_me:$LINENO: result: no" >&5
17863 $as_echo "no" >&6; }
17874 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
17875 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
17878 cat confdefs.h - <<_ACEOF >conftest.c
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17886 #include <linux/uaccess.h>
17901 rm -Rf build && mkdir -p build
17902 echo "obj-m := conftest.o" >build/Makefile
17903 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; }; then
17916 cat >>confdefs.h <<\_ACEOF
17917 #define HAVE_UACCESS_HEADER 1
17920 { $as_echo "$as_me:$LINENO: result: yes" >&5
17921 $as_echo "yes" >&6; }
17925 $as_echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17928 { $as_echo "$as_me:$LINENO: result: no" >&5
17929 $as_echo "no" >&6; }
17942 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
17943 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
17946 cat confdefs.h - <<_ACEOF >conftest.c
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17954 #include <linux/slab.h>
17960 void *a __attribute__ ((unused));
17961 a = kmalloc_node(1, GFP_KERNEL, 0);
17970 rm -Rf build && mkdir -p build
17971 echo "obj-m := conftest.o" >build/Makefile
17972 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17984 { $as_echo "$as_me:$LINENO: result: yes" >&5
17985 $as_echo "yes" >&6; }
17987 cat >>confdefs.h <<\_ACEOF
17988 #define HAVE_KMALLOC_NODE 1
17993 $as_echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 { $as_echo "$as_me:$LINENO: result: no" >&5
17997 $as_echo "no" >&6; }
18008 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
18009 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
18010 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
18011 $LINUX_OBJ/Module*.symvers 2>/dev/null
18013 if test $rc -ne 0; then
18016 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
18017 "$LINUX_OBJ/$file" 2>/dev/null
18019 if test $rc -eq 0; then
18024 if test $export -eq 0; then
18025 { $as_echo "$as_me:$LINENO: result: no" >&5
18026 $as_echo "no" >&6; }
18029 { $as_echo "$as_me:$LINENO: result: yes" >&5
18030 $as_echo "yes" >&6; }
18032 cat >>confdefs.h <<\_ACEOF
18033 #define HAVE_MONOTONIC_CLOCK 1
18038 { $as_echo "$as_me:$LINENO: result: yes" >&5
18039 $as_echo "yes" >&6; }
18041 cat >>confdefs.h <<\_ACEOF
18042 #define HAVE_MONOTONIC_CLOCK 1
18049 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
18050 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
18053 cat confdefs.h - <<_ACEOF >conftest.c
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18061 #include <linux/fs.h>
18062 #include <linux/mutex.h>
18069 mutex_init(&i.i_mutex);
18078 rm -Rf build && mkdir -p build
18079 echo "obj-m := conftest.o" >build/Makefile
18080 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18092 { $as_echo "$as_me:$LINENO: result: yes" >&5
18093 $as_echo "yes" >&6; }
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE_INODE_I_MUTEX 1
18101 $as_echo "$as_me: failed program was:" >&5
18102 sed 's/^/| /' conftest.$ac_ext >&5
18104 { $as_echo "$as_me:$LINENO: result: no" >&5
18105 $as_echo "no" >&6; }
18116 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
18117 $as_echo_n "checking whether struct mutex has owner... " >&6; }
18120 cat confdefs.h - <<_ACEOF >conftest.c
18123 cat confdefs.h >>conftest.$ac_ext
18124 cat >>conftest.$ac_ext <<_ACEOF
18125 /* end confdefs.h. */
18128 #include <linux/mutex.h>
18134 struct mutex mtx __attribute__ ((unused));
18144 rm -Rf build && mkdir -p build
18145 echo "obj-m := conftest.o" >build/Makefile
18146 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18158 { $as_echo "$as_me:$LINENO: result: yes" >&5
18159 $as_echo "yes" >&6; }
18161 cat >>confdefs.h <<\_ACEOF
18162 #define HAVE_MUTEX_OWNER 1
18167 $as_echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18170 { $as_echo "$as_me:$LINENO: result: no" >&5
18171 $as_echo "no" >&6; }
18182 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
18183 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
18184 tmp_flags="$EXTRA_KCFLAGS"
18185 EXTRA_KCFLAGS="-Werror"
18188 cat confdefs.h - <<_ACEOF >conftest.c
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18196 #include <linux/mutex.h>
18202 struct mutex mtx __attribute__ ((unused));
18203 mtx.owner = current;
18212 rm -Rf build && mkdir -p build
18213 echo "obj-m := conftest.o" >build/Makefile
18214 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
18226 { $as_echo "$as_me:$LINENO: result: yes" >&5
18227 $as_echo "yes" >&6; }
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE_MUTEX_OWNER_TASK_STRUCT 1
18235 $as_echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 { $as_echo "$as_me:$LINENO: result: no" >&5
18239 $as_echo "no" >&6; }
18248 EXTRA_KCFLAGS="$tmp_flags"
18251 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
18252 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
18255 cat confdefs.h - <<_ACEOF >conftest.c
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18263 #include <linux/mutex.h>
18269 struct mutex mutex;
18270 mutex_init(&mutex);
18271 mutex_lock_nested(&mutex, 0);
18280 rm -Rf build && mkdir -p build
18281 echo "obj-m := conftest.o" >build/Makefile
18282 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18294 { $as_echo "$as_me:$LINENO: result: yes" >&5
18295 $as_echo "yes" >&6; }
18297 cat >>confdefs.h <<\_ACEOF
18298 #define HAVE_MUTEX_LOCK_NESTED 1
18303 $as_echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 { $as_echo "$as_me:$LINENO: result: no" >&5
18307 $as_echo "no" >&6; }
18318 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
18319 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
18322 cat confdefs.h - <<_ACEOF >conftest.c
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18330 #include <linux/smp.h>
18336 on_each_cpu(NULL, NULL, 0);
18345 rm -Rf build && mkdir -p build
18346 echo "obj-m := conftest.o" >build/Makefile
18347 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
18359 { $as_echo "$as_me:$LINENO: result: yes" >&5
18360 $as_echo "yes" >&6; }
18362 cat >>confdefs.h <<\_ACEOF
18363 #define HAVE_3ARGS_ON_EACH_CPU 1
18368 $as_echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18371 { $as_echo "$as_me:$LINENO: result: no" >&5
18372 $as_echo "no" >&6; }
18383 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
18384 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
18385 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
18386 $LINUX_OBJ/Module*.symvers 2>/dev/null
18388 if test $rc -ne 0; then
18391 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
18392 "$LINUX_OBJ/$file" 2>/dev/null
18394 if test $rc -eq 0; then
18399 if test $export -eq 0; then
18400 { $as_echo "$as_me:$LINENO: result: no" >&5
18401 $as_echo "no" >&6; }
18404 { $as_echo "$as_me:$LINENO: result: yes" >&5
18405 $as_echo "yes" >&6; }
18407 cat >>confdefs.h <<\_ACEOF
18408 #define HAVE_KALLSYMS_LOOKUP_NAME 1
18413 { $as_echo "$as_me:$LINENO: result: yes" >&5
18414 $as_echo "yes" >&6; }
18416 cat >>confdefs.h <<\_ACEOF
18417 #define HAVE_KALLSYMS_LOOKUP_NAME 1
18424 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
18425 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
18426 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
18427 $LINUX_OBJ/Module*.symvers 2>/dev/null
18429 if test $rc -ne 0; then
18432 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
18433 "$LINUX_OBJ/$file" 2>/dev/null
18435 if test $rc -eq 0; then
18440 if test $export -eq 0; then
18441 { $as_echo "$as_me:$LINENO: result: no" >&5
18442 $as_echo "no" >&6; }
18445 { $as_echo "$as_me:$LINENO: result: yes" >&5
18446 $as_echo "yes" >&6; }
18448 cat >>confdefs.h <<\_ACEOF
18449 #define HAVE_GET_VMALLOC_INFO 1
18454 { $as_echo "$as_me:$LINENO: result: yes" >&5
18455 $as_echo "yes" >&6; }
18457 cat >>confdefs.h <<\_ACEOF
18458 #define HAVE_GET_VMALLOC_INFO 1
18465 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
18466 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
18467 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
18469 if test $rc -eq 0; then
18470 { $as_echo "$as_me:$LINENO: result: yes" >&5
18471 $as_echo "yes" >&6; }
18473 cat >>confdefs.h <<\_ACEOF
18474 #define HAVE_PGDAT_HELPERS 1
18478 { $as_echo "$as_me:$LINENO: result: no" >&5
18479 $as_echo "no" >&6; }
18483 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
18484 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
18485 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
18486 $LINUX_OBJ/Module*.symvers 2>/dev/null
18488 if test $rc -ne 0; then
18491 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
18492 "$LINUX_OBJ/$file" 2>/dev/null
18494 if test $rc -eq 0; then
18499 if test $export -eq 0; then
18500 { $as_echo "$as_me:$LINENO: result: no" >&5
18501 $as_echo "no" >&6; }
18504 { $as_echo "$as_me:$LINENO: result: yes" >&5
18505 $as_echo "yes" >&6; }
18507 cat >>confdefs.h <<\_ACEOF
18508 #define HAVE_FIRST_ONLINE_PGDAT 1
18513 { $as_echo "$as_me:$LINENO: result: yes" >&5
18514 $as_echo "yes" >&6; }
18516 cat >>confdefs.h <<\_ACEOF
18517 #define HAVE_FIRST_ONLINE_PGDAT 1
18524 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
18525 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
18526 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
18527 $LINUX_OBJ/Module*.symvers 2>/dev/null
18529 if test $rc -ne 0; then
18532 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
18533 "$LINUX_OBJ/$file" 2>/dev/null
18535 if test $rc -eq 0; then
18540 if test $export -eq 0; then
18541 { $as_echo "$as_me:$LINENO: result: no" >&5
18542 $as_echo "no" >&6; }
18545 { $as_echo "$as_me:$LINENO: result: yes" >&5
18546 $as_echo "yes" >&6; }
18548 cat >>confdefs.h <<\_ACEOF
18549 #define HAVE_NEXT_ONLINE_PGDAT 1
18554 { $as_echo "$as_me:$LINENO: result: yes" >&5
18555 $as_echo "yes" >&6; }
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE_NEXT_ONLINE_PGDAT 1
18565 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
18566 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
18567 grep -q -E '[[:space:]]next_zone[[:space:]]' \
18568 $LINUX_OBJ/Module*.symvers 2>/dev/null
18570 if test $rc -ne 0; then
18573 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
18574 "$LINUX_OBJ/$file" 2>/dev/null
18576 if test $rc -eq 0; then
18581 if test $export -eq 0; then
18582 { $as_echo "$as_me:$LINENO: result: no" >&5
18583 $as_echo "no" >&6; }
18586 { $as_echo "$as_me:$LINENO: result: yes" >&5
18587 $as_echo "yes" >&6; }
18589 cat >>confdefs.h <<\_ACEOF
18590 #define HAVE_NEXT_ZONE 1
18595 { $as_echo "$as_me:$LINENO: result: yes" >&5
18596 $as_echo "yes" >&6; }
18598 cat >>confdefs.h <<\_ACEOF
18599 #define HAVE_NEXT_ZONE 1
18606 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
18607 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
18608 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
18609 $LINUX_OBJ/Module*.symvers 2>/dev/null
18611 if test $rc -ne 0; then
18614 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
18615 "$LINUX_OBJ/$file" 2>/dev/null
18617 if test $rc -eq 0; then
18622 if test $export -eq 0; then
18623 { $as_echo "$as_me:$LINENO: result: no" >&5
18624 $as_echo "no" >&6; }
18627 { $as_echo "$as_me:$LINENO: result: yes" >&5
18628 $as_echo "yes" >&6; }
18630 cat >>confdefs.h <<\_ACEOF
18631 #define HAVE_PGDAT_LIST 1
18636 { $as_echo "$as_me:$LINENO: result: yes" >&5
18637 $as_echo "yes" >&6; }
18639 cat >>confdefs.h <<\_ACEOF
18640 #define HAVE_PGDAT_LIST 1
18647 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
18648 $as_echo_n "checking whether global_page_state() is available... " >&6; }
18651 cat confdefs.h - <<_ACEOF >conftest.c
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18659 #include <linux/mm.h>
18665 unsigned long state __attribute__ ((unused));
18666 state = global_page_state(0);
18675 rm -Rf build && mkdir -p build
18676 echo "obj-m := conftest.o" >build/Makefile
18677 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
18686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; }; then
18689 { $as_echo "$as_me:$LINENO: result: yes" >&5
18690 $as_echo "yes" >&6; }
18692 cat >>confdefs.h <<\_ACEOF
18693 #define HAVE_GLOBAL_PAGE_STATE 1
18698 $as_echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18701 { $as_echo "$as_me:$LINENO: result: no" >&5
18702 $as_echo "no" >&6; }
18713 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
18714 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
18717 cat confdefs.h - <<_ACEOF >conftest.c
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18725 #include <linux/mm.h>
18731 enum zone_stat_item zsi __attribute__ ((unused));
18732 zsi = NR_FREE_PAGES;
18741 rm -Rf build && mkdir -p build
18742 echo "obj-m := conftest.o" >build/Makefile
18743 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
18755 { $as_echo "$as_me:$LINENO: result: yes" >&5
18756 $as_echo "yes" >&6; }
18758 cat >>confdefs.h <<\_ACEOF
18759 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
18764 $as_echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18767 { $as_echo "$as_me:$LINENO: result: no" >&5
18768 $as_echo "no" >&6; }
18779 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
18780 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
18783 cat confdefs.h - <<_ACEOF >conftest.c
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18791 #include <linux/mm.h>
18797 enum zone_stat_item zsi __attribute__ ((unused));
18807 rm -Rf build && mkdir -p build
18808 echo "obj-m := conftest.o" >build/Makefile
18809 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816 (eval $ac_try) 2>&5
18818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18821 { $as_echo "$as_me:$LINENO: result: yes" >&5
18822 $as_echo "yes" >&6; }
18824 cat >>confdefs.h <<\_ACEOF
18825 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
18830 $as_echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18833 { $as_echo "$as_me:$LINENO: result: no" >&5
18834 $as_echo "no" >&6; }
18844 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
18845 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
18848 cat confdefs.h - <<_ACEOF >conftest.c
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h. */
18856 #include <linux/mm.h>
18862 enum zone_stat_item zsi __attribute__ ((unused));
18863 zsi = NR_INACTIVE_ANON;
18872 rm -Rf build && mkdir -p build
18873 echo "obj-m := conftest.o" >build/Makefile
18874 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18876 (eval $ac_try) 2>&5
18878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18886 { $as_echo "$as_me:$LINENO: result: yes" >&5
18887 $as_echo "yes" >&6; }
18889 cat >>confdefs.h <<\_ACEOF
18890 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
18895 $as_echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18898 { $as_echo "$as_me:$LINENO: result: no" >&5
18899 $as_echo "no" >&6; }
18909 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
18910 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
18913 cat confdefs.h - <<_ACEOF >conftest.c
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18921 #include <linux/mm.h>
18927 enum zone_stat_item zsi __attribute__ ((unused));
18928 zsi = NR_INACTIVE_FILE;
18937 rm -Rf build && mkdir -p build
18938 echo "obj-m := conftest.o" >build/Makefile
18939 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; }; then
18951 { $as_echo "$as_me:$LINENO: result: yes" >&5
18952 $as_echo "yes" >&6; }
18954 cat >>confdefs.h <<\_ACEOF
18955 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
18960 $as_echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18963 { $as_echo "$as_me:$LINENO: result: no" >&5
18964 $as_echo "no" >&6; }
18975 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
18976 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
18979 cat confdefs.h - <<_ACEOF >conftest.c
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18987 #include <linux/mm.h>
18993 enum zone_stat_item zsi __attribute__ ((unused));
19003 rm -Rf build && mkdir -p build
19004 echo "obj-m := conftest.o" >build/Makefile
19005 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19017 { $as_echo "$as_me:$LINENO: result: yes" >&5
19018 $as_echo "yes" >&6; }
19020 cat >>confdefs.h <<\_ACEOF
19021 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
19026 $as_echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19029 { $as_echo "$as_me:$LINENO: result: no" >&5
19030 $as_echo "no" >&6; }
19040 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
19041 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
19044 cat confdefs.h - <<_ACEOF >conftest.c
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19052 #include <linux/mm.h>
19058 enum zone_stat_item zsi __attribute__ ((unused));
19059 zsi = NR_ACTIVE_ANON;
19068 rm -Rf build && mkdir -p build
19069 echo "obj-m := conftest.o" >build/Makefile
19070 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19082 { $as_echo "$as_me:$LINENO: result: yes" >&5
19083 $as_echo "yes" >&6; }
19085 cat >>confdefs.h <<\_ACEOF
19086 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
19091 $as_echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19094 { $as_echo "$as_me:$LINENO: result: no" >&5
19095 $as_echo "no" >&6; }
19105 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
19106 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
19109 cat confdefs.h - <<_ACEOF >conftest.c
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19117 #include <linux/mm.h>
19123 enum zone_stat_item zsi __attribute__ ((unused));
19124 zsi = NR_ACTIVE_FILE;
19133 rm -Rf build && mkdir -p build
19134 echo "obj-m := conftest.o" >build/Makefile
19135 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19147 { $as_echo "$as_me:$LINENO: result: yes" >&5
19148 $as_echo "yes" >&6; }
19150 cat >>confdefs.h <<\_ACEOF
19151 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
19156 $as_echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19159 { $as_echo "$as_me:$LINENO: result: no" >&5
19160 $as_echo "no" >&6; }
19171 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
19172 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
19175 cat confdefs.h - <<_ACEOF >conftest.c
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19188 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
19189 #error "global_page_state needs NR_FREE_PAGES"
19192 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
19193 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
19194 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
19195 #error "global_page_state needs NR_ACTIVE*"
19198 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
19199 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
19200 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
19201 #error "global_page_state needs NR_INACTIVE*"
19211 rm -Rf build && mkdir -p build
19212 echo "obj-m := conftest.o" >build/Makefile
19213 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19225 { $as_echo "$as_me:$LINENO: result: no" >&5
19226 $as_echo "no" >&6; }
19229 $as_echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 { $as_echo "$as_me:$LINENO: result: yes" >&5
19233 $as_echo "yes" >&6; }
19235 cat >>confdefs.h <<\_ACEOF
19236 #define NEED_GET_ZONE_COUNTS 1
19240 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
19241 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
19242 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
19243 $LINUX_OBJ/Module*.symvers 2>/dev/null
19245 if test $rc -ne 0; then
19248 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
19249 "$LINUX_OBJ/$file" 2>/dev/null
19251 if test $rc -eq 0; then
19256 if test $export -eq 0; then
19257 { $as_echo "$as_me:$LINENO: result: no" >&5
19258 $as_echo "no" >&6; }
19261 { $as_echo "$as_me:$LINENO: result: yes" >&5
19262 $as_echo "yes" >&6; }
19264 cat >>confdefs.h <<\_ACEOF
19265 #define HAVE_GET_ZONE_COUNTS 1
19270 { $as_echo "$as_me:$LINENO: result: yes" >&5
19271 $as_echo "yes" >&6; }
19273 cat >>confdefs.h <<\_ACEOF
19274 #define HAVE_GET_ZONE_COUNTS 1
19289 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
19290 $as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
19291 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
19292 $LINUX_OBJ/Module*.symvers 2>/dev/null
19294 if test $rc -ne 0; then
19297 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
19298 "$LINUX_OBJ/$file" 2>/dev/null
19300 if test $rc -eq 0; then
19305 if test $export -eq 0; then
19306 { $as_echo "$as_me:$LINENO: result: no" >&5
19307 $as_echo "no" >&6; }
19310 { $as_echo "$as_me:$LINENO: result: yes" >&5
19311 $as_echo "yes" >&6; }
19313 cat >>confdefs.h <<\_ACEOF
19314 #define HAVE_USER_PATH_DIR 1
19319 { $as_echo "$as_me:$LINENO: result: yes" >&5
19320 $as_echo "yes" >&6; }
19322 cat >>confdefs.h <<\_ACEOF
19323 #define HAVE_USER_PATH_DIR 1
19330 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
19331 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
19332 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
19333 $LINUX_OBJ/Module*.symvers 2>/dev/null
19335 if test $rc -ne 0; then
19338 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
19339 "$LINUX_OBJ/$file" 2>/dev/null
19341 if test $rc -eq 0; then
19346 if test $export -eq 0; then
19347 { $as_echo "$as_me:$LINENO: result: no" >&5
19348 $as_echo "no" >&6; }
19351 { $as_echo "$as_me:$LINENO: result: yes" >&5
19352 $as_echo "yes" >&6; }
19354 cat >>confdefs.h <<\_ACEOF
19355 #define HAVE_SET_FS_PWD 1
19360 { $as_echo "$as_me:$LINENO: result: yes" >&5
19361 $as_echo "yes" >&6; }
19363 cat >>confdefs.h <<\_ACEOF
19364 #define HAVE_SET_FS_PWD 1
19370 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
19371 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
19374 cat confdefs.h - <<_ACEOF >conftest.c
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19382 #include <linux/sched.h>
19383 #include <linux/fs_struct.h>
19389 set_fs_pwd(NULL, NULL);
19398 rm -Rf build && mkdir -p build
19399 echo "obj-m := conftest.o" >build/Makefile
19400 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19412 { $as_echo "$as_me:$LINENO: result: yes" >&5
19413 $as_echo "yes" >&6; }
19415 cat >>confdefs.h <<\_ACEOF
19416 #define HAVE_2ARGS_SET_FS_PWD 1
19421 $as_echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 { $as_echo "$as_me:$LINENO: result: no" >&5
19425 $as_echo "no" >&6; }
19435 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
19436 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&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/fs.h>
19453 vfs_unlink(NULL, NULL);
19462 rm -Rf build && mkdir -p build
19463 echo "obj-m := conftest.o" >build/Makefile
19464 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; }; then
19476 { $as_echo "$as_me:$LINENO: result: yes" >&5
19477 $as_echo "yes" >&6; }
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_2ARGS_VFS_UNLINK 1
19485 $as_echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19488 { $as_echo "$as_me:$LINENO: result: no" >&5
19489 $as_echo "no" >&6; }
19499 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
19500 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
19503 cat confdefs.h - <<_ACEOF >conftest.c
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h. */
19511 #include <linux/fs.h>
19517 vfs_rename(NULL, NULL, NULL, NULL);
19526 rm -Rf build && mkdir -p build
19527 echo "obj-m := conftest.o" >build/Makefile
19528 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
19540 { $as_echo "$as_me:$LINENO: result: yes" >&5
19541 $as_echo "yes" >&6; }
19543 cat >>confdefs.h <<\_ACEOF
19544 #define HAVE_4ARGS_VFS_RENAME 1
19549 $as_echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19552 { $as_echo "$as_me:$LINENO: result: no" >&5
19553 $as_echo "no" >&6; }
19564 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
19565 $as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
19566 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
19567 $LINUX_OBJ/Module*.symvers 2>/dev/null
19569 if test $rc -ne 0; then
19571 for file in fs/sync.c; do
19572 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
19573 "$LINUX_OBJ/$file" 2>/dev/null
19575 if test $rc -eq 0; then
19580 if test $export -eq 0; then
19581 { $as_echo "$as_me:$LINENO: result: no" >&5
19582 $as_echo "no" >&6; }
19585 { $as_echo "$as_me:$LINENO: result: yes" >&5
19586 $as_echo "yes" >&6; }
19588 cat >>confdefs.h <<\_ACEOF
19589 #define HAVE_VFS_FSYNC 1
19594 { $as_echo "$as_me:$LINENO: result: yes" >&5
19595 $as_echo "yes" >&6; }
19597 cat >>confdefs.h <<\_ACEOF
19598 #define HAVE_VFS_FSYNC 1
19605 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
19606 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
19609 cat confdefs.h - <<_ACEOF >conftest.c
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19617 #include <linux/fs.h>
19623 vfs_fsync(NULL, 0);
19632 rm -Rf build && mkdir -p build
19633 echo "obj-m := conftest.o" >build/Makefile
19634 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19646 { $as_echo "$as_me:$LINENO: result: yes" >&5
19647 $as_echo "yes" >&6; }
19649 cat >>confdefs.h <<\_ACEOF
19650 #define HAVE_2ARGS_VFS_FSYNC 1
19655 $as_echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 { $as_echo "$as_me:$LINENO: result: no" >&5
19659 $as_echo "no" >&6; }
19670 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
19671 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
19672 tmp_flags="$EXTRA_KCFLAGS"
19673 EXTRA_KCFLAGS="-Werror"
19676 cat confdefs.h - <<_ACEOF >conftest.c
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19684 #include <linux/sched.h>
19685 #include <linux/fs_struct.h>
19691 struct fs_struct fs;
19692 spin_lock_init(&fs.lock);
19701 rm -Rf build && mkdir -p build
19702 echo "obj-m := conftest.o" >build/Makefile
19703 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19715 { $as_echo "$as_me:$LINENO: result: yes" >&5
19716 $as_echo "yes" >&6; }
19718 cat >>confdefs.h <<\_ACEOF
19719 #define HAVE_FS_STRUCT_SPINLOCK 1
19724 $as_echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.$ac_ext >&5
19727 { $as_echo "$as_me:$LINENO: result: no" >&5
19728 $as_echo "no" >&6; }
19737 EXTRA_KCFLAGS="$tmp_flags"
19740 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
19741 $as_echo_n "checking whether struct cred exists... " >&6; }
19744 cat confdefs.h - <<_ACEOF >conftest.c
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19752 #include <linux/cred.h>
19758 struct cred *cr __attribute__ ((unused));
19768 rm -Rf build && mkdir -p build
19769 echo "obj-m := conftest.o" >build/Makefile
19770 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19782 { $as_echo "$as_me:$LINENO: result: yes" >&5
19783 $as_echo "yes" >&6; }
19785 cat >>confdefs.h <<\_ACEOF
19786 #define HAVE_CRED_STRUCT 1
19791 $as_echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19794 { $as_echo "$as_me:$LINENO: result: no" >&5
19795 $as_echo "no" >&6; }
19806 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
19807 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
19808 grep -q -E '[[:space:]]groups_search[[:space:]]' \
19809 $LINUX_OBJ/Module*.symvers 2>/dev/null
19811 if test $rc -ne 0; then
19814 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
19815 "$LINUX_OBJ/$file" 2>/dev/null
19817 if test $rc -eq 0; then
19822 if test $export -eq 0; then
19823 { $as_echo "$as_me:$LINENO: result: no" >&5
19824 $as_echo "no" >&6; }
19827 { $as_echo "$as_me:$LINENO: result: yes" >&5
19828 $as_echo "yes" >&6; }
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_GROUPS_SEARCH 1
19836 { $as_echo "$as_me:$LINENO: result: yes" >&5
19837 $as_echo "yes" >&6; }
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE_GROUPS_SEARCH 1
19847 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
19848 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
19849 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
19850 $LINUX_OBJ/Module*.symvers 2>/dev/null
19852 if test $rc -ne 0; then
19855 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
19856 "$LINUX_OBJ/$file" 2>/dev/null
19858 if test $rc -eq 0; then
19863 if test $export -eq 0; then
19864 { $as_echo "$as_me:$LINENO: result: no" >&5
19865 $as_echo "no" >&6; }
19868 { $as_echo "$as_me:$LINENO: result: yes" >&5
19869 $as_echo "yes" >&6; }
19871 cat >>confdefs.h <<\_ACEOF
19872 #define HAVE_PUT_TASK_STRUCT 1
19877 { $as_echo "$as_me:$LINENO: result: yes" >&5
19878 $as_echo "yes" >&6; }
19880 cat >>confdefs.h <<\_ACEOF
19881 #define HAVE_PUT_TASK_STRUCT 1
19888 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
19889 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
19892 cat confdefs.h - <<_ACEOF >conftest.c
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19900 #include <linux/sysctl.h>
19906 proc_dostring(NULL, 0, NULL, NULL, NULL);
19915 rm -Rf build && mkdir -p build
19916 echo "obj-m := conftest.o" >build/Makefile
19917 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19929 { $as_echo "$as_me:$LINENO: result: yes" >&5
19930 $as_echo "yes" >&6; }
19932 cat >>confdefs.h <<\_ACEOF
19933 #define HAVE_5ARGS_PROC_HANDLER 1
19938 $as_echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19941 { $as_echo "$as_me:$LINENO: result: no" >&5
19942 $as_echo "no" >&6; }
19953 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
19954 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
19955 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
19956 $LINUX_OBJ/Module*.symvers 2>/dev/null
19958 if test $rc -ne 0; then
19961 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
19962 "$LINUX_OBJ/$file" 2>/dev/null
19964 if test $rc -eq 0; then
19969 if test $export -eq 0; then
19970 { $as_echo "$as_me:$LINENO: result: no" >&5
19971 $as_echo "no" >&6; }
19974 { $as_echo "$as_me:$LINENO: result: yes" >&5
19975 $as_echo "yes" >&6; }
19977 cat >>confdefs.h <<\_ACEOF
19978 #define HAVE_KVASPRINTF 1
19983 { $as_echo "$as_me:$LINENO: result: yes" >&5
19984 $as_echo "yes" >&6; }
19986 cat >>confdefs.h <<\_ACEOF
19987 #define HAVE_KVASPRINTF 1
19994 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
19995 $as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
19996 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
19997 $LINUX_OBJ/Module*.symvers 2>/dev/null
19999 if test $rc -ne 0; then
20001 for file in lib/rwsem-spinlock.c; do
20002 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
20003 "$LINUX_OBJ/$file" 2>/dev/null
20005 if test $rc -eq 0; then
20010 if test $export -eq 0; then
20011 { $as_echo "$as_me:$LINENO: result: no" >&5
20012 $as_echo "no" >&6; }
20015 { $as_echo "$as_me:$LINENO: result: yes" >&5
20016 $as_echo "yes" >&6; }
20018 cat >>confdefs.h <<\_ACEOF
20019 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
20024 { $as_echo "$as_me:$LINENO: result: yes" >&5
20025 $as_echo "yes" >&6; }
20027 cat >>confdefs.h <<\_ACEOF
20028 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
20035 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
20036 $as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
20037 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
20038 $LINUX_OBJ/Module*.symvers 2>/dev/null
20040 if test $rc -ne 0; then
20043 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
20044 "$LINUX_OBJ/$file" 2>/dev/null
20046 if test $rc -eq 0; then
20051 if test $export -eq 0; then
20052 { $as_echo "$as_me:$LINENO: result: no" >&5
20053 $as_echo "no" >&6; }
20056 { $as_echo "$as_me:$LINENO: result: yes" >&5
20057 $as_echo "yes" >&6; }
20059 cat >>confdefs.h <<\_ACEOF
20060 #define HAVE_INVALIDATE_INODES 1
20065 { $as_echo "$as_me:$LINENO: result: yes" >&5
20066 $as_echo "yes" >&6; }
20068 cat >>confdefs.h <<\_ACEOF
20069 #define HAVE_INVALIDATE_INODES 1
20074 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
20075 $as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
20076 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
20077 $LINUX_OBJ/Module*.symvers 2>/dev/null
20079 if test $rc -ne 0; then
20082 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
20083 "$LINUX_OBJ/$file" 2>/dev/null
20085 if test $rc -eq 0; then
20090 if test $export -eq 0; then
20091 { $as_echo "$as_me:$LINENO: result: no" >&5
20092 $as_echo "no" >&6; }
20095 { $as_echo "$as_me:$LINENO: result: yes" >&5
20096 $as_echo "yes" >&6; }
20098 cat >>confdefs.h <<\_ACEOF
20099 #define HAVE_INVALIDATE_INODES_CHECK 1
20104 { $as_echo "$as_me:$LINENO: result: yes" >&5
20105 $as_echo "yes" >&6; }
20107 cat >>confdefs.h <<\_ACEOF
20108 #define HAVE_INVALIDATE_INODES_CHECK 1
20114 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
20115 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
20118 cat confdefs.h - <<_ACEOF >conftest.c
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20126 #include <linux/fs.h>
20132 return __invalidate_device(NULL, 0);
20141 rm -Rf build && mkdir -p build
20142 echo "obj-m := conftest.o" >build/Makefile
20143 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20155 { $as_echo "$as_me:$LINENO: result: yes" >&5
20156 $as_echo "yes" >&6; }
20158 cat >>confdefs.h <<\_ACEOF
20159 #define HAVE_2ARGS_INVALIDATE_INODES 1
20164 $as_echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 { $as_echo "$as_me:$LINENO: result: no" >&5
20168 $as_echo "no" >&6; }
20179 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
20180 $as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
20181 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
20182 $LINUX_OBJ/Module*.symvers 2>/dev/null
20184 if test $rc -ne 0; then
20186 for file in fs/dcache.c; do
20187 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
20188 "$LINUX_OBJ/$file" 2>/dev/null
20190 if test $rc -eq 0; then
20195 if test $export -eq 0; then
20196 { $as_echo "$as_me:$LINENO: result: no" >&5
20197 $as_echo "no" >&6; }
20200 { $as_echo "$as_me:$LINENO: result: yes" >&5
20201 $as_echo "yes" >&6; }
20203 cat >>confdefs.h <<\_ACEOF
20204 #define HAVE_SHRINK_DCACHE_MEMORY 1
20209 { $as_echo "$as_me:$LINENO: result: yes" >&5
20210 $as_echo "yes" >&6; }
20212 cat >>confdefs.h <<\_ACEOF
20213 #define HAVE_SHRINK_DCACHE_MEMORY 1
20220 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
20221 $as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
20222 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
20223 $LINUX_OBJ/Module*.symvers 2>/dev/null
20225 if test $rc -ne 0; then
20227 for file in fs/inode.c; do
20228 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
20229 "$LINUX_OBJ/$file" 2>/dev/null
20231 if test $rc -eq 0; then
20236 if test $export -eq 0; then
20237 { $as_echo "$as_me:$LINENO: result: no" >&5
20238 $as_echo "no" >&6; }
20241 { $as_echo "$as_me:$LINENO: result: yes" >&5
20242 $as_echo "yes" >&6; }
20244 cat >>confdefs.h <<\_ACEOF
20245 #define HAVE_SHRINK_ICACHE_MEMORY 1
20250 { $as_echo "$as_me:$LINENO: result: yes" >&5
20251 $as_echo "yes" >&6; }
20253 cat >>confdefs.h <<\_ACEOF
20254 #define HAVE_SHRINK_ICACHE_MEMORY 1
20262 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
20263 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
20265 for file in include/linux/namei.h; do
20266 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
20268 if test $rc -eq 0; then
20273 if test $header -eq 0; then
20274 { $as_echo "$as_me:$LINENO: result: no" >&5
20275 $as_echo "no" >&6; }
20278 { $as_echo "$as_me:$LINENO: result: yes" >&5
20279 $as_echo "yes" >&6; }
20281 cat >>confdefs.h <<\_ACEOF
20282 #define HAVE_KERN_PATH_PARENT_HEADER 1
20289 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
20290 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
20291 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
20292 $LINUX_OBJ/Module*.symvers 2>/dev/null
20294 if test $rc -ne 0; then
20296 for file in fs/namei.c; do
20297 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
20298 "$LINUX_OBJ/$file" 2>/dev/null
20300 if test $rc -eq 0; then
20305 if test $export -eq 0; then
20306 { $as_echo "$as_me:$LINENO: result: no" >&5
20307 $as_echo "no" >&6; }
20310 { $as_echo "$as_me:$LINENO: result: yes" >&5
20311 $as_echo "yes" >&6; }
20313 cat >>confdefs.h <<\_ACEOF
20314 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
20319 { $as_echo "$as_me:$LINENO: result: yes" >&5
20320 $as_echo "yes" >&6; }
20322 cat >>confdefs.h <<\_ACEOF
20323 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
20329 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
20330 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
20333 cat confdefs.h - <<_ACEOF >conftest.c
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20341 #include <linux/zlib.h>
20347 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
20356 rm -Rf build && mkdir -p build
20357 echo "obj-m := conftest.o" >build/Makefile
20358 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20370 { $as_echo "$as_me:$LINENO: result: yes" >&5
20371 $as_echo "yes" >&6; }
20373 cat >>confdefs.h <<\_ACEOF
20374 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
20379 $as_echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 { $as_echo "$as_me:$LINENO: result: no" >&5
20383 $as_echo "no" >&6; }
20394 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
20395 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
20398 cat confdefs.h - <<_ACEOF >conftest.c
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20406 #include <linux/mm.h>
20412 struct shrink_control sc __attribute__ ((unused));
20415 sc.gfp_mask = GFP_KERNEL;
20424 rm -Rf build && mkdir -p build
20425 echo "obj-m := conftest.o" >build/Makefile
20426 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20438 { $as_echo "$as_me:$LINENO: result: yes" >&5
20439 $as_echo "yes" >&6; }
20441 cat >>confdefs.h <<\_ACEOF
20442 #define HAVE_SHRINK_CONTROL_STRUCT 1
20447 $as_echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 { $as_echo "$as_me:$LINENO: result: no" >&5
20451 $as_echo "no" >&6; }
20462 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
20463 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
20464 tmp_flags="$EXTRA_KCFLAGS"
20465 EXTRA_KCFLAGS="-Werror"
20468 cat confdefs.h - <<_ACEOF >conftest.c
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20476 #include <linux/rwsem.h>
20482 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
20483 raw_spinlock_t dummy_lock __attribute__ ((unused));
20484 dummy_semaphore.wait_lock = dummy_lock;
20493 rm -Rf build && mkdir -p build
20494 echo "obj-m := conftest.o" >build/Makefile
20495 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20507 { $as_echo "$as_me:$LINENO: result: yes" >&5
20508 $as_echo "yes" >&6; }
20510 cat >>confdefs.h <<\_ACEOF
20511 #define RWSEM_SPINLOCK_IS_RAW 1
20516 $as_echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20519 { $as_echo "$as_me:$LINENO: result: no" >&5
20520 $as_echo "no" >&6; }
20529 EXTRA_KCFLAGS="$tmp_flags"
20535 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20536 $as_echo "Error!" >&6; }
20537 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
20538 user kernel|user|all|srpm" >&5
20539 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
20540 user kernel|user|all|srpm" >&2;}
20541 { (exit 1); exit 1; }; } ;;
20544 if test "$SPL_CONFIG" = user ||
20545 test "$SPL_CONFIG" = all; then
20547 CONFIG_USER_FALSE='#'
20549 CONFIG_USER_TRUE='#'
20553 if test "$SPL_CONFIG" = kernel ||
20554 test "$SPL_CONFIG" = all; then
20555 CONFIG_KERNEL_TRUE=
20556 CONFIG_KERNEL_FALSE='#'
20558 CONFIG_KERNEL_TRUE='#'
20559 CONFIG_KERNEL_FALSE=
20564 ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec spl-modules.spec PKGBUILD-spl PKGBUILD-spl-modules"
20567 cat >confcache <<\_ACEOF
20568 # This file is a shell script that caches the results of configure
20569 # tests run on this system so they can be shared between configure
20570 # scripts and configure runs, see configure's option --config-cache.
20571 # It is not useful on other systems. If it contains results you don't
20572 # want to keep, you may remove or edit it.
20574 # config.status only pays attention to the cache file if you give it
20575 # the --recheck option to rerun configure.
20577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20579 # following values.
20583 # The following way of writing the cache mishandles newlines in values,
20584 # but we know of no workaround that is simple, portable, and efficient.
20585 # So, we kill variables containing newlines.
20586 # Ultrix sh set writes to stderr and can't be redirected directly,
20587 # and sets the high bit in the cache file unless we assign to the vars.
20589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20590 eval ac_val=\$$ac_var
20594 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20598 _ | IFS | as_nl) ;; #(
20599 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20600 *) $as_unset $ac_var ;;
20606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20607 *${as_nl}ac_space=\ *)
20608 # `set' does not quote correctly, so add quotes (double-quote
20609 # substitution turns \\\\ into \\, and sed turns \\ into \).
20612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20615 # `set' quotes correctly as required by POSIX, so do not add quotes.
20616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20629 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20630 if test -w "$cache_file"; then
20631 test "x$cache_file" != "x/dev/null" &&
20632 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20633 $as_echo "$as_me: updating cache $cache_file" >&6;}
20634 cat confcache >$cache_file
20636 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20637 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20642 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20643 # Let make expand exec_prefix.
20644 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20646 DEFS=-DHAVE_CONFIG_H
20650 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20651 # 1. Remove the extension, and $U if already installed.
20652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20655 # will be set to the directory where LIBOBJS objects are built.
20656 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20657 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20659 LIBOBJS=$ac_libobjs
20661 LTLIBOBJS=$ac_ltlibobjs
20664 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20665 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20666 Usually this means the macro was only invoked conditionally." >&5
20667 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20668 Usually this means the macro was only invoked conditionally." >&2;}
20669 { (exit 1); exit 1; }; }
20671 if test -n "$EXEEXT"; then
20673 am__EXEEXT_FALSE='#'
20675 am__EXEEXT_TRUE='#'
20679 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20680 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20681 Usually this means the macro was only invoked conditionally." >&5
20682 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20683 Usually this means the macro was only invoked conditionally." >&2;}
20684 { (exit 1); exit 1; }; }
20686 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20687 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20688 Usually this means the macro was only invoked conditionally." >&5
20689 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20690 Usually this means the macro was only invoked conditionally." >&2;}
20691 { (exit 1); exit 1; }; }
20693 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20694 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20695 Usually this means the macro was only invoked conditionally." >&5
20696 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20697 Usually this means the macro was only invoked conditionally." >&2;}
20698 { (exit 1); exit 1; }; }
20700 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20701 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20702 Usually this means the macro was only invoked conditionally." >&5
20703 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20704 Usually this means the macro was only invoked conditionally." >&2;}
20705 { (exit 1); exit 1; }; }
20708 : ${CONFIG_STATUS=./config.status}
20710 ac_clean_files_save=$ac_clean_files
20711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20712 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20714 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20716 # Generated by $as_me.
20717 # Run this file to recreate the current configuration.
20718 # Compiler output produced by configure, useful for debugging
20719 # configure, is in config.log if it exists.
20722 ac_cs_recheck=false
20724 SHELL=\${CONFIG_SHELL-$SHELL}
20727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20728 ## --------------------- ##
20729 ## M4sh Initialization. ##
20730 ## --------------------- ##
20732 # Be more Bourne compatible
20733 DUALCASE=1; export DUALCASE # for MKS sh
20734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20738 # is contrary to our usage. Disable this feature.
20739 alias -g '${1+"$@"}'='"$@"'
20740 setopt NO_GLOB_SUBST
20742 case `(set -o) 2>/dev/null` in
20743 *posix*) set -o posix ;;
20752 # Avoid depending upon Character Ranges.
20753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20756 as_cr_digits='0123456789'
20757 as_cr_alnum=$as_cr_Letters$as_cr_digits
20762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20766 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20767 as_echo='printf %s\n'
20768 as_echo_n='printf %s'
20770 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20771 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20772 as_echo_n='/usr/ucb/echo -n'
20774 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20775 as_echo_n_body='eval
20779 expr "X$arg" : "X\\(.*\\)$as_nl";
20780 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20782 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20784 export as_echo_n_body
20785 as_echo_n='sh -c $as_echo_n_body as_echo'
20787 export as_echo_body
20788 as_echo='sh -c $as_echo_body as_echo'
20791 # The user is always right.
20792 if test "${PATH_SEPARATOR+set}" != set; then
20794 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20795 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20800 # Support unset when possible.
20801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20809 # We need space, tab and new line, in precisely that order. Quoting is
20810 # there to prevent editors from complaining about space-tab.
20811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20812 # splitting by setting IFS to empty value.)
20815 # Find who we are. Look in the path if we contain no directory separator.
20817 *[\\/]* ) as_myself=$0 ;;
20818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20819 for as_dir in $PATH
20822 test -z "$as_dir" && as_dir=.
20823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20829 # We did not find ourselves, most probably we were run as `sh COMMAND'
20830 # in which case we are not to be found in the path.
20831 if test "x$as_myself" = x; then
20834 if test ! -f "$as_myself"; then
20835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20836 { (exit 1); exit 1; }
20839 # Work around bugs in pre-3.0 UWIN ksh.
20840 for as_var in ENV MAIL MAILPATH
20841 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20853 # Required to use basename.
20854 if expr a : '\(a\)' >/dev/null 2>&1 &&
20855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20862 as_basename=basename
20868 # Name of the executable.
20869 as_me=`$as_basename -- "$0" ||
20870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20871 X"$0" : 'X\(//\)$' \| \
20872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20874 sed '/^.*\/\([^/][^/]*\)\/*$/{
20893 as_lineno_1=$LINENO
20894 as_lineno_2=$LINENO
20895 test "x$as_lineno_1" != "x$as_lineno_2" &&
20896 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20898 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20899 # uniformly replaced by the line number. The first 'sed' inserts a
20900 # line-number line after each line using $LINENO; the second 'sed'
20901 # does the real work. The second script uses 'N' to pair each
20902 # line-number line with the line containing $LINENO, and appends
20903 # trailing '-' during substitution so that $LINENO is not a special
20904 # case at line end.
20905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20906 # scripts with optimization help from Paolo Bonzini. Blame Lee
20907 # E. McMahon (1931-1989) for sed's syntax. :-)
20919 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20922 ' >$as_me.lineno &&
20923 chmod +x "$as_me.lineno" ||
20924 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20925 { (exit 1); exit 1; }; }
20927 # Don't try to exec as it changes $[0], causing all sort of problems
20928 # (the dirname of $[0] is not the place where we might find the
20929 # original and so on. Autoconf is especially sensitive to this).
20930 . "./$as_me.lineno"
20931 # Exit status is that of the last command.
20936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20942 ECHO_C= ECHO_N= ECHO_T=
20943 case `echo -n x` in
20945 case `echo 'x\c'` in
20946 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20952 if expr a : '\(a\)' >/dev/null 2>&1 &&
20953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20959 rm -f conf$$ conf$$.exe conf$$.file
20960 if test -d conf$$.dir; then
20961 rm -f conf$$.dir/conf$$.file
20964 mkdir conf$$.dir 2>/dev/null
20966 if (echo >conf$$.file) 2>/dev/null; then
20967 if ln -s conf$$.file conf$$ 2>/dev/null; then
20969 # ... but there are two gotchas:
20970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20972 # In both cases, we have to default to `cp -p'.
20973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20975 elif ln conf$$.file conf$$ 2>/dev/null; then
20983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20984 rmdir conf$$.dir 2>/dev/null
20986 if mkdir -p . 2>/dev/null; then
20989 test -d ./-p && rmdir ./-p
20993 if test -x / >/dev/null 2>&1; then
20994 as_test_x='test -x'
20996 if ls -dL / >/dev/null 2>&1; then
21003 if test -d "$1"; then
21009 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21010 ???[sx]*):;;*)false;;esac;fi
21014 as_executable_p=$as_test_x
21016 # Sed expression to map a string onto a valid CPP name.
21017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21019 # Sed expression to map a string onto a valid variable name.
21020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21025 # Save the log message, to keep $[0] and so on meaningful, and to
21026 # report actual input values of CONFIG_FILES etc. instead of their
21027 # values after options handling.
21029 This file was extended by $as_me, which was
21030 generated by GNU Autoconf 2.63. Invocation command line was
21032 CONFIG_FILES = $CONFIG_FILES
21033 CONFIG_HEADERS = $CONFIG_HEADERS
21034 CONFIG_LINKS = $CONFIG_LINKS
21035 CONFIG_COMMANDS = $CONFIG_COMMANDS
21038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21043 case $ac_config_files in *"
21044 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21047 case $ac_config_headers in *"
21048 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21053 # Files that config.status was made for.
21054 config_files="$ac_config_files"
21055 config_headers="$ac_config_headers"
21056 config_commands="$ac_config_commands"
21060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21062 \`$as_me' instantiates files from templates according to the
21063 current configuration.
21065 Usage: $0 [OPTION]... [FILE]...
21067 -h, --help print this help, then exit
21068 -V, --version print version number and configuration settings, then exit
21069 -q, --quiet, --silent
21070 do not print progress messages
21071 -d, --debug don't remove temporary files
21072 --recheck update $as_me by reconfiguring in the same conditions
21073 --file=FILE[:TEMPLATE]
21074 instantiate the configuration file FILE
21075 --header=FILE[:TEMPLATE]
21076 instantiate the configuration header FILE
21078 Configuration files:
21081 Configuration headers:
21084 Configuration commands:
21087 Report bugs to <bug-autoconf@gnu.org>."
21090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21093 configured by $0, generated by GNU Autoconf 2.63,
21094 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21096 Copyright (C) 2008 Free Software Foundation, Inc.
21097 This config.status script is free software; the Free Software Foundation
21098 gives unlimited permission to copy, distribute and modify it."
21105 test -n "\$AWK" || AWK=awk
21108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21109 # The default lists apply if the user does not specify any file.
21115 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21116 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21127 # Handling of the options.
21128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21130 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21131 $as_echo "$ac_cs_version"; exit ;;
21132 --debug | --debu | --deb | --de | --d | -d )
21134 --file | --fil | --fi | --f )
21137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21139 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21140 ac_need_defaults=false;;
21141 --header | --heade | --head | --hea )
21144 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21146 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21147 ac_need_defaults=false;;
21149 # Conflict between --help and --header
21150 { $as_echo "$as_me: error: ambiguous option: $1
21151 Try \`$0 --help' for more information." >&2
21152 { (exit 1); exit 1; }; };;
21153 --help | --hel | -h )
21154 $as_echo "$ac_cs_usage"; exit ;;
21155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21156 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21159 # This is an error.
21160 -*) { $as_echo "$as_me: error: unrecognized option: $1
21161 Try \`$0 --help' for more information." >&2
21162 { (exit 1); exit 1; }; } ;;
21164 *) ac_config_targets="$ac_config_targets $1"
21165 ac_need_defaults=false ;;
21171 ac_configure_extra_args=
21173 if $ac_cs_silent; then
21175 ac_configure_extra_args="$ac_configure_extra_args --silent"
21179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21180 if \$ac_cs_recheck; then
21181 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21183 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21184 CONFIG_SHELL='$SHELL'
21185 export CONFIG_SHELL
21190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21195 ## Running $as_me. ##
21201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21205 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21208 # The HP-UX ksh and POSIX shell print the target directory to stdout
21209 # if CDPATH is set.
21210 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21212 sed_quote_subst='$sed_quote_subst'
21213 double_quote_subst='$double_quote_subst'
21214 delay_variable_subst='$delay_variable_subst'
21215 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21216 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21217 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21218 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21219 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21220 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21221 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21222 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21223 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21224 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21225 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21226 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21227 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21228 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21229 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21230 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21231 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21232 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21233 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21234 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21235 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21236 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21237 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21238 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21239 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21240 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21241 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21242 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21243 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21244 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21245 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21246 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21247 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21248 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21249 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21250 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21251 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21252 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21253 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21254 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21255 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21256 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21257 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21258 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21259 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"`'
21260 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"`'
21261 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21262 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21263 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21264 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21265 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21266 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21267 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21268 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21269 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21270 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21271 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21272 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21273 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21274 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21275 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21276 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21277 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21278 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21279 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21280 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21281 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21282 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21283 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21284 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21285 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21286 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21287 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21288 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21289 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21290 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21291 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21292 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21293 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21294 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21295 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21296 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21297 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21298 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21299 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21300 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21301 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21302 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21303 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21304 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21305 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21306 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21307 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21308 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21309 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21310 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21311 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21312 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21313 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21314 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21315 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21316 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21317 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21318 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21319 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21320 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21321 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21322 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21323 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21324 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21325 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21326 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21327 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21328 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21329 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21330 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21331 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21332 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21335 LTCFLAGS='$LTCFLAGS'
21336 compiler='$compiler_DEFAULT'
21338 # Quote evaled strings.
21350 deplibs_check_method \
21359 lt_cv_sys_global_symbol_pipe \
21360 lt_cv_sys_global_symbol_to_cdecl \
21361 lt_cv_sys_global_symbol_to_c_name_address \
21362 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21365 lt_prog_compiler_no_builtin_flag \
21366 lt_prog_compiler_wl \
21367 lt_prog_compiler_pic \
21368 lt_prog_compiler_static \
21369 lt_cv_prog_compiler_c_o \
21377 export_dynamic_flag_spec \
21378 whole_archive_flag_spec \
21379 compiler_needs_object \
21381 allow_undefined_flag \
21382 no_undefined_flag \
21383 hardcode_libdir_flag_spec \
21384 hardcode_libdir_flag_spec_ld \
21385 hardcode_libdir_separator \
21390 variables_saved_for_relink \
21392 library_names_spec \
21397 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21398 *[\\\\\\\`\\"\\\$]*)
21399 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21402 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21407 # Double-quote double-evaled strings.
21408 for var in reload_cmds \
21409 old_postinstall_cmds \
21410 old_postuninstall_cmds \
21412 extract_expsyms_cmds \
21413 old_archive_from_new_cmds \
21414 old_archive_from_expsyms_cmds \
21416 archive_expsym_cmds \
21418 module_expsym_cmds \
21419 export_symbols_cmds \
21422 postuninstall_cmds \
21424 sys_lib_search_path_spec \
21425 sys_lib_dlsearch_path_spec; do
21426 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21427 *[\\\\\\\`\\"\\\$]*)
21428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21436 # Fix-up fallback echo if it was mangled by the above quoting rules.
21438 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21442 ac_aux_dir='$ac_aux_dir'
21443 xsi_shell='$xsi_shell'
21444 lt_shell_append='$lt_shell_append'
21446 # See if we are running on zsh, and set the options which allow our
21447 # commands through without removal of \ escapes INIT.
21448 if test -n "\${ZSH_VERSION+set}" ; then
21449 setopt NO_GLOB_SUBST
21455 TIMESTAMP='$TIMESTAMP'
21464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21466 # Handling of arguments.
21467 for ac_config_target in $ac_config_targets
21469 case $ac_config_target in
21470 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21471 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21472 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21473 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21474 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21475 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21476 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21477 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21478 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21479 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21480 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21481 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21482 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
21483 "PKGBUILD-spl") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl" ;;
21484 "PKGBUILD-spl-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl-modules" ;;
21486 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21487 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21488 { (exit 1); exit 1; }; };;
21493 # If the user did not use the arguments to specify the items to instantiate,
21494 # then the envvar interface is used. Set only those that are not.
21495 # We use the long form for the default assignment because of an extremely
21496 # bizarre bug on SunOS 4.1.3.
21497 if $ac_need_defaults; then
21498 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21499 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21500 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21503 # Have a temporary directory for convenience. Make it in the build tree
21504 # simply because there is no reason against having it here, and in addition,
21505 # creating and moving files from /tmp can sometimes cause problems.
21506 # Hook for its removal unless debugging.
21507 # Note that there is a small window in which the directory will not be cleaned:
21508 # after its creation but before its name has been assigned to `$tmp'.
21512 trap 'exit_status=$?
21513 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21515 trap '{ (exit 1); exit 1; }' 1 2 13 15
21517 # Create a (secure) tmp directory for tmp files.
21520 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21521 test -n "$tmp" && test -d "$tmp"
21524 tmp=./conf$$-$RANDOM
21525 (umask 077 && mkdir "$tmp")
21528 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21529 { (exit 1); exit 1; }
21532 # Set up the scripts for CONFIG_FILES section.
21533 # No need to generate them if there are no CONFIG_FILES.
21534 # This happens for instance with `./config.status config.h'.
21535 if test -n "$CONFIG_FILES"; then
21539 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21540 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21543 ac_cs_awk_cr=$ac_cr
21546 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21551 echo "cat >conf$$subs.awk <<_ACEOF" &&
21552 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21554 } >conf$$subs.sh ||
21555 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21556 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21557 { (exit 1); exit 1; }; }
21558 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21560 for ac_last_try in false false false false false :; do
21561 . ./conf$$subs.sh ||
21562 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21563 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21564 { (exit 1); exit 1; }; }
21566 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21567 if test $ac_delim_n = $ac_delim_num; then
21569 elif $ac_last_try; then
21570 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21571 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21572 { (exit 1); exit 1; }; }
21574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21577 rm -f conf$$subs.sh
21579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21580 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21584 s/^/S["/; s/!.*/"]=/
21594 s/\(.\{148\}\).*/\1/
21596 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21601 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21608 s/\(.\{148\}\).*/\1/
21610 s/["\\]/\\&/g; s/^/"/; s/$/"/
21614 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21619 ' <conf$$subs.awk | sed '
21624 ' >>$CONFIG_STATUS || ac_write_fail=1
21625 rm -f conf$$subs.awk
21626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21628 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21629 for (key in S) S_is_set[key] = 1
21635 nfields = split(line, field, "@")
21637 len = length(field[1])
21638 for (i = 2; i < nfields; i++) {
21640 keylen = length(key)
21641 if (S_is_set[key]) {
21643 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21644 len += length(value) + length(field[++i])
21655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21656 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21657 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21660 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21661 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21662 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21663 { (exit 1); exit 1; }; }
21666 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21667 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21668 # trailing colons and then remove the whole line if VPATH becomes empty
21669 # (actually we leave an empty line to preserve line numbers).
21670 if test "x$srcdir" = x.; then
21671 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21672 s/:*\$(srcdir):*/:/
21673 s/:*\${srcdir}:*/:/
21675 s/^\([^=]*=[ ]*\):*/\1/
21681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21682 fi # test -n "$CONFIG_FILES"
21684 # Set up the scripts for CONFIG_HEADERS section.
21685 # No need to generate them if there are no CONFIG_HEADERS.
21686 # This happens for instance with `./config.status Makefile'.
21687 if test -n "$CONFIG_HEADERS"; then
21688 cat >"$tmp/defines.awk" <<\_ACAWK ||
21692 # Transform confdefs.h into an awk script `defines.awk', embedded as
21693 # here-document in config.status, that substitutes the proper values into
21694 # config.h.in to produce config.h.
21696 # Create a delimiter string that does not exist in confdefs.h, to ease
21697 # handling of long lines.
21699 for ac_last_try in false false :; do
21700 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21701 if test -z "$ac_t"; then
21703 elif $ac_last_try; then
21704 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21705 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21706 { (exit 1); exit 1; }; }
21708 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21712 # For the awk script, D is an array of macro values keyed by name,
21713 # likewise P contains macro parameters if any. Preserve backslash
21714 # newline sequences.
21716 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21718 s/.\{148\}/&'"$ac_delim"'/g
21721 s/^[ ]*#[ ]*define[ ][ ]*/ /
21728 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21730 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21734 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21735 D["\1"]=" \3\\\\\\n"\\/p
21737 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21742 s/.\{148\}/&'"$ac_delim"'/g
21747 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21750 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21752 ' <confdefs.h | sed '
21753 s/'"$ac_delim"'/"\\\
21754 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21757 for (key in D) D_is_set[key] = 1
21760 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21762 split(line, arg, " ")
21763 if (arg[1] == "#") {
21767 defundef = substr(arg[1], 2)
21770 split(mac1, mac2, "(") #)
21772 prefix = substr(line, 1, index(line, defundef) - 1)
21773 if (D_is_set[macro]) {
21774 # Preserve the white space surrounding the "#".
21775 print prefix "define", macro P[macro] D[macro]
21778 # Replace #undef with comments. This is necessary, for example,
21779 # in the case of _POSIX_SOURCE, which is predefined and required
21780 # on some systems where configure will not decide to define it.
21781 if (defundef == "undef") {
21782 print "/*", prefix defundef, macro, "*/"
21790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21791 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21792 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21793 { (exit 1); exit 1; }; }
21794 fi # test -n "$CONFIG_HEADERS"
21797 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21802 :[FHLC]) ac_mode=$ac_tag; continue;;
21804 case $ac_mode$ac_tag in
21806 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21807 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21808 { (exit 1); exit 1; }; };;
21809 :[FH]-) ac_tag=-:-;;
21810 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21827 -) ac_f="$tmp/stdin";;
21828 *) # Look for the file first in the build tree, then in the source tree
21829 # (if the path is not absolute). The absolute path cannot be DOS-style,
21830 # because $ac_f cannot contain `:'.
21834 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21836 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21837 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21838 { (exit 1); exit 1; }; };;
21840 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21841 ac_file_inputs="$ac_file_inputs '$ac_f'"
21844 # Let's still pretend it is `configure' which instantiates (i.e., don't
21845 # use $as_me), people would be surprised to read:
21846 # /* config.h. Generated by config.status. */
21847 configure_input='Generated from '`
21848 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21850 if test x"$ac_file" != x-; then
21851 configure_input="$ac_file. $configure_input"
21852 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21853 $as_echo "$as_me: creating $ac_file" >&6;}
21855 # Neutralize special characters interpreted by sed in replacement strings.
21856 case $configure_input in #(
21857 *\&* | *\|* | *\\* )
21858 ac_sed_conf_input=`$as_echo "$configure_input" |
21859 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21860 *) ac_sed_conf_input=$configure_input;;
21864 *:-:* | *:-) cat >"$tmp/stdin" \
21865 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21866 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21867 { (exit 1); exit 1; }; } ;;
21872 ac_dir=`$as_dirname -- "$ac_file" ||
21873 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21874 X"$ac_file" : 'X\(//\)[^/]' \| \
21875 X"$ac_file" : 'X\(//\)$' \| \
21876 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21877 $as_echo X"$ac_file" |
21878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21882 /^X\(\/\/\)[^/].*/{
21897 -*) as_dir=./$as_dir;;
21899 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21903 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21904 *) as_qdir=$as_dir;;
21906 as_dirs="'$as_qdir' $as_dirs"
21907 as_dir=`$as_dirname -- "$as_dir" ||
21908 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21909 X"$as_dir" : 'X\(//\)[^/]' \| \
21910 X"$as_dir" : 'X\(//\)$' \| \
21911 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21912 $as_echo X"$as_dir" |
21913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21917 /^X\(\/\/\)[^/].*/{
21930 test -d "$as_dir" && break
21932 test -z "$as_dirs" || eval "mkdir $as_dirs"
21933 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21934 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21935 { (exit 1); exit 1; }; }; }
21939 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21942 # A ".." for each directory in $ac_dir_suffix.
21943 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21944 case $ac_top_builddir_sub in
21945 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21946 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21949 ac_abs_top_builddir=$ac_pwd
21950 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21951 # for backward compatibility:
21952 ac_top_builddir=$ac_top_build_prefix
21955 .) # We are building in place.
21957 ac_top_srcdir=$ac_top_builddir_sub
21958 ac_abs_top_srcdir=$ac_pwd ;;
21959 [\\/]* | ?:[\\/]* ) # Absolute name.
21960 ac_srcdir=$srcdir$ac_dir_suffix;
21961 ac_top_srcdir=$srcdir
21962 ac_abs_top_srcdir=$srcdir ;;
21963 *) # Relative name.
21964 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21965 ac_top_srcdir=$ac_top_build_prefix$srcdir
21966 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21968 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21978 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21979 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21981 ac_MKDIR_P=$MKDIR_P
21983 [\\/$]* | ?:[\\/]* ) ;;
21984 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21989 # If the template does not know about datarootdir, expand it.
21990 # FIXME: This hack should be removed a few years after 2.60.
21991 ac_datarootdir_hack=; ac_datarootdir_seen=
22004 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22005 *datarootdir*) ac_datarootdir_seen=yes;;
22006 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22007 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22008 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22011 ac_datarootdir_hack='
22012 s&@datadir@&$datadir&g
22013 s&@docdir@&$docdir&g
22014 s&@infodir@&$infodir&g
22015 s&@localedir@&$localedir&g
22016 s&@mandir@&$mandir&g
22017 s&\\\${datarootdir}&$datarootdir&g' ;;
22021 # Neutralize VPATH when `$srcdir' = `.'.
22022 # Shell code in configure.ac might set extrasub.
22023 # FIXME: do we really want to maintain this feature?
22024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22025 ac_sed_extra="$ac_vpsub
22028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22031 s|@configure_input@|$ac_sed_conf_input|;t t
22032 s&@top_builddir@&$ac_top_builddir_sub&;t t
22033 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22034 s&@srcdir@&$ac_srcdir&;t t
22035 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22036 s&@top_srcdir@&$ac_top_srcdir&;t t
22037 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22038 s&@builddir@&$ac_builddir&;t t
22039 s&@abs_builddir@&$ac_abs_builddir&;t t
22040 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22041 s&@INSTALL@&$ac_INSTALL&;t t
22042 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22043 $ac_datarootdir_hack
22045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22046 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22047 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22048 { (exit 1); exit 1; }; }
22050 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22051 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22053 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22054 which seems to be undefined. Please make sure it is defined." >&5
22055 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22056 which seems to be undefined. Please make sure it is defined." >&2;}
22060 -) cat "$tmp/out" && rm -f "$tmp/out";;
22061 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22063 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22064 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22065 { (exit 1); exit 1; }; }
22071 if test x"$ac_file" != x-; then
22073 $as_echo "/* $configure_input */" \
22074 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22075 } >"$tmp/config.h" \
22076 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22077 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22078 { (exit 1); exit 1; }; }
22079 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22080 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22081 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22084 mv "$tmp/config.h" "$ac_file" \
22085 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22086 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22087 { (exit 1); exit 1; }; }
22090 $as_echo "/* $configure_input */" \
22091 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22092 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22093 $as_echo "$as_me: error: could not create -" >&2;}
22094 { (exit 1); exit 1; }; }
22096 # Compute "$ac_file"'s index in $config_headers.
22099 for _am_header in $config_headers :; do
22100 case $_am_header in
22101 $_am_arg | $_am_arg:* )
22104 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22107 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22108 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22109 X"$_am_arg" : 'X\(//\)[^/]' \| \
22110 X"$_am_arg" : 'X\(//\)$' \| \
22111 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22112 $as_echo X"$_am_arg" |
22113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22117 /^X\(\/\/\)[^/].*/{
22129 s/.*/./; q'`/stamp-h$_am_stamp_count
22132 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22133 $as_echo "$as_me: executing $ac_file commands" >&6;}
22138 case $ac_file$ac_mode in
22140 (mv spl_config.h spl_config.h.tmp &&
22141 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
22142 rm spl_config.h.tmp) || exit 1 ;;
22143 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22144 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22145 # are listed without --file. Let's play safe and only enable the eval
22146 # if we detect the quoting.
22147 case $CONFIG_FILES in
22148 *\'*) eval set x "$CONFIG_FILES" ;;
22149 *) set x $CONFIG_FILES ;;
22154 # Strip MF so we end up with the name of the file.
22155 mf=`echo "$mf" | sed -e 's/:.*$//'`
22156 # Check whether this is an Automake generated Makefile or not.
22157 # We used to match only the files named `Makefile.in', but
22158 # some people rename them; so instead we look at the file content.
22159 # Grep'ing the first line is not enough: some people post-process
22160 # each Makefile.in and add a new line on top of each file to say so.
22161 # Grep'ing the whole file is not good either: AIX grep has a line
22162 # limit of 2048, but all sed's we know have understand at least 4000.
22163 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22164 dirpart=`$as_dirname -- "$mf" ||
22165 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22166 X"$mf" : 'X\(//\)[^/]' \| \
22167 X"$mf" : 'X\(//\)$' \| \
22168 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22174 /^X\(\/\/\)[^/].*/{
22190 # Extract the definition of DEPDIR, am__include, and am__quote
22191 # from the Makefile without running `make'.
22192 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22193 test -z "$DEPDIR" && continue
22194 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22195 test -z "am__include" && continue
22196 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22197 # When using ansi2knr, U may be empty or an underscore; expand it
22198 U=`sed -n 's/^U = //p' < "$mf"`
22199 # Find all dependency output files, they are included files with
22200 # $(DEPDIR) in their names. We invoke sed twice because it is the
22201 # simplest approach to changing $(DEPDIR) to its actual value in the
22203 for file in `sed -n "
22204 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22205 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22206 # Make sure the directory exists.
22207 test -f "$dirpart/$file" && continue
22208 fdir=`$as_dirname -- "$file" ||
22209 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22210 X"$file" : 'X\(//\)[^/]' \| \
22211 X"$file" : 'X\(//\)$' \| \
22212 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22213 $as_echo X"$file" |
22214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22218 /^X\(\/\/\)[^/].*/{
22231 { as_dir=$dirpart/$fdir
22233 -*) as_dir=./$as_dir;;
22235 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22239 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22240 *) as_qdir=$as_dir;;
22242 as_dirs="'$as_qdir' $as_dirs"
22243 as_dir=`$as_dirname -- "$as_dir" ||
22244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22245 X"$as_dir" : 'X\(//\)[^/]' \| \
22246 X"$as_dir" : 'X\(//\)$' \| \
22247 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22248 $as_echo X"$as_dir" |
22249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22253 /^X\(\/\/\)[^/].*/{
22266 test -d "$as_dir" && break
22268 test -z "$as_dirs" || eval "mkdir $as_dirs"
22269 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22270 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22271 { (exit 1); exit 1; }; }; }
22272 # echo "creating $dirpart/$file"
22273 echo '# dummy' > "$dirpart/$file"
22280 # See if we are running on zsh, and set the options which allow our
22281 # commands through without removal of \ escapes.
22282 if test -n "${ZSH_VERSION+set}" ; then
22283 setopt NO_GLOB_SUBST
22286 cfgfile="${ofile}T"
22287 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22290 cat <<_LT_EOF >> "$cfgfile"
22293 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22294 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22295 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22296 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22298 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22299 # 2006, 2007, 2008 Free Software Foundation, Inc.
22300 # Written by Gordon Matzigkeit, 1996
22302 # This file is part of GNU Libtool.
22304 # GNU Libtool is free software; you can redistribute it and/or
22305 # modify it under the terms of the GNU General Public License as
22306 # published by the Free Software Foundation; either version 2 of
22307 # the License, or (at your option) any later version.
22309 # As a special exception to the GNU General Public License,
22310 # if you distribute this file as part of a program or library that
22311 # is built using GNU Libtool, you may include this file under the
22312 # same distribution terms that you use for the rest of that program.
22314 # GNU Libtool is distributed in the hope that it will be useful,
22315 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22316 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22317 # GNU General Public License for more details.
22319 # You should have received a copy of the GNU General Public License
22320 # along with GNU Libtool; see the file COPYING. If not, a copy
22321 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22322 # obtained by writing to the Free Software Foundation, Inc.,
22323 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22326 # The names of the tagged configurations supported by this script.
22329 # ### BEGIN LIBTOOL CONFIG
22331 # Which release of libtool.m4 was used?
22332 macro_version=$macro_version
22333 macro_revision=$macro_revision
22335 # Whether or not to build shared libraries.
22336 build_libtool_libs=$enable_shared
22338 # Whether or not to build static libraries.
22339 build_old_libs=$enable_static
22341 # What type of objects to build.
22344 # Whether or not to optimize for fast installation.
22345 fast_install=$enable_fast_install
22348 host_alias=$host_alias
22352 # The build system.
22353 build_alias=$build_alias
22357 # A sed program that does not truncate output.
22360 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22361 Xsed="\$SED -e 1s/^X//"
22363 # A grep program that handles long lines.
22369 # A literal string matcher.
22372 # A BSD- or MS-compatible name lister.
22375 # Whether we need soft or hard links.
22378 # What is the maximum length of a command?
22379 max_cmd_len=$max_cmd_len
22381 # Object file suffix (normally "o").
22384 # Executable file suffix (normally "").
22387 # whether the shell understands "unset".
22390 # turn spaces into newlines.
22393 # turn newlines into spaces.
22396 # How to create reloadable object files.
22397 reload_flag=$lt_reload_flag
22398 reload_cmds=$lt_reload_cmds
22400 # An object symbol dumper.
22401 OBJDUMP=$lt_OBJDUMP
22403 # Method to check whether dependent libraries are shared objects.
22404 deplibs_check_method=$lt_deplibs_check_method
22406 # Command to use when deplibs_check_method == "file_magic".
22407 file_magic_cmd=$lt_file_magic_cmd
22411 AR_FLAGS=$lt_AR_FLAGS
22413 # A symbol stripping program.
22416 # Commands used to install an old-style archive.
22418 old_postinstall_cmds=$lt_old_postinstall_cmds
22419 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22424 # LTCC compiler flags.
22425 LTCFLAGS=$lt_CFLAGS
22427 # Take the output of nm and produce a listing of raw symbols and C names.
22428 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22430 # Transform the output of nm in a proper C declaration.
22431 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22433 # Transform the output of nm in a C name address pair.
22434 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22436 # Transform the output of nm in a C name address pair when lib prefix is needed.
22437 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22439 # The name of the directory that contains temporary libtool files.
22442 # Shell to use when invoking shell scripts.
22445 # An echo program that does not interpret backslashes.
22448 # Used to examine libraries when file_magic_cmd begins with "file".
22449 MAGIC_CMD=$MAGIC_CMD
22451 # Must we lock files when doing compilation?
22452 need_locks=$lt_need_locks
22454 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22455 DSYMUTIL=$lt_DSYMUTIL
22457 # Tool to change global to local symbols on Mac OS X.
22460 # Tool to manipulate fat objects and archives on Mac OS X.
22463 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22466 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22467 OTOOL64=$lt_OTOOL64
22469 # Old archive suffix (normally "a").
22472 # Shared library suffix (normally ".so").
22473 shrext_cmds=$lt_shrext_cmds
22475 # The commands to extract the exported symbol list from a shared archive.
22476 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22478 # Variables whose values should be saved in libtool wrapper scripts and
22479 # restored at link time.
22480 variables_saved_for_relink=$lt_variables_saved_for_relink
22482 # Do we need the "lib" prefix for modules?
22483 need_lib_prefix=$need_lib_prefix
22485 # Do we need a version for libraries?
22486 need_version=$need_version
22488 # Library versioning type.
22489 version_type=$version_type
22491 # Shared library runtime path variable.
22492 runpath_var=$runpath_var
22494 # Shared library path variable.
22495 shlibpath_var=$shlibpath_var
22497 # Is shlibpath searched before the hard-coded library search path?
22498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22500 # Format of library name prefix.
22501 libname_spec=$lt_libname_spec
22503 # List of archive names. First name is the real one, the rest are links.
22504 # The last name is the one that the linker finds with -lNAME
22505 library_names_spec=$lt_library_names_spec
22507 # The coded name of the library, if different from the real name.
22508 soname_spec=$lt_soname_spec
22510 # Command to use after installation of a shared archive.
22511 postinstall_cmds=$lt_postinstall_cmds
22513 # Command to use after uninstallation of a shared archive.
22514 postuninstall_cmds=$lt_postuninstall_cmds
22516 # Commands used to finish a libtool library installation in a directory.
22517 finish_cmds=$lt_finish_cmds
22519 # As "finish_cmds", except a single script fragment to be evaled but
22521 finish_eval=$lt_finish_eval
22523 # Whether we should hardcode library paths into libraries.
22524 hardcode_into_libs=$hardcode_into_libs
22526 # Compile-time system search path for libraries.
22527 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22529 # Run-time system search path for libraries.
22530 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22532 # Whether dlopen is supported.
22533 dlopen_support=$enable_dlopen
22535 # Whether dlopen of programs is supported.
22536 dlopen_self=$enable_dlopen_self
22538 # Whether dlopen of statically linked programs is supported.
22539 dlopen_self_static=$enable_dlopen_self_static
22541 # Commands to strip libraries.
22542 old_striplib=$lt_old_striplib
22543 striplib=$lt_striplib
22546 # The linker used to build libraries.
22549 # Commands used to build an old-style archive.
22550 old_archive_cmds=$lt_old_archive_cmds
22552 # A language specific compiler.
22555 # Is the compiler the GNU compiler?
22558 # Compiler flag to turn off builtin functions.
22559 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22561 # How to pass a linker flag through the compiler.
22562 wl=$lt_lt_prog_compiler_wl
22564 # Additional compiler flags for building library objects.
22565 pic_flag=$lt_lt_prog_compiler_pic
22567 # Compiler flag to prevent dynamic linking.
22568 link_static_flag=$lt_lt_prog_compiler_static
22570 # Does compiler simultaneously support -c and -o options?
22571 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22573 # Whether or not to add -lc for building shared libraries.
22574 build_libtool_need_lc=$archive_cmds_need_lc
22576 # Whether or not to disallow shared libs when runtime libs are static.
22577 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22579 # Compiler flag to allow reflexive dlopens.
22580 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22582 # Compiler flag to generate shared objects directly from archives.
22583 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22585 # Whether the compiler copes with passing no objects directly.
22586 compiler_needs_object=$lt_compiler_needs_object
22588 # Create an old-style archive from a shared archive.
22589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22591 # Create a temporary old-style archive to link instead of a shared archive.
22592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22594 # Commands used to build a shared archive.
22595 archive_cmds=$lt_archive_cmds
22596 archive_expsym_cmds=$lt_archive_expsym_cmds
22598 # Commands used to build a loadable module if different from building
22599 # a shared archive.
22600 module_cmds=$lt_module_cmds
22601 module_expsym_cmds=$lt_module_expsym_cmds
22603 # Whether we are building with GNU ld or not.
22604 with_gnu_ld=$lt_with_gnu_ld
22606 # Flag that allows shared libraries with undefined symbols to be built.
22607 allow_undefined_flag=$lt_allow_undefined_flag
22609 # Flag that enforces no undefined symbols.
22610 no_undefined_flag=$lt_no_undefined_flag
22612 # Flag to hardcode \$libdir into a binary during linking.
22613 # This must work even if \$libdir does not exist
22614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22616 # If ld is used when linking, flag to hardcode \$libdir into a binary
22617 # during linking. This must work even if \$libdir does not exist.
22618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22620 # Whether we need a single "-rpath" flag with a separated argument.
22621 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22623 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22624 # DIR into the resulting binary.
22625 hardcode_direct=$hardcode_direct
22627 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22628 # DIR into the resulting binary and the resulting library dependency is
22629 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22630 # library is relocated.
22631 hardcode_direct_absolute=$hardcode_direct_absolute
22633 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22634 # into the resulting binary.
22635 hardcode_minus_L=$hardcode_minus_L
22637 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22638 # into the resulting binary.
22639 hardcode_shlibpath_var=$hardcode_shlibpath_var
22641 # Set to "yes" if building a shared library automatically hardcodes DIR
22642 # into the library and all subsequent libraries and executables linked
22644 hardcode_automatic=$hardcode_automatic
22646 # Set to yes if linker adds runtime paths of dependent libraries
22647 # to runtime path list.
22648 inherit_rpath=$inherit_rpath
22650 # Whether libtool must link a program against all its dependency libraries.
22651 link_all_deplibs=$link_all_deplibs
22653 # Fix the shell variable \$srcfile for the compiler.
22654 fix_srcfile_path=$lt_fix_srcfile_path
22656 # Set to "yes" if exported symbols are required.
22657 always_export_symbols=$always_export_symbols
22659 # The commands to list exported symbols.
22660 export_symbols_cmds=$lt_export_symbols_cmds
22662 # Symbols that should not be listed in the preloaded symbols.
22663 exclude_expsyms=$lt_exclude_expsyms
22665 # Symbols that must always be exported.
22666 include_expsyms=$lt_include_expsyms
22668 # Commands necessary for linking programs (against libraries) with templates.
22669 prelink_cmds=$lt_prelink_cmds
22671 # Specify filename containing input files.
22672 file_list_spec=$lt_file_list_spec
22674 # How to hardcode a shared library path into an executable.
22675 hardcode_action=$hardcode_action
22677 # ### END LIBTOOL CONFIG
22683 cat <<\_LT_EOF >> "$cfgfile"
22684 # AIX sometimes has problems with the GCC collect2 program. For some
22685 # reason, if we set the COLLECT_NAMES environment variable, the problems
22686 # vanish in a puff of smoke.
22687 if test "X${COLLECT_NAMES+set}" != Xset; then
22689 export COLLECT_NAMES
22696 ltmain="$ac_aux_dir/ltmain.sh"
22699 # We use sed instead of cat because bash on DJGPP gets confused if
22700 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22701 # text mode, it properly converts lines to CR/LF. This bash problem
22702 # is reportedly fixed, but why not run on old versions too?
22703 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22704 || (rm -f "$cfgfile"; exit 1)
22708 cat << \_LT_EOF >> "$cfgfile"
22710 # func_dirname file append nondir_replacement
22711 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22712 # otherwise set result to NONDIR_REPLACEMENT.
22716 */*) func_dirname_result="${1%/*}${2}" ;;
22717 * ) func_dirname_result="${3}" ;;
22721 # func_basename file
22724 func_basename_result="${1##*/}"
22727 # func_dirname_and_basename file append nondir_replacement
22728 # perform func_basename and func_dirname in a single function
22730 # dirname: Compute the dirname of FILE. If nonempty,
22731 # add APPEND to the result, otherwise set result
22732 # to NONDIR_REPLACEMENT.
22733 # value returned in "$func_dirname_result"
22734 # basename: Compute filename of FILE.
22735 # value retuned in "$func_basename_result"
22736 # Implementation must be kept synchronized with func_dirname
22737 # and func_basename. For efficiency, we do not delegate to
22738 # those functions but instead duplicate the functionality here.
22739 func_dirname_and_basename ()
22742 */*) func_dirname_result="${1%/*}${2}" ;;
22743 * ) func_dirname_result="${3}" ;;
22745 func_basename_result="${1##*/}"
22748 # func_stripname prefix suffix name
22749 # strip PREFIX and SUFFIX off of NAME.
22750 # PREFIX and SUFFIX must not contain globbing or regex special
22751 # characters, hashes, percent signs, but SUFFIX may contain a leading
22752 # dot (in which case that matches only a dot).
22755 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22756 # positional parameters, so assign one to ordinary parameter first.
22757 func_stripname_result=${3}
22758 func_stripname_result=${func_stripname_result#"${1}"}
22759 func_stripname_result=${func_stripname_result%"${2}"}
22765 func_opt_split_opt=${1%%=*}
22766 func_opt_split_arg=${1#*=}
22773 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22774 *) func_lo2o_result=${1} ;;
22778 # func_xform libobj-or-source
22781 func_xform_result=${1%.*}.lo
22784 # func_arith arithmetic-term...
22787 func_arith_result=$(( $* ))
22791 # STRING may not start with a hyphen.
22794 func_len_result=${#1}
22799 *) # Bourne compatible functions.
22800 cat << \_LT_EOF >> "$cfgfile"
22802 # func_dirname file append nondir_replacement
22803 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22804 # otherwise set result to NONDIR_REPLACEMENT.
22807 # Extract subdirectory from the argument.
22808 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22809 if test "X$func_dirname_result" = "X${1}"; then
22810 func_dirname_result="${3}"
22812 func_dirname_result="$func_dirname_result${2}"
22816 # func_basename file
22819 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22823 # func_stripname prefix suffix name
22824 # strip PREFIX and SUFFIX off of NAME.
22825 # PREFIX and SUFFIX must not contain globbing or regex special
22826 # characters, hashes, percent signs, but SUFFIX may contain a leading
22827 # dot (in which case that matches only a dot).
22828 # func_strip_suffix prefix name
22832 .*) func_stripname_result=`$ECHO "X${3}" \
22833 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22834 *) func_stripname_result=`$ECHO "X${3}" \
22835 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22840 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22841 my_sed_long_arg='1s/^-[^=]*=//'
22846 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22847 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22853 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22856 # func_xform libobj-or-source
22859 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22862 # func_arith arithmetic-term...
22865 func_arith_result=`expr "$@"`
22869 # STRING may not start with a hyphen.
22872 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22878 case $lt_shell_append in
22880 cat << \_LT_EOF >> "$cfgfile"
22882 # func_append var value
22883 # Append VALUE to the end of shell variable VAR.
22891 cat << \_LT_EOF >> "$cfgfile"
22893 # func_append var value
22894 # Append VALUE to the end of shell variable VAR.
22905 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22906 || (rm -f "$cfgfile"; exit 1)
22908 mv -f "$cfgfile" "$ofile" ||
22909 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22918 { (exit 0); exit 0; }
22920 chmod +x $CONFIG_STATUS
22921 ac_clean_files=$ac_clean_files_save
22923 test $ac_write_fail = 0 ||
22924 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22925 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22926 { (exit 1); exit 1; }; }
22929 # configure is writing to config.log, and then calls config.status.
22930 # config.status does its own redirection, appending to config.log.
22931 # Unfortunately, on DOS this fails, as config.log is still kept open
22932 # by configure, so config.status won't be able to write to it; its
22933 # output is simply discarded. So we exec the FD to /dev/null,
22934 # effectively closing config.log, so it can be properly (re)opened and
22935 # appended to by config.status. When coming back to configure, we
22936 # need to make the FD available again.
22937 if test "$no_create" != yes; then
22939 ac_config_status_args=
22940 test "$silent" = yes &&
22941 ac_config_status_args="$ac_config_status_args --quiet"
22943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22946 # would make configure fail if this is the last instruction.
22947 $ac_cs_success || { (exit 1); exit 1; }
22949 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22950 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22951 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}