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'.
This commit is contained in:
Akim Demaille 2000-05-26 17:27:24 +00:00
parent 0e26510db8
commit 36a549b7ac
3 changed files with 19 additions and 6 deletions

View File

@ -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.

View 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

View 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