A wrong definition in test/Makefile.am and the m4 directory and header files in inlcude were missing.