summaryrefslogtreecommitdiff
path: root/source4/lib/replace/SConscript
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-09-21 05:39:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:33 -0500
commitd191c7d9932b8e8ad96c4345a6ceca67326806ac (patch)
tree4849f856d446b363a64ab0e5900ac03db244e109 /source4/lib/replace/SConscript
parent60cb7a42aa5a1cef0e65dee0a8efbde9341dcaf9 (diff)
downloadsamba-d191c7d9932b8e8ad96c4345a6ceca67326806ac.tar.gz
samba-d191c7d9932b8e8ad96c4345a6ceca67326806ac.tar.bz2
samba-d191c7d9932b8e8ad96c4345a6ceca67326806ac.zip
r10377: Save configuration stuff to sconf.cache so it isn't annoyingly run
at every single build. Run 'scons configure=1' or delete sconf.cache to force checks to be re-run. Jelmer, I think this stuff is cached in the .sconf_cache directory but the message is still displayed and it looks like it caches the compiled test object file not the actual result of the test. (This used to be commit 9d001dc083937bbf5642af90bc8a8b1a27825de0)
Diffstat (limited to 'source4/lib/replace/SConscript')
-rw-r--r--source4/lib/replace/SConscript13
1 files changed, 7 insertions, 6 deletions
diff --git a/source4/lib/replace/SConscript b/source4/lib/replace/SConscript
index b63b544f8a..84088db162 100644
--- a/source4/lib/replace/SConscript
+++ b/source4/lib/replace/SConscript
@@ -1,11 +1,12 @@
Import('hostenv')
-conf = Configure(hostenv)
-#FIXME: conf.CheckBrokenInetNtoa()
-for f in ['strtoull','__strtoull','strtouq','strtoll','__strtoll','strtoq',
- 'seteuid','setresuid','setegid','setresgid']:
- conf.CheckFunc(f,'c')
-conf.Finish()
+if hostenv['configure']:
+ conf = Configure(hostenv)
+ #FIXME: conf.CheckBrokenInetNtoa()
+ for f in ['strtoull','__strtoull','strtouq','strtoll','__strtoll','strtoq',
+ 'seteuid','setresuid','setegid','setresgid']:
+ conf.CheckFunc(f,'c')
+ conf.Finish()
hostenv.StaticLibrary('repdir', ['repdir/repdir.c'])
hostenv.StaticLibrary('replace', ['replace.c', 'snprintf.c'])