[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MIssing "location" in automake-1.6.3 error message
From: |
Alexandre Duret-Lutz |
Subject: |
Re: MIssing "location" in automake-1.6.3 error message |
Date: |
25 Aug 2002 18:08:33 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
>>> "Harlan" == Harlan Stenn <address@hidden> writes:
[...]
Harlan> Try multiple conditionals each defining bin_PROGRAMS.
Thanks, this "worked".
% cat Makefile.am
if COND1
bin_PROGRAMS = foo
endif
if COND2
bin_PROGRAMS = bar
endif
% aclocal-1.6
% automake-1.6 --foreign
Use of uninitialized value in hash element at /home/adl/usr/bin/automake-1.6
line 8459.
Use of uninitialized value in list assignment at /home/adl/usr/bin/automake-1.6
line 8448.
: warning: automake does not support bin_PROGRAMS being defined conditionally
Use of uninitialized value in hash element at /home/adl/usr/bin/automake-1.6
line 8459.
Use of uninitialized value in list assignment at /home/adl/usr/bin/automake-1.6
line 8448.
: warning: automake does not support bin_PROGRAMS being defined conditionally
% aclocal-1.6c
% automake-1.6c --foreign
Makefile.am:2: automake does not support bin_PROGRAMS being defined
conditionally
The perl warnings and the missing location appear to be fixed in
the CVS version.
Still I'm not sure I understand the warning.
If Automake allows
if COND1
bin_PROGRAMS = foo
endif
why does it disallow
if COND1
bin_PROGRAMS = foo
endif
if COND2
bin_PROGRAMS = bar
endif
?
If course it will become a problem if COND1 and COND2 are both
true, but this is a user error we don't consider in other parts
of Automake (e.g. these parallel definitions are allowed by
&conditional_ambiguous_p).
Tom, am I missing something?
--
Alexandre Duret-Lutz