mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-18 10:45:15 +08:00
(_AC_OUTPUT_LINKS): Fall back on cp if ln doesn't work.
This commit is contained in:
parent
0718c7bfd3
commit
f587ed5da6
@ -777,10 +777,11 @@ for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
|
||||
*) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
|
||||
esac
|
||||
|
||||
# Make a symlink if possible; otherwise try a hard link.
|
||||
# Try a symlink, then a hard link, then a copy.
|
||||
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])
|
||||
ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
|
||||
cp -p $srcdir/$ac_source $ac_dest ||
|
||||
AC_MSG_ERROR([cannot link or copy $srcdir/$ac_source to $ac_dest])
|
||||
m4_ifset([AC_LIST_LINKS_COMMANDS],
|
||||
[ # Run the commands associated with the file.
|
||||
case $ac_file in
|
||||
|
Loading…
Reference in New Issue
Block a user