📄 ln.m4
字号:
dnl Copyright (C) 1993-2002 Free Software Foundation, Inc.dnl This file is free software, distributed under the terms of the GNUdnl General Public License. As a special exception to the GNU Generaldnl Public License, this file may be distributed as part of a programdnl that contains a configuration script generated by Autoconf, underdnl the same distribution terms as the rest of that program.dnl From Bruno Haible, Marcus Daniels.AC_PREREQ(2.13)AC_DEFUN([CL_PROG_LN],[AC_REQUIRE([CL_PROG_CP])dnlAC_CACHE_CHECK(how to make hard links, cl_cv_prog_LN, [rm -f conftestdata conftestfileecho data > conftestfileif ln conftestfile conftestdata 2>/dev/null; then cl_cv_prog_LN=lnelse cl_cv_prog_LN="$cl_cv_prog_cp"firm -f conftestdata conftestfile])LN="$cl_cv_prog_LN"AC_SUBST(LN)dnl])AC_DEFUN([CL_PROG_LN_S],[AC_REQUIRE([CL_PROG_LN])dnldnl Make a symlink if possible; otherwise try a hard link. On filesystemsdnl which support neither symlink nor hard link, use a plain copy.AC_MSG_CHECKING(whether ln -s works)AC_CACHE_VAL(cl_cv_prog_LN_S, [rm -f conftestdataif ln -s X conftestdata 2>/dev/null; then cl_cv_prog_LN_S="ln -s"else cl_cv_prog_LN_S="$cl_cv_prog_LN"firm -f conftestdata])dnlif test "$cl_cv_prog_LN_S" = "ln -s"; then AC_MSG_RESULT(yes)else AC_MSG_RESULT(no)fiLN_S="$cl_cv_prog_LN_S"AC_SUBST(LN_S)dnl])AC_DEFUN([CL_PROG_HLN],[AC_REQUIRE([CL_PROG_LN_S])dnldnl SVR4 "ln" makes hard links to symbolic links, instead of resolving thednl symbolic link. To avoid this, use the "hln" program.AC_CACHE_CHECK(how to make hard links to symlinks, cl_cv_prog_hln, [cl_cv_prog_hln="ln"if test "$cl_cv_prog_LN_S" = "ln -s"; thenecho "blabla" > conftest.xln -s conftest.x conftest.yln conftest.y conftest.z 2>&AC_FD_CCrm -f conftest.xif cat conftest.z > /dev/null 2>&1 ; then # ln is usable. cl_cv_prog_hln="ln"else # conftest.z is a symbolic link to the non-existent conftest.x cl_cv_prog_hln="hln"fielse# If there are no symbolic links, the problem cannot occur.cl_cv_prog_hln="ln"firm -f conftest*])HLN="$cl_cv_prog_hln"AC_SUBST(HLN)dnl])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -