af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin FranzkeAC_ARG_ENABLE([cifs-idmap-plugin],
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin Franzke [AS_HELP_STRING([--disable-cifs-idmap-plugin],
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin Franzke [do not build CIFS idmap plugin])],
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin Franzke [build_cifs_idmap_plugin=$enableval],
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin Franzke [build_cifs_idmap_plugin=yes])
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin Franzke
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin FranzkeAS_IF([test x$build_cifs_idmap_plugin = xyes],
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin Franzke [AC_CHECK_HEADER([cifsidmap.h], [],
c4efa79099f55bed1ff94db4a368632c5520b694Lukas Slebodnik [AC_MSG_ERROR([
c4efa79099f55bed1ff94db4a368632c5520b694Lukas SlebodnikYou must have the cifsidmap header installed to build the idmap plugin.
c4efa79099f55bed1ff94db4a368632c5520b694Lukas SlebodnikIf you want to build sssd withoud cifsidmap plugin then specify
c4efa79099f55bed1ff94db4a368632c5520b694Lukas Slebodnik--disable-cifs-idmap-plugin when running configure.])])
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin Franzke ])
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin Franzke
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin FranzkeAM_CONDITIONAL([BUILD_CIFS_IDMAP_PLUGIN],
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin Franzke [test x$build_cifs_idmap_plugin = xyes])
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin Franzke
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin FranzkeAM_COND_IF([BUILD_CIFS_IDMAP_PLUGIN],
af4ffe1001adcc0a96897e426d26444f07af9aa1Benjamin Franzke [AC_DEFINE_UNQUOTED(HAVE_CIFS_IDMAP_PLUGIN, 1, [Build with cifs idmap plugin])])