summaryrefslogtreecommitdiffstats
path: root/src/external
diff options
context:
space:
mode:
Diffstat (limited to 'src/external')
-rw-r--r--src/external/configlib.m412
-rw-r--r--src/external/libaugeas.m411
2 files changed, 23 insertions, 0 deletions
diff --git a/src/external/configlib.m4 b/src/external/configlib.m4
new file mode 100644
index 000000000..ad6c1a943
--- /dev/null
+++ b/src/external/configlib.m4
@@ -0,0 +1,12 @@
+AC_ARG_ENABLE([config-lib],
+ [AS_HELP_STRING([--disable-config-lib],
+ [do not build internal config library])],
+ [build_config_lib=$enableval],
+ [build_config_lib=yes])
+
+AM_CONDITIONAL([BUILD_CONFIG_LIB],
+ [test x$build_config_lib = xyes])
+
+AM_COND_IF([BUILD_CONFIG_LIB],
+ [AC_DEFINE_UNQUOTED(HAVE_CONFIG_LIB, 1,
+ [Build with internal config library])]) \ No newline at end of file
diff --git a/src/external/libaugeas.m4 b/src/external/libaugeas.m4
new file mode 100644
index 000000000..13f694c5c
--- /dev/null
+++ b/src/external/libaugeas.m4
@@ -0,0 +1,11 @@
+AC_SUBST(AUGEAS_OBJ)
+AC_SUBST(AUGEAS_CFLAGS)
+AC_SUBST(AUGEAS_LIBS)
+
+PKG_CHECK_MODULES(AUGEAS,
+ augeas >= 1.0.0,
+ ,
+ AC_MSG_ERROR([
+Please install augeas-devel or disable this dependency
+by specifying --disable-config-lib when running configure.])
+ )