tests: add unregistered and no syscall tests
[librseq.git] / configure.ac
index 8606a0f602d5abde60bfb382f1fabd803acb9b8d..9b8a33c893de40aae47339fcaeed3609bbec3ea4 100644 (file)
@@ -182,6 +182,15 @@ AC_CHECK_LIB([dl], [dlopen], [
 ])
 AC_SUBST(DL_LIBS)
 
+PKG_CHECK_MODULES([SECCOMP], [libseccomp],
+  [
+    dnl PKG_CHECK_MODULES defines SECCOMP_LIBS
+    have_seccomp=yes
+  ],
+  [
+    have_seccomp=no
+  ])
+
 
 ##                             ##
 ## Optional features selection ##
@@ -193,6 +202,13 @@ AE_FEATURE_DEFAULT_DISABLE
 AE_FEATURE([Werror], [Treat compiler warnings as errors.])
 
 
+##                                                                          ##
+## Set automake variables for optional feature conditionnals in Makefile.am ##
+##                                                                          ##
+
+AM_CONDITIONAL([ENABLE_SECCOMP], test "x${have_seccomp}" = "xyes")
+
+
 ##                                             ##
 ## Substitute variables for use in Makefile.am ##
 ##                                             ##
@@ -226,6 +242,7 @@ AC_CONFIG_FILES([
        src/librseq.pc
        tests/Makefile
        tests/utils/Makefile
+       tests/unit/Makefile
 ])
 
 AC_OUTPUT
This page took 0.02356 seconds and 4 git commands to generate.