1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

29 Commits

Author SHA1 Message Date
Andreas Schneider
8ece780d1b s3-build: Remove broken RPC modules support.
With the current module support for rpc we're not able to call the init
functions with the rpc callback structure. So init functions and
shutdown functions aren't called. These init functions are needed to
setup pre requirements like migrating the printer databases and register
at the endpoint mapper. The shutdown functions cleanup memory and
deregister from the endpoint mapper.
2011-01-04 11:23:21 +01:00
Björn Jacke
4e104f185e libreplace: move detection of clock_gettime to libreplace 2010-08-31 09:07:13 +02:00
Andreas Schneider
5cefbfef26 s3-rpc_server: Added callbacks for init and shutdown of a rpc service.
This adds two callback function for each rpc service. One is for
initialisation and the other for shutdown. rpc_<service>_unregister()
needs to be called to execute the shutdown function.
2010-07-19 12:59:18 +02:00
Björn Jacke
b869350ddd s3: add m4 macro to check if stderr is empty or not 2010-05-30 16:25:28 +02:00
Björn Jacke
1969b4acc3 s3:configure: not simply check for "ld" but for the linker used by $CC
this hopefully fixes Solaris' gcc build which uses the system ld by default.
All in all we should clean up most of the compiler and linker flags depending
on the actual compilers and linkers we use. Only some tweaks are OS-specific.
A cleanup in this area should be done along with the move to a new build
system (whensoever that will be ...).
2010-05-05 21:38:08 +02:00
Kai Blin
f5aff324cb s3 aclocal.m4: Fix iconv checks, clean up m4 code
The check for iconv requiring giconv.h and libgiconv as well as
the check for iconv requiring biconv.h and libbiconv were using the wrong
variable to check for previous successful test results. This caused the checks
to always fall back to libbiconv on systems where that library was available.

In the course of fixing this, I had to clean up the indentation in that piece of
code, and I also rewrote/added some comments.

Many thanks to Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> for the initial
patch and diagnosis.
2009-12-04 09:47:25 +01:00
Björn Jacke
862ae382b8 s3:dmapi: prefer dmapi libs from gpfs over system libs
Patch from William Jojo sent to samba-technical:

This is based on some pain felt when building 32-bit and 64-bit Clustered Samba
on AIX with GPFS support.

Part of the problem lies in AIX only providing 32-bit shared object in
libxdsm.a(shr.o). So without libdmapi.a from gpfs.base, you get no DMAPI
support under 64-bit.
2009-06-19 11:56:33 +02:00
Timur I. Bakeyev
a7cd66728b Small fix to SMB_LIBRARY macro
It seems, that SMB_LIBRARY macro has small bug in the logic, when showing
if shall the SHARED version of the library be build.

If the default value is given as a parameter, it reports "yes" when library
is going to be build(?).

This small patch makes report consistent.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-06-08 13:20:53 +02:00
Timur I. Bakeyev
96eaa412e6 SIGRTMIN additions
In addition to [FreeBSD 14] there is another place, where we (re)define
SIGRTMIN - in SMB_IF_RTSIGNAL_BUG macro in /source3/m4/aclocal.m4.

Here is another small patch.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-06-08 13:20:53 +02:00
Michael Adam
f5c96e54c6 s3:build: fix linking with --disable-shared-libs
Michael
2009-05-15 23:46:02 +02:00
Jelmer Vernooij
31120c9eac Move syslog check out of m4 library file into configure.in 2009-04-20 16:25:17 +02:00
Jelmer Vernooij
fbf4293d7e Move check for syslog out of libreplace to source3/ and source4/.
This should help compiling talloc on Windows.
2009-04-20 16:25:16 +02:00
Michael Adam
15ef346f9f s3:build: no need to set LIBFOO_STATIC to the object collection any more
now that the @LIBFOO_STATIC@ entries have vanished from the object lists.
Just use the static library.

Michael
2009-04-01 10:41:34 +02:00
Michael Adam
f9eb77477b s3:build: first cut at fixing linking of shared/static libs internally
This is based on a patch from the debian packages
by Steve Langasek <vorlon@debian.org>.

It removes the static libs from the object collections.
For those libs that are set up with SMB_LIBRARY().

Michael
2009-04-01 10:41:33 +02:00
Björn Jacke
066cbb5835 clean up lib64 linking paths the same way as lib
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 16:11:14 +01:00
Jelmer Vernooij
94855cd692 Move common libraries from root to lib/. 2008-09-17 14:11:12 +02:00
Jelmer Vernooij
0888ffa2b7 Make Samba 3 and Samba 4 both use the same single copy of libreplace. 2008-09-16 16:30:14 +02:00
Michael Adam
e2ec27135d build: fix bug #5590 by not linking in the static libs but the objects.
Michael
(This used to be commit 6ad2090391)
2008-08-20 22:38:08 +02:00
Michael Adam
c617b69b11 build: fall down to the same place when using an internal lib statically.
Michael
(This used to be commit 702c0bc046)
2008-08-20 22:38:07 +02:00
Michael Adam
bf62ddc9e6 build: extend SMB_LIBRARY() to take a version as an optional second argument
This will allow transition away from library-versions in the next step.

Michael
(This used to be commit d9d92b6427)
2008-07-07 20:34:04 +02:00
Michael Adam
e9d5d97a3f build: extend SMB_LIBRARY() to optionally take default value.
The default value defaults to "yes".
If no is specified, an optional third argument contains the
reason why building of the shared library is turned off by default.

Michael
(This used to be commit af971f79c7)
2008-07-07 20:34:03 +02:00
Michael Adam
2e694978f5 build: slightly change and extend the logic of SMB_LIBRARY().
Only call the install/uninstall targets (from make (un)install)
for libraries configured with SMB_LIBRARY(), when the user did
not set --with-libname=no.

Make sure to always (at least) build the static version of the library.

Michael
(This used to be commit f440538c94)
2008-07-07 20:34:01 +02:00
Volker Lendecke
993d80fd22 init_shared_module -> init_samba_module
(This used to be commit 9b174871a8)
2008-06-23 07:20:18 +02:00
Volker Lendecke
3cf5395ad5 Use "init_shared_module" instead of "init_module" for initializing .so's
(This used to be commit 0c2fd687b2)
2008-06-21 11:25:41 +02:00
Michael Adam
3ea216f888 build: fix configure option --with-static-libs=libXYZ
This should not prevent building but linking of shared lib for
subsystem XYZ (example --with-static-libs=libtdb).

m4 quotation is tricky...

Michael
(This used to be commit 4d0a5d5c93)
2008-03-31 11:58:35 +02:00
Michael Adam
ea0b148a96 configure: fix quotation in SMB_LIBRARY for help output.
Michael
(This used to be commit 96f85a48be)
2008-03-07 23:45:52 +01:00
Michael Adam
0d7f555335 Move the definition of SMB_LIBRARY to aclocal.m4.
Michael
(This used to be commit 4724b13ed8)
2008-02-21 14:07:45 +01:00
James Peach
b683f8137b r23094: Update the iconv detection to handle cross-compiles better. If we are
cross-compiling, we accept the first iconv library that we find (with a
warning).
(This used to be commit 9417832155)
2007-10-10 12:22:45 -05:00
James Peach
821bf2bd72 r22441: Add automatic dependency tracking. The dependency generation is
toolchain independent, but since there's no portable method for
doing makefile includes, we can actually use the dependencies with
GNU make. It's easy to add this for other makes, but I don't have
any to test.

This also moves as much m4 as possible into the m4 directory where
no-one has to look at it. AFAICT, there's no way to hide depcomp
in there too, which is unfortunate.
(This used to be commit aa14900f82)
2007-10-10 12:19:34 -05:00