Re: make use of gnulib-tool's --automake-subdir option

Akim Demaille <[email protected]> Sun, 19 Dec 2021 17:13:08 +0100
Newsgroups gmane.comp.parsers.bison.patches
Message-ID <[email protected]>
Hi Bruno,

> Le 18 d=C3=A9c. 2021 =C3=A0 18:45, Bruno Haible <[email protected]> a =
=C3=A9crit :
>=20
> Hi,
>=20
> Starting this week, Gnulib supports generating a "non-recursive" =
Automake
> Makefile.am snippet [1].

OMG, it's Christmas already!  Thanks a lot Santa, my wish has come true!

> We plan to deprecate the older approach.

This hack of mine is more that 13 years old, and it's time for it to =
bitrot in hell.

Thanks a lot Bruno!  Installed as follows.

commit 013d59821994eda066fedceb0a137593244007ee
Author: Bruno Haible <[email protected]>
Date:   Sat Dec 18 18:45:46 2021 +0100

    gnulib: make use of gnulib-tool's --automake-subdir option
   =20
    Starting this week, Gnulib supports generating a "non-recursive" =
Automake
    Makefile.am snippet =
https://lists.gnu.org/r/bug-gnulib/2021-12/msg00085.html.
   =20
    * bootstrap.conf: Use gnulib-tool's --automake-subdir.

diff --git a/bootstrap.conf b/bootstrap.conf
index 1d8614e7..6b818fc6 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -34,7 +34,6 @@ gnulib_modules=3D'
   linked-list
   malloc-gnu
   mbfile mbswidth
-  non-recursive-gnulib-prefix-hack
   obstack
   obstack-printf
   perror progname
@@ -80,13 +79,10 @@ XGETTEXT_OPTIONS_RUNTIME=3D$XGETTEXT_OPTIONS'\\\
  --keyword=3DYY_ \\\
 '
=20
-gnulib_tool_option_extras=3D'--symlink --conditional-dependencies =
--makefile-name=3Dgnulib.mk --po-base=3Dgnulib-po --po-domain=3Dbison'
+gnulib_tool_option_extras=3D'--symlink --conditional-dependencies =
--makefile-name=3Dgnulib.mk --automake-subdir --po-base=3Dgnulib-po =
--po-domain=3Dbison'
=20
 bootstrap_post_import_hook()
 {
-  # Massage lib/gnulib.mk before using it later in the bootstrapping =
process.
-  build-aux/prefix-gnulib-mk --lib-name=3D"$gnulib_name" =
"lib/$gnulib_mk"
-
   # Ensure that ChangeLog exists, for automake.
   test -f ChangeLog || touch ChangeLog
 }
diff --git a/build-aux/.gitignore b/build-aux/.gitignore
index 45b851b3..2e9d5037 100644
--- a/build-aux/.gitignore
+++ b/build-aux/.gitignore
@@ -19,7 +19,6 @@
 /libtool-reloc
 /mdate-sh
 /missing
-/prefix-gnulib-mk
 /reloc-ldflags
 /relocatable.sh.in
 /test-driver
diff --git a/m4/.gitignore b/m4/.gitignore
index a1ea02f3..c3a50c44 100644
--- a/m4/.gitignore
+++ b/m4/.gitignore
@@ -142,7 +142,6 @@
 /musl.m4
 /nls.m4
 /nocrash.m4
-/non-recursive-gnulib-prefix-hack.m4
 /obstack-printf.m4
 /obstack.m4
 /off_t.m4