diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-09-29 14:28:57 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-09-29 14:50:00 +1000 |
commit | 006bdc0be0bf2ef70b3eb24d679bd49f6d8079fd (patch) | |
tree | d6f217749a26f93a805afefa1e2b9235a6437d01 /source3/wscript | |
parent | 931ed2509d93110b525f763ffb15ee3feff87fa0 (diff) | |
download | samba-006bdc0be0bf2ef70b3eb24d679bd49f6d8079fd.tar.gz samba-006bdc0be0bf2ef70b3eb24d679bd49f6d8079fd.tar.bz2 samba-006bdc0be0bf2ef70b3eb24d679bd49f6d8079fd.zip |
build: Fix quota tests, including move of sysquotas.c to the top level
This correctly detects quotas on FreeBSD
Andrew Bartlett
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source3/wscript b/source3/wscript index 3815c7ccdb..336b277a56 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1238,23 +1238,24 @@ main() { if not conf.CHECK_CODE(''' #define HAVE_QUOTACTL_4A 1 #define AUTOCONF_TEST 1 - #include "confdefs.h" - #include "${srcdir-.}/../tests/sysquotas.c" + #include "../tests/sysquotas.c" ''', + cflags=conf.env['WERROR_CFLAGS'], define='HAVE_QUOTACTL_4A', msg='for QUOTACTL_4A: long quotactl(int cmd, char *special, qid_t id, caddr_t addr)', execute=True, - local_include=False): + addmain=False): + conf.CHECK_CODE(''' #define HAVE_QUOTACTL_4B 1 #define AUTOCONF_TEST 1 - #include "confdefs.h" - #include "${srcdir-.}/../tests/sysquotas.c" + #include "../tests/sysquotas.c" ''', + cflags=conf.env['WERROR_CFLAGS'], define='HAVE_QUOTACTL_4B', msg='for QUOTACTL_4B: int quotactl(const char *path, int cmd, int id, char *addr)', execute=True, - local_include=False) + addmain=False) conf.CHECK_CODE(''' clnt_create("", RQUOTAPROG, RQUOTAVERS, "udp"); |