summaryrefslogtreecommitdiffstats
path: root/scons
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-03-21 17:04:06 +0000
committerEric Engestrom <[email protected]>2018-03-23 11:44:21 +0000
commitcbee1bfb34274668a05995b9d4c78ddec9e5ea4c (patch)
treedad1c9037de2c77cc57dd5c5c531169f7174798b /scons
parentee2b943fa85755fe2565f12c625e41cd08a826f9 (diff)
meson/configure: detect endian.h instead of trying to guess when it's available
Cc: Maxin B. John <[email protected]> Cc: Khem Raj <[email protected]> Cc: Rob Herring <[email protected]> Suggested-by: Jon Turney <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Cc: <[email protected]>
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 75200b89c1f..6cb20efcbf4 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -354,6 +354,9 @@ def generate(env):
if check_header(env, 'xlocale.h'):
cppdefines += ['HAVE_XLOCALE_H']
+ if check_header(env, 'endian.h'):
+ cppdefines += ['HAVE_ENDIAN_H']
+
if check_functions(env, ['strtod_l', 'strtof_l']):
cppdefines += ['HAVE_STRTOD_L']