summaryrefslogtreecommitdiffstats
path: root/src/external
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-04-21 12:17:53 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-14 11:13:42 +0200
commit3fc158e59eebbc2f538fe0076a03928d0d4eab9f (patch)
treeccc7d7cc0bbf5e5e70afcdb0aa5cb41682efe975 /src/external
parent207cfa5ce8cb7118a1f56a8beb887246349bd50f (diff)
downloadsssd-3fc158e59eebbc2f538fe0076a03928d0d4eab9f.tar.gz
sssd-3fc158e59eebbc2f538fe0076a03928d0d4eab9f.tar.xz
sssd-3fc158e59eebbc2f538fe0076a03928d0d4eab9f.zip
sss_config: build
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
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.])
+ )