maint: state when compatibility cruft should be removed or warned about
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 31 Dec 2012 08:53:43 +0000 (09:53 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 31 Dec 2012 10:51:48 +0000 (11:51 +0100)
* automake.in: Here.
* lib/Automake/Options.pm: And here.
* m4/obsolete-err.m4: And here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
automake.in
lib/Automake/Options.pm
m4/obsolete-err.m4

index 3194c99..805e0e9 100644 (file)
@@ -2131,6 +2131,7 @@ sub handle_source_transform ($$$$%)
        msg_var ('unsupported', $ext_var, $ext_var->name . " can assume at most one value")
          if $default_source_ext =~ /[\t ]/;
        (my $default_source = $unxformed) =~ s,(\.[^./\\]*)?$,$default_source_ext,;
+       # TODO: Remove this backward-compatibility hack in Automake 1.14.
        if ($old_default_source ne $default_source
            && !$ext_var
            && (rule $old_default_source
@@ -2992,6 +2993,8 @@ sub scan_texinfo_file ($)
          next if $outfile;
 
          $outfile = $1;
+         # TODO: In Automake 1.14 (or even 1.13.2), start warning against
+         # TODO: suffixes != ".info", to ease transition to Automake-NG.
          if ($outfile =~ /\.([^.]+)$/ && $1 ne 'info')
            {
              error ("$filename:$.",
@@ -3014,6 +3017,8 @@ sub scan_texinfo_file ($)
     }
 
   my $infobase = basename ($filename);
+  # TODO: In Automake 1.14 (or even 1.13.2), start warning against
+  # TODO: suffixes != ".texi", to ease transition to Automake-NG.
   $infobase =~ s/\.te?xi(nfo)?$//;
   return ($outfile, $vfile);
 }
@@ -3142,6 +3147,8 @@ sub handle_texinfo_helper ($)
       ($info_texinfos->value_as_list_recursive (inner_expand => 1))
     {
       my $infobase = $texi;
+      # TODO: In Automake 1.14 (or even 1.13.2), start warning against
+      # TODO: suffixes != ".texi", to ease transition to Automake-NG.
       $infobase =~ s/\.(txi|texinfo|texi)$//;
 
       if ($infobase eq $texi)
@@ -4134,6 +4141,9 @@ sub handle_configure ($$$@)
   # Distribute and define mkinstalldirs only if it is already present
   # in the package, for backward compatibility (some people may still
   # use $(mkinstalldirs)).
+  # TODO: start warning about this in Automake 1.13.2, and have
+  # TODO: Automake 1.14 or 1.15 drop it (and the mkinstalldirs script
+  # TODO: as well).
   my $mkidpath = "$config_aux_dir/mkinstalldirs";
   if (-f $mkidpath)
     {
index 186d4ca..9e06599 100644 (file)
@@ -315,16 +315,19 @@ sub _process_option_list (\%@)
         {
           set_strictness ($_);
         }
+      # TODO: Remove this special check in Automake 1.14 or 1.15.
       elsif (/^(.*\/)?ansi2knr$/)
         {
           # Obsolete (and now removed) de-ANSI-fication support.
           error ($where,
                  "automatic de-ANSI-fication support has been removed");
         }
+      # TODO: Remove this special check in Automake 1.15.
       elsif ($_ eq 'cygnus')
         {
           error $where, "support for Cygnus-style trees has been removed";
         }
+      # TODO: Remove this special check in Automake 1.14 or 1.15.
       elsif ($_ eq 'dist-lzma')
         {
           error ($where, "support for lzma-compressed distribution " .
index eb23dc4..01c2d6e 100644 (file)
@@ -8,16 +8,19 @@
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
 
+dnl TODO: Remove in Automake 1.15.
 AC_DEFUN([AM_CONFIG_HEADER],
 [AC_FATAL(['$0': this macro is obsolete.
     You should use the 'AC][_CONFIG_HEADERS' macro instead.])])
 
+dnl TODO: Remove in Automake 1.15.
 AC_DEFUN([AM_PROG_CC_STDC],
 [AC_FATAL(['$0': this macro is obsolete.
     You should simply use the 'AC][_PROG_CC' macro instead.
     Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
     but upon 'ac_cv_prog_cc_stdc'.])])
 
+dnl TODO: Remove in Automake 1.14.
 AC_DEFUN([AM_C_PROTOTYPES],
          [AC_FATAL([automatic de-ANSI-fication support has been removed])])
 AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])