diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-05-24 17:03:17 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-05-26 16:34:26 +0200 |
commit | 0e1dcef53d9d8465ce97d31ad11be4445a6e7eb8 (patch) | |
tree | 60db68a33af3811d6c1e115ac91b1627b580f3ef /src/external/samba.m4 | |
parent | db2ee5c24be0228cc73816ffaaa3252ed6359385 (diff) | |
download | sssd-0e1dcef53d9d8465ce97d31ad11be4445a6e7eb8.tar.gz sssd-0e1dcef53d9d8465ce97d31ad11be4445a6e7eb8.tar.xz sssd-0e1dcef53d9d8465ce97d31ad11be4445a6e7eb8.zip |
AUTOCONF: Move detection of samba libraries to one file
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/external/samba.m4')
-rw-r--r-- | src/external/samba.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/external/samba.m4 b/src/external/samba.m4 new file mode 100644 index 000000000..735cc5a18 --- /dev/null +++ b/src/external/samba.m4 @@ -0,0 +1,22 @@ +AC_SUBST(NDR_NBT_CFLAGS) +AC_SUBST(NDR_NBT_LIBS) +AC_SUBST(SMBCLIENT_CFLAGS) +AC_SUBST(SMBCLIENT_LIBS) + +if test x"$with_samba" = xyes; then + PKG_CHECK_MODULES(NDR_NBT, ndr_nbt, , + AC_MSG_ERROR([[Please install Samba 4 development libraries. +Samba 4 libraries are necessary for building ad and ipa provider. +If you do not want to build these providers it is possible to build SSSD +without them. In this case, you will need to execute configure script +with argument --without-samba + ]])) + + PKG_CHECK_MODULES(SMBCLIENT, smbclient, , + AC_MSG_ERROR([[Please install libsmbclient development libraries. +libsmbclient libraries are necessary for building ad and ipa provider. +If you do not want to build these providers it is possible to build SSSD +without them. In this case, you will need to execute configure script +with argument --without-samba + ]])) +fi |