Bug report from Paul D. Smith:
authorTom Tromey <tromey@redhat.com>
Fri, 11 Dec 1998 00:32:34 +0000 (00:32 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 11 Dec 1998 00:32:34 +0000 (00:32 +0000)
* automake.in (handle_merge_targets): Set
AM_INSTALL_PROGRAM_FLAGS, not INSTALL_PROGRAM.
* header-vars.am (INSTALL_PROGRAM): Added
AM_INSTALL_PROGRAM_FLAGS.

ChangeLog
automake.in
header-vars.am
lib/am/header-vars.am

index ef7e9b6..b4c0efd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1998-12-11  Tom Tromey  <tromey@cygnus.com>
+
+       Bug report from Paul D. Smith:
+       * automake.in (handle_merge_targets): Set
+       AM_INSTALL_PROGRAM_FLAGS, not INSTALL_PROGRAM.
+       * header-vars.am (INSTALL_PROGRAM): Added
+       AM_INSTALL_PROGRAM_FLAGS.
+
 1998-12-03  Tom Tromey  <tromey@cygnus.com>
 
        * automake.in (handle_dist): Print prettier banner when
index 5567cae..4b21e19 100755 (executable)
@@ -3437,10 +3437,10 @@ sub handle_merge_targets
 
     &do_one_merge_target ('all', @all);
 
-    # Generate the new 'install-strip' target.  Must set
-    # INSTALL_SCRIPT to avoid stripping scripts.
+    # Generate the new 'install-strip' target.  We can't just set
+    # INSTALL_PROGRAM because that might be a relative path.
     $output_rules .= ("install-strip:\n\t"
-                     . '$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=\'$(INSTALL_PROGRAM) -s\' INSTALL_SCRIPT=\'$(INSTALL_PROGRAM)\' install'
+                     . '$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install'
                      . "\n");
 }
 
index 3c0fd8e..1dd0813 100644 (file)
@@ -52,7 +52,10 @@ AUTOMAKE = @AUTOMAKE@
 AUTOHEADER = @AUTOHEADER@
 
 INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
+## We use AM_INSTALL_PROGRAM_FLAGS so that install-strip can pass -s
+## easily.  We can't just set INSTALL_PROGRAM because that might have
+## a relative path.
+INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
 transform = @program_transform_name@
index 3c0fd8e..1dd0813 100644 (file)
@@ -52,7 +52,10 @@ AUTOMAKE = @AUTOMAKE@
 AUTOHEADER = @AUTOHEADER@
 
 INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
+## We use AM_INSTALL_PROGRAM_FLAGS so that install-strip can pass -s
+## easily.  We can't just set INSTALL_PROGRAM because that might have
+## a relative path.
+INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
 transform = @program_transform_name@