build: run testcases via autotools
Change-Id: Ie2aec28bac16388cef39558746dfe6ce8cba199e
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/configure.ac b/configure.ac
index cc8de8a..7c491d9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,6 +6,7 @@
AM_SILENT_RULES([yes])
# Checks for programs.
+AC_PROG_CXX
AC_PROG_CC
AM_PROG_AR
AC_PROG_INSTALL
@@ -18,7 +19,9 @@
AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd developement package required])])
# Checks for typedefs, structures, and compiler characteristics.
-AX_APPEND_COMPILE_FLAGS([-fpic -Wall -Werror], [CFLAGS])
+AX_CXX_COMPILE_STDCXX_14([noext])
+AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CFLAGS])
+AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
# Checks for library functions.
LT_INIT # Removes 'unrecognized options: --with-libtool-sysroot'
@@ -46,5 +49,5 @@
)
# Create configured output
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile test/Makefile])
AC_OUTPUT