diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/external/configlib.m4 | 12 | ||||
-rw-r--r-- | src/external/libaugeas.m4 | 11 | ||||
-rw-r--r-- | src/tests/dlopen-tests.c | 3 |
3 files changed, 26 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.]) + ) diff --git a/src/tests/dlopen-tests.c b/src/tests/dlopen-tests.c index 7a218c70a..2396aee8a 100644 --- a/src/tests/dlopen-tests.c +++ b/src/tests/dlopen-tests.c @@ -96,6 +96,9 @@ struct so { { "pysss_murmur.so", { LIBPFX"pysss_murmur.so", NULL } }, { "pysss_nss_idmap.so", { LIBPFX"pysss_nss_idmap.so", NULL } }, #endif +#ifdef HAVE_CONFIG_LIB + { "libsss_config.so", { LIBPFX"libsss_config.so", NULL } }, +#endif { NULL } }; |