[Samba] libsmbclient in Mac OS X / Darwin

Luis Muñoz lem at cantv.net
Sat Oct 26 05:30:01 GMT 2002


Dear folks:

First of all, thanks for a great product and please do keep up your fine
job with samba.

As a humble contribution to your project, below is a patch to configure.in
that allows libsmbclient.so to be correctly built in my system (Mac with
Mac OS X). I hope this to be useful.

I also noted that the generated Makefile, did not correctly install the
library as the 'install' command lacks a target directory. Seeing that some
other things seem to ignore the --with-prefix, I prefer to just report this
instead of producing patches.

Regards.

-lem

lem at dC8541540 source> uname -a
Darwin dC8541540.dslam-06-2-1-03-01-02.tdd.dsl.cantv.net 5.5 Darwin Kernel
Version 5.5: Thu May 30 14:51:26 PDT 2002;
root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC  Power Macintosh powerpc


*** configure.in-orig   Fri Oct 25 23:50:47 2002
--- configure.in        Sat Oct 26 01:04:43 2002
***************
*** 855,860 ****
--- 855,868 ----
                        SONAMEFLAG="-Wl,-soname="
                        AC_DEFINE(STAT_ST_BLOCKSIZE,512)
                        ;;
+               *darwin*) AC_DEFINE(DARWIN)
+                       BLDSHARED="true"
+                       LDSHFLAGS="-dynamic"
+                       PICFLAG="-fPIC"
+                       SHLD="libtool"
+                       LIBS="${LIBS} -lc -lcc_dynamic"
+                       CFLAGS="-dynamic -fno-common ${CFLAGS}"
+                       ;;
                *solaris*) AC_DEFINE(SUNOS5)
                        BLDSHARED="true"
                        LDSHFLAGS="-G"

-- 
 --
#!/usr/bin/perl -w
use strict;
$_[$_]=0 for 0..7;my$i;
for my$a(grep{s@^00@@}unpack'B8'x28,join'',map{chr}split/\*+/,q{61*31*28*
32*20*40*25*63*63*9*52*58*49*18*30*47*20*2*10*4*8*63*63*1*36*2*13*30}){$i
=0;grep{$_[$i++].=$_}split //,$a;length$_[0]==8&&print pack'B8',$_ for at _;
length$_[0]==8&&grep{$_=0}@_;}print"\n";



More information about the samba mailing list