[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.



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 ----
+               *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)

#!/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*
=0;grep{$_[$i++].=$_}split //,$a;length$_[0]==8&&print pack'B8',$_ for at _;

More information about the samba mailing list