diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-12 22:06:51 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-12 23:13:30 +1000 |
commit | d12605c679cf4f2c5057c548de1210e7fa03a2f1 (patch) | |
tree | 55947166783069670fcded9cc18d392433482946 /buildtools/wafsamba/samba_autoconf.py | |
parent | 83312a9e501ebbee15b4fd2353330880496f4add (diff) | |
download | samba-d12605c679cf4f2c5057c548de1210e7fa03a2f1.tar.gz samba-d12605c679cf4f2c5057c548de1210e7fa03a2f1.tar.bz2 samba-d12605c679cf4f2c5057c548de1210e7fa03a2f1.zip |
build: added cross-compilation configure options
this enables use of a cross-compilation emulator, so configure tests
run on an emulator of the target platform
Diffstat (limited to 'buildtools/wafsamba/samba_autoconf.py')
-rw-r--r-- | buildtools/wafsamba/samba_autoconf.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index d12fb9d9cd..cbb10a27ca 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -4,6 +4,7 @@ import Build, os, Options, preproc, Logs import string from Configure import conf from samba_utils import * +import samba_cross missing_headers = set() @@ -367,6 +368,8 @@ def CHECK_CODE(conf, code, define, cflags = TO_LIST(cflags) cflags.extend(ccflags) + exec_args = conf.SAMBA_CROSS_ARGS() + ret = conf.check(fragment=fragment, execute=execute, define_name = define, @@ -378,6 +381,7 @@ def CHECK_CODE(conf, code, define, type=type, msg=msg, quote=quote, + exec_args=exec_args, define_ret=define_ret) if not ret and CONFIG_SET(conf, define): # sometimes conf.check() returns false, but it |