]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
gettextize: Require automake >= 1.9.
authorBruno Haible <bruno@clisp.org>
Sun, 11 Nov 2018 12:48:56 +0000 (13:48 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Nov 2018 12:48:56 +0000 (13:48 +0100)
* gettext-tools/misc/gettextize.in: Signal an error if 'aclocal' from
automake >= 1.9 is not found. Stop installing intldir.m4, intl.m4 and its
dependencies.
* gettext-tools/doc/gettext.texi (mkinstalldirs, aclocal): State the requirement
to have automake >= 1.9.
* gettext-tools/m4/Makefile.am (aclocal_DATA): Don't install codeset.m4,
extern-inline.m4, fcntl-o.m4, glibc2.m4, glibc21.m4, intdiv0.m4, intl.m4,
intl-thread-locale.m4, intldir.m4, intmax.m4, inttypes_h.m4, inttypes-pri.m4,
lcmessage.m4, lock.m4, longlong.m4, printf-posix.m4, size_max.m4, stdint_h.m4,
threadlib.m4, uintmax_t.m4, visibility.m4, wchar_t.m4, wint_t.m4, xsize.m4.
* PACKAGING: Remove the *.m4 files that are no longer installed.

PACKAGING
gettext-tools/doc/gettext.texi
gettext-tools/m4/Makefile.am
gettext-tools/misc/gettextize.in

index dcb42be2dd8488d6b0760f3abeeb1a954aaaba22..f91884e78e31b4b8e4b03ae6cc5d055350770809 100644 (file)
--- a/PACKAGING
+++ b/PACKAGING
@@ -115,37 +115,15 @@ following file list.
       $prefix/share/gettext/archive.dir.tar.gz   (only installed if --without-git specified)
       $prefix/share/gettext/archive.cvs.tar.gz   (only installed if --with-cvs specified)
       $prefix/share/gettext-$VERSION/its/*
-      $prefix/share/aclocal/codeset.m4
-      $prefix/share/aclocal/fcntl-o.m4
       $prefix/share/aclocal/gettext.m4
-      $prefix/share/aclocal/glibc2.m4
-      $prefix/share/aclocal/glibc21.m4
       $prefix/share/aclocal/iconv.m4
-      $prefix/share/aclocal/intdiv0.m4
-      $prefix/share/aclocal/intl.m4
-      $prefix/share/aclocal/intl-thread-locale.m4
-      $prefix/share/aclocal/intldir.m4
       $prefix/share/aclocal/intlmacosx.m4
-      $prefix/share/aclocal/intmax.m4
-      $prefix/share/aclocal/inttypes_h.m4
-      $prefix/share/aclocal/inttypes-pri.m4
-      $prefix/share/aclocal/lcmessage.m4
       $prefix/share/aclocal/lib-ld.m4
       $prefix/share/aclocal/lib-link.m4
       $prefix/share/aclocal/lib-prefix.m4
-      $prefix/share/aclocal/lock.m4
-      $prefix/share/aclocal/longlong.m4
       $prefix/share/aclocal/nls.m4
       $prefix/share/aclocal/po.m4
-      $prefix/share/aclocal/printf-posix.m4
       $prefix/share/aclocal/progtest.m4
-      $prefix/share/aclocal/size_max.m4
-      $prefix/share/aclocal/stdint_h.m4
-      $prefix/share/aclocal/uintmax_t.m4
-      $prefix/share/aclocal/visibility.m4
-      $prefix/share/aclocal/wchar_t.m4
-      $prefix/share/aclocal/wint_t.m4
-      $prefix/share/aclocal/xsize.m4
       $prefix/share/emacs/site-lisp/po-compat.el
       $prefix/share/emacs/site-lisp/po-compat.elc
       $prefix/share/emacs/site-lisp/po-mode.el
index 23187cb469be8996de6aad98b83eda424250cb30..864c4013bbd10111e6d7fb83b4e250c62e9d440c 100644 (file)
@@ -7994,8 +7994,7 @@ AC_CONFIG_AUX_DIR([@var{subdir}])
 
 With earlier versions of GNU gettext, you needed to add the GNU
 @file{mkinstalldirs} script to your distribution.  This is not needed any
-more.  You can remove it if you not also using an automake version older than
-automake 1.9.
+more.  You can remove it.
 
 @node aclocal
 @subsection @file{aclocal.m4} at top level
@@ -8007,10 +8006,6 @@ the simplest is to concatenate the files @file{gettext.m4},
 @file{lib-prefix.m4}, @file{nls.m4}, @file{po.m4}, @file{progtest.m4}
 from GNU @code{gettext}'s @file{m4/} directory into a single file.
 
-If you are not using GNU @code{automake} 1.8 or newer, you will need to
-add a file @file{mkdirp.m4} from a newer automake distribution to the
-list of files above.
-
 If you already have an @file{aclocal.m4} file, then you will have
 to merge the said macro files into your @file{aclocal.m4}.  Note that if
 you are upgrading from a previous release of GNU @code{gettext}, you
@@ -8020,8 +8015,11 @@ change a little from one release of GNU @code{gettext} to the next.
 Their contents may vary as we get more experience with strange systems
 out there.
 
-If you are using GNU @code{automake} 1.5 or newer, it is enough to put
-these macro files into a subdirectory named @file{m4/} and add the line
+You should be using GNU @code{automake} 1.9 or newer.  With it, you need
+to copy the files @file{gettext.m4}, @file{intlmacosx.m4}, @file{iconv.m4},
+@file{lib-ld.m4}, @file{lib-link.m4}, @file{lib-prefix.m4}, @file{nls.m4},
+@file{po.m4}, @file{progtest.m4} from GNU @code{gettext}'s @file{m4/}
+directory to a subdirectory named @file{m4/} and add the line
 
 @example
 ACLOCAL_AMFLAGS = -I m4
index 0d34b8de8b0b0654aa9207a6eecc47e6b08d15af..9f6408a5b27ea72f86cc9752a713d11651a5ec60 100644 (file)
@@ -7,36 +7,12 @@ aclocal_DATA = \
   ../../gettext-runtime/gnulib-m4/lib-ld.m4 \
   ../../gettext-runtime/gnulib-m4/lib-link.m4 \
   ../../gettext-runtime/gnulib-m4/lib-prefix.m4 \
-  ../../gettext-runtime/m4/codeset.m4 \
-  ../../gettext-runtime/m4/extern-inline.m4 \
-  ../../gettext-runtime/m4/fcntl-o.m4 \
   ../../gettext-runtime/m4/gettext.m4 \
-  ../../gettext-runtime/m4/glibc2.m4 \
-  ../../gettext-runtime/m4/glibc21.m4 \
   ../../gettext-runtime/m4/iconv.m4 \
-  ../../gettext-runtime/m4/intdiv0.m4 \
-  ../../gettext-runtime/m4/intl.m4 \
-  ../../gettext-runtime/m4/intl-thread-locale.m4 \
-  ../../gettext-runtime/m4/intldir.m4 \
   ../../gettext-runtime/m4/intlmacosx.m4 \
-  ../../gettext-runtime/m4/intmax.m4 \
-  ../../gettext-runtime/m4/inttypes_h.m4 \
-  ../../gettext-runtime/m4/inttypes-pri.m4 \
-  ../../gettext-runtime/m4/lcmessage.m4 \
-  ../../gettext-runtime/m4/lock.m4 \
-  ../../gettext-runtime/m4/longlong.m4 \
   ../../gettext-runtime/m4/nls.m4 \
   ../../gettext-runtime/m4/po.m4 \
-  ../../gettext-runtime/m4/printf-posix.m4 \
-  ../../gettext-runtime/m4/progtest.m4 \
-  ../../gettext-runtime/m4/size_max.m4 \
-  ../../gettext-runtime/m4/stdint_h.m4 \
-  ../../gettext-runtime/m4/threadlib.m4 \
-  ../../gettext-runtime/m4/uintmax_t.m4 \
-  ../../gettext-runtime/m4/visibility.m4 \
-  ../../gettext-runtime/m4/wchar_t.m4 \
-  ../../gettext-runtime/m4/wint_t.m4 \
-  ../../gettext-runtime/m4/xsize.m4
+  ../../gettext-runtime/m4/progtest.m4
 
 # Files installed for the examples.
 
index 997df0e4fd26ef8f87aeef7b5ee855c155f804af..e390df29e4f22537d29c7f09a48a4b6a944df7a2 100644 (file)
@@ -301,6 +301,19 @@ if test -n "$intldir"; then
   func_fatal_error "The option '--intl' is no longer available."
 fi
 
+# Require automake 1.9 or newer.
+have_automake19=
+if (aclocal --version) >/dev/null 2>/dev/null; then
+  aclocal_version=`aclocal --version | sed -n -e 1p | sed -e 's/^[^0-9]*//'`
+  case $aclocal_version in
+    1.9* | 1.[1-9][0-9]* | [2-9]*) have_automake19=yes ;;
+  esac
+fi
+if test -z "$have_automake19"; then
+  func_fatal_error "You need the 'aclocal' program from automake 1.9 or newer."
+fi
+min_automake_version=1.9
+
 # Command-line argument processing.
 # Analyzes the remaining arguments.
 # Sets the variables
@@ -781,15 +794,6 @@ Please fill $podir/POTFILES.in as described in the documentation.
   $do_changelog && func_poChangeLog_finish
 done
 
-# Determine whether we can assume automake 1.9 or newer.
-have_automake19=
-if (aclocal --version) >/dev/null 2>/dev/null; then
-  aclocal_version=`aclocal --version | sed -n -e 1p | sed -e 's/^[^0-9]*//'`
-  case $aclocal_version in
-    1.9* | 1.[1-9][0-9]* | [2-9]*) have_automake19=yes ;;
-  esac
-fi
-
 m4filelist='
   gettext.m4
   iconv.m4
@@ -797,38 +801,6 @@ m4filelist='
   lib-ld.m4 lib-link.m4 lib-prefix.m4
   nls.m4
   po.m4 progtest.m4'
-# With aclocal versions < 1.9 we need all m4 files, otherwise "aclocal -I m4"
-# might give an error. (aclocal < 1.9 didn't know which macros are really
-# needed, it looked which macros are potentially needed.)
-min_automake_version=1.9
-if test -z "$have_automake19"; then
-  # Add intldir.m4, intl.m4 and its dependencies.
-  m4filelist=$m4filelist'
-    codeset.m4
-    fcntl-o.m4
-    glibc2.m4
-    glibc21.m4
-    intdiv0.m4
-    intl.m4
-    intl-thread-locale.m4
-    intldir.m4
-    intmax.m4
-    inttypes_h.m4
-    inttypes-pri.m4
-    lcmessage.m4
-    lock.m4
-    longlong.m4
-    printf-posix.m4
-    size_max.m4
-    stdint_h.m4
-    threadlib.m4
-    uintmax_t.m4
-    visibility.m4
-    wchar_t.m4
-    wint_t.m4
-    xsize.m4'
-  min_automake_version=1.8
-fi
 
 # All sorts of bugs could occur if the configure file was remade with the wrong
 # version of gettext.m4 et al. (because then the configure and the po/Makefile.in.in