Description: make libtoolize unconditional in autoreconf
 Check whether libtoolize supports --install. If it does, libtoolize is safe
 to run at all times since it will not install new files unless --install is
 passed to it as well.
Author: Scott James Remnant <scott@ubuntu.com>

--- autoconf-2.69.orig/bin/autoreconf.in
+++ autoconf-2.69/bin/autoreconf.in
@@ -125,6 +125,8 @@ my $aclocal_supports_force = 0;
 my $aclocal_supports_warnings = 0;
 # Does automake support --force-missing?
 my $automake_supports_force_missing = 0;
+# Does libtoolize support --install?
+my $libtoolize_supports_install = 0;
 # Does automake support -Wfoo?
 my $automake_supports_warnings = 0;
 
@@ -190,6 +192,7 @@ sub parse_args ()
   $aclocal_supports_force = $aclocal_help =~ /--force/;
   $aclocal_supports_warnings = $aclocal_help =~ /--warnings/;
   $automake_supports_force_missing = $automake_help =~ /--force-missing/;
+  $libtoolize_supports_install = `$libtoolize --help` =~ /--install/;
   $automake_supports_warnings = $automake_help =~ /--warnings/;
 
   # Dispatch autoreconf's option to the tools.
@@ -205,8 +208,9 @@ sub parse_args ()
     {
       $automake   .= ' --add-missing';
       $automake   .= ' --copy' unless $symlink;
-      $libtoolize .= ' --copy' unless $symlink;
+      $libtoolize .= ' --install' if $libtoolize_supports_install;
     }
+  $libtoolize .= ' --copy' unless $symlink;
   # --force;
   if ($force)
     {
@@ -541,7 +545,7 @@ sub autoreconf_current_directory ()
     {
       verb "$configure_ac: not using Libtool";
     }
-  elsif ($install)
+  elsif ($install || $libtoolize_supports_install)
     {
       if ($uses_libltdl)
 	{
