]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acspecific.m4 (AC_PROG_LN_S): If neither `ln -s' nor `ln' work,
authorAkim Demaille <akim@epita.fr>
Wed, 18 Oct 2000 11:05:32 +0000 (11:05 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 18 Oct 2000 11:05:32 +0000 (11:05 +0000)
fall back to `cp'.

ChangeLog
acspecific.m4
doc/autoconf.texi
lib/autoconf/specific.m4

index 518c91cd135a0b4a61335d56e8c66563f9b018c9..37f374243b6ed549b6d274c153922bfda7fef826 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-18  Akim Demaille  <akim@epita.fr>
+
+       * acspecific.m4 (AC_PROG_LN_S): If neither `ln -s' nor `ln' work,
+       fall back to `cp'.
+
 2000-10-17  Morten Eriksen  <mortene@sim.no>
 
        * acgeneral.m4 (AC_CHECK_TOOL): As AC_CHECK_PROG first tests the
index ae17ee78900d81aba5995b6f81d8bf41de4f1208..a85220b0d7c6d58069c579bcccb2fb19a9b4d679 100644 (file)
@@ -274,16 +274,18 @@ AC_CACHE_VAL(ac_cv_prog_LN_S,
 echo >conftest.file
 if ln -s conftest.file conftest.sym 2>/dev/null; then
   ac_cv_prog_LN_S="ln -s"
-else
+elif ln conftest.file conftest.sym 2>/dev/null; then
   ac_cv_prog_LN_S=ln
-fi])dnl
-LN_S=$ac_cv_prog_LN_S
+else
+  ac_cv_prog_LN_S=cp
+fi
+rm -f conftest.sym conftest.file])dnl
+AC_SUBST([LN_S], [$ac_cv_prog_LN_S])
 if test "$ac_cv_prog_LN_S" = "ln -s"; then
-  AC_MSG_RESULT(yes)
+  AC_MSG_RESULT([yes])
 else
-  AC_MSG_RESULT(no)
+  AC_MSG_RESULT([no, using $LN_S])
 fi
-AC_SUBST(LN_S)dnl
 ])# AC_PROG_LN_S
 
 
index fd408a1fcd614f8cbf17834b004461221c1eb553..df106c3a3fd33ae07f83bf7dd9af196b115dcf4c 100644 (file)
@@ -2704,7 +2704,8 @@ distribution.
 @ovindex LN_S
 If @samp{ln -s} works on the current file system (the operating system
 and file system support symbolic links), set output variable @code{LN_S}
-to @samp{ln -s}, otherwise set it to @samp{ln}.
+to @samp{ln -s}, otherwise if @samp{ln} works, set @code{LN_S} to
+@samp{ln}, and otherwise set to @samp{cp}.
 
 If the link is put in a directory other than the current directory, its
 meaning depends on whether @samp{ln} or @samp{ln -s} is used.  To safely
index ae17ee78900d81aba5995b6f81d8bf41de4f1208..a85220b0d7c6d58069c579bcccb2fb19a9b4d679 100644 (file)
@@ -274,16 +274,18 @@ AC_CACHE_VAL(ac_cv_prog_LN_S,
 echo >conftest.file
 if ln -s conftest.file conftest.sym 2>/dev/null; then
   ac_cv_prog_LN_S="ln -s"
-else
+elif ln conftest.file conftest.sym 2>/dev/null; then
   ac_cv_prog_LN_S=ln
-fi])dnl
-LN_S=$ac_cv_prog_LN_S
+else
+  ac_cv_prog_LN_S=cp
+fi
+rm -f conftest.sym conftest.file])dnl
+AC_SUBST([LN_S], [$ac_cv_prog_LN_S])
 if test "$ac_cv_prog_LN_S" = "ln -s"; then
-  AC_MSG_RESULT(yes)
+  AC_MSG_RESULT([yes])
 else
-  AC_MSG_RESULT(no)
+  AC_MSG_RESULT([no, using $LN_S])
 fi
-AC_SUBST(LN_S)dnl
 ])# AC_PROG_LN_S