In such builds, C source files (that are normally distributed) get
generated, which means they end up in the build tree. Building them
subsequently fails because headers (in the source tree) are not found.
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = lib .
-CPPFLAGS = -I$(top_builddir)/src -I$(top_builddir)/lib -I$(top_srcdir)/lib
+CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src \
+ -I$(top_builddir)/lib -I$(top_srcdir)/lib
MAINTAINERCLEANFILES = src/scan.c src/scan.h src/scan.stamp \
src/parse.c src/parse.h src/parse.stamp