2001-05-05 Richard Boulton <richard@tartarus.org>
authorTom Tromey <tromey@redhat.com>
Sat, 5 May 2001 21:06:46 +0000 (21:06 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 5 May 2001 21:06:46 +0000 (21:06 +0000)
* automake.in (handle_dist): Check for existence of DIST_SUBDIRS
first.

ChangeLog
automake.in

index 038e40c..2776e60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-05  Richard Boulton  <richard@tartarus.org>
+
+       * automake.in (handle_dist): Check for existence of DIST_SUBDIRS
+       first.
+
 2001-05-05  Robert Collins  <robert.collins@itdomain.com.au>
 
        * automake.in (required_targets): Added uninstall-am.
index 6e6e438..b4ffd63 100755 (executable)
@@ -3084,8 +3084,12 @@ sub handle_dist
        # to all possible directories, and use it.  If DIST_SUBDIRS is
        # defined, just use it.
        my $dist_subdir_name;
-       if (variable_conditionally_defined ('SUBDIRS')
-           || &variable_defined ('DIST_SUBDIRS'))
+       # Note that we check DIST_SUBDIRS first on purpose.  At least
+       # one project uses so many conditional subdirectories that
+       # calling variable_conditionally_defined on SUBDIRS will cause
+       # automake to grow to 150Mb.  Sigh.
+       if (&variable_defined ('DIST_SUBDIRS')
+           || variable_conditionally_defined ('SUBDIRS'))
        {
            $dist_subdir_name = 'DIST_SUBDIRS';
            if (! &variable_defined ('DIST_SUBDIRS'))