1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

1086 Commits

Author SHA1 Message Date
Volker Lendecke
18206a4cb5 Add vfs_aio_fork
This is used for two purposes:

First, I'm using it to test the async I/O code. In the forked process it is
pretty easy to delay a reply for a random amount of time. See the
BUILD_FARM_HACKS snippet.

Second, there are systems around that claim to have Posix AIO but which is
broken. This might be some help for those systems.

Also add tests how to pass file descriptors
(This used to be commit b0e52cecf2009d4c7f29412dadf17910e54e4327)
2008-02-29 09:47:53 +01:00
Karolin Seeger
e1b32594c7 Remove smbmount.
Karolin
(This used to be commit 5fbd98f7065268ae134108310119078ad8f62322)
2008-02-28 15:53:43 +01:00
Michael Adam
df3939da94 configure: put swat-part of config into m4-include file of its own.
Michael
(This used to be commit 622667c0790c0092bfceced8dc6fb05e781ac5e7)
2008-02-26 13:56:12 +01:00
Volker Lendecke
43491db17c Fix inotify detection
Bug 5271 -- thanks to Tiziano Müller
(This used to be commit 4a1a138b0fe0f2200e5a37a0609481e4340a896c)
2008-02-25 12:58:56 +01:00
Michael Adam
658b72916f Fix aix-build of libtalloc.so by exporting all necessary symbols.
Use -bexpfull instead of -bexpall for LDSHFLAGS to also export
symbols starting with "_". This exports all necessary symbols
from libtalloc.so.

Michael
(This used to be commit 213ba3a719e77979c04b872f1d82f68e87287cb0)
2008-02-24 01:00:39 +01:00
Michael Adam
0d7f555335 Move the definition of SMB_LIBRARY to aclocal.m4.
Michael
(This used to be commit 4724b13ed8dce4721f95979803ba32f815ceaf1a)
2008-02-21 14:07:45 +01:00
Michael Adam
d29c816b61 configure: Abstract configuration of internal libs into an m4 macro.
New subsystem libraries can now be added by specifying SMB_LIBRARY(name).

Michael
(This used to be commit 54d73769c49eb87ecb33e3229a01214972b53858)
2008-02-21 12:59:42 +01:00
Volker Lendecke
21387a4c5e fix typo
(This used to be commit 2d51bf67fc33e1f8f28151277fc254b82a04b664)
2008-02-21 11:40:22 +01:00
Michael Adam
63592eebbb Remove check for secure mkstemp from configure.in.
It has moved to libreplace.

Michael
(This used to be commit b5e894cb3b4d447bd8e8c3f461508c4cf3f630c1)
2008-02-21 10:27:56 +01:00
Michael Adam
48302a28a9 Remove mmap check from configure.in
It is available in libreplace.

Michael
(This used to be commit 310c121faf5effeca9ab0df3591c486dd4982749)
2008-02-21 10:27:56 +01:00
Michael Adam
d2e63399d3 configure: add --enable-shared-libs to control overall internal use of shared libs.
To disable internal use of shared libraries altogether (as opposed to
disabling use of single shared libs by --with-static-libs=LIBS), use
this new configure parameter --disable-shared-libs.

Michael
(This used to be commit 63bff18f3f6396736910a8e1f5f2abf453c4f89a)
2008-02-20 23:38:27 +01:00
Michael Adam
443f8ed260 configure: Move assemblage of samba version strings to m4 include file.
Michael
(This used to be commit 8b220717e8dd62455716d4aaf6728087d04fb71b)
2008-02-20 21:33:24 +01:00
Michael Adam
e0f4573de2 Remove checks for ino_t, loff_t, offset_t, and comparison_fn_t from configure.in.
These tests are in libreplace.

Michael
(This used to be commit 2e6b66eda4dc30f03f1309a1dbef3eb87a4f7d1e)
2008-02-20 21:33:24 +01:00
Michael Adam
4f5a888067 Remove tests for vsnprintf snprintf asprintf vasprintf and va_copy from configure.
These are tested in libreplace.

Michael
(This used to be commit 9b9495d3672e3a8e74d153dbef62825e6b5d5170)
2008-02-20 17:26:39 +01:00
Michael Adam
9e5be586af Remove the getifaddrs checks from configure.in: they are now in lib/replace.
Michael
(This used to be commit 53c9098253f5a7f84ea8079a755b9d4f0b28fb2c)
2008-02-20 00:44:40 +01:00
Michael Adam
31a356420d configure: Use SAMBA_CONFIGURE_CPPFLAGS for AC_LIBREPLACE_BROKEN_CHECKS.
To fix the build (make test) after merging libreplace changes.

Michael
(This used to be commit af5ec88ece3ecca2b3c5d6585deec10fe851339b)
2008-02-20 00:17:31 +01:00
Michael Adam
27b711414f configure: Move path (and debug) checks to an m4 include file check_path.m4.
This is inspired by metze's check_path.m4 of Samba4.

Michael
(This used to be commit d1db2b78c9dacddc0e24304624a6a0d0a817f774)
2008-02-19 17:39:40 +01:00
Michael Adam
07f4f95b14 build: change selftest_prefix from ./ to ./st .
It was used as ${selftest_prefix}/st anyways...

Michael
(This used to be commit 1f3bfa024d61ccb87655db2c616b28adb50d6783)
2008-02-19 17:39:40 +01:00
Michael Adam
3b3b80a365 configure: move debug check to developer check
...thereby grouping test checks and debug/developer checks together, respectively.

Michael
(This used to be commit bf1bb2c0906dd5e518c3f35ef97d69eba0e2efdf)
2008-02-19 17:39:40 +01:00
Michael Adam
53d5624205 configure: Also set debug=yes for --enable-developer and --enable-krb5developer.
Michael
(This used to be commit ad45d056df64aeed2e2c97ab69f82013791616ab)
2008-02-19 17:39:40 +01:00
Michael Adam
12239ef505 configure: add default for developer and krb5developer
Michael
(This used to be commit e9b06ac113e375de11bb847c6f625f7861502853)
2008-02-19 17:39:40 +01:00
Michael Adam
b40d1b131b configure: move more developer/test related checks up before the compiler checks.
Michael
(This used to be commit 05e3095e21330c162624338160ab48d197cf0507)
2008-02-19 17:39:40 +01:00
Michael Adam
5073bd1349 Move the --enable-debug check up above all compiler checks.
Michael
(This used to be commit fb74f8dd6a612db0d79b091dd9972bb3204818fb)
2008-02-19 17:39:40 +01:00
Michael Adam
90ea8ae9b1 configure: Introduce "debug" variable set to yes by --enable-debug.
Michael
(This used to be commit b33db84c222af21cc3dd8233d6ff96e6f32ea3cd)
2008-02-19 17:39:40 +01:00
Michael Adam
86e758e246 configure: move AC_SUBST's of certain directories to the corresponding checks.
Michael
(This used to be commit 28c862704c27aaffc858650d0a4f4cc7893bb406)
2008-02-19 17:39:40 +01:00
Michael Adam
c666d5b384 Move AC_ENABLE_SHARED and AC_DISABLE_STATIC to a more appropriate place.
I have to investigate the effect of these and evaluate the need of
their presence. For now establish more reasonable grouping.

Michael
(This used to be commit 3ba8fa1c4b9ac46133b17112ef3494a4c23dc314)
2008-02-19 17:39:40 +01:00
Michael Adam
1f67a36de3 configure.in: move definition of build dir up.
Michael
(This used to be commit 35327e8fee778cb46e181add7d1987c843384989)
2008-02-19 17:39:39 +01:00
Günther Deschner
8db780ac8f Yippie! LSARPC server-side migration to pidl finished.
Guenther
(This used to be commit aa7023b88d3161897b9616d950c2a99624d81931)
2008-02-19 01:23:05 +01:00
Günther Deschner
d8fcfb1615 Build the generated ntsvcs server (not at all useable yet).
Guenther
(This used to be commit acce1092d90db1f90265de44fd340d7df73e4e0e)
2008-02-17 23:03:22 +01:00
Günther Deschner
b4989afbab YES! NETLOGON rpc server side migration to pidl finished.
Guenther
(This used to be commit 7845a0d9a8f938c1be888ab2d9aa6c35d6f1dbad)
2008-02-16 14:53:45 +01:00
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 e92fdf6b202bd67a9bb6fcc1ced56513a2d0bd3f)
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 9cf3be852024f05a73bf23fe5df6264e5252889b)
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 85ca2c9edb9ac54d3fa18d6b343a73dda1d48040)
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 4321d5aba7ec808aee473c1123027f14bfa19f19)
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 198768a83242cca3f03d839598200d794bb11606)
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 a4c773de0fbd303f633e120e817b4c88fcff2064)
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 ec793572187228deda7210dab02882e4e09f1972)
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 d950174bcb50ecb70dfef71d4201feec4985c08b)
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 90bdd0fa2ee09bab8c661c241f5d5fe8fc57016b)
2008-02-13 11:03:49 +01:00
Michael Adam
c040b9be92 Fix some comment typos.
Michael
(This used to be commit bc4482cde1571bb1cb2d55106fc8ee22d26efa23)
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 97a60565ad6657af8e4a3b8b38b69b48597e3eec)
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 d1bec3882908086747e1176a275617700cada097)
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 dddfdee90ee30d225e08d7f1685409f62fabf7c1)
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 71b990d9d687b517dec3d4eff67b6a3fe417a12a)
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 880238c65c13c8b280e2f34431aa331a16af4a7b)
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 ed2337e3a24e800e0a445a9ffc7d735d49abc6d7)
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 cb7f42bcbc6cbe84823402cd3c7bb9327669ed9b)
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 c6d9650930510982ef4e4759272dba573fc81067)
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 8dfc389ff678967a7b16ff1d68f00468a9925275)
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 c2b0c2f2af287bbe8e09bf7467de581691d09014)
2008-02-06 18:16:22 +01:00