summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2014-08-20 14:40:23 +0800
committerKenneth Graunke <kenneth@whitecape.org>2014-10-30 02:26:19 -0700
commitb039dbfffd8eedef53a5ff9ae6b0ae09e6844d9c (patch)
treeed157dd7a9cda11a30383534abf40d860fb50261 /scons
parente3f20294799d727107012d40f6c973975084e4e6 (diff)
configure: check for xlocale.h and strtof
With the assumptions that xlocale.h implies newlocale and strtof_l. SCons is updated to define HAVE_XLOCALE_H on linux and darwin. Signed-off-by: Chia-I Wu <olv@lunarg.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index dd5ca56a2d..e3786d2318 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -301,6 +301,10 @@ def generate(env):
cppdefines += ['HAVE_ALIAS']
else:
cppdefines += ['GLX_ALIAS_UNSUPPORTED']
+
+ if env['platform'] in ('linux', 'darwin'):
+ cppdefines += ['HAVE_XLOCALE_H']
+
if env['platform'] == 'haiku':
cppdefines += [
'HAVE_PTHREAD',