]> sourceware.org Git - automake.git/commitdiff
Fix bug reported by Robert Boehne:
authorTom Tromey <tromey@redhat.com>
Sat, 5 May 2001 20:47:29 +0000 (20:47 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 5 May 2001 20:47:29 +0000 (20:47 +0000)
* automake.in (output_lex_build_rule): Don't let AMDEP_TRUE be
substituted.
(handle_dependencies): Likewise.
* Makefile.am (maintainer-check): Look for AMDEP_TRUE
substitution.  Correct diff now has 30 lines.  Look for space
after losing `undef'.

ChangeLog
Makefile.am
Makefile.in
automake.in
configure
lib/am/Makefile.am

index a99035d52d4de2c46bd5d21620c53c7560af0dca..6cc13f36fd8ca7d562683d8a5ab8216b7654261d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-05-05  Tom Tromey  <tromey@redhat.com>
+
+       Fix bug reported by Robert Boehne:
+       * automake.in (output_lex_build_rule): Don't let AMDEP_TRUE be
+       substituted.
+       (handle_dependencies): Likewise.
+       * Makefile.am (maintainer-check): Look for AMDEP_TRUE
+       substitution.  Correct diff now has 30 lines.  Look for space
+       after losing `undef'.
+
 2001-05-04  Peter Eisentraut  <peter_e@gmx.net>
 
        * m4/sanity.m4: Remove the temp file before possible error exits.
index 29a6a16e3dfaf65f7443c657cc7a3e3fba05f8dc..bc535a7f688e1727fc87dd34e77ffee23bb95308 100644 (file)
@@ -66,7 +66,7 @@ maintainer-check: automake aclocal
 ## This check avoids accidental configure substitutions in the source.
 ## There are exactly 7 lines that should be modified.  This works out
 ## to 22 lines of diffs.
-       @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 22; then \
+       @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 30; then \
          echo "found too many diffs between automake.in and automake"; 1>&2; \
          diff -c $(srcdir)/automake.in automake; \
          exit 1; \
@@ -96,7 +96,7 @@ maintainer-check: automake aclocal
          exit 1; \
        else :; fi
 ## We never want to use "undef", only "delete", but for $/.
-       @if grep -n -w undef $(srcdir)/automake.in | \
+       @if grep -n -w 'undef ' $(srcdir)/automake.in | \
              fgrep -v 'undef $$/'; then \
          echo "Found undef in automake.in; use delete instead" 1>&2; \
          exit 1; \
@@ -137,6 +137,11 @@ maintainer-check: automake aclocal
            exit 1; \
          ;; \
        esac
+## Don't let AMDEP_TRUE substitution appear in automake.in.
+       @if grep '@AMDEP''_TRUE@' $(srcdir)/automake.in; then \
+         echo "Don't put AMDEP_TRUE substitution in automake.in" 1>&2; \
+         exit 1; \
+       fi
 
 # Tag before making distribution.  Also, don't make a distribution if
 # checks fail.  Also, make sure the NEWS file is up-to-date.
index 5100b9b8e479a80b1e5145bdc27af1774444d5c8..64948746c958c9569ef56c299324a803aeaeb67c 100644 (file)
@@ -636,7 +636,7 @@ installcheck-local:
 # Some simple checks, and then ordinary check.  These are only really
 # guaranteed to work on my machine.
 maintainer-check: automake aclocal
-       @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 22; then \
+       @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 30; then \
          echo "found too many diffs between automake.in and automake"; 1>&2; \
          diff -c $(srcdir)/automake.in automake; \
          exit 1; \
@@ -659,7 +659,7 @@ maintainer-check: automake aclocal
          echo "Found incorrect use of mkinstalldirs in the lines above" 1>&2; \
          exit 1; \
        else :; fi
-       @if grep -n -w undef $(srcdir)/automake.in | \
+       @if grep -n -w 'undef ' $(srcdir)/automake.in | \
              fgrep -v 'undef $$/'; then \
          echo "Found undef in automake.in; use delete instead" 1>&2; \
          exit 1; \
@@ -695,6 +695,10 @@ maintainer-check: automake aclocal
            exit 1; \
          ;; \
        esac
+       @if grep '@AMDEP''_TRUE@' $(srcdir)/automake.in; then \
+         echo "Don't put AMDEP_TRUE substitution in automake.in" 1>&2; \
+         exit 1; \
+       fi
 
 # Tag before making distribution.  Also, don't make a distribution if
 # checks fail.  Also, make sure the NEWS file is up-to-date.
index bff61145b694e09c64cdf02286f5ef39581291df..03d45577f05025ee19e4745cacb31ff27837277e 100755 (executable)
@@ -1466,7 +1466,10 @@ sub output_lex_build_rule
            $output_rules .= "\n";
            foreach my $iter (@deplist)
            {
-               $output_rules .= '@AMDEP_TRUE@@_am_include@ ' . $iter . "\n";
+               # The strange concatentation is used to avoid
+               # substitutions from our own configure.
+               $output_rules .= ('@AMDEP' . '_TRUE@@_am_include@ '
+                                 . $iter . "\n");
            }
 
            $output_rules .= &file_contents ('depend');
@@ -3238,7 +3241,9 @@ sub handle_dependencies
            $output_rules .= "\n";
            foreach my $iter (@deplist)
            {
-               $output_rules .= ('@AMDEP_TRUE@@_am_include@ @_am_quote@'
+               # The strange concatentation is used to avoid
+               # substitutions from our own configure.
+               $output_rules .= ('@AMDEP' . '_TRUE@@_am_include@ @_am_quote@'
                                  . $iter . '@_am_quote@' . "\n");
            }
 
index 1bb40c4b49a4c7071470b0afd1321ff496b97dd5..f8e177ec73fa16be5e35e10c43c50a954ad228d9 100755 (executable)
--- a/configure
+++ b/configure
@@ -676,7 +676,7 @@ else
   echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
 fi
 
-for ac_prog in mawk gawk nawk awk
+for ac_prog in gawk mawk nawk awk
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
index 29a6a16e3dfaf65f7443c657cc7a3e3fba05f8dc..bc535a7f688e1727fc87dd34e77ffee23bb95308 100644 (file)
@@ -66,7 +66,7 @@ maintainer-check: automake aclocal
 ## This check avoids accidental configure substitutions in the source.
 ## There are exactly 7 lines that should be modified.  This works out
 ## to 22 lines of diffs.
-       @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 22; then \
+       @if test `diff $(srcdir)/automake.in automake | wc -l` -ne 30; then \
          echo "found too many diffs between automake.in and automake"; 1>&2; \
          diff -c $(srcdir)/automake.in automake; \
          exit 1; \
@@ -96,7 +96,7 @@ maintainer-check: automake aclocal
          exit 1; \
        else :; fi
 ## We never want to use "undef", only "delete", but for $/.
-       @if grep -n -w undef $(srcdir)/automake.in | \
+       @if grep -n -w 'undef ' $(srcdir)/automake.in | \
              fgrep -v 'undef $$/'; then \
          echo "Found undef in automake.in; use delete instead" 1>&2; \
          exit 1; \
@@ -137,6 +137,11 @@ maintainer-check: automake aclocal
            exit 1; \
          ;; \
        esac
+## Don't let AMDEP_TRUE substitution appear in automake.in.
+       @if grep '@AMDEP''_TRUE@' $(srcdir)/automake.in; then \
+         echo "Don't put AMDEP_TRUE substitution in automake.in" 1>&2; \
+         exit 1; \
+       fi
 
 # Tag before making distribution.  Also, don't make a distribution if
 # checks fail.  Also, make sure the NEWS file is up-to-date.
This page took 0.041865 seconds and 5 git commands to generate.