+test_headers_SOURCES = test/headers.c
+test_headers_CFLAGS = $(CFLAGS_tests)
+
+test_control_SOURCES = control/testapi.c
+test_control_LDADD = libvlc-control.la
+test_control_CFLAGS = $(CFLAGS_tests)
+
+check-local:
+ for h in `echo $(dist_pkginclude_HEADERS) $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
+ do \
+ echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
+ if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
+ then \
+ echo "Header $$h not included in test/headers.c!"; \
+ exit 1; \
+ fi ; \
+ done
+