summaryrefslogtreecommitdiffstats
path: root/tdeioslave/smb/configure.in.in
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:02:02 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:02:02 -0600
commitde7e5867a65e0a46f1388e3e50bc7eeddd1aecbf (patch)
treedbb3152c372f8620f9290137d461f3d9f9eba1cb /tdeioslave/smb/configure.in.in
parent936d3cec490c13f2c5f7dd14f5e364fddaa6da71 (diff)
downloadtdebase-de7e5867a65e0a46f1388e3e50bc7eeddd1aecbf.tar.gz
tdebase-de7e5867a65e0a46f1388e3e50bc7eeddd1aecbf.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdeioslave/smb/configure.in.in')
-rw-r--r--tdeioslave/smb/configure.in.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/tdeioslave/smb/configure.in.in b/tdeioslave/smb/configure.in.in
new file mode 100644
index 000000000..59b8272c8
--- /dev/null
+++ b/tdeioslave/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_tdeioslave_smb, test "x$have_libsmbclient" = xyes)
+
+])
+
+SMB_CHECK