]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Currently, AC_PROG_LN_S incorrectly reports yes with DJGPP. This
authorAkim Demaille <akim@epita.fr>
Fri, 26 May 2000 17:27:24 +0000 (17:27 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 26 May 2000 17:27:24 +0000 (17:27 +0000)
is because the DJGPP `ln' emulates soft links for executables by
generating a stub that in turn calls the real program.  This
feature also works with nonexistent files like in the Unix
spec. So `ln -s X conftestdata' will generate `conftestdata.exe'
which will attempt to call 'X.exe'. But this feature only works
for executables.  Fix it.

* acspecific.m4 (AC_PROG_LN_S): Create a sample file and use it to
test `ln -s'.

ChangeLog
acspecific.m4
lib/autoconf/specific.m4

index e6f1673b76588c574d2b6998610c9bd644e32682..214f771c470b7287f8aa65deca9c223731853076 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2000-05-26 Mark Elbrecht <snowball3@bigfoot.com>
+
+       Currently, AC_PROG_LN_S incorrectly reports yes with DJGPP. This
+       is because the DJGPP `ln' emulates soft links for executables by
+       generating a stub that in turn calls the real program.  This
+       feature also works with nonexistent files like in the Unix
+       spec. So `ln -s X conftestdata' will generate `conftestdata.exe'
+       which will attempt to call 'X.exe'. But this feature only works
+       for executables.  Fix it.
+
+       * acspecific.m4 (AC_PROG_LN_S): Create a sample file and use it to
+       test `ln -s'.
+
 2000-05-26  Ossama Othman <ossama@ece.uci.edu>
 
        * aclang.m4 (AC_PROG_CXX): Look for aCC before CC.
index bd724c7d89f5ab1b68d026921d42be64ca008480..2739fd357e983dfe58258b83bc07bea5373c4a20 100644 (file)
@@ -272,9 +272,9 @@ AC_SUBST(INSTALL_DATA)dnl
 AC_DEFUN([AC_PROG_LN_S],
 [AC_MSG_CHECKING(whether ln -s works)
 AC_CACHE_VAL(ac_cv_prog_LN_S,
-[rm -f conftestdata
-if ln -s X conftestdata 2>/dev/null; then
-  rm -f conftestdata
+[rm -f conftest.sym conftest.file
+echo >conftest.file
+if ln -s conftest.file conftest.sym 2>/dev/null; then
   ac_cv_prog_LN_S="ln -s"
 else
   ac_cv_prog_LN_S=ln
index bd724c7d89f5ab1b68d026921d42be64ca008480..2739fd357e983dfe58258b83bc07bea5373c4a20 100644 (file)
@@ -272,9 +272,9 @@ AC_SUBST(INSTALL_DATA)dnl
 AC_DEFUN([AC_PROG_LN_S],
 [AC_MSG_CHECKING(whether ln -s works)
 AC_CACHE_VAL(ac_cv_prog_LN_S,
-[rm -f conftestdata
-if ln -s X conftestdata 2>/dev/null; then
-  rm -f conftestdata
+[rm -f conftest.sym conftest.file
+echo >conftest.file
+if ln -s conftest.file conftest.sym 2>/dev/null; then
   ac_cv_prog_LN_S="ln -s"
 else
   ac_cv_prog_LN_S=ln