Re: [PATCH 0/5] start converting libgloss to non-recursive automake

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <YgEUej2xhPZK500d@vapier>
On 07 Feb 2022 12:36, Corinna Vinschen wrote:
> On Feb  5 00:46, Mike Frysinger wrote:
> > This converts the top-level to automake, and then cuts a few subdirs over
> > to non-recursive automake.  I didn't cut all the subdirs over to automake,
> > but should be easy to convert more over.
> > 
> > Mike Frysinger (5):
> >   libgloss: convert top level to automake
> >   libgloss: merge doc into top-level Makefile
> >   libgloss: merge libgloss into top-level Makefile
> >   libgloss: merge iq2000 into top-level Makefile
> >   libgloss: merge bfin into top-level Makefile
> 
>  $ autoreconf
>  configure.ac:46: warning: macro 'AM_ENABLE_MULTILIB' not found in library
>  configure.ac:31: warning: macro 'AM_ENABLE_MULTILIB' not found in library
>  [...]
> 
> Problem?  A dependency to another not yet applied patch?

this isn't new behavior.  although i understand the mismatch in expectations.

if you run `autoreconf` in libgloss/ today, you will see these same warnings.
it's because the only way to have aclocal search extra dirs for m4 macros is
either pass the -I flags to autoreconf directly, or have a Makefile.am with
ACLOCAL_AMFLAGS set in it (which autoreconf extracts and passes to aclocal).

w/out automake, ACLOCAL_AMFLAGS doesn't work, so you have to add all the -I
flags yourself with absolute paths:
$ autoreconf -I $PWD -I $PWD/.. -I $PWD/../config

yes, i'm converting the top-level to automake, so the ACLOCAL_AMFLAGS are
picked up from there, but that's only the top-level.  autoreconf will go
into each subdir and run autoreconf in there, and that's where these are
coming from.  once all the subdirs convert over to automake, then you can
go back to running plain `autoreconf` and it'll all just work for you.

if you run `autoreconf -v`, it's a little more obvious that it's coming
from the subdirs as it'll show:
autoreconf-2.69: configure.ac: adding subdirectory aarch64 to autoreconf
autoreconf-2.69: Entering directory `aarch64'
autoreconf-2.69: running: aclocal
configure.ac:46: warning: macro 'AM_ENABLE_MULTILIB' not found in library
-mike
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIBFHoACgkQQWM7n+g3
9YGGqhAA2qlDnBuRKoAoRjGetL4XU5n2+x5J1yeJYUdiAHGwfI/GMgt0pVW33FpN
qlewJ8E0uzclr9ZE27piOJOBEL/6bULWAZWXeBiJO/N/hwg9TKzexPJ26SaE1UK/
z1eVVM+7FtpwrQR8NiRrVwycuMjIYh/8v9g4TLApk96oNzbYpb2/R5/eN1m7NY96
7aNQ82JJJnBhN9UpxuRnrjurUtCOAP2QcYTa3FwqcIkWWwc4qqxpydZfYtjD6MV3
hw8g5cQOC3orCy0qhJbqNZPGb0sgQa94pc+yoWsB4Su8n+QIgn5lOeKNhb+l/SGT
qyNOlWG/y/yCGm/CIhYszVa47EiazIbZ5F0igllK9uteGqTdwcJiAOnxZVc/5Drl
BIKOhe2x8jOpkwtXVrkOz19SHzygDIV5GNHt4prNHMENctvQfJwunKKYiw5wK4bG
GbW4BwWjoNwNXCt4VLfWtGg+DydGwKENOGN/aCZLpi9ZzmRpq4/QyOteLEi26bNE
l73CgRbMf+6KLh0N4MFU7TCYKkG1F/1yFtd37EyNAWivQVfT8ucqnVkO06lGXe0f
qXEAaimVY9rYRP0Jn3uAX6nenOdKSXaCCBMBaTFr8Navj2U7rRbKt3Lo+6J0soE0
u87oSycudEPul8rs7bC8wEeWzpqU879x2H22L/CCoCZkOCIj+8Q=
=dJZT
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.