Re: Detect --disable-dependency-tracking in Makefile.am

Nick Bowler <[email protected]>
Newsgroups gmane.comp.sysutils.automake.general
Message-ID <CADyTPEyyX7pyjPNGhNKeUpebt5p78X_6c4ioJDpq9LnpY3013Q@mail.gmail.com>
On 2023-09-30, Nick Bowler <[email protected]> wrote:
> Two suggestions, one relying on Automake internals and one not:
>
> Suggestion 1)
> internal ... Automake conditional called AMDEP.
[...]
> Suggestion 2)
[...]
> AM_CONDITIONAL([NO_DEPS], [test x"$enable_dependency_tracking" = x"no"])

> Note that these approaches are different in the case where dependency
> tracking is disabled because it is not supported by the user's tools,
> rather than by explicit request.  This may or may not matter for your
> use case.

Nevermind this last point, these suggestions are functionally identical;
the AMDEP conditional also only handles the "explicitly disabled" case
and is defined almost exactly the same way as NO_DEPS above (test is
just reversed).

So there is no reason to use #1 except to save a line in configure.ac.

Cheers,
  Nick
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.