[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detect --disable-dependency-tracking in Makefile.am
From: |
Nick Bowler |
Subject: |
Re: Detect --disable-dependency-tracking in Makefile.am |
Date: |
Sat, 30 Sep 2023 21:36:37 -0400 |
On 2023-09-30, Nick Bowler <nbowler@draconx.ca> 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