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

📄 libtool.m4

📁 奇趣公司比较新的qt/emd版本
💻 M4
📖 第 1 页 / 共 5 页
字号:
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],    	  lt_cv_dlopen_self_static, [dnl	  _LT_TRY_DLOPEN_SELF(	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)      ])    fi    CPPFLAGS="$save_CPPFLAGS"    LDFLAGS="$save_LDFLAGS"    LIBS="$save_LIBS"    ;;  esac  case $lt_cv_dlopen_self in  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;  *) enable_dlopen_self=unknown ;;  esac  case $lt_cv_dlopen_self_static in  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;  *) enable_dlopen_self_static=unknown ;;  esacfi_LT_DECL([dlopen_support], [enable_dlopen], [0],	 [Whether dlopen is supported])_LT_DECL([dlopen_self], [enable_dlopen_self], [0],	 [Whether dlopen of programs is supported])_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],	 [Whether dlopen of statically linked programs is supported])])# LT_SYS_DLOPEN_SELF# Old name:AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])# _LT_COMPILER_C_O([TAGNAME])# ---------------------------# Check to see if options -c and -o are simultaneously supported by compiler.# This macro does not hard code the compiler like AC_PROG_CC_C_O.m4_defun([_LT_COMPILER_C_O],[AC_REQUIRE([AC_OBJEXT])dnlm4_require([_LT_FILEUTILS_DEFAULTS])dnlm4_require([_LT_TAG_COMPILER])dnlAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no   $RM -r conftest 2>/dev/null   mkdir conftest   cd conftest   mkdir out   printf "$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   # (2) before a word containing "conftest.", or (3) at the end.   # Note that $ac_compile itself does not contain backslashes and begins   # with a dollar sign (not a hyphen), so the echo should work correctly.   lt_compile=`echo "$ac_compile" | $SED \   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \   -e 's:$: $lt_compiler_flag:'`   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)   (eval "$lt_compile" 2>out/conftest.err)   ac_status=$?   cat out/conftest.err >&AS_MESSAGE_LOG_FD   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD   if (exit $ac_status) && test -s out/conftest2.$ac_objext   then     # The compiler can only warn and ignore the option if not recognized     # So say no if there are warnings     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes     fi   fi   chmod u+w . 2>&AS_MESSAGE_LOG_FD   $RM conftest*   # SGI C++ compiler will create directory out/ii_files/ for   # template instantiation   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files   $RM out/* && rmdir out   cd ..   $RM -r conftest   $RM conftest*])_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],	[Does compiler simultaneously support -c and -o options?])])# _LT_COMPILER_C_O# _LT_COMPILER_FILE_LOCKS([TAGNAME])# ----------------------------------# Check to see if we can do hard links to lock some files if neededm4_defun([_LT_COMPILER_FILE_LOCKS],[m4_require([_LT_ENABLE_LOCK])dnlm4_require([_LT_FILEUTILS_DEFAULTS])dnl_LT_COMPILER_C_O([$1])hard_links="nottested"if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then  # do not overwrite the value of need_locks provided by the user  AC_MSG_CHECKING([if we can lock with hard links])  hard_links=yes  $RM conftest*  ln conftest.a conftest.b 2>/dev/null && hard_links=no  touch conftest.a  ln conftest.a conftest.b 2>&5 || hard_links=no  ln conftest.a conftest.b 2>/dev/null && hard_links=no  AC_MSG_RESULT([$hard_links])  if test "$hard_links" = no; then    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])    need_locks=warn  fielse  need_locks=nofi_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])])# _LT_COMPILER_FILE_LOCKS# _LT_CHECK_OBJDIR# ----------------m4_defun([_LT_CHECK_OBJDIR],[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],[rm -f .libs 2>/dev/nullmkdir .libs 2>/dev/nullif test -d .libs; then  lt_cv_objdir=.libselse  # MS-DOS does not allow filenames that begin with a dot.  lt_cv_objdir=_libsfirmdir .libs 2>/dev/null])objdir=$lt_cv_objdir_LT_DECL([], [objdir], [0],         [The name of the directory that contains temporary libtool files])dnlm4_pattern_allow([LT_OBJDIR])dnlAC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",  [Define to the sub-directory in which libtool stores uninstalled libraries.])])# _LT_CHECK_OBJDIR# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])# --------------------------------------# Check hardcoding attributes.m4_defun([_LT_LINKER_HARDCODE_LIBPATH],[AC_MSG_CHECKING([how to hardcode library paths into programs])_LT_TAGVAR(hardcode_action, $1)=if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||   test -n "$_LT_TAGVAR(runpath_var, $1)" ||   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then  # We can hardcode non-existent directories.  if test "$_LT_TAGVAR(hardcode_direct, $1)" != 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 "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then    # Linking always hardcodes the temporary library directory.    _LT_TAGVAR(hardcode_action, $1)=relink  else    # We can link without hardcoding, and we can hardcode nonexisting dirs.    _LT_TAGVAR(hardcode_action, $1)=immediate  fielse  # We cannot hardcode anything, or else we can only hardcode existing  # directories.  _LT_TAGVAR(hardcode_action, $1)=unsupportedfiAC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; 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=needlessfi_LT_TAGDECL([], [hardcode_action], [0],    [How to hardcode a shared library path into an executable])])# _LT_LINKER_HARDCODE_LIBPATH# _LT_CMD_STRIPLIB# ----------------m4_defun([_LT_CMD_STRIPLIB],[m4_require([_LT_DECL_EGREP])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# FIXME - insert some real tests, host_os isn't really good enough  case $host_os in  darwin*)    if test -n "$STRIP" ; then      striplib="$STRIP -x"      old_striplib="$STRIP -S"      AC_MSG_RESULT([yes])    else      AC_MSG_RESULT([no])    fi    ;;  *)    AC_MSG_RESULT([no])    ;;  esacfi_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])_LT_DECL([], [striplib], [1])])# _LT_CMD_STRIPLIB# _LT_SYS_DYNAMIC_LINKER([TAG])# -----------------------------# PORTME Fill in your ld.so characteristicsm4_defun([_LT_SYS_DYNAMIC_LINKER],[AC_REQUIRE([AC_CANONICAL_HOST])dnlm4_require([_LT_DECL_EGREP])dnlm4_require([_LT_FILEUTILS_DEFAULTS])dnlm4_require([_LT_DECL_SED])dnlAC_MSG_CHECKING([dynamic linker characteristics])m4_case([$1],	[C], [withGCC=$GCC],	[CXX], [withGCC=$GXX],	[F77], [withGCC=$G77],	[FC], [withGCC=$ac_cv_fc_compiler_gnu],	[withGCC=$GCC])library_names_spec=libname_spec='lib$name'soname_spec=shrext_cmds=".so"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"if test "$withGCC" = 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    # 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'`  else    sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`  fielse  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"fineed_lib_prefix=unknownhardcode_into_libs=no# when you set need_version to no, make sure it does not cause -set_version# flags to be left without argumentsneed_version=unknowncase $host_os inaix3*)  version_type=linux  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'  shlibpath_var=LIBPATH  # AIX 3 has no versioning support, so we append a major version to the name.  soname_spec='${libname}${release}${shared_ext}$major'  ;;aix4* | aix5*)  version_type=linux  need_lib_prefix=no  need_version=no  hardcode_into_libs=yes  if test "$host_cpu" = ia64; then    # AIX 5 supports IA64    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'    shlibpath_var=LD_LIBRARY_PATH  else    # With GCC up to 2.95.x, collect2 would create an import file    # for dependence libraries.  The import file would start with    # the line `#! .'.  This would cause the generated library to    # depend on `.', always an invalid library.  This was fixed in    # development snapshots of GCC prior to 3.0.    case $host_os in      aix4 | aix4.[[01]] | aix4.[[01]].*)      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'	   echo ' yes '	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then	:      else	can_build_shared=no      fi      ;;    esac    # AIX (on Power*) 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.    if test "$aix_use_runtimelinking" = yes; then      # If using run time linking (on AIX 4.2 or later) use lib<name>.so      # instead of lib<name>.a to let people know that these are not      # typical AIX shared libraries.      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'    else      # We preserve .a as extension for shared libraries through AIX4.2      # and later when we are not doing run time linking.      library_names_spec='${libname}${release}.a $libname.a'      soname_spec='${libname}${release}${shared_ext}$major'    fi    shlibpath_var=LIBPATH  fi  ;;amigaos*)  if test "$host_cpu" = m68k; then    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'  else    dynamic_linker=no  fi  ;;beos*)  library_names_spec='${libname}${shared_ext}'  dynamic_linker="$host_os ld.so"  shlibpath_var=LIBRARY_PATH  ;;bsdi[[45]]*)  version_type=linux  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'  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"  # 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  shrext_cmds=".dll"  need_version=no  need_lib_prefix=no  case $withGCC,$host_os in  yes,cygwin* | yes,mingw* | yes,pw32*)    library_names_spec='$libname.dll.a'    # DLL is installed to $(libdir)/../bin by postinstall_cmds    postinstall_cmds='base_file=`basename \${file}`~      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~      dldir=$destdir/`dirname \$dlpath`~      test -d \$dldir || mkdir -p \$dldir~      $install_prog $dir/$dlname \$dldir/$dlname~      chmod a+x \$dldir/$dlname~      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;      fi'    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~      dlpath=$dir/\$dldll~       $RM \$dlpath'    shlibpath_overrides_runpath=yes    case $host_os in    cygwin*)      # Cygwin DLLs use 'cyg' prefix rather than 'lib'      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"      ;;    mingw*)      # MinGW DLLs use traditional 'lib' prefix      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'      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 ';[c-zC-Z]:/' >/dev/null]; then        # It is most probably a Windows format PATH printed by        # mingw gcc, but we are running on Cygwin. Gcc prints its search        # path with ; separators, and with drive letters. We can handle the        # drive letters (cygwin fileutils understands them), so leave them,        # especially as we might pass files found there to a mingw objdump,        # which wouldn't understand a cygwinified path. Ahh.        sys_lib_search_path_spec=`$ECHO "$sys_lib_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"`      fi      ;;    pw32*)      # pw32 DLLs use 'pw' prefix rather than 'lib'      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'      ;;    esac    ;;  *)    library_names_spec='${libname}`echo ${release} | $

⌨️ 快捷键说明

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