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

📄 aclocal.m4

📁 PSlib是一个用来生成PostScript文件的类库。提供了一个生成PostScript文件的简单方法。
💻 M4
📖 第 1 页 / 共 5 页
字号:
	    [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"])	      ])	    ])	  ])	])      ])    ;;  esac  if test "x$lt_cv_dlopen" != xno; then    enable_dlopen=yes  else    enable_dlopen=no  fi  case $lt_cv_dlopen in  dlopen)    save_CPPFLAGS="$CPPFLAGS"    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"    save_LDFLAGS="$LDFLAGS"    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"    save_LIBS="$LIBS"    LIBS="$lt_cv_dlopen_libs $LIBS"    AC_CACHE_CHECK([whether a program can dlopen itself],	  lt_cv_dlopen_self, [dnl	  _LT_AC_TRY_DLOPEN_SELF(	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)    ])    if test "x$lt_cv_dlopen_self" = xyes; then      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],    	  lt_cv_dlopen_self_static, [dnl	  _LT_AC_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])# AC_LIBTOOL_DLOPEN_SELF# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])# ---------------------------------# Check to see if options -c and -o are simultaneously supported by compilerAC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],[AC_REQUIRE([LT_AC_PROG_SED])dnlAC_REQUIRE([_LT_AC_SYS_COMPILER])dnlAC_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   $rm -r conftest 2>/dev/null   mkdir conftest   cd conftest   mkdir out   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   # (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_AC_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 ..   rmdir conftest   $rm conftest*])])# AC_LIBTOOL_PROG_CC_C_O# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])# -----------------------------------------# Check to see if we can do hard links to lock some files if neededAC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],[AC_REQUIRE([_LT_AC_LOCK])dnlhard_links="nottested"if test "$_LT_AC_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])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS# AC_LIBTOOL_OBJDIR# -----------------AC_DEFUN([AC_LIBTOOL_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])# AC_LIBTOOL_OBJDIR# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])# ----------------------------------------------# Check hardcoding attributes.AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],[AC_MSG_CHECKING([how to hardcode library paths into programs])_LT_AC_TAGVAR(hardcode_action, $1)=if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then  # We can hardcode non-existant directories.  if test "$_LT_AC_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_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then    # Linking always hardcodes the temporary library directory.    _LT_AC_TAGVAR(hardcode_action, $1)=relink  else    # We can link without hardcoding, and we can hardcode nonexisting dirs.    _LT_AC_TAGVAR(hardcode_action, $1)=immediate  fielse  # We cannot hardcode anything, or else we can only hardcode existing  # directories.  _LT_AC_TAGVAR(hardcode_action, $1)=unsupportedfiAC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = 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=needlessfi])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH# AC_LIBTOOL_SYS_LIB_STRIP# ------------------------AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],[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])# AC_LIBTOOL_SYS_LIB_STRIP# AC_LIBTOOL_SYS_DYNAMIC_LINKER# -----------------------------# PORTME Fill in your ld.so characteristicsAC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],[AC_REQUIRE([LT_AC_PROG_SED])dnlAC_MSG_CHECKING([dynamic linker characteristics])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"m4_if($1,[],[if test "$GCC" = yes; 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.    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`  else    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])need_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*)  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}${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 $GCC,$host_os in  yes,cygwin* | yes,mingw* | yes,pw32*)    library_names_spec='$libname.dll.a'    # DLL is installe

⌨️ 快捷键说明

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