-ACLOCAL_AMFLAGS = -I config
+ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = include \
- src \
- tests \
- extras \
- doc
+DIST_SUBDIRS = include doc src extras tests
+
+SUBDIRS = include doc src tests
+
+if BUILD_EXTRAS
+SUBDIRS += extras
+endif
dist_doc_DATA = LICENSE \
ChangeLog \