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

956 Commits

Author SHA1 Message Date
Michael Adam
8e3ae7baaf Add support for building and using shared and static libtdb library.
This should work with m4_include(lib/tdb/libtdb.m4) like already
done with talloc, but currently this does not work (yet) - tdb
code has to be merged from s4 before that.

Michael
(This used to be commit e92fdf6b20)
2008-02-14 14:17:57 +01:00
Michael Adam
879b32806d Fix a typo.
This had no negative side effect since currently TALLOC_OBJ
only consists of one object.

Michael
(This used to be commit 9cf3be8520)
2008-02-14 14:15:23 +01:00
Michael Adam
f292f3de3f Try and fix the Darwin build with dynamic libs.
Golly gosh, this one took me quite some time to figure out!
Hopefully, I did not introduce any typos copying...

Michael
(This used to be commit 85ca2c9edb)
2008-02-14 00:09:23 +01:00
Michael Adam
adcbc2439c Remove --enable-libwbclient-shared , use --with-static-libs=libwbclient instead.
Use the more general mechanism.
The enable_developer-check is preserved, of course.

Michael
(This used to be commit 4321d5aba7)
2008-02-13 15:11:55 +01:00
Michael Adam
8a8c71e08e Use --with-static-libs=libtalloc instead of --with-static-libs=talloc
for consistency (and similar for all other examples).

Michael
(This used to be commit 198768a832)
2008-02-13 15:11:23 +01:00
Michael Adam
574dce7c0e Link in libnetapi as shared or static library (same mechanism as talloc).
This, too, can be turned to static linking by providing the configure
parameter --with-static-libs=netapi.

Michael
(This used to be commit a4c773de0f)
2008-02-13 14:45:13 +01:00
Michael Adam
1fee36432b Add -L./bin to LDFLAGS when building shared libs.
Formerly this was only needed for libwbclient, but now that we start
using more shared libs internally, this is needed more globally
to support linking internal libs dynamically on systemy without winbindd.

Michael
(This used to be commit ec79357218)
2008-02-13 13:48:51 +01:00
Michael Adam
ee9d033e65 Change hand written configure help strings to use AS_HELP_STRING().
Michael
(This used to be commit d950174bcb)
2008-02-13 11:03:50 +01:00
Michael Adam
5566b3372b Use AS_HELP_STRING instead of (deprecated) AC_HELP_STRING.
Existence is guaranteed by libreplace.

Michael
(This used to be commit 90bdd0fa2e)
2008-02-13 11:03:49 +01:00
Michael Adam
c040b9be92 Fix some comment typos.
Michael
(This used to be commit bc4482cde1)
2008-02-13 09:25:31 +01:00
Michael Adam
62c94e0acc Remove some unneded variables: we always build and install some talloc libs.
LIBTALLOC, INSTALL_LIBTALLOC, UNINSTALL_LIBTALLOC

Michael
(This used to be commit 97a60565ad)
2008-02-13 09:25:31 +01:00
Michael Adam
cb69724050 Put talloc lib targets into variables and uses these.
LIBTALLOC_STATIC_TARGET and LIBTALLOC_SHARED_TARGET.

Michael
(This used to be commit d1bec38829)
2008-02-13 09:25:31 +01:00
Michael Adam
79a3ed88cc Simplify code by moving duplicate assignment to common place.
Michael
(This used to be commit dddfdee90e)
2008-02-13 09:25:31 +01:00
Michael Adam
ea22f75493 Add support for linking talloc library statically or dynamically into samba.
This also establishes a general configure mechanism to control static vs
dynamic linking of internal subsystems built as libraries:
This first simple approach is as follows.

* It applies only to "subsystems" that we build as libraries and for
  that linking samba against the libraries (as opposed to linking in
  the plain object files) has been configured in Makefile.in.

* If we do build the shared library, then we link dynamically by default.

* We only link statically if we don't build shared or if the library
  appears in the new --with-static-libs configure option
  (comma-separated list).

Example (currently only one):
  --with-static-libs=talloc makes use of libtalloc.a instead
  of linking the dynamic variant with -ltalloc.

A possilble way to setup linking against libraries in Makefile.in is this:
For a subsystem, "mylib" say, we build bin/libmylib.a and bin/libmylib.so.
The subsystem usually has a MYLIB_OBJ definition in Makefile.in.  Define
LIBMYLIB_STATIC=bin/libmylib.a and and LIBMYLIB_LIBS=-lmylib in configure.in
as controlled by presence of "mylib" in the list given to --with-static-libs
and change uses of $(MYLIB_OBJ) to @LIBMYLIB_STATIC@ in Makefile.in and
add @LIBMYLIB_LIBS@ to the link targets as needed.

In the example of talloc, which is needed everywhere, I have simply
added @LIBTALLOC_LIBS@ to the definition of "LIBS" in Makefile.in.
For other subsystems, one will have to be more careful.

Michael
(This used to be commit 71b990d9d6)
2008-02-13 09:25:31 +01:00
Michael Adam
2a9cbe3c13 Use data from lib/talloc/libtalloc.m4 instead of hard coded data.
Michael
(This used to be commit 880238c65c)
2008-02-13 09:25:31 +01:00
Michael Adam
57794a0550 Move the AC_LIBREPLACE_CC_CHECKS up before building SAMBA_CPPFLAGS.
Michael
(This used to be commit ed2337e3a2)
2008-02-13 09:25:31 +01:00
Michael Adam
c7e80b0c20 Add support for building libtalloc.a and libtalloc.so.
Michael
(This used to be commit cb7f42bcbc)
2008-02-13 09:25:31 +01:00
Günther Deschner
80d20d8e54 w00t! SAMR server-side conversion to pidl is finished.
Guenther
(This used to be commit c6d9650930)
2008-02-12 14:55:20 +01:00
Michael Adam
b7989e2ac7 Add configure check for LBER_LOG_PRINT_FN - to intercept ldap debug.
Use the resulting HAVE_LBER_LOG_PRINT_FN to determine whether we can
use it in init_ldap_debugging to intercept LDAP debug output and print
it out in the samba logs (controlled with "ldap debug level").

Michael
(This used to be commit 8dfc389ff6)
2008-02-06 18:16:22 +01:00
Michael Adam
0e5344b53b Don't use the deprecated form of AC_INIT.
Fill in the project name and email address instead.

Michael
(This used to be commit c2b0c2f2af)
2008-02-06 18:16:22 +01:00
Volker Lendecke
d49754944c NetBSD defines innetgr() in <netgroup.h>
(This used to be commit 7ad8e22073)
2008-02-01 13:06:23 +01:00
Günther Deschner
3d507a2fca Let _samr_Close() use pidl generated server code.
Guenther
(This used to be commit 2df3408079)
2008-01-31 11:20:13 +01:00
Günther Deschner
05ff7fd46e Use generated DSSETUP client & server rpc functions and remove the hand-written ones.
Guenther
(This used to be commit d5ebfccebb)
2008-01-25 15:30:43 +01:00
Volker Lendecke
d221d53f3a Link smbd on AIX with -bexpfull instead of -bexpall
-bexpall only exports the names without leading _, so we don't get
_talloc_reallo_array for example.

Thanks a lot to Heinrich Mislik for the hint!
(This used to be commit 74a71f1988)
2008-01-21 15:01:19 +01:00
Volker Lendecke
dfd05b9b65 vfs_streams_depot
Store streams in a file each. Not 100% finished, and not built by default.
(This used to be commit 5f5fc72b01)
2008-01-19 23:36:34 +01:00
Volker Lendecke
4ba64fce49 vfs_streams_xattr module
Store streams in posix xattrs. A kludge, as xattrs are limited in many ways,
but it might be a help for some situations.
(This used to be commit 83a805220e)
2008-01-19 23:34:22 +01:00
Stefan Metzmacher
db449a4c5f Revert "Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage"
This reverts commit e33286f4a6.

393bab185e0e9f02aac5740becc2aba2762133c8 is the v4-0-test fix
for the same problem.

metze
(This used to be commit b8a57a24c3)
2008-01-18 17:02:13 +01:00
Alexander Bokovoy
80f1cc3879 Enable building of VFS modules: vfs_tsmsm, vfs_shadowcopy2 and IDMAP module idmap_tdb2
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 136c024c9a)
2008-01-16 12:28:28 +03:00
Volker Lendecke
c2acec43ae rename vfs_ea_tdb to vfs_xattr_tdb
(This used to be commit 151b42a150)
2008-01-15 17:30:29 +01:00
Volker Lendecke
57cc992e0f Implement vfs_ea_tdb
This is an option for file systems that do not implement xattrs: in
lockdir/eas.tdb an array of xatts per inode is stored.

It can not solve the problem that xattrs might reappear if a posix-level
process deletes a file and happens to re-create it under the same name. On file
systems with birthtime we might have a chance to detect this, but not with
standard posix. A future version might put relief on file systems that do have
xattrs but where these are severely limited in size/speed/whatever: We can put
a simple marker as a native xattr, but the xattrs proper are stored in the tdb.

Volker
(This used to be commit 2036b4c5ad)
2008-01-15 11:01:18 +01:00
Stefan Metzmacher
e00e080034 libwbclient: add wbclient.pc.in
metze
(This used to be commit e6bd1395f2)
2008-01-15 10:43:43 +01:00
Volker Lendecke
0bfa867159 --enable-libwbclient-shared
This patch adds the configure option --enable-libwbclient-shared that defaults
to yes. If you set --enable-developer=yes, then you can say
--enable-libwbclient-shared=no to avoid problems you might have with the wrong
shared libaries.

Jerry, is this acceptable to you? If yes, please push.

Thanks!

Volker
(This used to be commit 7a88cd61e0)
2008-01-10 22:15:19 +01:00
Michael Adam
638b57e5d1 Enable building the notify_fam module.
Found by Timur I. Bakeyev <timur@com.bat.ru>.

Michael
(This used to be commit ece34fd2fe)
2008-01-10 00:48:03 +01:00
Jelmer Vernooij
aaa2770666 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 5a30f6377d)
2008-01-05 23:09:38 +01:00
Jelmer Vernooij
3ba8fbef29 selftest: Use platform-specific equivalents of LD_LIBRARY_PATH for Samba4's smbtorture.
(This used to be commit 64ff1dad86)
2008-01-05 23:09:25 +01:00
Günther Deschner
53e1014472 Use -g instead of -gstabs as many have reported gdb problems with -gstabs.
Guenther
(This used to be commit 8befb22672)
2008-01-03 13:41:43 +01:00
Günther Deschner
98ae29c26a Fix configure output for libnetapi.
Guenther
(This used to be commit d00ce6685a)
2008-01-03 13:41:27 +01:00
Volker Lendecke
8b88fa53b5 Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage
(This used to be commit e33286f4a6)
2007-12-25 18:37:42 +01:00
Volker Lendecke
fae533d359 AIX iface test needs rep_vasprintf
(This used to be commit 3e5788cc96)
2007-12-25 18:36:49 +01:00
Volker Lendecke
199ecd9a85 ifreq needs more from lib/replace
(This used to be commit e85290550a)
2007-12-25 14:19:50 +01:00
Volker Lendecke
afec8b523a Next try to fix get_interfaces detection
(This used to be commit 2dc0282f24)
2007-12-25 13:49:17 +01:00
Volker Lendecke
b410f254f0 Revert "Attempt to fix the ifreq detection"
This reverts commit 2d08959685.
(This used to be commit acb560900b)
2007-12-25 11:59:34 +01:00
Volker Lendecke
54861606f9 Attempt to fix the ifreq detection
(This used to be commit 2d08959685)
2007-12-25 00:13:24 +01:00
Jeremy Allison
9a2b54dfb6 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Conflicts:

	source/library-versions.in
(This used to be commit 11acca7d38)
2007-12-21 13:14:59 -08:00
Günther Deschner
f2ebf076a4 Generate pkgconfig files for at least lib{smbclient,smbsharemodes,netapi}.
Guenther
(This used to be commit ad87786c91)
2007-12-21 22:07:12 +01:00
Gerald (Jerry) Carter
a2481eda8c Add files for new LGPL libwbclient DSO implementing the Winbind client API
(based on the winbind_struct_protocol.h).

The API in incomplete, but sufficient to merge.  See wbclienbt.h for the i
interface functions.
(This used to be commit 83d274b460)
2007-12-21 11:58:04 -06:00
Günther Deschner
27a58bd50c Add getdc.c, a libnetapi example (incl. Makefile).
Guenther
(This used to be commit faedc78fc7)
2007-12-21 16:02:35 +01:00
Günther Deschner
8f65326e99 Build libnetapi shared and static if possible.
Guenther
(This used to be commit 11e90dcbf5)
2007-12-21 15:29:10 +01:00
Rishi Srivatsavai
bf2c5e2bde Add smbclient support for basic mDNS browsing.
Patch from Rishi Srivatsavai (bugzilla #4150), with tallocification
and minor syle changes by me.
(This used to be commit db74b99d0e)
2007-12-17 22:09:09 -08:00
Jeremy Allison
5dbc4a23bc Added patch originally by Andreas Schneider <anschneider@suse.de>
to cause us to behave like Vista when looking for remote
machine principal. Modified by me.
Jeremy.
(This used to be commit d0e33840fb)
2007-12-15 23:22:25 -08:00