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

📄 ltdl.m4

📁 MPI stands for the Message Passing Interface. Written by the MPI Forum (a large committee comprising
💻 M4
📖 第 1 页 / 共 2 页
字号:
    ;;  freebsd* | dragonfly*)    lt_cv_sys_dlopen_deplibs=yes    ;;  gnu* | linux* | k*bsd*-gnu)    # GNU and its variants, using gnu ld.so (Glibc)    lt_cv_sys_dlopen_deplibs=yes    ;;  hpux10*|hpux11*)    lt_cv_sys_dlopen_deplibs=yes    ;;  interix*)    lt_cv_sys_dlopen_deplibs=yes    ;;  irix[[12345]]*|irix6.[[01]]*)    # Catch all versions of IRIX before 6.2, and indicate that we don't    # know how it worked for any of those versions.    lt_cv_sys_dlopen_deplibs=unknown    ;;  irix*)    # The case above catches anything before 6.2, and it's known that    # at 6.2 and later dlopen does load deplibs.    lt_cv_sys_dlopen_deplibs=yes    ;;  netbsd*)    lt_cv_sys_dlopen_deplibs=yes    ;;  openbsd*)    lt_cv_sys_dlopen_deplibs=yes    ;;  osf[[1234]]*)    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,    # it did *not* use an RPATH in a shared library to find objects the    # library depends on, so we explicitly say `no'.    lt_cv_sys_dlopen_deplibs=no    ;;  osf5.0|osf5.0a|osf5.1)    # dlopen *does* load deplibs and with the right loader patch applied    # it even uses RPATH in a shared library to search for shared objects    # that the library depends on, but there's no easy way to know if that    # patch is installed.  Since this is the case, all we can really    # say is unknown -- it depends on the patch being installed.  If    # it is, this changes to `yes'.  Without it, it would be `no'.    lt_cv_sys_dlopen_deplibs=unknown    ;;  osf*)    # the two cases above should catch all versions of osf <= 5.1.  Read    # the comments above for what we know about them.    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library    # is used to find them so we can finally say `yes'.    lt_cv_sys_dlopen_deplibs=yes    ;;  qnx*)    lt_cv_sys_dlopen_deplibs=yes    ;;  solaris*)    lt_cv_sys_dlopen_deplibs=yes    ;;  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)    libltdl_cv_sys_dlopen_deplibs=yes    ;;  esac  ])if test "$lt_cv_sys_dlopen_deplibs" != yes; then AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],    [Define if the OS needs help to load dependent libraries for dlopen().])fi])# LT_SYS_DLOPEN_DEPLIBS# Old name:AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [])# LT_SYS_MODULE_EXT# -----------------AC_DEFUN([LT_SYS_MODULE_EXT],[m4_require([_LT_SYS_DYNAMIC_LINKER])dnlAC_CACHE_CHECK([which extension is used for runtime loadable modules],  [libltdl_cv_shlibext],[module=yeseval libltdl_cv_shlibext=$shrext_cmds  ])if test -n "$libltdl_cv_shlibext"; then  m4_pattern_allow([LT_MODULE_EXT])dnl  AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"],    [Define to the extension used for runtime loadable modules, say, ".so".])fi])# LT_SYS_MODULE_EXT# Old name:AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LTDL_SHLIBEXT], [])# LT_SYS_MODULE_PATH# ------------------AC_DEFUN([LT_SYS_MODULE_PATH],[m4_require([_LT_SYS_DYNAMIC_LINKER])dnlAC_CACHE_CHECK([which variable specifies run-time module search path],  [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"])if test -n "$lt_cv_module_path_var"; then  m4_pattern_allow([LT_MODULE_PATH_VAR])dnl  AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"],    [Define to the name of the environment variable that determines the run-time module search path.])fi])# LT_SYS_MODULE_PATH# Old name:AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LTDL_SHLIBPATH], [])# LT_SYS_DLSEARCH_PATH# --------------------AC_DEFUN([LT_SYS_DLSEARCH_PATH],[m4_require([_LT_SYS_DYNAMIC_LINKER])dnlAC_CACHE_CHECK([for the default library search path],  [lt_cv_sys_dlsearch_path],  [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"])if test -n "$lt_cv_sys_dlsearch_path"; then  sys_dlsearch_path=  for dir in $lt_cv_sys_dlsearch_path; do    if test -z "$sys_dlsearch_path"; then      sys_dlsearch_path="$dir"    else      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"    fi  done  m4_pattern_allow([LT_DLSEARCH_PATH])dnl  AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"],    [Define to the system default library search path.])fi])# LT_SYS_DLSEARCH_PATH# Old name:AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [])# _LT_CHECK_DLPREOPEN# -------------------m4_defun([_LT_CHECK_DLPREOPEN],[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnlAC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],  [libltdl_cv_preloaded_symbols],  [if test -n "$lt_cv_sys_global_symbol_pipe"; then    libltdl_cv_preloaded_symbols=yes  else    libltdl_cv_preloaded_symbols=no  fi  ])if test x"$libltdl_cv_preloaded_symbols" = xyes; then  AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],    [Define if libtool can extract symbol lists from object files.])fi])# _LT_CHECK_DLPREOPEN# LT_LIB_DLLOAD# -------------AC_DEFUN([LT_LIB_DLLOAD],[m4_pattern_allow([^LT_DLLOADERS$])LT_DLLOADERS=AC_SUBST([LT_DLLOADERS])AC_LANG_PUSH([C])LIBADD_DLOPEN=AC_SEARCH_LIBS([dlopen], [dl],	[AC_DEFINE([HAVE_LIBDL], [1],		   [Define if you have the libdl library or equivalent.])	if test "$ac_cv_search_dlopen" != "none required" ; then	  LIBADD_DLOPEN="-ldl"	fi	libltdl_cv_lib_dl_dlopen="yes"	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],    [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H#  include <dlfcn.h>#endif    ]], [[dlopen(0, 0);]])],	    [AC_DEFINE([HAVE_LIBDL], [1],		       [Define if you have the libdl library or equivalent.])	    libltdl_cv_func_dlopen="yes"	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],	[AC_CHECK_LIB([svld], [dlopen],		[AC_DEFINE([HAVE_LIBDL], [1],			 [Define if you have the libdl library or equivalent.])	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyesthen  lt_save_LIBS="$LIBS"  LIBS="$LIBS $LIBADD_DLOPEN"  AC_CHECK_FUNCS([dlerror])  LIBS="$lt_save_LIBS"fiAC_SUBST([LIBADD_DLOPEN])LIBADD_SHL_LOAD=AC_CHECK_FUNC([shl_load],	[AC_DEFINE([HAVE_SHL_LOAD], [1],		   [Define if you have the shl_load function.])	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],    [AC_CHECK_LIB([dld], [shl_load],	    [AC_DEFINE([HAVE_SHL_LOAD], [1],		       [Define if you have the shl_load function.])	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"	    LIBADD_SHL_LOAD="-ldld"])])AC_SUBST([LIBADD_SHL_LOAD])case $host_os indarwin[[1567]].*)# We only want this for pre-Mac OS X 10.4.  AC_CHECK_FUNC([_dyld_func_lookup],	[AC_DEFINE([HAVE_DYLD], [1],		   [Define if you have the _dyld_func_lookup function.])	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])  ;;beos*)  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"  ;;cygwin* | mingw* | os2* | pw32*)  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"  ;;esacAC_CHECK_LIB([dld], [dld_link],	[AC_DEFINE([HAVE_DLD], [1],		   [Define if you have the GNU dld library.])		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])AC_SUBST([LIBADD_DLD_LINK])m4_pattern_allow([^LT_DLPREOPEN$])LT_DLPREOPEN=if test -n "$LT_DLLOADERS"then  for lt_loader in $LT_DLLOADERS; do    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "  done  AC_DEFINE([HAVE_LIBDLLOADER], [1],            [Define if libdlloader will be built on this platform])fiAC_SUBST([LT_DLPREOPEN])dnl This isn't used anymore, but set it for backwards compatibilityLIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"AC_SUBST([LIBADD_DL])AC_LANG_POP])# LT_LIB_DLLOAD# Old name:AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LTDL_DLLIB], [])# LT_SYS_SYMBOL_USCORE# --------------------# does the compiler prefix global symbols with an underscore?AC_DEFUN([LT_SYS_SYMBOL_USCORE],[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnlAC_CACHE_CHECK([for _ prefix in compiled symbols],  [lt_cv_sys_symbol_underscore],  [lt_cv_sys_symbol_underscore=no  cat > conftest.$ac_ext <<_LT_EOFvoid nm_test_func(){}int main(){nm_test_func;return 0;}_LT_EOF  if AC_TRY_EVAL(ac_compile); then    # Now try to grab the symbols.    ac_nlist=conftest.nm    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then      # See whether the symbols have a leading underscore.      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then        lt_cv_sys_symbol_underscore=yes      else        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then	  :        else	  echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD        fi      fi    else      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD    fi  else    echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD    cat conftest.c >&AS_MESSAGE_LOG_FD  fi  rm -rf conftest*  ])  sys_symbol_underscore=$lt_cv_sys_symbol_underscore  AC_SUBST([sys_symbol_underscore])])# LT_SYS_SYMBOL_USCORE# Old name:AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [])# LT_FUNC_DLSYM_USCORE# --------------------AC_DEFUN([LT_FUNC_DLSYM_USCORE],[AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnlif test x"$lt_cv_sys_symbol_underscore" = xyes; then  if test x"$libltdl_cv_func_dlopen" = xyes ||     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then	AC_CACHE_CHECK([whether we have to add an underscore for dlsym],	  [libltdl_cv_need_uscore],	  [libltdl_cv_need_uscore=unknown          save_LIBS="$LIBS"          LIBS="$LIBS $LIBADD_DLOPEN"	  _LT_TRY_DLOPEN_SELF(	    [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes],	    [],				 [libltdl_cv_need_uscore=cross])	  LIBS="$save_LIBS"	])  fifiif test x"$libltdl_cv_need_uscore" = xyes; then  AC_DEFINE([NEED_USCORE], [1],    [Define if dlsym() requires a leading underscore in symbol names.])fi])# LT_FUNC_DLSYM_USCORE# Old name:AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])

⌨️ 快捷键说明

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