On 2010-12-20 17:39 -0800, Philip Prindeville wrote:
The odd thing is that even though it complains, it still generates the
correct Makefile in the first case:
SYMFILES = $(srcdir)/uni.h $(shell $(CC) $(CFLAGS) -E
$(srcdir)/header.c | $(AWK) -f $(srcdir)/script.awk)
Does automake need to be $(shell ...)-aware?
The warning is:
src/q2931/Makefile.am:21: shell $(CC: non-POSIX variable name
src/q2931/Makefile.am:21: (probably a GNU make extension)
and automake is entirely correct; you are using a GNU make extension.
Ideally, you should avoid the use of such non-portable extensions, but
if it is not feasible, you may disable the warning by passing
-Wno-portability to AM_INIT_AUTOMAKE.