[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in automake parsing of Makefile.am
From: |
Roger Leigh |
Subject: |
Bug in automake parsing of Makefile.am |
Date: |
02 Jun 2001 21:53:26 +0100 |
Hi,
I think I have found a bug in automake:
I have the following in configure.in:
if test x${BUILD_TEST} = xyes ; then
TEST_BIN='$(TEST_BIN)'
fi
If I have this in Makefile.am it works fine:
TEST_BIN = testdither escp2-weavetest unprint escp2-unprint pcl-unprint
bjc-unprint
noinst_PROGRAMS = @TEST_BIN@
EXTRA_PROGRAMS = escp2-weavetest unprint escp2-unprint pcl-unprint bjc-unprint
testdither
but if I just have this in Makefile.am:
AM_CONDITIONAL(BUILD_TEST, test x${BUILD_TEST} = xyes)
and this in Makefile.am:
if BUILD_TEST
TEST_BIN = testdither escp2-weavetest unprint escp2-unprint pcl-unprint
bjc-unprint
else
TEST_BIN =
endif
noinst_PROGRAMS = $(TEST_BIN)
EXTRA_PROGRAMS = escp2-weavetest unprint escp2-unprint pcl-unprint bjc-unprint
testdither
I get the following errors:
test/Makefile.am: testdither_OBJECTS should not be defined
test/Makefile.am: escp2_weavetest_OBJECTS should not be defined
test/Makefile.am: unprint_OBJECTS should not be defined
test/Makefile.am: variable `LDADD' not defined
test/Makefile.am: escp2_unprint_OBJECTS should not be defined
test/Makefile.am: variable `LDADD' not defined
test/Makefile.am: pcl_unprint_OBJECTS should not be defined
test/Makefile.am: variable `LDADD' not defined
test/Makefile.am: bjc_unprint_OBJECTS should not be defined
test/Makefile.am: variable `LDADD' not defined
However, the outputted Makefile will have
noinst_PROGRAMS = $(TEST_BIN)
in both cases. It seems that when automake parses Makefile.am, it
cannot cope with make variables in any special automake definition,
and will only allow plain names or @VAR@ substitutions with AC_SUBST.
I have attached the configure.in and Makefile.am used to this
message. This is a patched copy of files from gimp-print CVS.
Regards,
Roger
configure.in
Description: configure.in
Makefile.am
Description: test/Makefile.am
--
Roger Leigh ** Registration Number: 151826, http://counter.li.org **
Need Epson Stylus Utilities? http://gimp-print.sourceforge.net/
For GPG Public Key: finger address@hidden or see public keyservers.
- Bug in automake parsing of Makefile.am,
Roger Leigh <=