]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtoolize: install autoconf macros only if there is a $configure_ac.
authorGary V. Vaughan <gary@gnu.org>
Mon, 7 Nov 2011 14:06:59 +0000 (21:06 +0700)
committerGary V. Vaughan <gary@gnu.org>
Tue, 8 Nov 2011 13:38:46 +0000 (20:38 +0700)
* libtoolize.m4sh (func_install_pkgmacro_files): If there is no
$configure_ac in the parent project directory, and libtoolize is
in subproject mode, then the parent project has no use for
autoconf macros, so don't install them.
* NEWS: Updated.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
NEWS
libtoolize.m4sh

diff --git a/NEWS b/NEWS
index b446e626f6fa1b94201923b973823e61e48670cf..2aa71ad4ba4b044f7dda0825dfe6541ce2db5772 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,9 @@ NEWS - list of user-visible changes between releases of GNU Libtool
     sed script.
   - Fix a long-standing bug in libtoolize, by outputting the `putting
     auxiliary files in' header with `libtoolize --ltdl --subproject'.
+  - Fix a long-standing bug in libtoolize subproject installation, by not
+    installing a set of autoconf macro files into the parent project if
+    there is no configure.ac present to use them.
   - The libtoolize subproject mode selector is now named `--subproject'
     and is equivalent to the implied `--subproject' mode when no other
     mode is selected; `--standalone' never worked, and is no longer
index 49a317e067c68d72e82a8440fe6869ef09a7e815..2432e02db858ce00aad3df207112a8d046ff8c6f 100644 (file)
@@ -1060,6 +1060,7 @@ func_install_pkgmacro_files ()
 
     $require_ac_macro_dir
     $require_am_macro_dir
+    $require_configure_ac
     $require_macro_dir
 
     # argz.m4, libtool.m4 and ltdl.m4 are handled specially:
@@ -1069,7 +1070,9 @@ func_install_pkgmacro_files ()
     if $opt_ltdl && test "x$ltdl_mode" = "xsubproject" &&
        test "x$macro_dir" != "x$subproject_macro_dir"
     then
-      func_install_pkgmacro_parent
+      # No point installing configure macros in the parent project when
+      # there's no $configure_ac to use them.
+      test -f "$configure_ac" && func_install_pkgmacro_parent
       func_install_pkgmacro_subproject
 
   # 2. Parent shares macro_dir with subproject ltdl: