automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: make install and ln


From: Alexandre Duret-Lutz
Subject: FYI: make install and ln
Date: Wed, 26 Jun 2002 10:15:06 +0200
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu)

I'm checking in this on HEAD and branch-1-6.

2002-06-26  Alexandre Duret-Lutz  <address@hidden>

        * configure.in: Check that ln works, fall back to `cp -p'.
        * Makefile.am (install-exec-hook): Use $(LN) instead of ln.
        Reported by Andreas Buening.

Index: Makefile.am
===================================================================
RCS file: /cvs/automake/automake/Makefile.am,v
retrieving revision 1.195
diff -u -r1.195 Makefile.am
--- Makefile.am 10 Jun 2002 09:49:23 -0000      1.195
+++ Makefile.am 26 Jun 2002 08:11:05 -0000
@@ -46,8 +46,8 @@
          f="`echo $$p|sed '$(transform)'`"; \
          fv="$$f-$(APIVERSION)"; \
          rm -f $(DESTDIR)$(bindir)/$$fv; \
-         echo " ln $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv"; \
-         ln $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \
+         echo " $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv"; \
+         $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \
        done
 
 uninstall-hook:
Index: THANKS
===================================================================
RCS file: /cvs/automake/automake/THANKS,v
retrieving revision 1.180
diff -u -r1.180 THANKS
--- THANKS      21 Jun 2002 19:59:36 -0000      1.180
+++ THANKS      26 Jun 2002 08:11:05 -0000
@@ -11,6 +11,7 @@
 Alexander V. Lukyanov  address@hidden
 Alexandre Duret-Lutz   address@hidden
 Alexey Mahotkin                address@hidden
+Andreas Buening                address@hidden
 Andreas Schwab         address@hidden
 Andrew Cagney          address@hidden
 Andris Pavenis         address@hidden
Index: configure.in
===================================================================
RCS file: /cvs/automake/automake/configure.in,v
retrieving revision 1.106
diff -u -r1.106 configure.in
--- configure.in        10 Apr 2002 20:45:12 -0000      1.106
+++ configure.in        26 Jun 2002 08:11:05 -0000
@@ -63,6 +63,22 @@
 }
 rm -rf conftest
 
+# Test for ln.  We need use it to install the versioned binaries.
+AC_MSG_CHECKING([whether ln works])
+AC_CACHE_VAL([am_cv_prog_ln], [
+rm -f conftest conftest.file
+: >conftest.file
+if ln conftest.file conftest 2>/dev/null; then
+  am_cv_prog_ln=ln
+else
+  am_cv_prog_ln='cp -p'
+fi
+rm -f conftest conftest.file])
+AC_SUBST([LN], [$am_cv_prog_ln])
+result=no
+test "x$am_cv_prog_ln" = xln && result=yes
+AC_MSG_RESULT([$result])
+
 AC_CONFIG_FILES([automake], [chmod +x automake])
 AC_CONFIG_FILES([aclocal], [chmod +x aclocal])
 
-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]