summaryrefslogtreecommitdiff
path: root/gcc/aclocal.m4
diff options
context:
space:
mode:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-12 08:22:31 +0000
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-12 08:22:31 +0000
commit26be379c1dcc2af9a60a1b6a0eb1d410b0eb7d1c (patch)
treec72db519c4df641cf363f8ea9ce1931748dc8b9f /gcc/aclocal.m4
parent08ea345c6ea1f482d2fc1435c61e82ac69443dc3 (diff)
downloadgcc-26be379c1dcc2af9a60a1b6a0eb1d410b0eb7d1c.tar.gz
2004-10-06 Paolo Bonzini <bonzini@gnu.org>
* configure.ac (symbolic_link): Replace with $LN_S. (Assembler/Linker): Hard link from gas and binutils trees. * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88920 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r--gcc/aclocal.m49
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4
index 38c10c8238a..7bf291323e8 100644
--- a/gcc/aclocal.m4
+++ b/gcc/aclocal.m4
@@ -126,7 +126,12 @@ else
then
gcc_cv_prog_LN_S=ln
else
- gcc_cv_prog_LN_S=cp
+ if cp -p conftestdata_f conftestdata_t 2>/dev/null
+ then
+ gcc_cv_prog_LN_S="cp -p"
+ else
+ gcc_cv_prog_LN_S=cp
+ fi
fi
fi
rm -f conftestdata_f conftestdata_t
@@ -138,7 +143,7 @@ else
if test "$gcc_cv_prog_LN_S" = "ln"; then
AC_MSG_RESULT([no, using ln])
else
- AC_MSG_RESULT([no, and neither does ln, so using cp])
+ AC_MSG_RESULT([no, and neither does ln, so using $gcc_cv_prog_LN_S])
fi
fi
AC_SUBST(LN_S)dnl