summaryrefslogtreecommitdiffstats
path: root/buildtools/wafsamba/samba_autoconf.py
Commit message (Collapse)AuthorAgeFilesLines
* build: make wafsamba CHECK_SIZEOF cross-compile friendlyGustavo Zacarias2014-05-061-12/+16
| | | | | | | | | | | | | | | Use the same trick as commit 0d9bb86293c9d39298786df095c73a6251b08b7e We do the same array trick iteratively starting from 1 (byte) by powers of 2 up to 32. The new 'critical' option is used to make the invocation die or not according to each test. The default is True since normally it's expected to find a proper result and should error out if not. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* wafsamba: replace dots in library namesRalph Boehme2014-04-081-1/+1
| | | | | | | | | | | | Certain libraries use a version number with a dot in the library name, eg libtracker-sparql-0.16. The dot is passed to the HAVE_LIBXXX macro but dots aren't allowed in C macros, compiler diagnostic: warning: missing whitespace after the macro name Signed-off-by: Ralph Boehme <rb@sernet.de> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* wafsamba: add an optional allow_warnings(default=True) to CURRENT_CFLAGS()Stefan Metzmacher2014-04-021-3/+6
| | | | | | | | -Werror is now remembered in PICKY_CFLAGS and only added if allow_warnings is False. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* wafsamba: split out a conf.ADD_NAMED_CFLAGS() functionStefan Metzmacher2014-04-021-4/+11
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* wafsamba: use -Werror=declaration-after-statement if availableStefan Metzmacher2014-04-021-1/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* wafsamba: use multiple conf.ADD_CFLAGS() lines for developer CFLAGSStefan Metzmacher2014-04-021-5/+20
| | | | | | | We first check for warn flags then for error flags. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* wafsamba: add CONFIG_RESET()Stefan Metzmacher2014-03-241-0/+8
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* build: warn about mixed declarations and codeDavid Disseldorp2014-02-011-1/+1
| | | | | | | | | | | Attempt to use the -Wdeclaration-after-statement cflag when building in developer mode. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Feb 1 20:20:35 CET 2014 on sn-devel-104
* More generic check for OpenBSD platformVadim Zhukov2013-05-171-2/+2
| | | | | | | | | | | | | | | | OpenBSD versioning is different from many other projects, and, say, 5.0 does not differ from 4.9 more than from 5.1. So the right approach will be to check that platform name starts with "openbsd" instead. This is also the thing OpenBSD developers do when patching other software, so this patch is consistent with already existing practicies. BUG: https://bugzilla.samba.org/show_bug.cgi?id=9888 Reviewed-by: Lars Müller <lars@samba.org> Reviewed-by: Björn Jacke <bj@sernet.de> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri May 17 17:58:16 CEST 2013 on sn-devel-104
* wafsamba: add CHECK_VALUEOF() helperStefan Metzmacher2013-03-011-1/+19
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* buildtools/wafsamba: only display 'ok' if the result is TrueStefan Metzmacher2012-10-191-2/+2
| | | | | | | | Otherwise we print the raw value. metze Signed-off-by: Michael Adam <obnox@samba.org>
* s4-python: Various formatting fixes.Jelmer Vernooij2012-09-271-5/+5
| | | | | | * Trailing whitespace * use of "==" where "is" should be used * double spaces
* build: Ensure -Werror=format works with -Wformat=2 on NULL format stringsAndrew Bartlett2012-08-171-1/+1
| | | | | | | | | | | | | This should fix the build on some gcc versions, (noticed on FreeBSD by Volker). We want the protection of -Werror=format without the errors extending to the format string itself being NULL, because that is valid for ldb_search(). Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Aug 17 14:50:16 CEST 2012 on sn-devel-104
* build: Make -Werror=format check only run where NULL is still acceptedAndrew Bartlett2012-08-061-3/+18
| | | | | | | | This is needed because ldb_search() allows a NULL parameter for the format string and this needs to be permitted by the format string checker before we want to make this error fatal. Andrew Bartlett
* build: Add more -Werror flags now the tree is clean of these errorsAndrew Bartlett2012-07-301-1/+1
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Jul 30 08:23:24 CEST 2012 on sn-devel-104
* build: Add -Werror=address to the developer buildAndrew Bartlett2012-07-241-1/+1
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* wafsamba: try to fix the build on AIX with xlc_rStefan Metzmacher2012-06-101-1/+10
| | | | | | | | | | | | | | | bld.env['CPP'] can be 'None' or '[]', bld.CONFIG_SET("CPP") should return False File "./buildtools/wafsamba/samba_pidl.py", line 131, in SAMBA_PIDL_LIST bld.SAMBA_PIDL(name, p, options=options, output_dir=output_dir, symlink=symlink, generate_tables=generate_tables) File "./buildtools/wafsamba/samba_pidl.py", line 65, in SAMBA_PIDL cpp = 'CPP="%s"' % bld.CONFIG_GET("CPP")[0] IndexError: list index out of range metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sun Jun 10 20:18:49 CEST 2012 on sn-devel-104
* build: use include paths for pkg-config found librariesAndrew Bartlett2012-04-111-4/+12
|
* buildtools: Add --enable-debug optionAndrew Bartlett2012-04-111-0/+4
|
* build: Fix build issue on OpenBSD 5.xAmitay Isaacs2012-03-161-2/+2
| | | | | | | Do not use -Wl,-no-undefined flag on OpenBSD 5.x (tested on 5.0) Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Mar 16 05:14:03 CET 2012 on sn-devel-104
* waf: Use libraries when building.Jelmer Vernooij2012-02-191-2/+4
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Feb 19 06:27:55 CET 2012 on sn-devel-104
* Use uselib in CHECK_HEADER.Jelmer Vernooij2012-02-191-0/+3
|
* library_flags: Leave setting of CPPPATH to waf too.Jelmer Vernooij2012-02-191-4/+1
|
* build: fixed a link order problemAndrew Tridgell2012-02-021-1/+3
| | | | | | | | | | | | | | | | | this fixes a problem found by obnox where the -L path for CUPS was put before the path to internal libraries. The install path for CUPS happened to be the same as for a old system libtevent, which meant we linked against the old tevent instead of the correct one from our private library paths. The problem was that we were adding the -L paths directly to the ldflags. The waf core code (in ccroot.py) only adds more paths if they are not there already. So by adding it in ldflags it was not added at the end of the list. The fix is just to not do the -L processing in wafsamba and let the waf core do it in the right order Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Feb 2 06:54:42 CET 2012 on sn-devel-104
* waf: Factor checking for undefined symbol flags out into separate method.Jelmer Vernooij2011-11-131-0/+12
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 13 19:38:38 CET 2011 on sn-devel-104
* build: Reduce build systems to just top level waf and autoconfAndrew Bartlett2011-10-071-2/+1
| | | | | | | | | The s3-waf build system is a key component of the top level build, but with this commit is is no longer available directly. This reduces the number of build system combinations in master as we prepare for the Samba 4.0 release. Andrew Bartlett
* Add -fno-common where supported (WAF only)Rusty Russell2011-05-101-1/+1
| | | | | | | | | | | | | | | Normally under UNIX, uninitialized non-static global variables get placed in the "common" section, where they are merged at link time. This means if two C files define "int debug", they will end up referring to the same variable. Or if one does "float level" and the other does "int level" you'll get an accidental union. Such bugs can be hard to track down; fortunately GCC offers -fno-common to disable this feature. It didn't reveal any places which need fixing, however). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* wafsamba: add -Wcast-qual only to the toplevel (s4) build.Günther Deschner2011-03-191-1/+3
| | | | | | | | | | In samba3 there are a lot of warnings generated that make it a bit hard to track and monitor other build warnings. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Sat Mar 19 00:58:25 CET 2011 on sn-devel-104
* build: make ADD_LDFLAGS() returns the flags that were addedAndrew Tridgell2011-02-181-1/+3
| | | | | | | this will be used by the s3 top level build to work out how to undo the effects of -Wl,-no-undefined Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: library_flags() doesn't only operate on conf objectsAndrew Tridgell2011-02-181-7/+8
| | | | | | use a better name for the first argument Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-waf: Skip header-not-found cache if a library is specified, as it may provideJelmer Vernooij2011-01-251-1/+1
| | | | | | | | | additional C flags. Tridge, please check. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Jan 25 03:59:32 CET 2011 on sn-devel-104
* buildtools/wafsamba: import 'sys' and 'Logs' if we use themStefan Metzmacher2011-01-051-1/+1
| | | | | | | We should avoid generating a backtrace in a normal error case, just because sys.exit(1) isn't known. metze
* build: use CPP and CC values when calling pidlMatthieu Patou2010-12-101-0/+9
|
* waf: added -Wmissing-prototypes to buildAndrew Tridgell2010-12-081-1/+1
| | | | | | | | This ensures that we always have a prototype for any function we declare Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Dec 8 06:12:07 CET 2010 on sn-devel-104
* waf: fixed the build with a space in the source directoryAndrew Tridgell2010-11-211-2/+3
|
* build: check that if we provide -liconv we can build shared libsMatthieu Patou2010-10-311-2/+13
| | | | | | | | | On Solaris with sun studio compiling an executable with -liconv even if there is no libiconv.so or libiconv.a will work but not for a shared lib. This problem leads to build problem as the linker won't be able to find libiconv when building shared lib as liconv is wrongly specified
* waf: added env.DEVELOPER_MODE flagAndrew Tridgell2010-10-301-0/+1
| | | | | | | this makes it easier to add project rules that are only run in developer mode Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: moved the -Wl,-no-undefined flags to source4 and ldbAndrew Tridgell2010-10-251-2/+0
| | | | | | | | | | moved it out of the general waf build as the s3 waf build cannot yet handle linking with -Wl,-no-undefined Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Oct 25 01:12:15 UTC 2010 on sn-devel-104
* waf: check the linker accepts a set of ldflags before using themAndrew Tridgell2010-10-211-1/+10
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Oct 21 08:45:49 UTC 2010 on sn-devel-104
* waf: fixed the handling of -Wl,-no-undefinedAndrew Tridgell2010-10-211-8/+4
| | | | | this flag was not being propogated to our link rules, so we were not in fact enforcing no undefined symbols in libraries.
* waf: put -Wl,-no-undefined only in the linker flags, not when compiling CAndrew Tridgell2010-10-191-1/+26
|
* wafsamba/developer: Forbid shared objects with unresolved symbols, ifJelmer Vernooij2010-10-131-1/+1
| | | | | | | the linker supports such a flag. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Oct 13 12:52:22 UTC 2010 on sn-devel-104
* waf: fixed the problem with com_err on Ubuntu 9.04Andrew Tridgell2010-10-061-16/+18
| | | | | | | | this changes CHECK_BUNDLED_SYSTEM() to honor the checkfunctions and headers options even for libraries found with pkgconfig. Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Oct 6 05:06:42 UTC 2010 on sn-devel-104
* wafsamba: Allow manually specifying cflags/ldflags for system libraries.Jelmer Vernooij2010-06-191-5/+6
|
* build: Also replace '-' by '_' when creating header definesKai Blin2010-05-301-0/+1
| | | | Tridge, please check
* buildtools/wafsamba: inline defines during configure into the testsStefan Metzmacher2010-04-241-7/+4
| | | | | | | | | | | | There 2 reasons for this change: - This is how autoconf tests work and it makes config.log much more useful - The waf c preprocessor ignored changes in bin/default/__confdefs.h when using waf configure -C, because is outside of the configure tests project path and handled like a system header. Many thanks to ita for pointing out the fix. metze
* build: fixed uname output to be on target machine when cross compilingAndrew Tridgell2010-04-211-3/+13
| | | | | this also makes the output of define_ret configure tests show up in the configure output
* build: added --cross-answers supportAndrew Tridgell2010-04-191-1/+2
| | | | | | | This allows you to easily cross-compile even without a --cross-execute emulator See http://wiki.samba.org/index.php/Waf#cross-compiling for details
* build: added ABI checking to the WAF buildAndrew Tridgell2010-04-181-1/+3
| | | | See http://wiki.samba.org/index.php/Waf#ABI_Checking for details
* buildtools/wafsamba: make sure CHECK_FUNC() and CHECK_VARIABLE() work with ↵Stefan Metzmacher2010-04-131-2/+6
| | | | | | | | -O3 in the CFLAGS 'CFLAGS="-O3" waf configure' was not detecting dlopen() needs -ldl. metze