])
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 ##
AE_FEATURE([Werror], [Treat compiler warnings as errors.])
+## ##
+## Set automake variables for optional feature conditionnals in Makefile.am ##
+## ##
+
+AM_CONDITIONAL([ENABLE_SHARED], [test "x${enable_shared}" = "xyes"])
+AM_CONDITIONAL([ENABLE_SECCOMP], [test "x${have_seccomp}" = "xyes"])
+
+
## ##
## Substitute variables for use in Makefile.am ##
## ##
src/librseq.pc
tests/Makefile
tests/utils/Makefile
+ tests/unit/Makefile
])
AC_OUTPUT