| diff -aruN sysfsutils-2.1.0/aclocal.m4 sysfsutils-2.1.0.N/aclocal.m4 |
| --- sysfsutils-2.1.0/aclocal.m4 2006-08-23 01:38:32.000000000 -0700 |
| +++ sysfsutils-2.1.0.N/aclocal.m4 2008-12-09 13:18:01.000000000 -0800 |
| @@ -1,7 +1,7 @@ |
| -# generated automatically by aclocal 1.9.6 -*- Autoconf -*- |
| +# generated automatically by aclocal 1.10.1 -*- Autoconf -*- |
| |
| # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| -# 2005 Free Software Foundation, Inc. |
| +# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| # This file is free software; the Free Software Foundation |
| # gives unlimited permission to copy and/or distribute it, |
| # with or without modifications, as long as this notice is preserved. |
| @@ -11,9 +11,17 @@ |
| # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| # PARTICULAR PURPOSE. |
| |
| +m4_ifndef([AC_AUTOCONF_VERSION], |
| + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| +m4_if(AC_AUTOCONF_VERSION, [2.61],, |
| +[m4_warning([this file was generated for autoconf 2.61. |
| +You have another version of autoconf. It may work, but is not guaranteed to. |
| +If you have problems, you may need to regenerate the build system entirely. |
| +To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
| + |
| # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
| |
| -# serial 48 AC_PROG_LIBTOOL |
| +# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL |
| |
| |
| # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
| @@ -101,7 +109,6 @@ |
| AC_REQUIRE([AC_OBJEXT])dnl |
| AC_REQUIRE([AC_EXEEXT])dnl |
| dnl |
| - |
| AC_LIBTOOL_SYS_MAX_CMD_LEN |
| AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
| AC_LIBTOOL_OBJDIR |
| @@ -176,7 +183,7 @@ |
| test -z "$ac_objext" && ac_objext=o |
| |
| # Determine commands to create old-style static archives. |
| -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| old_postinstall_cmds='chmod 644 $oldlib' |
| old_postuninstall_cmds= |
| |
| @@ -203,6 +210,8 @@ |
| ;; |
| esac |
| |
| +_LT_REQUIRED_DARWIN_CHECKS |
| + |
| AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
| AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
| enable_win32_dll=yes, enable_win32_dll=no) |
| @@ -263,8 +272,9 @@ |
| # Check for compiler boilerplate output or warnings with |
| # the simple compiler test code. |
| AC_DEFUN([_LT_COMPILER_BOILERPLATE], |
| -[ac_outfile=conftest.$ac_objext |
| -printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
| +ac_outfile=conftest.$ac_objext |
| +echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| _lt_compiler_boilerplate=`cat conftest.err` |
| $rm conftest* |
| @@ -276,13 +286,85 @@ |
| # Check for linker boilerplate output or warnings with |
| # the simple link test code. |
| AC_DEFUN([_LT_LINKER_BOILERPLATE], |
| -[ac_outfile=conftest.$ac_objext |
| -printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
| +ac_outfile=conftest.$ac_objext |
| +echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| _lt_linker_boilerplate=`cat conftest.err` |
| -$rm conftest* |
| +$rm -r conftest* |
| ])# _LT_LINKER_BOILERPLATE |
| |
| +# _LT_REQUIRED_DARWIN_CHECKS |
| +# -------------------------- |
| +# Check for some things on darwin |
| +AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ |
| + case $host_os in |
| + rhapsody* | darwin*) |
| + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) |
| + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) |
| + |
| + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
| + [lt_cv_apple_cc_single_mod=no |
| + if test -z "${LT_MULTI_MODULE}"; then |
| + # By default we will add the -single_module flag. You can override |
| + # by either setting the environment variable LT_MULTI_MODULE |
| + # non-empty at configure time, or by adding -multi_module to the |
| + # link flags. |
| + echo "int foo(void){return 1;}" > conftest.c |
| + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| + -dynamiclib ${wl}-single_module conftest.c |
| + if test -f libconftest.dylib; then |
| + lt_cv_apple_cc_single_mod=yes |
| + rm -rf libconftest.dylib* |
| + fi |
| + rm conftest.c |
| + fi]) |
| + AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
| + [lt_cv_ld_exported_symbols_list], |
| + [lt_cv_ld_exported_symbols_list=no |
| + save_LDFLAGS=$LDFLAGS |
| + echo "_main" > conftest.sym |
| + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
| + [lt_cv_ld_exported_symbols_list=yes], |
| + [lt_cv_ld_exported_symbols_list=no]) |
| + LDFLAGS="$save_LDFLAGS" |
| + ]) |
| + case $host_os in |
| + rhapsody* | darwin1.[[0123]]) |
| + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| + darwin1.*) |
| + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| + darwin*) |
| + # if running on 10.5 or later, the deployment target defaults |
| + # to the OS version, if on x86, and 10.4, the deployment |
| + # target defaults to 10.4. Don't you love it? |
| + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
| + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| + 10.[[012]]*) |
| + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| + 10.*) |
| + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| + esac |
| + ;; |
| + esac |
| + if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| + _lt_dar_single_mod='$single_module' |
| + fi |
| + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| + else |
| + _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" |
| + fi |
| + if test "$DSYMUTIL" != ":"; then |
| + _lt_dsymutil="~$DSYMUTIL \$lib || :" |
| + else |
| + _lt_dsymutil= |
| + fi |
| + ;; |
| + esac |
| +]) |
| |
| # _LT_AC_SYS_LIBPATH_AIX |
| # ---------------------- |
| @@ -293,12 +375,20 @@ |
| # If we don't find anything, use the default library path according |
| # to the aix ld manual. |
| AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], |
| -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
| -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| -}'` |
| +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
| +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
| +lt_aix_libpath_sed=' |
| + /Import File Strings/,/^$/ { |
| + /^0/ { |
| + s/^0 *\(.*\)$/\1/ |
| + p |
| + } |
| + }' |
| +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| # Check for a 64-bit object if we didn't find anything. |
| -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| -}'`; fi],[]) |
| +if test -z "$aix_libpath"; then |
| + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| +fi],[]) |
| if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| ])# _LT_AC_SYS_LIBPATH_AIX |
| |
| @@ -529,13 +619,17 @@ |
| rm -rf conftest* |
| ;; |
| |
| -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| +s390*-*linux*|sparc*-*linux*) |
| # Find out which ABI we are using. |
| echo 'int i;' > conftest.$ac_ext |
| if AC_TRY_EVAL(ac_compile); then |
| case `/usr/bin/file conftest.o` in |
| *32-bit*) |
| case $host in |
| + x86_64-*kfreebsd*-gnu) |
| + LD="${LD-ld} -m elf_i386_fbsd" |
| + ;; |
| x86_64-*linux*) |
| LD="${LD-ld} -m elf_i386" |
| ;; |
| @@ -552,6 +646,9 @@ |
| ;; |
| *64-bit*) |
| case $host in |
| + x86_64-*kfreebsd*-gnu) |
| + LD="${LD-ld} -m elf_x86_64_fbsd" |
| + ;; |
| x86_64-*linux*) |
| LD="${LD-ld} -m elf_x86_64" |
| ;; |
| @@ -592,7 +689,11 @@ |
| *64-bit*) |
| case $lt_cv_prog_gnu_ld in |
| yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| - *) LD="${LD-ld} -64" ;; |
| + *) |
| + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| + LD="${LD-ld} -64" |
| + fi |
| + ;; |
| esac |
| ;; |
| esac |
| @@ -623,7 +724,7 @@ |
| AC_CACHE_CHECK([$1], [$2], |
| [$2=no |
| ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
| - printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| lt_compiler_flag="$3" |
| # Insert the option either (1) after the last *FLAGS variable, or |
| # (2) before a word containing "conftest.", or (3) at the end. |
| @@ -664,11 +765,12 @@ |
| # ------------------------------------------------------------ |
| # Check whether the given compiler option works |
| AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
| -[AC_CACHE_CHECK([$1], [$2], |
| +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
| +AC_CACHE_CHECK([$1], [$2], |
| [$2=no |
| save_LDFLAGS="$LDFLAGS" |
| LDFLAGS="$LDFLAGS $3" |
| - printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| + echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| # The linker can only warn and ignore the option if not recognized |
| # So say no if there are warnings |
| @@ -684,7 +786,7 @@ |
| $2=yes |
| fi |
| fi |
| - $rm conftest* |
| + $rm -r conftest* |
| LDFLAGS="$save_LDFLAGS" |
| ]) |
| |
| @@ -782,24 +884,27 @@ |
| fi |
| ;; |
| *) |
| - # If test is not a shell built-in, we'll probably end up computing a |
| - # maximum length that is only half of the actual maximum length, but |
| - # we can't tell. |
| - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| + if test -n "$lt_cv_sys_max_cmd_len"; then |
| + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| + else |
| + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| = "XX$teststring") >/dev/null 2>&1 && |
| - new_result=`expr "X$teststring" : ".*" 2>&1` && |
| - lt_cv_sys_max_cmd_len=$new_result && |
| - test $i != 17 # 1/2 MB should be enough |
| - do |
| - i=`expr $i + 1` |
| - teststring=$teststring$teststring |
| - done |
| - teststring= |
| - # Add a significant safety factor because C++ compilers can tack on massive |
| - # amounts of additional arguments before passing them to the linker. |
| - # It appears as though 1/2 is a usable value. |
| - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| + new_result=`expr "X$teststring" : ".*" 2>&1` && |
| + lt_cv_sys_max_cmd_len=$new_result && |
| + test $i != 17 # 1/2 MB should be enough |
| + do |
| + i=`expr $i + 1` |
| + teststring=$teststring$teststring |
| + done |
| + teststring= |
| + # Add a significant safety factor because C++ compilers can tack on massive |
| + # amounts of additional arguments before passing them to the linker. |
| + # It appears as though 1/2 is a usable value. |
| + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| + fi |
| ;; |
| esac |
| ]) |
| @@ -952,7 +1057,7 @@ |
| AC_CHECK_FUNC([shl_load], |
| [lt_cv_dlopen="shl_load"], |
| [AC_CHECK_LIB([dld], [shl_load], |
| - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
| + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], |
| [AC_CHECK_FUNC([dlopen], |
| [lt_cv_dlopen="dlopen"], |
| [AC_CHECK_LIB([dl], [dlopen], |
| @@ -960,7 +1065,7 @@ |
| [AC_CHECK_LIB([svld], [dlopen], |
| [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
| [AC_CHECK_LIB([dld], [dld_link], |
| - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
| + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
| ]) |
| ]) |
| ]) |
| @@ -1026,7 +1131,8 @@ |
| # --------------------------------- |
| # Check to see if options -c and -o are simultaneously supported by compiler |
| AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
| -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
| +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
| [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
| [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
| @@ -1034,7 +1140,7 @@ |
| mkdir conftest |
| cd conftest |
| mkdir out |
| - printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| |
| lt_compiler_flag="-o out/conftest2.$ac_objext" |
| # Insert the option either (1) after the last *FLAGS variable, or |
| @@ -1174,6 +1280,7 @@ |
| darwin*) |
| if test -n "$STRIP" ; then |
| striplib="$STRIP -x" |
| + old_striplib="$STRIP -S" |
| AC_MSG_RESULT([yes]) |
| else |
| AC_MSG_RESULT([no]) |
| @@ -1191,7 +1298,8 @@ |
| # ----------------------------- |
| # PORTME Fill in your ld.so characteristics |
| AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
| -[AC_MSG_CHECKING([dynamic linker characteristics]) |
| +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
| +AC_MSG_CHECKING([dynamic linker characteristics]) |
| library_names_spec= |
| libname_spec='lib$name' |
| soname_spec= |
| @@ -1205,20 +1313,58 @@ |
| version_type=none |
| dynamic_linker="$host_os ld.so" |
| sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| +m4_if($1,[],[ |
| if test "$GCC" = yes; then |
| - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| + case $host_os in |
| + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| + *) lt_awk_arg="/^libraries:/" ;; |
| + esac |
| + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| + if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
| # if the path contains ";" then we assume it to be the separator |
| # otherwise default to the standard path separator (i.e. ":") - it is |
| # assumed that no part of a normal pathname contains ";" but that should |
| # okay in the real world where ";" in dirpaths is itself problematic. |
| - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| else |
| - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| fi |
| + # Ok, now we have the path, separated by spaces, we can step through it |
| + # and add multilib dir if necessary. |
| + lt_tmp_lt_search_path_spec= |
| + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| + for lt_sys_path in $lt_search_path_spec; do |
| + if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| + else |
| + test -d "$lt_sys_path" && \ |
| + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| + fi |
| + done |
| + lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
| +BEGIN {RS=" "; FS="/|\n";} { |
| + lt_foo=""; |
| + lt_count=0; |
| + for (lt_i = NF; lt_i > 0; lt_i--) { |
| + if ($lt_i != "" && $lt_i != ".") { |
| + if ($lt_i == "..") { |
| + lt_count++; |
| + } else { |
| + if (lt_count == 0) { |
| + lt_foo="/" $lt_i lt_foo; |
| + } else { |
| + lt_count--; |
| + } |
| + } |
| + } |
| + } |
| + if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
| + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
| +}'` |
| + sys_lib_search_path_spec=`echo $lt_search_path_spec` |
| else |
| sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| -fi |
| +fi]) |
| need_lib_prefix=unknown |
| hardcode_into_libs=no |
| |
| @@ -1236,7 +1382,7 @@ |
| soname_spec='${libname}${release}${shared_ext}$major' |
| ;; |
| |
| -aix4* | aix5*) |
| +aix[[4-9]]*) |
| version_type=linux |
| need_lib_prefix=no |
| need_version=no |
| @@ -1375,12 +1521,8 @@ |
| shlibpath_overrides_runpath=yes |
| shlibpath_var=DYLD_LIBRARY_PATH |
| shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| - if test "$GCC" = yes; then |
| - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| - else |
| - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| - fi |
| + m4_if([$1], [],[ |
| + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
| sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| ;; |
| |
| @@ -1397,18 +1539,6 @@ |
| dynamic_linker=no |
| ;; |
| |
| -kfreebsd*-gnu) |
| - version_type=linux |
| - need_lib_prefix=no |
| - need_version=no |
| - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| - soname_spec='${libname}${release}${shared_ext}$major' |
| - shlibpath_var=LD_LIBRARY_PATH |
| - shlibpath_overrides_runpath=no |
| - hardcode_into_libs=yes |
| - dynamic_linker='GNU ld.so' |
| - ;; |
| - |
| freebsd* | dragonfly*) |
| # DragonFly does not have aout. When/if they implement a new |
| # versioning mechanism, adjust this. |
| @@ -1446,7 +1576,7 @@ |
| shlibpath_overrides_runpath=no |
| hardcode_into_libs=yes |
| ;; |
| - freebsd*) # from 4.6 on |
| + *) # from 4.6 on, and DragonFly |
| shlibpath_overrides_runpath=yes |
| hardcode_into_libs=yes |
| ;; |
| @@ -1509,7 +1639,7 @@ |
| postinstall_cmds='chmod 555 $lib' |
| ;; |
| |
| -interix3*) |
| +interix[[3-9]]*) |
| version_type=linux |
| need_lib_prefix=no |
| need_version=no |
| @@ -1564,7 +1694,7 @@ |
| ;; |
| |
| # This must be Linux ELF. |
| -linux*) |
| +linux* | k*bsd*-gnu) |
| version_type=linux |
| need_lib_prefix=no |
| need_version=no |
| @@ -1578,27 +1708,10 @@ |
| # before this can be enabled. |
| hardcode_into_libs=yes |
| |
| - # find out which ABI we are using |
| - libsuff= |
| - case "$host_cpu" in |
| - x86_64*|s390x*|powerpc64*) |
| - echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
| - if AC_TRY_EVAL(ac_compile); then |
| - case `/usr/bin/file conftest.$ac_objext` in |
| - *64-bit*) |
| - libsuff=64 |
| - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
| - ;; |
| - esac |
| - fi |
| - rm -rf conftest* |
| - ;; |
| - esac |
| - |
| # Append ld.so.conf contents to the search path |
| if test -f /etc/ld.so.conf; then |
| - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
| + 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' ' '` |
| + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| fi |
| |
| # We used to test for /lib/ld.so.1 and disable shared libraries on |
| @@ -1610,7 +1723,7 @@ |
| dynamic_linker='GNU/Linux ld.so' |
| ;; |
| |
| -knetbsd*-gnu) |
| +netbsdelf*-gnu) |
| version_type=linux |
| need_lib_prefix=no |
| need_version=no |
| @@ -1619,7 +1732,7 @@ |
| shlibpath_var=LD_LIBRARY_PATH |
| shlibpath_overrides_runpath=no |
| hardcode_into_libs=yes |
| - dynamic_linker='GNU ld.so' |
| + dynamic_linker='NetBSD ld.elf_so' |
| ;; |
| |
| netbsd*) |
| @@ -1703,6 +1816,10 @@ |
| sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| ;; |
| |
| +rdos*) |
| + dynamic_linker=no |
| + ;; |
| + |
| solaris*) |
| version_type=linux |
| need_lib_prefix=no |
| @@ -1798,6 +1915,13 @@ |
| AC_MSG_RESULT([$dynamic_linker]) |
| test "$dynamic_linker" = no && can_build_shared=no |
| |
| +AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], |
| +[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) |
| +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| +AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], |
| +[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) |
| +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| + |
| variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| if test "$GCC" = yes; then |
| variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| @@ -1808,7 +1932,8 @@ |
| # _LT_AC_TAGCONFIG |
| # ---------------- |
| AC_DEFUN([_LT_AC_TAGCONFIG], |
| -[AC_ARG_WITH([tags], |
| +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
| +AC_ARG_WITH([tags], |
| [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], |
| [include additional configurations @<:@automatic@:>@])], |
| [tagnames="$withval"]) |
| @@ -2069,7 +2194,7 @@ |
| |
| # AC_PATH_TOOL_PREFIX |
| # ------------------- |
| -# find a file program which can recognise shared library |
| +# find a file program which can recognize shared library |
| AC_DEFUN([AC_PATH_TOOL_PREFIX], |
| [AC_REQUIRE([AC_PROG_EGREP])dnl |
| AC_MSG_CHECKING([for $1]) |
| @@ -2132,7 +2257,7 @@ |
| |
| # AC_PATH_MAGIC |
| # ------------- |
| -# find a file program which can recognise a shared library |
| +# find a file program which can recognize a shared library |
| AC_DEFUN([AC_PATH_MAGIC], |
| [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
| if test -z "$lt_cv_path_MAGIC_CMD"; then |
| @@ -2279,7 +2404,7 @@ |
| # how to check for library dependencies |
| # -- PORTME fill in with the dynamic library characteristics |
| AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
| -[AC_CACHE_CHECK([how to recognise dependent libraries], |
| +[AC_CACHE_CHECK([how to recognize dependent libraries], |
| lt_cv_deplibs_check_method, |
| [lt_cv_file_magic_cmd='$MAGIC_CMD' |
| lt_cv_file_magic_test_file= |
| @@ -2296,7 +2421,7 @@ |
| # whether `pass_all' will *always* work, you probably want this one. |
| |
| case $host_os in |
| -aix4* | aix5*) |
| +aix[[4-9]]*) |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| |
| @@ -2318,16 +2443,22 @@ |
| |
| mingw* | pw32*) |
| # Base MSYS/MinGW do not provide the 'file' command needed by |
| - # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| - lt_cv_file_magic_cmd='$OBJDUMP -f' |
| + # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| + # unless we find 'file', for example because we are cross-compiling. |
| + if ( file / ) >/dev/null 2>&1; then |
| + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| + lt_cv_file_magic_cmd='func_win32_libid' |
| + else |
| + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| + lt_cv_file_magic_cmd='$OBJDUMP -f' |
| + fi |
| ;; |
| |
| darwin* | rhapsody*) |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| |
| -freebsd* | kfreebsd*-gnu | dragonfly*) |
| +freebsd* | dragonfly*) |
| if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| case $host_cpu in |
| i*86 ) |
| @@ -2365,7 +2496,7 @@ |
| esac |
| ;; |
| |
| -interix3*) |
| +interix[[3-9]]*) |
| # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
| ;; |
| @@ -2381,11 +2512,11 @@ |
| ;; |
| |
| # This must be Linux ELF. |
| -linux*) |
| +linux* | k*bsd*-gnu) |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| |
| -netbsd*) |
| +netbsd* | netbsdelf*-gnu) |
| if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| else |
| @@ -2415,6 +2546,10 @@ |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| |
| +rdos*) |
| + lt_cv_deplibs_check_method=pass_all |
| + ;; |
| + |
| solaris*) |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| @@ -2467,7 +2602,7 @@ |
| lt_cv_path_NM="$NM" |
| else |
| lt_nm_to_check="${ac_tool_prefix}nm" |
| - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| lt_nm_to_check="$lt_nm_to_check nm" |
| fi |
| for lt_tmp_nm in $lt_nm_to_check; do |
| @@ -2683,10 +2818,10 @@ |
| _LT_AC_TAGVAR(objext, $1)=$objext |
| |
| # Code to be used in simple compile tests |
| -lt_simple_compile_test_code="int some_variable = 0;\n" |
| +lt_simple_compile_test_code="int some_variable = 0;" |
| |
| # Code to be used in simple link tests |
| -lt_simple_link_test_code='int main(){return(0);}\n' |
| +lt_simple_link_test_code='int main(){return(0);}' |
| |
| _LT_AC_SYS_COMPILER |
| |
| @@ -2722,7 +2857,7 @@ |
| fi |
| ;; |
| |
| -aix4* | aix5*) |
| +aix[[4-9]]*) |
| if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| test "$enable_shared" = yes && enable_static=no |
| fi |
| @@ -2779,6 +2914,7 @@ |
| _LT_AC_TAGVAR(predeps, $1)= |
| _LT_AC_TAGVAR(postdeps, $1)= |
| _LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
| +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= |
| |
| # Source file extension for C++ test sources. |
| ac_ext=cpp |
| @@ -2788,10 +2924,10 @@ |
| _LT_AC_TAGVAR(objext, $1)=$objext |
| |
| # Code to be used in simple compile tests |
| -lt_simple_compile_test_code="int some_variable = 0;\n" |
| +lt_simple_compile_test_code="int some_variable = 0;" |
| |
| # Code to be used in simple link tests |
| -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' |
| +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' |
| |
| # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| _LT_AC_SYS_COMPILER |
| @@ -2888,7 +3024,7 @@ |
| # FIXME: insert proper C++ library support |
| _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| ;; |
| - aix4* | aix5*) |
| + aix[[4-9]]*) |
| if test "$host_cpu" = ia64; then |
| # On IA64, the linker does run time linking by default, so we don't |
| # have to do anything special. |
| @@ -2901,7 +3037,7 @@ |
| # Test if we are trying to use run time linking or normal |
| # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| # need to do runtime linking. |
| - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
| for ld_flag in $LDFLAGS; do |
| case $ld_flag in |
| *-brtl*) |
| @@ -2937,7 +3073,7 @@ |
| strings "$collect2name" | grep resolve_lib_name >/dev/null |
| then |
| # We have reworked collect2 |
| - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| + : |
| else |
| # We have old collect2 |
| _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| @@ -3047,59 +3183,31 @@ |
| fi |
| ;; |
| darwin* | rhapsody*) |
| - case $host_os in |
| - rhapsody* | darwin1.[[012]]) |
| - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
| - ;; |
| - *) # Darwin 1.3 on |
| - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| - else |
| - case ${MACOSX_DEPLOYMENT_TARGET} in |
| - 10.[[012]]) |
| - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| - ;; |
| - 10.*) |
| - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
| - ;; |
| - esac |
| - fi |
| - ;; |
| - esac |
| _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
| _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| - |
| - if test "$GXX" = yes ; then |
| - lt_int_apple_cc_single_mod=no |
| + _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
| + if test "$GXX" = yes ; then |
| output_verbose_link_cmd='echo' |
| - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| - lt_int_apple_cc_single_mod=yes |
| + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| + _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}" |
| + _LT_AC_TAGVAR(module_expsym_cmds, $1)="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}" |
| + if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" |
| + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
| fi |
| - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| - else |
| - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| - fi |
| - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| - else |
| - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| - fi |
| - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| else |
| case $cc_basename in |
| xlc*) |
| output_verbose_link_cmd='echo' |
| - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
| _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| ;; |
| *) |
| @@ -3133,7 +3241,7 @@ |
| freebsd-elf*) |
| _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| ;; |
| - freebsd* | kfreebsd*-gnu | dragonfly*) |
| + freebsd* | dragonfly*) |
| # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| # conventions |
| _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| @@ -3182,9 +3290,7 @@ |
| _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| |
| case $host_cpu in |
| - hppa*64*|ia64*) |
| - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| - ;; |
| + hppa*64*|ia64*) ;; |
| *) |
| _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| ;; |
| @@ -3252,7 +3358,7 @@ |
| ;; |
| esac |
| ;; |
| - interix3*) |
| + interix[[3-9]]*) |
| _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| @@ -3292,7 +3398,7 @@ |
| _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| ;; |
| - linux*) |
| + linux* | k*bsd*-gnu) |
| case $cc_basename in |
| KCC*) |
| # Kuck and Associates, Inc. (KAI) C++ Compiler |
| @@ -3344,7 +3450,7 @@ |
| _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| ;; |
| - pgCC*) |
| + pgCC* | pgcpp*) |
| # Portland Group C++ compiler |
| _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| @@ -3372,6 +3478,29 @@ |
| # dependencies. |
| output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| ;; |
| + *) |
| + case `$CC -V 2>&1 | sed 5q` in |
| + *Sun\ C*) |
| + # Sun C++ 5.9 |
| + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
| + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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' |
| + |
| + # Not sure whether something based on |
| + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| + # would be better. |
| + output_verbose_link_cmd='echo' |
| + |
| + # Archives containing C++ object files must be created using |
| + # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| + # necessary to make sure instantiated templates are included |
| + # in the archive. |
| + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| + ;; |
| + esac |
| + ;; |
| esac |
| ;; |
| lynxos*) |
| @@ -3394,7 +3523,7 @@ |
| ;; |
| esac |
| ;; |
| - netbsd*) |
| + netbsd* | netbsdelf*-gnu) |
| if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| wlarc= |
| @@ -3410,16 +3539,20 @@ |
| _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| ;; |
| openbsd*) |
| - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| + if test -f /usr/libexec/ld.so; then |
| + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| + fi |
| + output_verbose_link_cmd='echo' |
| + else |
| + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| fi |
| - output_verbose_link_cmd='echo' |
| ;; |
| osf3*) |
| case $cc_basename in |
| @@ -3581,15 +3714,10 @@ |
| case $host_os in |
| solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| *) |
| - # The C++ compiler is used as linker so we must use $wl |
| - # flag to pass the commands to the underlying system |
| - # linker. We must also pass each convience library through |
| - # to the system linker between allextract/defaultextract. |
| - # The C++ compiler will combine linker options so we |
| - # cannot just pass the convience library names through |
| - # without $wl. |
| + # The compiler driver will combine and reorder linker options, |
| + # but understands `-z linker_flag'. |
| # Supported since Solaris 2.6 (maybe 2.5.1?) |
| - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
| + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' |
| ;; |
| esac |
| _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| @@ -3636,6 +3764,12 @@ |
| fi |
| |
| _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
| + case $host_os in |
| + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| + *) |
| + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| + ;; |
| + esac |
| fi |
| ;; |
| esac |
| @@ -3751,7 +3885,8 @@ |
| # compiler output when linking a shared library. |
| # Parse the compiler output and extract the necessary |
| # objects, libraries and library flags. |
| -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ |
| +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], |
| +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
| dnl we can't use the lt_simple_compile_test_code here, |
| dnl because it contains code intended for an executable, |
| dnl not a library. It's possible we should let each |
| @@ -3876,10 +4011,15 @@ |
| |
| $rm -f confest.$objext |
| |
| +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= |
| +if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then |
| + _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| +fi |
| + |
| # PORTME: override above test on systems where it is broken |
| ifelse([$1],[CXX], |
| [case $host_os in |
| -interix3*) |
| +interix[[3-9]]*) |
| # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| # hack all around it, let's just trust "g++" to DTRT. |
| _LT_AC_TAGVAR(predep_objects,$1)= |
| @@ -3887,19 +4027,51 @@ |
| _LT_AC_TAGVAR(postdeps,$1)= |
| ;; |
| |
| +linux*) |
| + case `$CC -V 2>&1 | sed 5q` in |
| + *Sun\ C*) |
| + # Sun C++ 5.9 |
| + # |
| + # The more standards-conforming stlport4 library is |
| + # incompatible with the Cstd library. Avoid specifying |
| + # it if it's in CXXFLAGS. Ignore libCrun as |
| + # -library=stlport4 depends on it. |
| + case " $CXX $CXXFLAGS " in |
| + *" -library=stlport4 "*) |
| + solaris_use_stlport4=yes |
| + ;; |
| + esac |
| + if test "$solaris_use_stlport4" != yes; then |
| + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' |
| + fi |
| + ;; |
| + esac |
| + ;; |
| + |
| solaris*) |
| case $cc_basename in |
| CC*) |
| + # The more standards-conforming stlport4 library is |
| + # incompatible with the Cstd library. Avoid specifying |
| + # it if it's in CXXFLAGS. Ignore libCrun as |
| + # -library=stlport4 depends on it. |
| + case " $CXX $CXXFLAGS " in |
| + *" -library=stlport4 "*) |
| + solaris_use_stlport4=yes |
| + ;; |
| + esac |
| + |
| # Adding this requires a known-good setup of shared libraries for |
| # Sun compiler versions before 5.6, else PIC objects from an old |
| # archive will be linked into the output, leading to subtle bugs. |
| - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' |
| + if test "$solaris_use_stlport4" != yes; then |
| + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' |
| + fi |
| ;; |
| esac |
| ;; |
| esac |
| ]) |
| - |
| case " $_LT_AC_TAGVAR(postdeps, $1) " in |
| *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
| esac |
| @@ -3942,10 +4114,17 @@ |
| _LT_AC_TAGVAR(objext, $1)=$objext |
| |
| # Code to be used in simple compile tests |
| -lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| +lt_simple_compile_test_code="\ |
| + subroutine t |
| + return |
| + end |
| +" |
| |
| # Code to be used in simple link tests |
| -lt_simple_link_test_code=" program t\n end\n" |
| +lt_simple_link_test_code="\ |
| + program t |
| + end |
| +" |
| |
| # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| _LT_AC_SYS_COMPILER |
| @@ -3977,7 +4156,7 @@ |
| postinstall_cmds='$RANLIB $lib' |
| fi |
| ;; |
| -aix4* | aix5*) |
| +aix[[4-9]]*) |
| if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| test "$enable_shared" = yes && enable_static=no |
| fi |
| @@ -4024,10 +4203,10 @@ |
| _LT_AC_TAGVAR(objext, $1)=$objext |
| |
| # Code to be used in simple compile tests |
| -lt_simple_compile_test_code="class foo {}\n" |
| +lt_simple_compile_test_code="class foo {}" |
| |
| # Code to be used in simple link tests |
| -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' |
| +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' |
| |
| # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| _LT_AC_SYS_COMPILER |
| @@ -4080,7 +4259,7 @@ |
| _LT_AC_TAGVAR(objext, $1)=$objext |
| |
| # Code to be used in simple compile tests |
| -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
| |
| # Code to be used in simple link tests |
| lt_simple_link_test_code="$lt_simple_compile_test_code" |
| @@ -4154,6 +4333,7 @@ |
| _LT_AC_TAGVAR(predeps, $1) \ |
| _LT_AC_TAGVAR(postdeps, $1) \ |
| _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ |
| + _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ |
| _LT_AC_TAGVAR(archive_cmds, $1) \ |
| _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ |
| _LT_AC_TAGVAR(postinstall_cmds, $1) \ |
| @@ -4169,6 +4349,7 @@ |
| _LT_AC_TAGVAR(module_cmds, $1) \ |
| _LT_AC_TAGVAR(module_expsym_cmds, $1) \ |
| _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ |
| + _LT_AC_TAGVAR(fix_srcfile_path, $1) \ |
| _LT_AC_TAGVAR(exclude_expsyms, $1) \ |
| _LT_AC_TAGVAR(include_expsyms, $1); do |
| |
| @@ -4215,7 +4396,7 @@ |
| # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| # |
| -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
| # Free Software Foundation, Inc. |
| # |
| # This file is part of GNU Libtool: |
| @@ -4452,6 +4633,10 @@ |
| # shared library. |
| postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) |
| |
| +# The directories searched by this compiler when creating a shared |
| +# library |
| +compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) |
| + |
| # The library search path used internally by the compiler when linking |
| # a shared library. |
| compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) |
| @@ -4540,7 +4725,7 @@ |
| sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| |
| # Fix the shell variable \$srcfile for the compiler. |
| -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" |
| +fix_srcfile_path=$lt_fix_srcfile_path |
| |
| # Set to yes if exported symbols are required. |
| always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) |
| @@ -4623,6 +4808,7 @@ |
| # --------------------------------- |
| AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], |
| [AC_REQUIRE([AC_CANONICAL_HOST]) |
| +AC_REQUIRE([LT_AC_PROG_SED]) |
| AC_REQUIRE([AC_PROG_NM]) |
| AC_REQUIRE([AC_OBJEXT]) |
| # Check for command to grab the raw symbol name followed by C symbol from nm. |
| @@ -4659,7 +4845,7 @@ |
| lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| ;; |
| -linux*) |
| +linux* | k*bsd*-gnu) |
| if test "$host_cpu" = ia64; then |
| symcode='[[ABCDGIRSTW]]' |
| lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| @@ -4800,7 +4986,7 @@ |
| echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD |
| cat conftest.$ac_ext >&5 |
| fi |
| - rm -f conftest* conftst* |
| + rm -rf conftest* conftst* |
| |
| # Do not use the global_symbol_pipe unless it works. |
| if test "$pipe_works" = yes; then |
| @@ -4849,13 +5035,16 @@ |
| # like `-m68040'. |
| _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
| ;; |
| - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| # PIC is the default for these OSes. |
| ;; |
| - mingw* | os2* | pw32*) |
| + mingw* | cygwin* | os2* | pw32*) |
| # This hack is so that the source file can tell whether it is being |
| # built for inclusion in a dll (and should export symbols for example). |
| - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
| + # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| + # (--disable-auto-import) libraries |
| + m4_if([$1], [GCJ], [], |
| + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| ;; |
| darwin* | rhapsody*) |
| # PIC is the default on this platform |
| @@ -4866,7 +5055,7 @@ |
| # DJGPP does not support shared libraries at all |
| _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| ;; |
| - interix3*) |
| + interix[[3-9]]*) |
| # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| # Instead, we relocate shared libraries at runtime. |
| ;; |
| @@ -4892,7 +5081,7 @@ |
| esac |
| else |
| case $host_os in |
| - aix4* | aix5*) |
| + aix[[4-9]]*) |
| # All AIX code is PIC. |
| if test "$host_cpu" = ia64; then |
| # AIX 5 now supports IA64 processor |
| @@ -4932,7 +5121,7 @@ |
| ;; |
| esac |
| ;; |
| - freebsd* | kfreebsd*-gnu | dragonfly*) |
| + freebsd* | dragonfly*) |
| # FreeBSD uses GNU C++ |
| ;; |
| hpux9* | hpux10* | hpux11*) |
| @@ -4975,7 +5164,7 @@ |
| ;; |
| esac |
| ;; |
| - linux*) |
| + linux* | k*bsd*-gnu) |
| case $cc_basename in |
| KCC*) |
| # KAI C++ Compiler |
| @@ -4988,7 +5177,7 @@ |
| _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| ;; |
| - pgCC*) |
| + pgCC* | pgcpp*) |
| # Portland Group C++ compiler. |
| _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| @@ -5002,6 +5191,14 @@ |
| _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| ;; |
| *) |
| + case `$CC -V 2>&1 | sed 5q` in |
| + *Sun\ C*) |
| + # Sun C++ 5.9 |
| + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| + ;; |
| + esac |
| ;; |
| esac |
| ;; |
| @@ -5018,7 +5215,7 @@ |
| ;; |
| esac |
| ;; |
| - netbsd*) |
| + netbsd* | netbsdelf*-gnu) |
| ;; |
| osf3* | osf4* | osf5*) |
| case $cc_basename in |
| @@ -5122,14 +5319,17 @@ |
| _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
| ;; |
| |
| - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| # PIC is the default for these OSes. |
| ;; |
| |
| - mingw* | pw32* | os2*) |
| + mingw* | cygwin* | pw32* | os2*) |
| # This hack is so that the source file can tell whether it is being |
| # built for inclusion in a dll (and should export symbols for example). |
| - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
| + # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| + # (--disable-auto-import) libraries |
| + m4_if([$1], [GCJ], [], |
| + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| ;; |
| |
| darwin* | rhapsody*) |
| @@ -5138,7 +5338,7 @@ |
| _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| ;; |
| |
| - interix3*) |
| + interix[[3-9]]*) |
| # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| # Instead, we relocate shared libraries at runtime. |
| ;; |
| @@ -5196,10 +5396,11 @@ |
| esac |
| ;; |
| |
| - mingw* | pw32* | os2*) |
| + mingw* | cygwin* | pw32* | os2*) |
| # This hack is so that the source file can tell whether it is being |
| # built for inclusion in a dll (and should export symbols for example). |
| - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
| + m4_if([$1], [GCJ], [], |
| + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| ;; |
| |
| hpux9* | hpux10* | hpux11*) |
| @@ -5229,7 +5430,7 @@ |
| _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| ;; |
| |
| - linux*) |
| + linux* | k*bsd*-gnu) |
| case $cc_basename in |
| icc* | ecc*) |
| _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| @@ -5248,6 +5449,22 @@ |
| # All Alpha code is PIC. |
| _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| ;; |
| + *) |
| + case `$CC -V 2>&1 | sed 5q` in |
| + *Sun\ C*) |
| + # Sun C 5.9 |
| + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| + ;; |
| + *Sun\ F*) |
| + # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' |
| + ;; |
| + esac |
| + ;; |
| esac |
| ;; |
| |
| @@ -5257,6 +5474,10 @@ |
| _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| ;; |
| |
| + rdos*) |
| + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| + ;; |
| + |
| solaris*) |
| _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| @@ -5316,7 +5537,7 @@ |
| # |
| if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then |
| AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], |
| - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), |
| + _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1), |
| [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], |
| [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in |
| "" | " "*) ;; |
| @@ -5340,7 +5561,7 @@ |
| # |
| wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" |
| AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
| - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
| + _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1), |
| $lt_tmp_static_flag, |
| [], |
| [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
| @@ -5351,11 +5572,12 @@ |
| # ------------------------------------ |
| # See if the linker supports building shared libraries. |
| AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], |
| -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
| +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| ifelse([$1],[CXX],[ |
| _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| case $host_os in |
| - aix4* | aix5*) |
| + aix[[4-9]]*) |
| # If we're using GNU nm, then we don't want the "-C" option. |
| # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| @@ -5368,12 +5590,16 @@ |
| _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
| ;; |
| cygwin* | mingw*) |
| - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' |
| + ;; |
| + linux* | k*bsd*-gnu) |
| + _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
| ;; |
| *) |
| _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| ;; |
| esac |
| + _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
| ],[ |
| runpath_var= |
| _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| @@ -5404,12 +5630,14 @@ |
| # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| # as well as any symbol that contains `d'. |
| - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" |
| + _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
| # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| # platforms (ab)use it in PIC code, but their linkers get confused if |
| # the symbol is explicitly referenced. Since portable code cannot |
| # rely on this symbol name, it's probably fine to never include it in |
| # preloaded symbol tables. |
| + # Exclude shared library initialization/finalization symbols. |
| +dnl Note also adjust exclude_expsyms for C++ above. |
| extract_expsyms_cmds= |
| # Just being paranoid about ensuring that cc_basename is set. |
| _LT_CC_BASENAME([$compiler]) |
| @@ -5459,7 +5687,7 @@ |
| |
| # See if GNU ld supports shared libraries. |
| case $host_os in |
| - aix3* | aix4* | aix5*) |
| + aix[[3-9]]*) |
| # On AIX/PPC, the GNU linker is very broken |
| if test "$host_cpu" != ia64; then |
| _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| @@ -5507,7 +5735,7 @@ |
| _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' |
| |
| if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| @@ -5525,7 +5753,7 @@ |
| fi |
| ;; |
| |
| - interix3*) |
| + interix[[3-9]]*) |
| _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| @@ -5540,7 +5768,7 @@ |
| _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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' |
| ;; |
| |
| - linux*) |
| + gnu* | linux* | k*bsd*-gnu) |
| if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| tmp_addflag= |
| case $cc_basename,$host_cpu in |
| @@ -5558,20 +5786,30 @@ |
| ifc* | ifort*) # Intel Fortran compiler |
| tmp_addflag=' -nofor_main' ;; |
| esac |
| - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| + case `$CC -V 2>&1 | sed 5q` in |
| + *Sun\ C*) # Sun C 5.9 |
| + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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' |
| + tmp_sharedflag='-G' ;; |
| + *Sun\ F*) # Sun Fortran 8.3 |
| + tmp_sharedflag='-G' ;; |
| + *) |
| + tmp_sharedflag='-shared' ;; |
| + esac |
| + _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| |
| if test $supports_anon_versioning = yes; then |
| _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
| cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| fi |
| + _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
| else |
| _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| fi |
| ;; |
| |
| - netbsd*) |
| + netbsd* | netbsdelf*-gnu) |
| if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| wlarc= |
| @@ -5604,7 +5842,7 @@ |
| |
| sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| case `$LD -v 2>&1` in |
| - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
| + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
| _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| cat <<_LT_EOF 1>&2 |
| |
| @@ -5669,7 +5907,7 @@ |
| fi |
| ;; |
| |
| - aix4* | aix5*) |
| + aix[[4-9]]*) |
| if test "$host_cpu" = ia64; then |
| # On IA64, the linker does run time linking by default, so we don't |
| # have to do anything special. |
| @@ -5689,7 +5927,7 @@ |
| # Test if we are trying to use run time linking or normal |
| # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| # need to do runtime linking. |
| - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
| for ld_flag in $LDFLAGS; do |
| if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| aix_use_runtimelinking=yes |
| @@ -5723,7 +5961,7 @@ |
| strings "$collect2name" | grep resolve_lib_name >/dev/null |
| then |
| # We have reworked collect2 |
| - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| + : |
| else |
| # We have old collect2 |
| _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| @@ -5816,7 +6054,7 @@ |
| # The linker will automatically build a .lib file if we build a DLL. |
| _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
| # FIXME: Should let the user specify the lib program. |
| - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
| _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| ;; |
| @@ -5849,19 +6087,18 @@ |
| _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| if test "$GCC" = yes ; then |
| output_verbose_link_cmd='echo' |
| - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| + _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}" |
| + _LT_AC_TAGVAR(module_expsym_cmds, $1)="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}" |
| else |
| case $cc_basename in |
| xlc*) |
| output_verbose_link_cmd='echo' |
| - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
| _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| ;; |
| *) |
| @@ -5901,7 +6138,7 @@ |
| ;; |
| |
| # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| - freebsd* | kfreebsd*-gnu | dragonfly*) |
| + freebsd* | dragonfly*) |
| _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| @@ -6003,7 +6240,7 @@ |
| _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| ;; |
| |
| - netbsd*) |
| + netbsd* | netbsdelf*-gnu) |
| if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| else |
| @@ -6023,24 +6260,28 @@ |
| ;; |
| |
| openbsd*) |
| - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| + if test -f /usr/libexec/ld.so; then |
| + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| + else |
| + case $host_os in |
| + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
| + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| + ;; |
| + *) |
| + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| + ;; |
| + esac |
| + fi |
| else |
| - case $host_os in |
| - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
| - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| - ;; |
| - *) |
| - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| - ;; |
| - esac |
| + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| fi |
| ;; |
| |
| @@ -6099,17 +6340,16 @@ |
| case $host_os in |
| solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| *) |
| - # The compiler driver will combine linker options so we |
| - # cannot just pass the convience library names through |
| - # without $wl, iff we do not link with $LD. |
| - # Luckily, gcc supports the same syntax we need for Sun Studio. |
| + # The compiler driver will combine and reorder linker options, |
| + # but understands `-z linker_flag'. GCC discards it without `$wl', |
| + # but is careful enough not to reorder. |
| # Supported since Solaris 2.6 (maybe 2.5.1?) |
| - case $wlarc in |
| - '') |
| - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
| - *) |
| - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| - esac ;; |
| + if test "$GCC" = yes; then |
| + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| + else |
| + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' |
| + fi |
| + ;; |
| esac |
| _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| ;; |
| @@ -6166,7 +6406,7 @@ |
| fi |
| ;; |
| |
| - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) |
| + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
| _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| @@ -6241,7 +6481,7 @@ |
| # to ld, don't add -lc before -lgcc. |
| AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
| $rm conftest* |
| - printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| |
| if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
| soname=conftest |
| @@ -6344,6 +6584,30 @@ |
| [AC_CHECK_TOOL(RC, windres, no) |
| ]) |
| |
| + |
| +# Cheap backport of AS_EXECUTABLE_P and required macros |
| +# from Autoconf 2.59; we should not use $as_executable_p directly. |
| + |
| +# _AS_TEST_PREPARE |
| +# ---------------- |
| +m4_ifndef([_AS_TEST_PREPARE], |
| +[m4_defun([_AS_TEST_PREPARE], |
| +[if test -x / >/dev/null 2>&1; then |
| + as_executable_p='test -x' |
| +else |
| + as_executable_p='test -f' |
| +fi |
| +])])# _AS_TEST_PREPARE |
| + |
| +# AS_EXECUTABLE_P |
| +# --------------- |
| +# Check whether a file is executable. |
| +m4_ifndef([AS_EXECUTABLE_P], |
| +[m4_defun([AS_EXECUTABLE_P], |
| +[AS_REQUIRE([_AS_TEST_PREPARE])dnl |
| +$as_executable_p $1[]dnl |
| +])])# AS_EXECUTABLE_P |
| + |
| # NOTE: This macro has been submitted for inclusion into # |
| # GNU Autoconf as AC_PROG_SED. When it is available in # |
| # a released version of Autoconf we should remove this # |
| @@ -6364,12 +6628,13 @@ |
| test -z "$as_dir" && as_dir=. |
| for lt_ac_prog in sed gsed; do |
| for ac_exec_ext in '' $ac_executable_extensions; do |
| - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| + if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then |
| lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| fi |
| done |
| done |
| done |
| +IFS=$as_save_IFS |
| lt_ac_max=0 |
| lt_ac_count=0 |
| # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| @@ -6402,10 +6667,11 @@ |
| done |
| ]) |
| SED=$lt_cv_path_SED |
| +AC_SUBST([SED]) |
| AC_MSG_RESULT([$SED]) |
| ]) |
| |
| -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. |
| +# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. |
| # |
| # This file is free software; the Free Software Foundation |
| # gives unlimited permission to copy and/or distribute it, |
| @@ -6415,14 +6681,31 @@ |
| # ---------------------------- |
| # Automake X.Y traces this macro to ensure aclocal.m4 has been |
| # generated from the m4 files accompanying Automake X.Y. |
| -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) |
| +# (This private macro should not be called outside this file.) |
| +AC_DEFUN([AM_AUTOMAKE_VERSION], |
| +[am__api_version='1.10' |
| +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
| +dnl require some minimum version. Point them to the right macro. |
| +m4_if([$1], [1.10.1], [], |
| + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
| +]) |
| + |
| +# _AM_AUTOCONF_VERSION(VERSION) |
| +# ----------------------------- |
| +# aclocal traces this macro to find the Autoconf version. |
| +# This is a private macro too. Using m4_define simplifies |
| +# the logic in aclocal, which can simply ignore this definition. |
| +m4_define([_AM_AUTOCONF_VERSION], []) |
| |
| # AM_SET_CURRENT_AUTOMAKE_VERSION |
| # ------------------------------- |
| -# Call AM_AUTOMAKE_VERSION so it can be traced. |
| +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
| # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
| AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
| - [AM_AUTOMAKE_VERSION([1.9.6])]) |
| +[AM_AUTOMAKE_VERSION([1.10.1])dnl |
| +m4_ifndef([AC_AUTOCONF_VERSION], |
| + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| +_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) |
| |
| # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
| |
| @@ -6479,14 +6762,14 @@ |
| |
| # AM_CONDITIONAL -*- Autoconf -*- |
| |
| -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 |
| +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 |
| # Free Software Foundation, Inc. |
| # |
| # This file is free software; the Free Software Foundation |
| # gives unlimited permission to copy and/or distribute it, |
| # with or without modifications, as long as this notice is preserved. |
| |
| -# serial 7 |
| +# serial 8 |
| |
| # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
| # ------------------------------------- |
| @@ -6495,8 +6778,10 @@ |
| [AC_PREREQ(2.52)dnl |
| ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
| [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
| -AC_SUBST([$1_TRUE]) |
| -AC_SUBST([$1_FALSE]) |
| +AC_SUBST([$1_TRUE])dnl |
| +AC_SUBST([$1_FALSE])dnl |
| +_AM_SUBST_NOTMAKE([$1_TRUE])dnl |
| +_AM_SUBST_NOTMAKE([$1_FALSE])dnl |
| if $2; then |
| $1_TRUE= |
| $1_FALSE='#' |
| @@ -6510,15 +6795,14 @@ |
| Usually this means the macro was only invoked conditionally.]]) |
| fi])]) |
| |
| - |
| -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
| +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 |
| # Free Software Foundation, Inc. |
| # |
| # This file is free software; the Free Software Foundation |
| # gives unlimited permission to copy and/or distribute it, |
| # with or without modifications, as long as this notice is preserved. |
| |
| -# serial 8 |
| +# serial 9 |
| |
| # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
| # written in clear, in which case automake, when reading aclocal.m4, |
| @@ -6546,6 +6830,7 @@ |
| ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
| [$1], CXX, [depcc="$CXX" am_compiler_list=], |
| [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
| + [$1], UPC, [depcc="$UPC" am_compiler_list=], |
| [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
| [depcc="$$1" am_compiler_list=]) |
| |
| @@ -6611,6 +6896,7 @@ |
| depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| >/dev/null 2>conftest.err && |
| + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| @@ -6663,7 +6949,8 @@ |
| AMDEPBACKSLASH='\' |
| fi |
| AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
| -AC_SUBST([AMDEPBACKSLASH]) |
| +AC_SUBST([AMDEPBACKSLASH])dnl |
| +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
| ]) |
| |
| # Generate code to set up dependency tracking. -*- Autoconf -*- |
| @@ -6688,8 +6975,9 @@ |
| # some people rename them; so instead we look at the file content. |
| # Grep'ing the first line is not enough: some people post-process |
| # each Makefile.in and add a new line on top of each file to say so. |
| - # So let's grep whole file. |
| - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| + # Grep'ing the whole file is not good either: AIX grep has a line |
| + # limit of 2048, but all sed's we know have understand at least 4000. |
| + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| dirpart=`AS_DIRNAME("$mf")` |
| else |
| continue |
| @@ -6734,28 +7022,16 @@ |
| [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
| ]) |
| |
| -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
| -# Free Software Foundation, Inc. |
| -# |
| -# This file is free software; the Free Software Foundation |
| -# gives unlimited permission to copy and/or distribute it, |
| -# with or without modifications, as long as this notice is preserved. |
| - |
| -# serial 8 |
| - |
| -# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
| -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
| - |
| # Do all the work for Automake. -*- Autoconf -*- |
| |
| -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
| -# Free Software Foundation, Inc. |
| +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| +# 2005, 2006, 2008 Free Software Foundation, Inc. |
| # |
| # This file is free software; the Free Software Foundation |
| # gives unlimited permission to copy and/or distribute it, |
| # with or without modifications, as long as this notice is preserved. |
| |
| -# serial 12 |
| +# serial 13 |
| |
| # This macro actually does too much. Some checks are only needed if |
| # your package does certain things. But this isn't really a big deal. |
| @@ -6772,16 +7048,20 @@ |
| # arguments mandatory, and then we can depend on a new Autoconf |
| # release and drop the old call support. |
| AC_DEFUN([AM_INIT_AUTOMAKE], |
| -[AC_PREREQ([2.58])dnl |
| +[AC_PREREQ([2.60])dnl |
| dnl Autoconf wants to disallow AM_ names. We explicitly allow |
| dnl the ones we care about. |
| m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
| AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
| AC_REQUIRE([AC_PROG_INSTALL])dnl |
| -# test to see if srcdir already configured |
| -if test "`cd $srcdir && pwd`" != "`pwd`" && |
| - test -f $srcdir/config.status; then |
| - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
| +if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| + # is not polluted with repeated "-I." |
| + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl |
| + # test to see if srcdir already configured |
| + if test -f $srcdir/config.status; then |
| + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
| + fi |
| fi |
| |
| # test whether we have cygpath |
| @@ -6801,6 +7081,9 @@ |
| AC_SUBST([PACKAGE], [$1])dnl |
| AC_SUBST([VERSION], [$2])], |
| [_AM_SET_OPTIONS([$1])dnl |
| +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
| +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, |
| + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
| AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
| AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
| |
| @@ -6836,6 +7119,10 @@ |
| [_AM_DEPENDENCIES(CXX)], |
| [define([AC_PROG_CXX], |
| defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
| +AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
| + [_AM_DEPENDENCIES(OBJC)], |
| + [define([AC_PROG_OBJC], |
| + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl |
| ]) |
| ]) |
| |
| @@ -6849,16 +7136,17 @@ |
| # our stamp files there. |
| AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
| [# Compute $1's index in $config_headers. |
| +_am_arg=$1 |
| _am_stamp_count=1 |
| for _am_header in $config_headers :; do |
| case $_am_header in |
| - $1 | $1:* ) |
| + $_am_arg | $_am_arg:* ) |
| break ;; |
| * ) |
| _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| esac |
| done |
| -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) |
| +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
| |
| # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
| # |
| @@ -6871,7 +7159,7 @@ |
| # Define $install_sh. |
| AC_DEFUN([AM_PROG_INSTALL_SH], |
| [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| -install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
| AC_SUBST(install_sh)]) |
| |
| # Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
| @@ -6949,14 +7237,14 @@ |
| |
| # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
| |
| -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 |
| +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 |
| # Free Software Foundation, Inc. |
| # |
| # This file is free software; the Free Software Foundation |
| # gives unlimited permission to copy and/or distribute it, |
| # with or without modifications, as long as this notice is preserved. |
| |
| -# serial 4 |
| +# serial 5 |
| |
| # AM_MISSING_PROG(NAME, PROGRAM) |
| # ------------------------------ |
| @@ -6972,6 +7260,7 @@ |
| # If it does, set am_missing_run to use it, otherwise, to nothing. |
| AC_DEFUN([AM_MISSING_HAS_RUN], |
| [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| +AC_REQUIRE_AUX_FILE([missing])dnl |
| test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| # Use eval to expand $SHELL |
| if eval "$MISSING --run true"; then |
| @@ -6982,7 +7271,7 @@ |
| fi |
| ]) |
| |
| -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. |
| +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| # |
| # This file is free software; the Free Software Foundation |
| # gives unlimited permission to copy and/or distribute it, |
| @@ -6990,60 +7279,23 @@ |
| |
| # AM_PROG_MKDIR_P |
| # --------------- |
| -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. |
| -# |
| -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories |
| -# created by `make install' are always world readable, even if the |
| -# installer happens to have an overly restrictive umask (e.g. 077). |
| -# This was a mistake. There are at least two reasons why we must not |
| -# use `-m 0755': |
| -# - it causes special bits like SGID to be ignored, |
| -# - it may be too restrictive (some setups expect 775 directories). |
| -# |
| -# Do not use -m 0755 and let people choose whatever they expect by |
| -# setting umask. |
| -# |
| -# We cannot accept any implementation of `mkdir' that recognizes `-p'. |
| -# Some implementations (such as Solaris 8's) are not thread-safe: if a |
| -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' |
| -# concurrently, both version can detect that a/ is missing, but only |
| -# one can create it and the other will error out. Consequently we |
| -# restrict ourselves to GNU make (using the --version option ensures |
| -# this.) |
| +# Check for `mkdir -p'. |
| AC_DEFUN([AM_PROG_MKDIR_P], |
| -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| - # We used to keeping the `.' as first argument, in order to |
| - # allow $(mkdir_p) to be used without argument. As in |
| - # $(mkdir_p) $(somedir) |
| - # where $(somedir) is conditionally defined. However this is wrong |
| - # for two reasons: |
| - # 1. if the package is installed by a user who cannot write `.' |
| - # make install will fail, |
| - # 2. the above comment should most certainly read |
| - # $(mkdir_p) $(DESTDIR)$(somedir) |
| - # so it does not work when $(somedir) is undefined and |
| - # $(DESTDIR) is not. |
| - # To support the latter case, we have to write |
| - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| - # so the `.' trick is pointless. |
| - mkdir_p='mkdir -p --' |
| -else |
| - # On NextStep and OpenStep, the `mkdir' command does not |
| - # recognize any option. It will interpret all options as |
| - # directories to create, and then abort because `.' already |
| - # exists. |
| - for d in ./-p ./--version; |
| - do |
| - test -d $d && rmdir $d |
| - done |
| - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| - if test -f "$ac_aux_dir/mkinstalldirs"; then |
| - mkdir_p='$(mkinstalldirs)' |
| - else |
| - mkdir_p='$(install_sh) -d' |
| - fi |
| -fi |
| -AC_SUBST([mkdir_p])]) |
| +[AC_PREREQ([2.60])dnl |
| +AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
| +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, |
| +dnl while keeping a definition of mkdir_p for backward compatibility. |
| +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. |
| +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of |
| +dnl Makefile.ins that do not define MKDIR_P, so we do our own |
| +dnl adjustment using top_builddir (which is defined more often than |
| +dnl MKDIR_P). |
| +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl |
| +case $mkdir_p in |
| + [[\\/$]]* | ?:[[\\/]]*) ;; |
| + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| +esac |
| +]) |
| |
| # Helper functions for option handling. -*- Autoconf -*- |
| |
| @@ -7155,9 +7407,21 @@ |
| if test "$cross_compiling" != no; then |
| AC_CHECK_TOOL([STRIP], [strip], :) |
| fi |
| -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
| |
| +# Copyright (C) 2006 Free Software Foundation, Inc. |
| +# |
| +# This file is free software; the Free Software Foundation |
| +# gives unlimited permission to copy and/or distribute it, |
| +# with or without modifications, as long as this notice is preserved. |
| + |
| +# _AM_SUBST_NOTMAKE(VARIABLE) |
| +# --------------------------- |
| +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
| +# This macro is traced by Automake. |
| +AC_DEFUN([_AM_SUBST_NOTMAKE]) |
| + |
| # Check how to create a tarball. -*- Autoconf -*- |
| |
| # Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
| diff -aruN sysfsutils-2.1.0/cmd/Makefile.in sysfsutils-2.1.0.N/cmd/Makefile.in |
| --- sysfsutils-2.1.0/cmd/Makefile.in 2006-08-23 01:38:56.000000000 -0700 |
| +++ sysfsutils-2.1.0.N/cmd/Makefile.in 2008-12-09 13:18:07.000000000 -0800 |
| @@ -1,8 +1,8 @@ |
| -# Makefile.in generated by automake 1.9.6 from Makefile.am. |
| +# Makefile.in generated by automake 1.10.1 from Makefile.am. |
| # @configure_input@ |
| |
| # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
| -# 2003, 2004, 2005 Free Software Foundation, Inc. |
| +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| # This Makefile.in is free software; the Free Software Foundation |
| # gives unlimited permission to copy and/or distribute it, |
| # with or without modifications, as long as this notice is preserved. |
| @@ -14,15 +14,11 @@ |
| |
| @SET_MAKE@ |
| |
| -srcdir = @srcdir@ |
| -top_srcdir = @top_srcdir@ |
| VPATH = @srcdir@ |
| pkgdatadir = $(datadir)/@PACKAGE@ |
| pkglibdir = $(libdir)/@PACKAGE@ |
| pkgincludedir = $(includedir)/@PACKAGE@ |
| -top_builddir = .. |
| am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
| -INSTALL = @INSTALL@ |
| install_sh_DATA = $(install_sh) -c -m 644 |
| install_sh_PROGRAM = $(install_sh) -c |
| install_sh_SCRIPT = $(install_sh) -c |
| @@ -54,25 +50,24 @@ |
| systool_OBJECTS = $(am_systool_OBJECTS) |
| systool_LDADD = $(LDADD) |
| systool_DEPENDENCIES = ../lib/libsysfs.la |
| -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) |
| +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
| depcomp = $(SHELL) $(top_srcdir)/depcomp |
| am__depfiles_maybe = depfiles |
| COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ |
| $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
| -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ |
| - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ |
| - $(AM_CFLAGS) $(CFLAGS) |
| +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
| + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ |
| + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
| CCLD = $(CC) |
| -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
| - $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
| +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
| + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ |
| + $(LDFLAGS) -o $@ |
| SOURCES = $(systool_SOURCES) |
| DIST_SOURCES = $(systool_SOURCES) |
| ETAGS = etags |
| CTAGS = ctags |
| DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
| ACLOCAL = @ACLOCAL@ |
| -AMDEP_FALSE = @AMDEP_FALSE@ |
| -AMDEP_TRUE = @AMDEP_TRUE@ |
| AMTAR = @AMTAR@ |
| AR = @AR@ |
| AUTOCONF = @AUTOCONF@ |
| @@ -91,6 +86,7 @@ |
| CYGPATH_W = @CYGPATH_W@ |
| DEFS = @DEFS@ |
| DEPDIR = @DEPDIR@ |
| +DSYMUTIL = @DSYMUTIL@ |
| ECHO = @ECHO@ |
| ECHO_C = @ECHO_C@ |
| ECHO_N = @ECHO_N@ |
| @@ -100,14 +96,14 @@ |
| EXTRA_CFLAGS = @EXTRA_CFLAGS@ |
| F77 = @F77@ |
| FFLAGS = @FFLAGS@ |
| +GREP = @GREP@ |
| +INSTALL = @INSTALL@ |
| INSTALL_DATA = @INSTALL_DATA@ |
| INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
| INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
| KLCC = @KLCC@ |
| KLIBC = @KLIBC@ |
| -KLIBC_FALSE = @KLIBC_FALSE@ |
| -KLIBC_TRUE = @KLIBC_TRUE@ |
| LDFLAGS = @LDFLAGS@ |
| LIBOBJS = @LIBOBJS@ |
| LIBS = @LIBS@ |
| @@ -115,6 +111,8 @@ |
| LN_S = @LN_S@ |
| LTLIBOBJS = @LTLIBOBJS@ |
| MAKEINFO = @MAKEINFO@ |
| +MKDIR_P = @MKDIR_P@ |
| +NMEDIT = @NMEDIT@ |
| OBJEXT = @OBJEXT@ |
| PACKAGE = @PACKAGE@ |
| PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
| @@ -124,20 +122,18 @@ |
| PACKAGE_VERSION = @PACKAGE_VERSION@ |
| PATH_SEPARATOR = @PATH_SEPARATOR@ |
| RANLIB = @RANLIB@ |
| +SED = @SED@ |
| SET_MAKE = @SET_MAKE@ |
| SHELL = @SHELL@ |
| STRIP = @STRIP@ |
| VERSION = @VERSION@ |
| -ac_ct_AR = @ac_ct_AR@ |
| +abs_builddir = @abs_builddir@ |
| +abs_srcdir = @abs_srcdir@ |
| +abs_top_builddir = @abs_top_builddir@ |
| +abs_top_srcdir = @abs_top_srcdir@ |
| ac_ct_CC = @ac_ct_CC@ |
| ac_ct_CXX = @ac_ct_CXX@ |
| ac_ct_F77 = @ac_ct_F77@ |
| -ac_ct_RANLIB = @ac_ct_RANLIB@ |
| -ac_ct_STRIP = @ac_ct_STRIP@ |
| -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ |
| -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ |
| -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ |
| -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ |
| am__include = @am__include@ |
| am__leading_dot = @am__leading_dot@ |
| am__quote = @am__quote@ |
| @@ -149,30 +145,41 @@ |
| build_cpu = @build_cpu@ |
| build_os = @build_os@ |
| build_vendor = @build_vendor@ |
| +builddir = @builddir@ |
| datadir = @datadir@ |
| +datarootdir = @datarootdir@ |
| +docdir = @docdir@ |
| +dvidir = @dvidir@ |
| exec_prefix = @exec_prefix@ |
| host = @host@ |
| host_alias = @host_alias@ |
| host_cpu = @host_cpu@ |
| host_os = @host_os@ |
| host_vendor = @host_vendor@ |
| +htmldir = @htmldir@ |
| includedir = @includedir@ |
| infodir = @infodir@ |
| install_sh = @install_sh@ |
| libdir = @libdir@ |
| libexecdir = @libexecdir@ |
| +localedir = @localedir@ |
| localstatedir = @localstatedir@ |
| mandir = @mandir@ |
| mkdir_p = @mkdir_p@ |
| oldincludedir = @oldincludedir@ |
| +pdfdir = @pdfdir@ |
| prefix = @prefix@ |
| program_transform_name = @program_transform_name@ |
| +psdir = @psdir@ |
| sbindir = @sbindir@ |
| sharedstatedir = @sharedstatedir@ |
| +srcdir = @srcdir@ |
| sysconfdir = @sysconfdir@ |
| target_alias = @target_alias@ |
| +top_builddir = @top_builddir@ |
| +top_srcdir = @top_srcdir@ |
| systool_SOURCES = systool.c names.c names.h |
| -INCLUDES = -I../include |
| +INCLUDES = -I$(top_srcdir)/include |
| LDADD = ../lib/libsysfs.la |
| AM_CFLAGS = -Wall -W -Wstrict-prototypes $(EXTRA_CFLAGS) |
| all: all-am |
| @@ -210,15 +217,15 @@ |
| cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
| install-binPROGRAMS: $(bin_PROGRAMS) |
| @$(NORMAL_INSTALL) |
| - test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" |
| + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" |
| @list='$(bin_PROGRAMS)'; for p in $$list; do \ |
| p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ |
| if test -f $$p \ |
| || test -f $$p1 \ |
| ; then \ |
| f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ |
| - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ |
| - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ |
| + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ |
| + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ |
| else :; fi; \ |
| done |
| |
| @@ -238,7 +245,7 @@ |
| done |
| systool$(EXEEXT): $(systool_OBJECTS) $(systool_DEPENDENCIES) |
| @rm -f systool$(EXEEXT) |
| - $(LINK) $(systool_LDFLAGS) $(systool_OBJECTS) $(systool_LDADD) $(LIBS) |
| + $(LINK) $(systool_OBJECTS) $(systool_LDADD) $(LIBS) |
| |
| mostlyclean-compile: |
| -rm -f *.$(OBJEXT) |
| @@ -250,22 +257,22 @@ |
| @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/systool.Po@am__quote@ |
| |
| .c.o: |
| -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ |
| -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi |
| +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
| +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
| @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| @am__fastdepCC_FALSE@ $(COMPILE) -c $< |
| |
| .c.obj: |
| -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ |
| -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi |
| +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` |
| +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
| @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` |
| |
| .c.lo: |
| -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ |
| -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi |
| +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
| +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo |
| @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ |
| @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< |
| @@ -276,17 +283,13 @@ |
| clean-libtool: |
| -rm -rf .libs _libs |
| |
| -distclean-libtool: |
| - -rm -f libtool |
| -uninstall-info-am: |
| - |
| ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
| list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ |
| unique=`for i in $$list; do \ |
| if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
| done | \ |
| - $(AWK) ' { files[$$0] = 1; } \ |
| - END { for (i in files) print i; }'`; \ |
| + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ |
| + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
| mkid -fID $$unique |
| tags: TAGS |
| |
| @@ -298,8 +301,8 @@ |
| unique=`for i in $$list; do \ |
| if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
| done | \ |
| - $(AWK) ' { files[$$0] = 1; } \ |
| - END { for (i in files) print i; }'`; \ |
| + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
| + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
| if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ |
| test -n "$$unique" || unique=$$empty_fix; \ |
| $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
| @@ -309,13 +312,12 @@ |
| CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ |
| $(TAGS_FILES) $(LISP) |
| tags=; \ |
| - here=`pwd`; \ |
| list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ |
| unique=`for i in $$list; do \ |
| if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
| done | \ |
| - $(AWK) ' { files[$$0] = 1; } \ |
| - END { for (i in files) print i; }'`; \ |
| + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
| + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
| test -z "$(CTAGS_ARGS)$$tags$$unique" \ |
| || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
| $$tags $$unique |
| @@ -329,22 +331,21 @@ |
| -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
| |
| distdir: $(DISTFILES) |
| - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ |
| - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ |
| - list='$(DISTFILES)'; for file in $$list; do \ |
| - case $$file in \ |
| - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ |
| - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ |
| - esac; \ |
| + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
| + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
| + list='$(DISTFILES)'; \ |
| + dist_files=`for file in $$list; do echo $$file; done | \ |
| + sed -e "s|^$$srcdirstrip/||;t" \ |
| + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ |
| + case $$dist_files in \ |
| + */*) $(MKDIR_P) `echo "$$dist_files" | \ |
| + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ |
| + sort -u` ;; \ |
| + esac; \ |
| + for file in $$dist_files; do \ |
| if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ |
| - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ |
| - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ |
| - dir="/$$dir"; \ |
| - $(mkdir_p) "$(distdir)$$dir"; \ |
| - else \ |
| - dir=''; \ |
| - fi; \ |
| if test -d $$d/$$file; then \ |
| + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ |
| if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ |
| cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ |
| fi; \ |
| @@ -360,7 +361,7 @@ |
| all-am: Makefile $(PROGRAMS) |
| installdirs: |
| for dir in "$(DESTDIR)$(bindir)"; do \ |
| - test -z "$$dir" || $(mkdir_p) "$$dir"; \ |
| + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ |
| done |
| install: install-am |
| install-exec: install-exec-am |
| @@ -394,7 +395,7 @@ |
| -rm -rf ./$(DEPDIR) |
| -rm -f Makefile |
| distclean-am: clean-am distclean-compile distclean-generic \ |
| - distclean-libtool distclean-tags |
| + distclean-tags |
| |
| dvi: dvi-am |
| |
| @@ -408,12 +409,20 @@ |
| |
| install-data-am: |
| |
| +install-dvi: install-dvi-am |
| + |
| install-exec-am: install-binPROGRAMS |
| |
| +install-html: install-html-am |
| + |
| install-info: install-info-am |
| |
| install-man: |
| |
| +install-pdf: install-pdf-am |
| + |
| +install-ps: install-ps-am |
| + |
| installcheck-am: |
| |
| maintainer-clean: maintainer-clean-am |
| @@ -434,19 +443,23 @@ |
| |
| ps-am: |
| |
| -uninstall-am: uninstall-binPROGRAMS uninstall-info-am |
| +uninstall-am: uninstall-binPROGRAMS |
| + |
| +.MAKE: install-am install-strip |
| |
| .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ |
| clean-generic clean-libtool ctags distclean distclean-compile \ |
| distclean-generic distclean-libtool distclean-tags distdir dvi \ |
| dvi-am html html-am info info-am install install-am \ |
| - install-binPROGRAMS install-data install-data-am install-exec \ |
| - install-exec-am install-info install-info-am install-man \ |
| + install-binPROGRAMS install-data install-data-am install-dvi \ |
| + install-dvi-am install-exec install-exec-am install-html \ |
| + install-html-am install-info install-info-am install-man \ |
| + install-pdf install-pdf-am install-ps install-ps-am \ |
| install-strip installcheck installcheck-am installdirs \ |
| maintainer-clean maintainer-clean-generic mostlyclean \ |
| mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ |
| pdf pdf-am ps ps-am tags uninstall uninstall-am \ |
| - uninstall-binPROGRAMS uninstall-info-am |
| + uninstall-binPROGRAMS |
| |
| # Tell versions [3.59,3.63) of GNU make to not export all variables. |
| # Otherwise a system limit (for SysV at least) may be exceeded. |
| diff -aruN sysfsutils-2.1.0/configure sysfsutils-2.1.0.N/configure |
| --- sysfsutils-2.1.0/configure 2006-08-23 01:38:52.000000000 -0700 |
| +++ sysfsutils-2.1.0.N/configure 2008-12-09 13:18:04.000000000 -0800 |
| @@ -1,27 +1,56 @@ |
| #! /bin/sh |
| # Guess values for system-dependent variables and create Makefiles. |
| -# Generated by GNU Autoconf 2.59 for sysfsutils 2.1.0. |
| +# Generated by GNU Autoconf 2.61 for sysfsutils 2.1.0. |
| # |
| # Report bugs to <linux-diag-devel@lists.sourceforge.net>. |
| # |
| -# Copyright (C) 2003 Free Software Foundation, Inc. |
| +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| # This configure script is free software; the Free Software Foundation |
| # gives unlimited permission to copy, distribute and modify it. |
| ## --------------------- ## |
| ## M4sh Initialization. ## |
| ## --------------------- ## |
| |
| -# Be Bourne compatible |
| +# Be more Bourne compatible |
| +DUALCASE=1; export DUALCASE # for MKS sh |
| if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| emulate sh |
| NULLCMD=: |
| # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| # is contrary to our usage. Disable this feature. |
| alias -g '${1+"$@"}'='"$@"' |
| -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| - set -o posix |
| + setopt NO_GLOB_SUBST |
| +else |
| + case `(set -o) 2>/dev/null` in |
| + *posix*) set -o posix ;; |
| +esac |
| + |
| +fi |
| + |
| + |
| + |
| + |
| +# PATH needs CR |
| +# Avoid depending upon Character Ranges. |
| +as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| +as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| +as_cr_digits='0123456789' |
| +as_cr_alnum=$as_cr_Letters$as_cr_digits |
| + |
| +# The user is always right. |
| +if test "${PATH_SEPARATOR+set}" != set; then |
| + echo "#! /bin/sh" >conf$$.sh |
| + echo "exit 0" >>conf$$.sh |
| + chmod +x conf$$.sh |
| + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| + PATH_SEPARATOR=';' |
| + else |
| + PATH_SEPARATOR=: |
| + fi |
| + rm -f conf$$.sh |
| fi |
| -DUALCASE=1; export DUALCASE # for MKS sh |
| |
| # Support unset when possible. |
| if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| @@ -31,8 +60,43 @@ |
| fi |
| |
| |
| +# IFS |
| +# We need space, tab and new line, in precisely that order. Quoting is |
| +# there to prevent editors from complaining about space-tab. |
| +# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| +# splitting by setting IFS to empty value.) |
| +as_nl=' |
| +' |
| +IFS=" "" $as_nl" |
| + |
| +# Find who we are. Look in the path if we contain no directory separator. |
| +case $0 in |
| + *[\\/]* ) as_myself=$0 ;; |
| + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| +for as_dir in $PATH |
| +do |
| + IFS=$as_save_IFS |
| + test -z "$as_dir" && as_dir=. |
| + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| +done |
| +IFS=$as_save_IFS |
| + |
| + ;; |
| +esac |
| +# We did not find ourselves, most probably we were run as `sh COMMAND' |
| +# in which case we are not to be found in the path. |
| +if test "x$as_myself" = x; then |
| + as_myself=$0 |
| +fi |
| +if test ! -f "$as_myself"; then |
| + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| + { (exit 1); exit 1; } |
| +fi |
| + |
| # Work around bugs in pre-3.0 UWIN ksh. |
| -$as_unset ENV MAIL MAILPATH |
| +for as_var in ENV MAIL MAILPATH |
| +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| +done |
| PS1='$ ' |
| PS2='> ' |
| PS4='+ ' |
| @@ -46,18 +110,19 @@ |
| if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| eval $as_var=C; export $as_var |
| else |
| - $as_unset $as_var |
| + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| fi |
| done |
| |
| # Required to use basename. |
| -if expr a : '\(a\)' >/dev/null 2>&1; then |
| +if expr a : '\(a\)' >/dev/null 2>&1 && |
| + test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| as_expr=expr |
| else |
| as_expr=false |
| fi |
| |
| -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| as_basename=basename |
| else |
| as_basename=false |
| @@ -65,157 +130,388 @@ |
| |
| |
| # Name of the executable. |
| -as_me=`$as_basename "$0" || |
| +as_me=`$as_basename -- "$0" || |
| $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| X"$0" : 'X\(//\)$' \| \ |
| - X"$0" : 'X\(/\)$' \| \ |
| - . : '\(.\)' 2>/dev/null || |
| + X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| echo X/"$0" | |
| - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| - /^X\/\(\/\/\)$/{ s//\1/; q; } |
| - /^X\/\(\/\).*/{ s//\1/; q; } |
| - s/.*/./; q'` |
| + sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| + s//\1/ |
| + q |
| + } |
| + /^X\/\(\/\/\)$/{ |
| + s//\1/ |
| + q |
| + } |
| + /^X\/\(\/\).*/{ |
| + s//\1/ |
| + q |
| + } |
| + s/.*/./; q'` |
| |
| +# CDPATH. |
| +$as_unset CDPATH |
| |
| -# PATH needs CR, and LINENO needs CR and PATH. |
| -# Avoid depending upon Character Ranges. |
| -as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| -as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| -as_cr_digits='0123456789' |
| -as_cr_alnum=$as_cr_Letters$as_cr_digits |
| |
| -# The user is always right. |
| -if test "${PATH_SEPARATOR+set}" != set; then |
| - echo "#! /bin/sh" >conf$$.sh |
| - echo "exit 0" >>conf$$.sh |
| - chmod +x conf$$.sh |
| - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| - PATH_SEPARATOR=';' |
| - else |
| - PATH_SEPARATOR=: |
| - fi |
| - rm -f conf$$.sh |
| +if test "x$CONFIG_SHELL" = x; then |
| + if (eval ":") 2>/dev/null; then |
| + as_have_required=yes |
| +else |
| + as_have_required=no |
| fi |
| |
| + if test $as_have_required = yes && (eval ": |
| +(as_func_return () { |
| + (exit \$1) |
| +} |
| +as_func_success () { |
| + as_func_return 0 |
| +} |
| +as_func_failure () { |
| + as_func_return 1 |
| +} |
| +as_func_ret_success () { |
| + return 0 |
| +} |
| +as_func_ret_failure () { |
| + return 1 |
| +} |
| |
| - as_lineno_1=$LINENO |
| - as_lineno_2=$LINENO |
| - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| - test "x$as_lineno_1" != "x$as_lineno_2" && |
| - test "x$as_lineno_3" = "x$as_lineno_2" || { |
| - # Find who we are. Look in the path if we contain no path at all |
| - # relative or not. |
| - case $0 in |
| - *[\\/]* ) as_myself=$0 ;; |
| - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| -for as_dir in $PATH |
| -do |
| - IFS=$as_save_IFS |
| - test -z "$as_dir" && as_dir=. |
| - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| -done |
| +exitcode=0 |
| +if as_func_success; then |
| + : |
| +else |
| + exitcode=1 |
| + echo as_func_success failed. |
| +fi |
| |
| - ;; |
| - esac |
| - # We did not find ourselves, most probably we were run as `sh COMMAND' |
| - # in which case we are not to be found in the path. |
| - if test "x$as_myself" = x; then |
| - as_myself=$0 |
| - fi |
| - if test ! -f "$as_myself"; then |
| - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| - { (exit 1); exit 1; }; } |
| - fi |
| - case $CONFIG_SHELL in |
| - '') |
| +if as_func_failure; then |
| + exitcode=1 |
| + echo as_func_failure succeeded. |
| +fi |
| + |
| +if as_func_ret_success; then |
| + : |
| +else |
| + exitcode=1 |
| + echo as_func_ret_success failed. |
| +fi |
| + |
| +if as_func_ret_failure; then |
| + exitcode=1 |
| + echo as_func_ret_failure succeeded. |
| +fi |
| + |
| +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| + : |
| +else |
| + exitcode=1 |
| + echo positional parameters were not saved. |
| +fi |
| + |
| +test \$exitcode = 0) || { (exit 1); exit 1; } |
| + |
| +( |
| + as_lineno_1=\$LINENO |
| + as_lineno_2=\$LINENO |
| + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| +") 2> /dev/null; then |
| + : |
| +else |
| + as_candidate_shells= |
| as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| do |
| IFS=$as_save_IFS |
| test -z "$as_dir" && as_dir=. |
| - for as_base in sh bash ksh sh5; do |
| - case $as_dir in |
| + case $as_dir in |
| /*) |
| - if ("$as_dir/$as_base" -c ' |
| + for as_base in sh bash ksh sh5; do |
| + as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| + done;; |
| + esac |
| +done |
| +IFS=$as_save_IFS |
| + |
| + |
| + for as_shell in $as_candidate_shells $SHELL; do |
| + # Try only shells that exist, to save several forks. |
| + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| + { ("$as_shell") 2> /dev/null <<\_ASEOF |
| +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| + emulate sh |
| + NULLCMD=: |
| + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| + # is contrary to our usage. Disable this feature. |
| + alias -g '${1+"$@"}'='"$@"' |
| + setopt NO_GLOB_SUBST |
| +else |
| + case `(set -o) 2>/dev/null` in |
| + *posix*) set -o posix ;; |
| +esac |
| + |
| +fi |
| + |
| + |
| +: |
| +_ASEOF |
| +}; then |
| + CONFIG_SHELL=$as_shell |
| + as_have_required=yes |
| + if { "$as_shell" 2> /dev/null <<\_ASEOF |
| +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| + emulate sh |
| + NULLCMD=: |
| + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| + # is contrary to our usage. Disable this feature. |
| + alias -g '${1+"$@"}'='"$@"' |
| + setopt NO_GLOB_SUBST |
| +else |
| + case `(set -o) 2>/dev/null` in |
| + *posix*) set -o posix ;; |
| +esac |
| + |
| +fi |
| + |
| + |
| +: |
| +(as_func_return () { |
| + (exit $1) |
| +} |
| +as_func_success () { |
| + as_func_return 0 |
| +} |
| +as_func_failure () { |
| + as_func_return 1 |
| +} |
| +as_func_ret_success () { |
| + return 0 |
| +} |
| +as_func_ret_failure () { |
| + return 1 |
| +} |
| + |
| +exitcode=0 |
| +if as_func_success; then |
| + : |
| +else |
| + exitcode=1 |
| + echo as_func_success failed. |
| +fi |
| + |
| +if as_func_failure; then |
| + exitcode=1 |
| + echo as_func_failure succeeded. |
| +fi |
| + |
| +if as_func_ret_success; then |
| + : |
| +else |
| + exitcode=1 |
| + echo as_func_ret_success failed. |
| +fi |
| + |
| +if as_func_ret_failure; then |
| + exitcode=1 |
| + echo as_func_ret_failure succeeded. |
| +fi |
| + |
| +if ( set x; as_func_ret_success y && test x = "$1" ); then |
| + : |
| +else |
| + exitcode=1 |
| + echo positional parameters were not saved. |
| +fi |
| + |
| +test $exitcode = 0) || { (exit 1); exit 1; } |
| + |
| +( |
| as_lineno_1=$LINENO |
| as_lineno_2=$LINENO |
| - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| test "x$as_lineno_1" != "x$as_lineno_2" && |
| - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| - CONFIG_SHELL=$as_dir/$as_base |
| - export CONFIG_SHELL |
| - exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| - fi;; |
| - esac |
| - done |
| -done |
| -;; |
| - esac |
| + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| + |
| +_ASEOF |
| +}; then |
| + break |
| +fi |
| + |
| +fi |
| + |
| + done |
| + |
| + if test "x$CONFIG_SHELL" != x; then |
| + for as_var in BASH_ENV ENV |
| + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| + done |
| + export CONFIG_SHELL |
| + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| +fi |
| + |
| + |
| + if test $as_have_required = no; then |
| + echo This script requires a shell more modern than all the |
| + echo shells that I found on your system. Please install a |
| + echo modern shell, or manually run the script under such a |
| + echo shell if you do have one. |
| + { (exit 1); exit 1; } |
| +fi |
| + |
| + |
| +fi |
| + |
| +fi |
| + |
| + |
| + |
| +(eval "as_func_return () { |
| + (exit \$1) |
| +} |
| +as_func_success () { |
| + as_func_return 0 |
| +} |
| +as_func_failure () { |
| + as_func_return 1 |
| +} |
| +as_func_ret_success () { |
| + return 0 |
| +} |
| +as_func_ret_failure () { |
| + return 1 |
| +} |
| + |
| +exitcode=0 |
| +if as_func_success; then |
| + : |
| +else |
| + exitcode=1 |
| + echo as_func_success failed. |
| +fi |
| + |
| +if as_func_failure; then |
| + exitcode=1 |
| + echo as_func_failure succeeded. |
| +fi |
| + |
| +if as_func_ret_success; then |
| + : |
| +else |
| + exitcode=1 |
| + echo as_func_ret_success failed. |
| +fi |
| + |
| +if as_func_ret_failure; then |
| + exitcode=1 |
| + echo as_func_ret_failure succeeded. |
| +fi |
| + |
| +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| + : |
| +else |
| + exitcode=1 |
| + echo positional parameters were not saved. |
| +fi |
| + |
| +test \$exitcode = 0") || { |
| + echo No shell found that supports shell functions. |
| + echo Please tell autoconf@gnu.org about your system, |
| + echo including any error possibly output before this |
| + echo message |
| +} |
| + |
| + |
| + |
| + as_lineno_1=$LINENO |
| + as_lineno_2=$LINENO |
| + test "x$as_lineno_1" != "x$as_lineno_2" && |
| + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| |
| # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| # uniformly replaced by the line number. The first 'sed' inserts a |
| - # line-number line before each line; the second 'sed' does the real |
| - # work. The second script uses 'N' to pair each line-number line |
| - # with the numbered line, and appends trailing '-' during |
| - # substitution so that $LINENO is not a special case at line end. |
| + # line-number line after each line using $LINENO; the second 'sed' |
| + # does the real work. The second script uses 'N' to pair each |
| + # line-number line with the line containing $LINENO, and appends |
| + # trailing '-' during substitution so that $LINENO is not a special |
| + # case at line end. |
| # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| - sed '=' <$as_myself | |
| + # scripts with optimization help from Paolo Bonzini. Blame Lee |
| + # E. McMahon (1931-1989) for sed's syntax. :-) |
| + sed -n ' |
| + p |
| + /[$]LINENO/= |
| + ' <$as_myself | |
| sed ' |
| + s/[$]LINENO.*/&-/ |
| + t lineno |
| + b |
| + :lineno |
| N |
| - s,$,-, |
| - : loop |
| - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| + :loop |
| + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| t loop |
| - s,-$,, |
| - s,^['$as_cr_digits']*\n,, |
| + s/-\n.*// |
| ' >$as_me.lineno && |
| - chmod +x $as_me.lineno || |
| + chmod +x "$as_me.lineno" || |
| { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| { (exit 1); exit 1; }; } |
| |
| # Don't try to exec as it changes $[0], causing all sort of problems |
| # (the dirname of $[0] is not the place where we might find the |
| - # original and so on. Autoconf is especially sensible to this). |
| - . ./$as_me.lineno |
| + # original and so on. Autoconf is especially sensitive to this). |
| + . "./$as_me.lineno" |
| # Exit status is that of the last command. |
| exit |
| } |
| |
| |
| -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| - *c*,-n*) ECHO_N= ECHO_C=' |
| -' ECHO_T=' ' ;; |
| - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| + as_dirname=dirname |
| +else |
| + as_dirname=false |
| +fi |
| + |
| +ECHO_C= ECHO_N= ECHO_T= |
| +case `echo -n x` in |
| +-n*) |
| + case `echo 'x\c'` in |
| + *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| + *) ECHO_C='\c';; |
| + esac;; |
| +*) |
| + ECHO_N='-n';; |
| esac |
| |
| -if expr a : '\(a\)' >/dev/null 2>&1; then |
| +if expr a : '\(a\)' >/dev/null 2>&1 && |
| + test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| as_expr=expr |
| else |
| as_expr=false |
| fi |
| |
| rm -f conf$$ conf$$.exe conf$$.file |
| +if test -d conf$$.dir; then |
| + rm -f conf$$.dir/conf$$.file |
| +else |
| + rm -f conf$$.dir |
| + mkdir conf$$.dir |
| +fi |
| echo >conf$$.file |
| if ln -s conf$$.file conf$$ 2>/dev/null; then |
| - # We could just check for DJGPP; but this test a) works b) is more generic |
| - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| - if test -f conf$$.exe; then |
| - # Don't use ln at all; we don't have any links |
| + as_ln_s='ln -s' |
| + # ... but there are two gotchas: |
| + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| + # In both cases, we have to default to `cp -p'. |
| + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| as_ln_s='cp -p' |
| - else |
| - as_ln_s='ln -s' |
| - fi |
| elif ln conf$$.file conf$$ 2>/dev/null; then |
| as_ln_s=ln |
| else |
| as_ln_s='cp -p' |
| fi |
| -rm -f conf$$ conf$$.exe conf$$.file |
| +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| +rmdir conf$$.dir 2>/dev/null |
| |
| if mkdir -p . 2>/dev/null; then |
| as_mkdir_p=: |
| @@ -224,7 +520,28 @@ |
| as_mkdir_p=false |
| fi |
| |
| -as_executable_p="test -f" |
| +if test -x / >/dev/null 2>&1; then |
| + as_test_x='test -x' |
| +else |
| + if ls -dL / >/dev/null 2>&1; then |
| + as_ls_L_option=L |
| + else |
| + as_ls_L_option= |
| + fi |
| + as_test_x=' |
| + eval sh -c '\'' |
| + if test -d "$1"; then |
| + test -d "$1/."; |
| + else |
| + case $1 in |
| + -*)set "./$1";; |
| + esac; |
| + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| + ???[sx]*):;;*)false;;esac;fi |
| + '\'' sh |
| + ' |
| +fi |
| +as_executable_p=$as_test_x |
| |
| # Sed expression to map a string onto a valid CPP name. |
| as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| @@ -233,15 +550,6 @@ |
| as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| |
| |
| -# IFS |
| -# We need space, tab and new line, in precisely that order. |
| -as_nl=' |
| -' |
| -IFS=" $as_nl" |
| - |
| -# CDPATH. |
| -$as_unset CDPATH |
| - |
| |
| |
| # Check that we are running under the correct shell. |
| @@ -397,29 +705,26 @@ |
| |
| tagnames=${tagnames+${tagnames},}F77 |
| |
| +exec 7<&0 </dev/null 6>&1 |
| + |
| # Name of the host. |
| # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| # so uname gets run too. |
| ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| |
| -exec 6>&1 |
| - |
| # |
| # Initializations. |
| # |
| ac_default_prefix=/usr/local |
| +ac_clean_files= |
| ac_config_libobj_dir=. |
| +LIBOBJS= |
| cross_compiling=no |
| subdirs= |
| MFLAGS= |
| MAKEFLAGS= |
| SHELL=${CONFIG_SHELL-/bin/sh} |
| |
| -# Maximum number of lines to put in a shell here document. |
| -# This variable seems obsolete. It should probably be removed, and |
| -# only ac_max_sed_lines should be used. |
| -: ${ac_max_here_lines=38} |
| - |
| # Identity of this package. |
| PACKAGE_NAME='sysfsutils' |
| PACKAGE_TARNAME='sysfsutils' |
| @@ -431,42 +736,167 @@ |
| # Factoring default headers for most tests. |
| ac_includes_default="\ |
| #include <stdio.h> |
| -#if HAVE_SYS_TYPES_H |
| +#ifdef HAVE_SYS_TYPES_H |
| # include <sys/types.h> |
| #endif |
| -#if HAVE_SYS_STAT_H |
| +#ifdef HAVE_SYS_STAT_H |
| # include <sys/stat.h> |
| #endif |
| -#if STDC_HEADERS |
| +#ifdef STDC_HEADERS |
| # include <stdlib.h> |
| # include <stddef.h> |
| #else |
| -# if HAVE_STDLIB_H |
| +# ifdef HAVE_STDLIB_H |
| # include <stdlib.h> |
| # endif |
| #endif |
| -#if HAVE_STRING_H |
| -# if !STDC_HEADERS && HAVE_MEMORY_H |
| +#ifdef HAVE_STRING_H |
| +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| # include <memory.h> |
| # endif |
| # include <string.h> |
| #endif |
| -#if HAVE_STRINGS_H |
| +#ifdef HAVE_STRINGS_H |
| # include <strings.h> |
| #endif |
| -#if HAVE_INTTYPES_H |
| +#ifdef HAVE_INTTYPES_H |
| # include <inttypes.h> |
| -#else |
| -# if HAVE_STDINT_H |
| -# include <stdint.h> |
| -# endif |
| #endif |
| -#if HAVE_UNISTD_H |
| +#ifdef HAVE_STDINT_H |
| +# include <stdint.h> |
| +#endif |
| +#ifdef HAVE_UNISTD_H |
| # include <unistd.h> |
| #endif" |
| |
| -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os KLCC KLIBC KLIBC_TRUE KLIBC_FALSE EXTRA_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS' |
| +ac_subst_vars='SHELL |
| +PATH_SEPARATOR |
| +PACKAGE_NAME |
| +PACKAGE_TARNAME |
| +PACKAGE_VERSION |
| +PACKAGE_STRING |
| +PACKAGE_BUGREPORT |
| +exec_prefix |
| +prefix |
| +program_transform_name |
| +bindir |
| +sbindir |
| +libexecdir |
| +datarootdir |
| +datadir |
| +sysconfdir |
| +sharedstatedir |
| +localstatedir |
| +includedir |
| +oldincludedir |
| +docdir |
| +infodir |
| +htmldir |
| +dvidir |
| +pdfdir |
| +psdir |
| +libdir |
| +localedir |
| +mandir |
| +DEFS |
| +ECHO_C |
| +ECHO_N |
| +ECHO_T |
| +LIBS |
| +build_alias |
| +host_alias |
| +target_alias |
| +INSTALL_PROGRAM |
| +INSTALL_SCRIPT |
| +INSTALL_DATA |
| +am__isrc |
| +CYGPATH_W |
| +PACKAGE |
| +VERSION |
| +ACLOCAL |
| +AUTOCONF |
| +AUTOMAKE |
| +AUTOHEADER |
| +MAKEINFO |
| +install_sh |
| +STRIP |
| +INSTALL_STRIP_PROGRAM |
| +mkdir_p |
| +AWK |
| +SET_MAKE |
| +am__leading_dot |
| +AMTAR |
| +am__tar |
| +am__untar |
| +build |
| +build_cpu |
| +build_vendor |
| +build_os |
| +host |
| +host_cpu |
| +host_vendor |
| +host_os |
| +KLCC |
| +KLIBC |
| +KLIBC_TRUE |
| +KLIBC_FALSE |
| +EXTRA_CFLAGS |
| +CC |
| +CFLAGS |
| +LDFLAGS |
| +CPPFLAGS |
| +ac_ct_CC |
| +EXEEXT |
| +OBJEXT |
| +DEPDIR |
| +am__include |
| +am__quote |
| +AMDEP_TRUE |
| +AMDEP_FALSE |
| +AMDEPBACKSLASH |
| +CCDEPMODE |
| +am__fastdepCC_TRUE |
| +am__fastdepCC_FALSE |
| +SED |
| +GREP |
| +EGREP |
| +LN_S |
| +ECHO |
| +AR |
| +RANLIB |
| +DSYMUTIL |
| +NMEDIT |
| +CPP |
| +CXX |
| +CXXFLAGS |
| +ac_ct_CXX |
| +CXXDEPMODE |
| +am__fastdepCXX_TRUE |
| +am__fastdepCXX_FALSE |
| +CXXCPP |
| +F77 |
| +FFLAGS |
| +ac_ct_F77 |
| +LIBTOOL |
| +LIBOBJS |
| +LTLIBOBJS' |
| ac_subst_files='' |
| + ac_precious_vars='build_alias |
| +host_alias |
| +target_alias |
| +CC |
| +CFLAGS |
| +LDFLAGS |
| +LIBS |
| +CPPFLAGS |
| +CPP |
| +CXX |
| +CXXFLAGS |
| +CCC |
| +CXXCPP |
| +F77 |
| +FFLAGS' |
| + |
| |
| # Initialize some variables set by options. |
| ac_init_help= |
| @@ -493,34 +923,48 @@ |
| # and all the variables that are supposed to be based on exec_prefix |
| # by default will actually change. |
| # Use braces instead of parens because sh, perl, etc. also accept them. |
| +# (The list follows the same order as the GNU Coding Standards.) |
| bindir='${exec_prefix}/bin' |
| sbindir='${exec_prefix}/sbin' |
| libexecdir='${exec_prefix}/libexec' |
| -datadir='${prefix}/share' |
| +datarootdir='${prefix}/share' |
| +datadir='${datarootdir}' |
| sysconfdir='${prefix}/etc' |
| sharedstatedir='${prefix}/com' |
| localstatedir='${prefix}/var' |
| -libdir='${exec_prefix}/lib' |
| includedir='${prefix}/include' |
| oldincludedir='/usr/include' |
| -infodir='${prefix}/info' |
| -mandir='${prefix}/man' |
| +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| +infodir='${datarootdir}/info' |
| +htmldir='${docdir}' |
| +dvidir='${docdir}' |
| +pdfdir='${docdir}' |
| +psdir='${docdir}' |
| +libdir='${exec_prefix}/lib' |
| +localedir='${datarootdir}/locale' |
| +mandir='${datarootdir}/man' |
| |
| ac_prev= |
| +ac_dashdash= |
| for ac_option |
| do |
| # If the previous option needs an argument, assign it. |
| if test -n "$ac_prev"; then |
| - eval "$ac_prev=\$ac_option" |
| + eval $ac_prev=\$ac_option |
| ac_prev= |
| continue |
| fi |
| |
| - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| + case $ac_option in |
| + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| + *) ac_optarg=yes ;; |
| + esac |
| |
| # Accept the important Cygnus configure options, so we can diagnose typos. |
| |
| - case $ac_option in |
| + case $ac_dashdash$ac_option in |
| + --) |
| + ac_dashdash=yes ;; |
| |
| -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| ac_prev=bindir ;; |
| @@ -542,33 +986,45 @@ |
| --config-cache | -C) |
| cache_file=config.cache ;; |
| |
| - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| + -datadir | --datadir | --datadi | --datad) |
| ac_prev=datadir ;; |
| - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| - | --da=*) |
| + -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| datadir=$ac_optarg ;; |
| |
| + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| + | --dataroo | --dataro | --datar) |
| + ac_prev=datarootdir ;; |
| + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| + datarootdir=$ac_optarg ;; |
| + |
| -disable-* | --disable-*) |
| ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| # Reject names that are not valid shell variable names. |
| - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| { (exit 1); exit 1; }; } |
| - ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| - eval "enable_$ac_feature=no" ;; |
| + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| + eval enable_$ac_feature=no ;; |
| + |
| + -docdir | --docdir | --docdi | --doc | --do) |
| + ac_prev=docdir ;; |
| + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| + docdir=$ac_optarg ;; |
| + |
| + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| + ac_prev=dvidir ;; |
| + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| + dvidir=$ac_optarg ;; |
| |
| -enable-* | --enable-*) |
| ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| # Reject names that are not valid shell variable names. |
| - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| { (exit 1); exit 1; }; } |
| - ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| - case $ac_option in |
| - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| - *) ac_optarg=yes ;; |
| - esac |
| - eval "enable_$ac_feature='$ac_optarg'" ;; |
| + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| + eval enable_$ac_feature=\$ac_optarg ;; |
| |
| -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| @@ -595,6 +1051,12 @@ |
| -host=* | --host=* | --hos=* | --ho=*) |
| host_alias=$ac_optarg ;; |
| |
| + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| + ac_prev=htmldir ;; |
| + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| + | --ht=*) |
| + htmldir=$ac_optarg ;; |
| + |
| -includedir | --includedir | --includedi | --included | --include \ |
| | --includ | --inclu | --incl | --inc) |
| ac_prev=includedir ;; |
| @@ -619,13 +1081,16 @@ |
| | --libexe=* | --libex=* | --libe=*) |
| libexecdir=$ac_optarg ;; |
| |
| + -localedir | --localedir | --localedi | --localed | --locale) |
| + ac_prev=localedir ;; |
| + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| + localedir=$ac_optarg ;; |
| + |
| -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| - | --localstate | --localstat | --localsta | --localst \ |
| - | --locals | --local | --loca | --loc | --lo) |
| + | --localstate | --localstat | --localsta | --localst | --locals) |
| ac_prev=localstatedir ;; |
| -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| localstatedir=$ac_optarg ;; |
| |
| -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| @@ -690,6 +1155,16 @@ |
| | --progr-tra=* | --program-tr=* | --program-t=*) |
| program_transform_name=$ac_optarg ;; |
| |
| + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| + ac_prev=pdfdir ;; |
| + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| + pdfdir=$ac_optarg ;; |
| + |
| + -psdir | --psdir | --psdi | --psd | --ps) |
| + ac_prev=psdir ;; |
| + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| + psdir=$ac_optarg ;; |
| + |
| -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| | -silent | --silent | --silen | --sile | --sil) |
| silent=yes ;; |
| @@ -742,24 +1217,20 @@ |
| -with-* | --with-*) |
| ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| # Reject names that are not valid shell variable names. |
| - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| { (exit 1); exit 1; }; } |
| - ac_package=`echo $ac_package| sed 's/-/_/g'` |
| - case $ac_option in |
| - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| - *) ac_optarg=yes ;; |
| - esac |
| - eval "with_$ac_package='$ac_optarg'" ;; |
| + ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| + eval with_$ac_package=\$ac_optarg ;; |
| |
| -without-* | --without-*) |
| ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| # Reject names that are not valid shell variable names. |
| - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| { (exit 1); exit 1; }; } |
| - ac_package=`echo $ac_package | sed 's/-/_/g'` |
| - eval "with_$ac_package=no" ;; |
| + ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| + eval with_$ac_package=no ;; |
| |
| --x) |
| # Obsolete; use --with-x. |
| @@ -790,8 +1261,7 @@ |
| expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| { (exit 1); exit 1; }; } |
| - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| - eval "$ac_envvar='$ac_optarg'" |
| + eval $ac_envvar=\$ac_optarg |
| export $ac_envvar ;; |
| |
| *) |
| @@ -811,27 +1281,19 @@ |
| { (exit 1); exit 1; }; } |
| fi |
| |
| -# Be sure to have absolute paths. |
| -for ac_var in exec_prefix prefix |
| -do |
| - eval ac_val=$`echo $ac_var` |
| - case $ac_val in |
| - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| - { (exit 1); exit 1; }; };; |
| - esac |
| -done |
| - |
| -# Be sure to have absolute paths. |
| -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| - localstatedir libdir includedir oldincludedir infodir mandir |
| +# Be sure to have absolute directory names. |
| +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| + datadir sysconfdir sharedstatedir localstatedir includedir \ |
| + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| + libdir localedir mandir |
| do |
| - eval ac_val=$`echo $ac_var` |
| + eval ac_val=\$$ac_var |
| case $ac_val in |
| - [\\/$]* | ?:[\\/]* ) ;; |
| - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| - { (exit 1); exit 1; }; };; |
| + [\\/$]* | ?:[\\/]* ) continue;; |
| + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| esac |
| + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| + { (exit 1); exit 1; }; } |
| done |
| |
| # There might be people who depend on the old broken behavior: `$host' |
| @@ -858,94 +1320,76 @@ |
| test "$silent" = yes && exec 6>/dev/null |
| |
| |
| -# Find the source files, if location was not specified. |
| -if test -z "$srcdir"; then |
| +ac_pwd=`pwd` && test -n "$ac_pwd" && |
| +ac_ls_di=`ls -di .` && |
| +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| + { echo "$as_me: error: Working directory cannot be determined" >&2 |
| + { (exit 1); exit 1; }; } |
| +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| + { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| + { (exit 1); exit 1; }; } |
| + |
| + |
| +# Find the source files, if location was not specified. |
| +if test -z "$srcdir"; then |
| ac_srcdir_defaulted=yes |
| - # Try the directory containing this script, then its parent. |
| - ac_confdir=`(dirname "$0") 2>/dev/null || |
| + # Try the directory containing this script, then the parent directory. |
| + ac_confdir=`$as_dirname -- "$0" || |
| $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| X"$0" : 'X\(//\)[^/]' \| \ |
| X"$0" : 'X\(//\)$' \| \ |
| - X"$0" : 'X\(/\)' \| \ |
| - . : '\(.\)' 2>/dev/null || |
| + X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| echo X"$0" | |
| - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| - /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| - /^X\(\/\/\)$/{ s//\1/; q; } |
| - /^X\(\/\).*/{ s//\1/; q; } |
| - s/.*/./; q'` |
| + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| + s//\1/ |
| + q |
| + } |
| + /^X\(\/\/\)[^/].*/{ |
| + s//\1/ |
| + q |
| + } |
| + /^X\(\/\/\)$/{ |
| + s//\1/ |
| + q |
| + } |
| + /^X\(\/\).*/{ |
| + s//\1/ |
| + q |
| + } |
| + s/.*/./; q'` |
| srcdir=$ac_confdir |
| - if test ! -r $srcdir/$ac_unique_file; then |
| + if test ! -r "$srcdir/$ac_unique_file"; then |
| srcdir=.. |
| fi |
| else |
| ac_srcdir_defaulted=no |
| fi |
| -if test ! -r $srcdir/$ac_unique_file; then |
| - if test "$ac_srcdir_defaulted" = yes; then |
| - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| - { (exit 1); exit 1; }; } |
| - else |
| - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| +if test ! -r "$srcdir/$ac_unique_file"; then |
| + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| { (exit 1); exit 1; }; } |
| - fi |
| fi |
| -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| +ac_abs_confdir=`( |
| + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| { (exit 1); exit 1; }; } |
| -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| -ac_env_build_alias_set=${build_alias+set} |
| -ac_env_build_alias_value=$build_alias |
| -ac_cv_env_build_alias_set=${build_alias+set} |
| -ac_cv_env_build_alias_value=$build_alias |
| -ac_env_host_alias_set=${host_alias+set} |
| -ac_env_host_alias_value=$host_alias |
| -ac_cv_env_host_alias_set=${host_alias+set} |
| -ac_cv_env_host_alias_value=$host_alias |
| -ac_env_target_alias_set=${target_alias+set} |
| -ac_env_target_alias_value=$target_alias |
| -ac_cv_env_target_alias_set=${target_alias+set} |
| -ac_cv_env_target_alias_value=$target_alias |
| -ac_env_CC_set=${CC+set} |
| -ac_env_CC_value=$CC |
| -ac_cv_env_CC_set=${CC+set} |
| -ac_cv_env_CC_value=$CC |
| -ac_env_CFLAGS_set=${CFLAGS+set} |
| -ac_env_CFLAGS_value=$CFLAGS |
| -ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| -ac_cv_env_CFLAGS_value=$CFLAGS |
| -ac_env_LDFLAGS_set=${LDFLAGS+set} |
| -ac_env_LDFLAGS_value=$LDFLAGS |
| -ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| -ac_cv_env_LDFLAGS_value=$LDFLAGS |
| -ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| -ac_env_CPPFLAGS_value=$CPPFLAGS |
| -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| -ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| -ac_env_CPP_set=${CPP+set} |
| -ac_env_CPP_value=$CPP |
| -ac_cv_env_CPP_set=${CPP+set} |
| -ac_cv_env_CPP_value=$CPP |
| -ac_env_CXX_set=${CXX+set} |
| -ac_env_CXX_value=$CXX |
| -ac_cv_env_CXX_set=${CXX+set} |
| -ac_cv_env_CXX_value=$CXX |
| -ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| -ac_env_CXXFLAGS_value=$CXXFLAGS |
| -ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| -ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| -ac_env_CXXCPP_set=${CXXCPP+set} |
| -ac_env_CXXCPP_value=$CXXCPP |
| -ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| -ac_cv_env_CXXCPP_value=$CXXCPP |
| -ac_env_F77_set=${F77+set} |
| -ac_env_F77_value=$F77 |
| -ac_cv_env_F77_set=${F77+set} |
| -ac_cv_env_F77_value=$F77 |
| -ac_env_FFLAGS_set=${FFLAGS+set} |
| -ac_env_FFLAGS_value=$FFLAGS |
| -ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| -ac_cv_env_FFLAGS_value=$FFLAGS |
| + pwd)` |
| +# When building in place, set srcdir=. |
| +if test "$ac_abs_confdir" = "$ac_pwd"; then |
| + srcdir=. |
| +fi |
| +# Remove unnecessary trailing slashes from srcdir. |
| +# Double slashes in file names in object file debugging info |
| +# mess up M-x gdb in Emacs. |
| +case $srcdir in |
| +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| +esac |
| +for ac_var in $ac_precious_vars; do |
| + eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| + eval ac_env_${ac_var}_value=\$${ac_var} |
| + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| + eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| +done |
| |
| # |
| # Report the --help message. |
| @@ -974,9 +1418,6 @@ |
| -n, --no-create do not create output files |
| --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| |
| -_ACEOF |
| - |
| - cat <<_ACEOF |
| Installation directories: |
| --prefix=PREFIX install architecture-independent files in PREFIX |
| [$ac_default_prefix] |
| @@ -994,15 +1435,22 @@ |
| --bindir=DIR user executables [EPREFIX/bin] |
| --sbindir=DIR system admin executables [EPREFIX/sbin] |
| --libexecdir=DIR program executables [EPREFIX/libexec] |
| - --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| --libdir=DIR object code libraries [EPREFIX/lib] |
| --includedir=DIR C header files [PREFIX/include] |
| --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| - --infodir=DIR info documentation [PREFIX/info] |
| - --mandir=DIR man documentation [PREFIX/man] |
| + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| + --infodir=DIR info documentation [DATAROOTDIR/info] |
| + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| + --mandir=DIR man documentation [DATAROOTDIR/man] |
| + --docdir=DIR documentation root [DATAROOTDIR/doc/sysfsutils] |
| + --htmldir=DIR html documentation [DOCDIR] |
| + --dvidir=DIR dvi documentation [DOCDIR] |
| + --pdfdir=DIR pdf documentation [DOCDIR] |
| + --psdir=DIR ps documentation [DOCDIR] |
| _ACEOF |
| |
| cat <<\_ACEOF |
| @@ -1032,10 +1480,8 @@ |
| absolute file name of klcc if not in the PATH |
| --enable-klibc-layout Enable installing binaries, libraries and headers |
| into the klibc prefix [yes] |
| - --enable-shared[=PKGS] |
| - build shared libraries [default=yes] |
| - --enable-static[=PKGS] |
| - build static libraries [default=yes] |
| + --enable-shared[=PKGS] build shared libraries [default=yes] |
| + --enable-static[=PKGS] build static libraries [default=yes] |
| --enable-fast-install[=PKGS] |
| optimize for fast installation [default=yes] |
| --disable-dependency-tracking speeds up one-time build |
| @@ -1048,16 +1494,16 @@ |
| --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| --with-pic try to use only PIC/non-PIC objects [default=use |
| both] |
| - --with-tags[=TAGS] |
| - include additional configurations [automatic] |
| + --with-tags[=TAGS] include additional configurations [automatic] |
| |
| Some influential environment variables: |
| CC C compiler command |
| CFLAGS C compiler flags |
| LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| nonstandard directory <lib dir> |
| - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| - headers in a nonstandard directory <include dir> |
| + LIBS libraries to pass to the linker, e.g. -l<library> |
| + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| + you have headers in a nonstandard directory <include dir> |
| CPP C preprocessor |
| CXX C++ compiler command |
| CXXFLAGS C++ compiler flags |
| @@ -1070,120 +1516,86 @@ |
| |
| Report bugs to <linux-diag-devel@lists.sourceforge.net>. |
| _ACEOF |
| +ac_status=$? |
| fi |
| |
| if test "$ac_init_help" = "recursive"; then |
| # If there are subdirs, report their specific --help. |
| - ac_popdir=`pwd` |
| for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| - test -d $ac_dir || continue |
| + test -d "$ac_dir" || continue |
| ac_builddir=. |
| |
| -if test "$ac_dir" != .; then |
| +case "$ac_dir" in |
| +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| +*) |
| ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| - # A "../" for each directory in $ac_dir_suffix. |
| - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| -else |
| - ac_dir_suffix= ac_top_builddir= |
| -fi |
| + # A ".." for each directory in $ac_dir_suffix. |
| + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| + case $ac_top_builddir_sub in |
| + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| + esac ;; |
| +esac |
| +ac_abs_top_builddir=$ac_pwd |
| +ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| +# for backward compatibility: |
| +ac_top_builddir=$ac_top_build_prefix |
| |
| case $srcdir in |
| - .) # No --srcdir option. We are building in place. |
| + .) # We are building in place. |
| ac_srcdir=. |
| - if test -z "$ac_top_builddir"; then |
| - ac_top_srcdir=. |
| - else |
| - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| - fi ;; |
| - [\\/]* | ?:[\\/]* ) # Absolute path. |
| + ac_top_srcdir=$ac_top_builddir_sub |
| + ac_abs_top_srcdir=$ac_pwd ;; |
| + [\\/]* | ?:[\\/]* ) # Absolute name. |
| ac_srcdir=$srcdir$ac_dir_suffix; |
| - ac_top_srcdir=$srcdir ;; |
| - *) # Relative path. |
| - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| - ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| -esac |
| - |
| -# Do not use `cd foo && pwd` to compute absolute paths, because |
| -# the directories may not exist. |
| -case `pwd` in |
| -.) ac_abs_builddir="$ac_dir";; |
| -*) |
| - case "$ac_dir" in |
| - .) ac_abs_builddir=`pwd`;; |
| - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| - *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| - esac;; |
| -esac |
| -case $ac_abs_builddir in |
| -.) ac_abs_top_builddir=${ac_top_builddir}.;; |
| -*) |
| - case ${ac_top_builddir}. in |
| - .) ac_abs_top_builddir=$ac_abs_builddir;; |
| - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| - esac;; |
| -esac |
| -case $ac_abs_builddir in |
| -.) ac_abs_srcdir=$ac_srcdir;; |
| -*) |
| - case $ac_srcdir in |
| - .) ac_abs_srcdir=$ac_abs_builddir;; |
| - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| - esac;; |
| -esac |
| -case $ac_abs_builddir in |
| -.) ac_abs_top_srcdir=$ac_top_srcdir;; |
| -*) |
| - case $ac_top_srcdir in |
| - .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| - esac;; |
| + ac_top_srcdir=$srcdir |
| + ac_abs_top_srcdir=$srcdir ;; |
| + *) # Relative name. |
| + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| + ac_top_srcdir=$ac_top_build_prefix$srcdir |
| + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| esac |
| +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| |
| - cd $ac_dir |
| - # Check for guested configure; otherwise get Cygnus style configure. |
| - if test -f $ac_srcdir/configure.gnu; then |
| - echo |
| - $SHELL $ac_srcdir/configure.gnu --help=recursive |
| - elif test -f $ac_srcdir/configure; then |
| - echo |
| - $SHELL $ac_srcdir/configure --help=recursive |
| - elif test -f $ac_srcdir/configure.ac || |
| - test -f $ac_srcdir/configure.in; then |
| - echo |
| - $ac_configure --help |
| + cd "$ac_dir" || { ac_status=$?; continue; } |
| + # Check for guested configure. |
| + if test -f "$ac_srcdir/configure.gnu"; then |
| + echo && |
| + $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| + elif test -f "$ac_srcdir/configure"; then |
| + echo && |
| + $SHELL "$ac_srcdir/configure" --help=recursive |
| else |
| echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| - fi |
| - cd $ac_popdir |
| + fi || ac_status=$? |
| + cd "$ac_pwd" || { ac_status=$?; break; } |
| done |
| fi |
| |
| -test -n "$ac_init_help" && exit 0 |
| +test -n "$ac_init_help" && exit $ac_status |
| if $ac_init_version; then |
| cat <<\_ACEOF |
| sysfsutils configure 2.1.0 |
| -generated by GNU Autoconf 2.59 |
| +generated by GNU Autoconf 2.61 |
| |
| -Copyright (C) 2003 Free Software Foundation, Inc. |
| +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| This configure script is free software; the Free Software Foundation |
| gives unlimited permission to copy, distribute and modify it. |
| _ACEOF |
| - exit 0 |
| + exit |
| fi |
| -exec 5>config.log |
| -cat >&5 <<_ACEOF |
| +cat >config.log <<_ACEOF |
| This file contains any messages produced by compilers while |
| running configure, to aid debugging if configure makes a mistake. |
| |
| It was created by sysfsutils $as_me 2.1.0, which was |
| -generated by GNU Autoconf 2.59. Invocation command line was |
| +generated by GNU Autoconf 2.61. Invocation command line was |
| |
| $ $0 $@ |
| |
| _ACEOF |
| +exec 5>>config.log |
| { |
| cat <<_ASUNAME |
| ## --------- ## |
| @@ -1202,7 +1614,7 @@ |
| /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| @@ -1216,6 +1628,7 @@ |
| test -z "$as_dir" && as_dir=. |
| echo "PATH: $as_dir" |
| done |
| +IFS=$as_save_IFS |
| |
| } >&5 |
| |
| @@ -1237,7 +1650,6 @@ |
| ac_configure_args= |
| ac_configure_args0= |
| ac_configure_args1= |
| -ac_sep= |
| ac_must_keep_next=false |
| for ac_pass in 1 2 |
| do |
| @@ -1248,7 +1660,7 @@ |
| -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| | -silent | --silent | --silen | --sile | --sil) |
| continue ;; |
| - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| + *\'*) |
| ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| esac |
| case $ac_pass in |
| @@ -1270,9 +1682,7 @@ |
| -* ) ac_must_keep_next=true ;; |
| esac |
| fi |
| - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| - # Get rid of the leading space. |
| - ac_sep=" " |
| + ac_configure_args="$ac_configure_args '$ac_arg'" |
| ;; |
| esac |
| done |
| @@ -1283,8 +1693,8 @@ |
| # When interrupted or exit'd, cleanup temporary files, and complete |
| # config.log. We remove comments because anyway the quotes in there |
| # would cause problems or look ugly. |
| -# WARNING: Be sure not to use single quotes in there, as some shells, |
| -# such as our DU 5.0 friend, will then `close' the trap. |
| +# WARNING: Use '\'' to represent an apostrophe within the trap. |
| +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| trap 'exit_status=$? |
| # Save into config.log some information that might help in debugging. |
| { |
| @@ -1297,20 +1707,34 @@ |
| _ASBOX |
| echo |
| # The following way of writing the cache mishandles newlines in values, |
| -{ |
| +( |
| + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| + eval ac_val=\$$ac_var |
| + case $ac_val in #( |
| + *${as_nl}*) |
| + case $ac_var in #( |
| + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| + esac |
| + case $ac_var in #( |
| + _ | IFS | as_nl) ;; #( |
| + *) $as_unset $ac_var ;; |
| + esac ;; |
| + esac |
| + done |
| (set) 2>&1 | |
| - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| - *ac_space=\ *) |
| + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| + *${as_nl}ac_space=\ *) |
| sed -n \ |
| - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| - ;; |
| + "s/'\''/'\''\\\\'\'''\''/g; |
| + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| + ;; #( |
| *) |
| - sed -n \ |
| - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| ;; |
| - esac; |
| -} |
| + esac | |
| + sort |
| +) |
| echo |
| |
| cat <<\_ASBOX |
| @@ -1321,22 +1745,28 @@ |
| echo |
| for ac_var in $ac_subst_vars |
| do |
| - eval ac_val=$`echo $ac_var` |
| - echo "$ac_var='"'"'$ac_val'"'"'" |
| + eval ac_val=\$$ac_var |
| + case $ac_val in |
| + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| + esac |
| + echo "$ac_var='\''$ac_val'\''" |
| done | sort |
| echo |
| |
| if test -n "$ac_subst_files"; then |
| cat <<\_ASBOX |
| -## ------------- ## |
| -## Output files. ## |
| -## ------------- ## |
| +## ------------------- ## |
| +## File substitutions. ## |
| +## ------------------- ## |
| _ASBOX |
| echo |
| for ac_var in $ac_subst_files |
| do |
| - eval ac_val=$`echo $ac_var` |
| - echo "$ac_var='"'"'$ac_val'"'"'" |
| + eval ac_val=\$$ac_var |
| + case $ac_val in |
| + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| + esac |
| + echo "$ac_var='\''$ac_val'\''" |
| done | sort |
| echo |
| fi |
| @@ -1348,26 +1778,24 @@ |
| ## ----------- ## |
| _ASBOX |
| echo |
| - sed "/^$/d" confdefs.h | sort |
| + cat confdefs.h |
| echo |
| fi |
| test "$ac_signal" != 0 && |
| echo "$as_me: caught signal $ac_signal" |
| echo "$as_me: exit $exit_status" |
| } >&5 |
| - rm -f core *.core && |
| - rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| + rm -f core *.core core.conftest.* && |
| + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| exit $exit_status |
| - ' 0 |
| +' 0 |
| for ac_signal in 1 2 13 15; do |
| trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| done |
| ac_signal=0 |
| |
| # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| -rm -rf conftest* confdefs.h |
| -# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| -echo >confdefs.h |
| +rm -f -r conftest* confdefs.h |
| |
| # Predefined preprocessor variables. |
| |
| @@ -1398,14 +1826,17 @@ |
| |
| # Let the site file select an alternate cache file if it wants to. |
| # Prefer explicitly selected file to automatically selected ones. |
| -if test -z "$CONFIG_SITE"; then |
| - if test "x$prefix" != xNONE; then |
| - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| - else |
| - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| - fi |
| +if test -n "$CONFIG_SITE"; then |
| + set x "$CONFIG_SITE" |
| +elif test "x$prefix" != xNONE; then |
| + set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| +else |
| |