From 0e1dcef53d9d8465ce97d31ad11be4445a6e7eb8 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Sat, 24 May 2014 17:03:17 +0200 Subject: AUTOCONF: Move detection of samba libraries to one file Reviewed-by: Jakub Hrozek --- src/external/libndr_nbt.m4 | 12 ------------ src/external/libsmbclient.m4 | 5 ----- src/external/samba.m4 | 22 ++++++++++++++++++++++ 3 files changed, 22 insertions(+), 17 deletions(-) delete mode 100644 src/external/libndr_nbt.m4 delete mode 100644 src/external/libsmbclient.m4 create mode 100644 src/external/samba.m4 (limited to 'src/external') diff --git a/src/external/libndr_nbt.m4 b/src/external/libndr_nbt.m4 deleted file mode 100644 index bb4f89f1..00000000 --- a/src/external/libndr_nbt.m4 +++ /dev/null @@ -1,12 +0,0 @@ -AC_SUBST(NDR_NBT_CFLAGS) -AC_SUBST(NDR_NBT_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 - ]])) -fi diff --git a/src/external/libsmbclient.m4 b/src/external/libsmbclient.m4 deleted file mode 100644 index 060b5ee1..00000000 --- a/src/external/libsmbclient.m4 +++ /dev/null @@ -1,5 +0,0 @@ -AC_SUBST(SMBCLIENT_CFLAGS) -AC_SUBST(SMBCLIENT_LIBS) - -PKG_CHECK_MODULES(SMBCLIENT, smbclient, , - AC_MSG_ERROR("Please install libsmbclient development libraries")) diff --git a/src/external/samba.m4 b/src/external/samba.m4 new file mode 100644 index 00000000..735cc5a1 --- /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 -- cgit