On Sun, May 1, 2022 at 7:09 PM Maciej W. Rozycki <ma...@orcam.me.uk> wrote: > > On Sat, 30 Apr 2022, Zopolis0 via Gcc wrote: > > > I'm trying to regenerate autotools files in liboffloadmic (and other > > directories) but when running automake it tells me I need to run aclocal, > > which gives me a warning about not finding AM_ENABLE_MULTILIB in library, > > which then translates into an autoconf error. How do I fix this? Is there a > > specific aclocal version? > > You need to use the same options that automatic regeneration via `make' > would. They are given in ACLOCAL_AMFLAGS near the top of Makefile.am. > > HTH, > > Maciej
To go a bit further into detail, what's necessary is that the correct directory is searched for macro includes. AM_ENABLE_MULTILIB is defined in `config/multi.m4`, so you need `-I config` in the flags you use with aclocal (or whatever the relative path to config is from your current working directory). Eric