From 53de9b5be089bb486c9219085a89bd172207e81e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 22 Sep 2005 08:47:32 +0000 Subject: r10418: Fix comparison_fn_t test I busted. Add $HOME to the environment as some tools get confused if it isn't there. (This used to be commit b2f15b5c79970b7f0be752ccf5bb8a6b3c0e5d70) --- source4/SConstruct | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source4/SConstruct b/source4/SConstruct index 635562d027..3e9fd867a0 100644 --- a/source4/SConstruct +++ b/source4/SConstruct @@ -7,7 +7,7 @@ # Copyright (C) 2005 Jelmer Vernooij # Published under the GNU GPL -import cPickle, string +import cPickle, string, os # We don't care about NFS builds... @@ -45,6 +45,9 @@ if hostenv['developer']: # Pull in GNU extensions hostenv.Append(CPPDEFINES = {'_GNU_SOURCE': 1}) +# Some tools get confused if $HOME isn't defined +hostenv.Append(ENV={'HOME': os.environ['HOME']}) + # Store configuration data in a dictionary. def saveconfig(data): @@ -159,7 +162,7 @@ if hostenv['configure']: if conf.CheckType(t, type_headers): defines['HAVE_%s' % string.upper(t)] = 1 - if conf.CheckType('comparison_fn_t', type_headers): + if conf.CheckType('comparison_fn_t', '#include '): defines['HAVE_COMPARISON_FN_T'] = 1 if conf.CheckType('sig_atomic_t', '#include '): -- cgit