Andrew Tridgell
b7ff06b904
build: tidy up the wafsamba rules a bit
...
use python string conventions for function comments
2010-04-06 20:27:14 +10:00
Andrew Tridgell
20146b3fe0
build: fixed popt subsystem on systems without popt
2010-04-06 20:27:13 +10:00
Andrew Tridgell
bfbf43cc36
s4-waf: support the use of system libraries
...
distros can set --bundled-libraries=NONE to force use of all system
libraries. If the right version isn't found then configure will fail.
Users may choose which libraries to use from the system, and which to
use bundled libs. The default is to try system libs, and use them if
their version matches the one in the source tree.
2010-04-06 20:27:13 +10:00
Andrew Tridgell
2201d3d232
build: added quote option to conf.DEFINE()
...
Pair-Programmed-With: Kai Blin <kai@samba.org>
2010-04-06 20:27:08 +10:00
Andrew Tridgell
eb776a80b5
build: much better rpath test function
...
This creates a full shared lib, and a binary that uses it. Then it
tests that the binary runs correctly, relying on rpath
Thanks to Thomas for the code for this!
2010-04-06 20:27:07 +10:00
Andrew Tridgell
2cac0c27cf
build: started a library of common config tests for s3/s4
...
Pair-Programmed-With: Kai Blin <kai@samba.org>
2010-04-06 20:27:07 +10:00
Andrew Tridgell
7848344d55
build: split out the base waf rules into buildtools/wafsamba/wscript
...
this stops lib/replace becoming a mess
2010-04-06 20:27:04 +10:00
Andrew Tridgell
1fb1af92b3
build: added msg argument to CHECK_TYPE()
2010-04-06 20:27:04 +10:00
Andrew Tridgell
0632fac52e
build: add cflags from pkg_config results to header/function tests
...
When we find a package with pkg_config we may need to use the
resulting ccflags and ldflags in later tests.
Support this by adding lib= options to CHECK_FUNC and CHECK_HEADER
This gets gnutls on FreeBSD working
2010-04-06 20:27:01 +10:00
Andrew Tridgell
3b87d36c2b
build: test all the developer cflags before adding them
2010-04-06 20:27:01 +10:00
Andrew Tridgell
9730166fd6
build: configure fixes for opensolaris
2010-04-06 20:27:01 +10:00
Andrew Tridgell
8e7922e10c
build: fixed headers for C prototype check
2010-04-06 20:27:01 +10:00
Andrew Tridgell
f95ca1afc9
build: rewrote the autoconf-like macros to be more consistent
...
This also brings them much closer to the behaviour of autoconf
2010-04-06 20:27:00 +10:00
Andrew Tridgell
98d16cbec0
build: fixed prototype test
2010-04-06 20:27:00 +10:00
Andrew Tridgell
570847054c
build: added CHECK_C_PROTOTYPE() configure function
2010-04-06 20:27:00 +10:00
Andrew Tridgell
8bc9560822
build: more complete implementation of waf configure -C
...
this is a closer emulation of the autoconf behaviour
2010-04-06 20:26:59 +10:00
Andrew Tridgell
9e0d0fa250
build: enable real cacheing with waf configure -C
2010-04-06 20:26:59 +10:00
Andrew Tridgell
b282660d39
build: fixed issue with CC="ccache cc" on solaris
2010-04-06 20:26:58 +10:00
Andrew Tridgell
dc9010572c
build: support systems without rpath
2010-04-06 20:26:58 +10:00
Andrew Tridgell
19ed4c7095
build: if a library is found, but not the fn, still define the library
2010-04-06 20:26:58 +10:00
Andrew Tridgell
8253fe0c72
build: don't use gcc warnings during configure
2010-04-06 20:26:58 +10:00
Andrew Tridgell
db8115f687
build: fixed check for pthread_create()
2010-04-06 20:26:57 +10:00
Andrew Tridgell
f2f8fc440e
build: more careful library list handling
2010-04-06 20:26:57 +10:00
Andrew Tridgell
d148461101
build: CONFIG_SET() takes conf argument
2010-04-06 20:26:57 +10:00
Andrew Tridgell
508cb5b97e
build: cope with double check for functions
2010-04-06 20:26:57 +10:00
Andrew Tridgell
1130f8f8d7
build: lib needs to take a list when more than 1
2010-04-06 20:26:57 +10:00
Andrew Tridgell
593c28b717
build: ensure all libs in CHECK_FUNCS_IN() get a target type
2010-04-06 20:26:57 +10:00
Andrew Tridgell
7628cb7da1
build: cope with multiple libs in CHECK_FUNCS_IN()
2010-04-06 20:26:56 +10:00
Andrew Tridgell
0bad3dacb0
build: cope with multiple checks for the same function/library
2010-04-06 20:26:56 +10:00
Andrew Tridgell
3254003956
build: fixed includes paths for CHECK_CODE()
2010-04-06 20:26:54 +10:00
Andrew Tridgell
9799356082
build: fixed config.h generation when we have source -> source4 symlink
2010-04-06 20:26:53 +10:00
Andrew Tridgell
7cd9a6be35
build: fixed cflags in CHECK_CODE
2010-04-06 20:26:49 +10:00
Andrew Tridgell
844acb2260
build: waf quicktest nearly works
...
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
2010-04-06 20:26:48 +10:00
Andrew Tridgell
8f1b809d2c
build: nearly there on samba4 build
2010-04-06 20:26:47 +10:00
Andrew Tridgell
2498a0d25e
build: saner CFLAGS handling for defines
2010-04-06 20:26:47 +10:00
Andrew Tridgell
b2f7e4b5e2
build: make CONFIG_PATH() understand absolute paths
2010-04-06 20:26:46 +10:00
Andrew Tridgell
fdd2f416eb
build: added local_include option to CHECK_CODE()
2010-04-06 20:26:46 +10:00
Andrew Tridgell
12c46d9055
build: fixed cflags in CHECK_CODE()
2010-04-06 20:26:45 +10:00
Andrew Tridgell
1958a0987e
build: added CHECK_CFLAGS()
2010-04-06 20:26:44 +10:00
Andrew Tridgell
6beff490c5
build: fix name of libs with - in them
2010-04-06 20:26:44 +10:00
Andrew Tridgell
bbb85a26eb
build: define HAVE_LIBxxx when we find a library
2010-04-06 20:26:44 +10:00
Andrew Tridgell
165b5b660a
build: move gettimeofday check to libreplace
...
- add checklink option to CHECK_FUNC()
- Used for when a prototype is not available
2010-04-06 20:26:44 +10:00
Andrew Tridgell
eadf918402
build: expand CHECK_CODE() function
2010-04-06 20:26:43 +10:00
Andrew Tridgell
2dfced59d5
build: added CHECK_CODE_COMPILES()
2010-04-06 20:26:43 +10:00
Andrew Tridgell
6edb70c59e
build: added help on fns
...
also added CHECK_STRUCTURE_MEMBER()
2010-04-06 20:26:43 +10:00
Andrew Tridgell
001068d26f
build: check for volatile
2010-04-06 20:26:43 +10:00
Andrew Tridgell
cfb4f55a7b
build: check size of types
...
allow name of SIZEOF test to be specified
2010-04-06 20:26:42 +10:00
Andrew Tridgell
f7ed3e544c
build: added CHECK_SIZEOF()
2010-04-06 20:26:42 +10:00
Andrew Tridgell
dd05b6512a
build: improve autoconf macros
...
- enable headers to be specified
- enable both forms of DECL check
- more libreplace checks
- more heimdal checks
- more sysdep checks
2010-04-06 20:26:42 +10:00
Andrew Tridgell
54e26fcb48
build: added CHECK_DECLS()
2010-04-06 20:26:42 +10:00