gnulib-tool: fix incompatibility with autopoint 0.18.2
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Jan 2013 16:03:10 +0000 (08:03 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Jan 2013 16:03:30 +0000 (08:03 -0800)
* gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
Problem reported by Tom G. Christensen in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.

ChangeLog
gnulib-tool

index f036ac1..42952cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
+
+       gnulib-tool: fix incompatibility with autopoint 0.18.2
+       * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
+       Problem reported by Tom G. Christensen in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
+
 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
 
        fprintftime: bring back and reword fwrite comment
index 2e7f1da..c5ab13b 100755 (executable)
@@ -3930,7 +3930,9 @@ func_emit_autoconf_snippet ()
       | { if $disable_gettext; then
             sed -e 's/AM_GNU_GETTEXT(\[external\])/dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac./'
           else
-            cat
+            # Don't indent AM_GNU_GETTEXT_VERSION line, as that confuses
+            # autopoint through at least GNU gettext version 0.18.2.
+            sed -e 's/^ *AM_GNU_GETTEXT_VERSION/AM_GNU_GETTEXT_VERSION/'
           fi
         }
     if test "$module" = 'alloca' && test "$libtool" = true && ! $disable_libtool; then