From 36a549b7ac3d3efde5af04790d97cff6490405b9 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 26 May 2000 17:27:24 +0000 Subject: [PATCH] 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'. --- ChangeLog | 13 +++++++++++++ acspecific.m4 | 6 +++--- lib/autoconf/specific.m4 | 6 +++--- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index e6f1673b..214f771c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2000-05-26 Mark Elbrecht + + 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 * aclang.m4 (AC_PROG_CXX): Look for aCC before CC. diff --git a/acspecific.m4 b/acspecific.m4 index bd724c7d..2739fd35 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -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 diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index bd724c7d..2739fd35 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -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