Introduce common generic header file
[librseq.git] / configure.ac
index 4ea9983461aa4b7ed4919bdbccfbfebf91830bdb..ac0883f3eeacd72a161421980a4be34795c68d68 100644 (file)
@@ -1,6 +1,6 @@
 dnl SPDX-License-Identifier: MIT
 dnl
-dnl Copyright (C) 2021 EfficiOS, Inc.
+dnl SPDX-FileCopyrightText: 2021 EfficiOS, Inc.
 dnl
 dnl Process this file with autoconf to produce a configure script.
 
@@ -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,14 @@ 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_SHARED], [test "x${enable_shared}" = "xyes"])
+AM_CONDITIONAL([ENABLE_SECCOMP], [test "x${have_seccomp}" = "xyes"])
+
+
 ##                                             ##
 ## Substitute variables for use in Makefile.am ##
 ##                                             ##
@@ -226,6 +243,7 @@ AC_CONFIG_FILES([
        src/librseq.pc
        tests/Makefile
        tests/utils/Makefile
+       tests/unit/Makefile
 ])
 
 AC_OUTPUT
This page took 0.02461 seconds and 4 git commands to generate.