Subject: bug#41819: [libtool-2.4.6] --enable-shared=PKG does not work if LT_INIT is called before AM_INIT_AUTOMAKE

From: Bruno Haible <[email-masked]>
Date: Wed, 22 Jul 2020 17:04:01 +0200

> libtool manual says nothing about relative order of LT_INIT
> and AM_INIT_AUTOMAKE, while it is not obvious for newbies.

But the automake manual says it [1]:

  "add an ‘AM_INIT_AUTOMAKE’ call just after ‘AC_INIT’"

> Could you
> please note in libtool manual that LT_INIT must be called  *after*
> AM_INIT_AUTOMAKE?

Most macros need to be invoked after, not before, AC_INIT and AM_INIT_AUTOMAKE.
This is not specific to libtool macros.

Bruno

[1] https://www.gnu.org/software/automake/manual/html_node/Complete.html