[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shouldn't AC_CONFIG_LINKS make copies if it can't make links?
From: |
Akim Demaille |
Subject: |
Re: shouldn't AC_CONFIG_LINKS make copies if it can't make links? |
Date: |
06 Jun 2002 18:25:17 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) |
@@ -778,9 +778,8 @@ for ac_file in : $CONFIG_LINKS; do test
esac
# Make a symlink if possible; otherwise try a hard link.
- ln -s $ac_rel_source $ac_dest 2>/dev/null ||
- ln $srcdir/$ac_source $ac_dest ||
- AC_MSG_ERROR([cannot link $ac_dest to $srcdir/$ac_source])
+ $as_ln_s $ac_rel_source $ac_dest 2>/dev/null ||
+ AC_MSG_ERROR([cannot link or copy $ac_dest to $srcdir/$ac_source])
m4_ifset([AC_LIST_LINKS_COMMANDS],
[ # Run the commands associated with the file.
case $ac_file in
This is wrong to me, as
ln -s foo/bar baz/qux
and
ln foo/bar baz/qux
have completely different semantics. Hence
ln -s $ac_rel_source $ac_dest
and
ln $srcdir/$ac_source $ac_dest
in the original.