⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 libtool.m4

📁 rxvt经典的linux下的终端.小巧实用
💻 M4
📖 第 1 页 / 共 5 页
字号:
    hardcode_libdir_flag_spec='-R$libdir'    hardcode_shlibpath_var=no    case "$host_os" in    [solaris2.[0-5] | solaris2.[0-5].*]) ;;    *) # Supported since Solaris 2.6 (maybe 2.5.1?)      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;    esac    link_all_deplibs=yes    ;;  sunos4*)    if test "x$host_vendor" = xsequent; then      # Use $CC to link under sequent, because it throws in some extra .o      # files that make .init and .fini sections work.      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'    else      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'    fi    hardcode_libdir_flag_spec='-L$libdir'    hardcode_direct=yes    hardcode_minus_L=yes    hardcode_shlibpath_var=no    ;;  sysv4)    if test "x$host_vendor" = xsno; then      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'      hardcode_direct=yes # is this really true???    else      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'      hardcode_direct=no #Motorola manual says yes, but my tests say they lie    fi    runpath_var='LD_RUN_PATH'    hardcode_shlibpath_var=no    ;;  sysv4.3*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    hardcode_shlibpath_var=no    export_dynamic_flag_spec='-Bexport'    ;;  sysv5*)    no_undefined_flag=' -z text'    # $CC -shared without GNU ld will not create a library from C++    # object files and a static libstdc++, better avoid it by now    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'    hardcode_libdir_flag_spec=    hardcode_shlibpath_var=no    runpath_var='LD_RUN_PATH'    ;;  uts4*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    hardcode_libdir_flag_spec='-L$libdir'    hardcode_shlibpath_var=no    ;;  dgux*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    hardcode_libdir_flag_spec='-L$libdir'    hardcode_shlibpath_var=no    ;;  sysv4*MP*)    if test -d /usr/nec; then      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'      hardcode_shlibpath_var=no      runpath_var=LD_RUN_PATH      hardcode_runpath_var=yes      ld_shlibs=yes    fi    ;;  sysv4.2uw2*)    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'    hardcode_direct=yes    hardcode_minus_L=no    hardcode_shlibpath_var=no    hardcode_runpath_var=yes    runpath_var=LD_RUN_PATH    ;;  unixware7*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    runpath_var='LD_RUN_PATH'    hardcode_shlibpath_var=no    ;;  *)    ld_shlibs=no    ;;  esacfiAC_MSG_RESULT([$ld_shlibs])test "$ld_shlibs" = no && can_build_shared=no#### END FIXME## FIXME: this should be a separate macro### Check hardcoding attributes.AC_MSG_CHECKING([how to hardcode library paths into programs])hardcode_action=if test -n "$hardcode_libdir_flag_spec" || \   test -n "$runpath_var"; then  # We can hardcode non-existant directories.  if test "$hardcode_direct" != no &&     # If the only mechanism to avoid hardcoding is shlibpath_var, we     # have to relink, otherwise we might link with an installed library     # when we should be linking with a yet-to-be-installed one     ## test "$hardcode_shlibpath_var" != no &&     test "$hardcode_minus_L" != no; then    # Linking always hardcodes the temporary library directory.    hardcode_action=relink  else    # We can link without hardcoding, and we can hardcode nonexisting dirs.    hardcode_action=immediate  fielse  # We cannot hardcode anything, or else we can only hardcode existing  # directories.  hardcode_action=unsupportedfiAC_MSG_RESULT([$hardcode_action])#### END FIXME## FIXME: this should be a separate macro##striplib=old_striplib=AC_MSG_CHECKING([whether stripping libraries is possible])if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"  test -z "$striplib" && striplib="$STRIP --strip-unneeded"  AC_MSG_RESULT([yes])else  AC_MSG_RESULT([no])fi#### END FIXMEreload_cmds='$LD$reload_flag -o $output$reload_objs'test -z "$deplibs_check_method" && deplibs_check_method=unknown## FIXME: this should be a separate macro### PORTME Fill in your ld.so characteristicsAC_MSG_CHECKING([dynamic linker characteristics])library_names_spec=libname_spec='lib$name'soname_spec=postinstall_cmds=postuninstall_cmds=finish_cmds=finish_eval=shlibpath_var=shlibpath_overrides_runpath=unknownversion_type=nonedynamic_linker="$host_os ld.so"sys_lib_dlsearch_path_spec="/lib /usr/lib"sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"case "$host_os" inaix3*)  version_type=linux  library_names_spec='${libname}${release}.so$versuffix $libname.a'  shlibpath_var=LIBPATH  # AIX has no versioning support, so we append a major version to the name.  soname_spec='${libname}${release}.so$major'  ;;aix4*)  version_type=linux  # AIX has no versioning support, so currently we can not hardcode correct  # soname into executable. Probably we can add versioning support to  # collect2, so additional links can be useful in future.  # We preserve .a as extension for shared libraries though AIX4.2  # and later linker supports .so  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'  shlibpath_var=LIBPATH  ;;amigaos*)  library_names_spec='$libname.ixlibrary $libname.a'  # Create ${libname}_ixlibrary.a entries in /sys/libs.  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | [$Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\'']`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'  ;;beos*)  library_names_spec='${libname}.so'  dynamic_linker="$host_os ld.so"  shlibpath_var=LIBRARY_PATH  ;;bsdi4*)  version_type=linux  need_version=no  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'  soname_spec='${libname}${release}.so$major'  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'  shlibpath_var=LD_LIBRARY_PATH  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"  export_dynamic_flag_spec=-rdynamic  # the default ld.so.conf also contains /usr/contrib/lib and  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow  # libtool to hard-code these into programs  ;;cygwin* | mingw* | pw32*)  version_type=windows  need_version=no  need_lib_prefix=no  if test "$GCC" = yes; then    library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'  else    library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll $libname.lib'  fi  dynamic_linker='Win32 ld.exe'  # FIXME: first we should search . and the directory the executable is in  shlibpath_var=PATH  ;;darwin* | rhapsody*)  need_lib_prefix=no  need_version=no  library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'  shlibpath_overrides_runpath=yes  shlibpath_var=DYLD_LIBRARY_PATH  postinstall_cmds='chmod +x $lib'  ;;freebsd1*)  dynamic_linker=no  ;;freebsd*)  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`  version_type=freebsd-$objformat  case "$version_type" in    freebsd-elf*)      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'      need_version=no      need_lib_prefix=no      ;;    freebsd-*)      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'      need_version=yes      ;;  esac  shlibpath_var=LD_LIBRARY_PATH  case "$host_os" in  freebsd2*)    shlibpath_overrides_runpath=yes    ;;  *)    shlibpath_overrides_runpath=no    hardcode_into_libs=yes    ;;  esac  ;;gnu*)  version_type=linux  need_lib_prefix=no  need_version=no  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'  soname_spec='${libname}${release}.so$major'  shlibpath_var=LD_LIBRARY_PATH  hardcode_into_libs=yes  ;;hpux9* | hpux10* | hpux11*)  # Give a soname corresponding to the major version so that dld.sl refuses to  # link against other versions.  dynamic_linker="$host_os dld.sl"  version_type=sunos  need_lib_prefix=no  need_version=no  shlibpath_var=SHLIB_PATH  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'  soname_spec='${libname}${release}.sl$major'  # HP-UX runs *really* slowly unless shared libraries are mode 555.  postinstall_cmds='chmod 555 $lib'  ;;irix5* | irix6*)  version_type=irix  need_lib_prefix=no  need_version=no  soname_spec='${libname}${release}.so$major'  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'  case "$host_os" in  irix5*)    libsuff= shlibsuff=    ;;  *)    case "$LD" in # libtool.m4 will add one of these switches to LD    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;    *) libsuff= shlibsuff= libmagic=never-match;;    esac    ;;  esac  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH  shlibpath_overrides_runpath=no  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"  ;;# No shared lib support for Linux oldld, aout, or coff.linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)  dynamic_linker=no  ;;# This must be Linux ELF.linux-gnu*)  version_type=linux  need_lib_prefix=no  need_version=no  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'  soname_spec='${libname}${release}.so$major'  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'  shlibpath_var=LD_LIBRARY_PATH  shlibpath_overrides_runpath=no  # This implies no fast_install, which is unacceptable.  # Some rework will be needed to allow for fast_install  # before this can be enabled.  hardcode_into_libs=yes  # We used to test for /lib/ld.so.1 and disable shared libraries on  # powerpc, because MkLinux only supported shared libraries with the  # GNU dynamic linker.  Since this was broken with cross compilers,  # most powerpc-linux boxes support dynamic linking these days and  # people can always --disable-shared, the test was removed, and we  # assume the GNU/Linux dynamic linker is in use.  dynamic_linker='GNU/Linux ld.so'  ;;netbsd*)  version_type=sunos  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'    dynamic_linker='NetBSD (a.out) ld.so'  else    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'    soname_spec='${libname}${release}.so$major'    dynamic_linker='NetBSD ld.elf_so'  fi  shlibpath_var=LD_LIBRARY_PATH  shlibpath_overrides_runpath=yes  hardcode_into_libs=yes  ;;newsos6)  version_type=linux  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'  shlibpath_var=LD_LIBRARY_PATH  shlibpath_overrides_runpath=yes  ;;openbsd*)  version_type=sunos  if test "$with_gnu_ld" = yes; then    need_lib_prefix=no    need_version=no  fi  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'  shlibpath_var=LD_LIBRARY_PATH  ;;os2*)  libname_spec='$name'  need_lib_prefix=no  library_names_spec='$libname.dll $libname.a'  dynamic_linker='OS/2 ld.exe'  shlibpath_var=LIBPATH  ;;osf3* | osf4* | osf5*)  version_type=osf  need_version=no  soname_spec='${libn

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -