[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

KDE 3.0 BRANCH: Patch for libsmbclient in smb ioslave



Hello everyone, I keep up with KDE3 development and have found the
included patch to be necessary for libsmbclient to be properly detected
and compiled when building kdebase on Debian.

If libsmbclient is not found when building kdebase, the old method of
using a wrapper around smbclient is used for SMB access.

The benefit of using libsmbclient for the smb ioslave is that it is
read/write instead of read-only, as well as much faster.

I've no idea how portable this patch is, I only know it was necessary
to get things to work right on my (Woody) system.

Thanks to mETz on IRC for much of this.

-- 
Michael Driscoll, fenris@ulfheim.net
"A noble spirit embiggens the smallest man" -- J. Springfield
Index: kdebase/kioslave/smb/Makefile.am
===================================================================
RCS file: /home/kde/kdebase/kioslave/smb/Makefile.am,v
retrieving revision 1.17
diff -u -3 -p -r1.17 Makefile.am
--- kdebase/kioslave/smb/Makefile.am	2001/05/21 13:08:55	1.17
+++ kdebase/kioslave/smb/Makefile.am	2002/04/07 02:39:46
@@ -26,7 +26,7 @@ kio_smb_la_SOURCES = kio_smb.cpp \
              kio_smb_file.cpp \
              kio_smb_internal.cpp
 
-kio_smb_la_LIBADD = -lkio -lsmbclient
+kio_smb_la_LIBADD = -lkio -lsmbclient -lnsl
 
 kio_smb_la_LDFLAGS = -module -avoid-version -no-undefined
 
Index: kdebase/kioslave/smb/configure.in.in
===================================================================
RCS file: /home/kde/kdebase/kioslave/smb/configure.in.in,v
retrieving revision 1.5
diff -u -3 -p -r1.5 configure.in.in
--- kdebase/kioslave/smb/configure.in.in	2001/03/29 09:30:44	1.5
+++ kdebase/kioslave/smb/configure.in.in	2002/04/07 02:39:46
@@ -1,4 +1,4 @@
 SMB_SUBDIR="smb"
 KDE_CHECK_HEADER(libsmbclient.h, ,[SMB_SUBDIR=""] )
-KDE_CHECK_LIB(smbclient, smbc_init, ,[SMB_SUBDIR=""] )
+KDE_CHECK_LIB(smbclient, smbc_init, ,[SMB_SUBDIR=""], -lnsl -ldl )
 AC_SUBST(SMB_SUBDIR)

Reply to: