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

📄 ltconfig

📁 移植到WLIT项目的redboot源代码
💻
📖 第 1 页 / 共 5 页
字号:
  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*)      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'      file_magic_cmd=/usr/bin/file      file_magic_test_file=`echo /usr/lib/libc.so*`      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'      need_version=no      need_lib_prefix=no      ;;    freebsd-*)      deplibs_check_method=unknown      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'      need_version=yes      ;;  esac  finish_cmds='PATH="$PATH:/sbin" OBJFORMAT="'"$objformat"'" ldconfig -m $libdir'  shlibpath_var=LD_LIBRARY_PATH  ;;gnu*)  version_type=linux  library_names_spec='${libname}${release}.so$versuffix ${libname}.so'  shlibpath_var=LD_LIBRARY_PATH  ;;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  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*)  version_type=irix  soname_spec='${libname}${release}.so'  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'  shlibpath_var=LD_LIBRARY_PATH  deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" # or should it be pass_all?  file_magic_cmd=/usr/bin/file  file_magic_test_file=`echo /lib/libc.so*`  shlibpath_overrides_runpath=no  ;;irix6*)  version_type=irix  need_lib_prefix=no  need_version=no  soname_spec='${libname}${release}.so'  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'  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  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH  shlibpath_overrides_runpath=no  # even though /usr/local/lib is always searched, the man-page says  # shared libraries should not be installed there if they use an ABI  # different from -32, so we'd better not search for shared libraries  # there either  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"  deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" # or should it be pass_all?  file_magic_cmd=/usr/bin/file  file_magic_test_file=`echo /lib${libsuff}/libc.so*`  ;;# 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  deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'  file_magic_cmd=/usr/bin/file  file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`  if test -f /lib/ld.so.1; then    dynamic_linker='GNU ld.so'  else    # Only the GNU ld.so supports shared libraries on MkLinux.    case "$host_cpu" in    powerpc*) dynamic_linker=no ;;    *) dynamic_linker='Linux ld.so' ;;    esac  fi  ;;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  ;;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*)  version_type=osf  soname_spec='${libname}${release}.so'  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'  shlibpath_var=LD_LIBRARY_PATH  # deplibs_check_method='pass_all'  # Although pass_all appears to work, it copies symbols from static libraries  # into shared ones and exports them.  So, when a program is linked with two  # or more libraries that have got copies of the same symbols, link fails  # This was only tested on osf4:  deplibs_check_method='file_magic COFF format alpha shared library'  file_magic_cmd=/usr/bin/file  file_magic_test_file=/shlib/libc.so  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"  ;;sco3.2v5*)  version_type=osf  soname_spec='${libname}${release}.so$major'  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'  shlibpath_var=LD_LIBRARY_PATH  ;;solaris*)  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  shlibpath_overrides_runpath=yes  # ldd complains unless libraries are executable  postinstall_cmds='chmod +x $lib'  deplibs_check_method="file_magic ELF [0-9][0-9]-bit [LM]SB dynamic lib"  file_magic_cmd=/usr/bin/file  file_magic_test_file=/lib/libc.so  ;;sunos4*)  version_type=sunos  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'  shlibpath_var=LD_LIBRARY_PATH  shlibpath_overrides_runpath=yes  if test "$with_gnu_ld" = yes; then    need_lib_prefix=no  fi  need_version=yes  ;;sysv4.2uw2* | sysv4.3* | sysv5*)  version_type=linux  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'  soname_spec='${libname}${release}.so$major'  shlibpath_var=LD_LIBRARY_PATH  case "$host_vendor" in    ncr)      deplibs_check_method='pass_all'      ;;  esac  ;;uts4*)  version_type=linux  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'  soname_spec='${libname}${release}.so$major'  shlibpath_var=LD_LIBRARY_PATH  ;;dgux*)  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  ;;*)  dynamic_linker=no  ;;esacecho "$ac_t$dynamic_linker" 1>&6test "$dynamic_linker" = no && can_build_shared=no# Report the final consequences.echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6if test -n "$file_magic_test_file" && test -n "$file_magic_cmd"; then  case "$deplibs_check_method" in  "file_magic "*)    file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"    if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |       egrep "$file_magic_regex" > /dev/null; then      :    else      cat <<EOF 1>&2*** Warning: the command libtool uses to detect shared libraries,*** $file_magic_cmd, produces output that libtool cannot recognize.*** The result is that libtool may fail to recognize shared libraries*** as such.  This will affect the creation of libtool libraries that*** depend on shared libraries, but programs linked with such libtool*** libraries will work regardless of this problem.  Nevertheless, you*** may want to report the problem to your system manager and/or to*** bug-libtool@gnu.orgEOF    fi ;;  esacfiecho $ac_n "checking whether to build shared libraries... $ac_c" 1>&6test "$can_build_shared" = "no" && enable_shared=no# On AIX, shared libraries and static libraries use the same namespace, and# are all built from PIC.case "$host_os" inaix3*)  test "$enable_shared" = yes && enable_static=no  if test -n "$RANLIB"; then    archive_cmds="$archive_cmds~\$RANLIB \$lib"    postinstall_cmds='$RANLIB $lib'  fi  ;;aix4*)  test "$enable_shared" = yes && enable_static=no  ;;esacecho "$ac_t$enable_shared" 1>&6# Make sure either enable_shared or enable_static is yes.test "$enable_shared" = yes || enable_static=yesecho "checking whether to build static libraries... $enable_static" 1>&6if test "$hardcode_action" = relink; then  # Fast installation is not supported  enable_fast_install=noelif test "$shlibpath_overrides_runpath" = yes ||     test "$enable_shared" = no; then  # Fast installation is not necessary  enable_fast_install=needlessfiecho $ac_n "checking for objdir... $ac_c" 1>&6rm -f .libs 2>/dev/nullmkdir .libs 2>/dev/nullif test -d .libs; then  objdir=.libselse  # MS-DOS does not allow filenames that begin with a dot.  objdir=_libsfirmdir .libs 2>/dev/nullecho "$ac_t$objdir" 1>&6if test "x$enable_dlopen" != xyes; then  enable_dlopen=unknown  enable_dlopen_self=unknown  enable_dlopen_self_static=unknownelseif eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then  lt_cv_dlopen=no lt_cv_dlopen_libs=echo $ac_n "checking for dlopen""... $ac_c" 1>&6echo "$progname:1977: checking for dlopen" >&5if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1982 "ltconfig"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char dlopen(); below.  */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char dlopen();int main() {/* The GNU C library defines this for functions which it implements    to always fail with ENOSYS.  Some functions are actually named    something starting with __ and the normal name is an alias.  */#if defined (__stub_dlopen) || defined (__stub___dlopen)choke me#elsedlopen();#endif; return 0; }EOFif { (eval echo $progname:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_func_dlopen=yes"else  echo "$progname: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_func_dlopen=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then  echo "$ac_t""yes" 1>&6  lt_cv_dlopen="dlopen"else  echo "$ac_t""no" 1>&6echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6echo "$progname:2022: checking for dlopen in -ldl" >&5ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-ldl  $LIBS"cat > conftest.$ac_ext <<EOF#line 2030 "ltconfig"/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char dlopen();int main() {dlopen(); return 0; }EOFif { (eval echo $progname:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "$progname: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"else  echo "$ac_t""no" 1>&6echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6echo "$progname:2059: checking for dld_link in -ldld" >&5ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-ldld  $LIBS"cat > conftest.$ac_ext <<EOF#line 2067 "ltconfig"/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char dld_link();int main() {dld_link(); return 0; }EOFif { (eval echo $progname:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; 

⌨️ 快捷键说明

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