summaryrefslogtreecommitdiffstats
path: root/kioslave/smb/configure.in.in
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kioslave/smb/configure.in.in
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/smb/configure.in.in')
-rw-r--r--kioslave/smb/configure.in.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/kioslave/smb/configure.in.in b/kioslave/smb/configure.in.in
new file mode 100644
index 000000000..0a0cdcc86
--- /dev/null
+++ b/kioslave/smb/configure.in.in
@@ -0,0 +1,34 @@
+AC_DEFUN([SMB_CHECK],
+[
+AC_REQUIRE([KDE_CHECK_LARGEFILE])
+
+AC_ARG_WITH(samba,
+ [AC_HELP_STRING(--with-samba,
+ [enable the samba ioslave @<:@default=check@:>@])],
+ [], with_samba=check)
+
+have_libsmbclient=no
+if test "x$with_samba" != xno; then
+ have_libsmbclient=yes
+ KDE_CHECK_HEADER(libsmbclient.h, [], [have_libsmbclient=no])
+ KDE_CHECK_LIB(smbclient, smbc_new_context, [], [have_libsmbclient=no])
+
+ SMBCLIENT_EXTRA_LIBS=""
+ AC_CHECK_FUNC(yp_get_default_domain, [],
+ [
+ KDE_CHECK_LIB(nsl, yp_get_default_domain,
+ [SMBCLIENT_EXTRA_LIBS="-lnsl"] )
+ ])
+
+ AC_SUBST(SMBCLIENT_EXTRA_LIBS)
+
+ if test "x$with_samba" != xcheck && test "x$have_libsmbclient" = xno; then
+ AC_MSG_ERROR([--with-samba was given, but test for libsmbclient failed])
+ fi
+fi
+
+AM_CONDITIONAL(include_kioslave_smb, test "x$have_libsmbclient" = xyes)
+
+])
+
+SMB_CHECK