summaryrefslogtreecommitdiffstats
path: root/platform/x11/detect.py
diff options
context:
space:
mode:
Diffstat (limited to 'platform/x11/detect.py')
-rw-r--r--platform/x11/detect.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 90122eef4a..3ebefb640c 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -69,7 +69,6 @@ def get_flags():
return [
('builtin_zlib', 'no'),
- ('glew', 'yes'),
("openssl", "system"),
('freetype','yes'), # use system freetype
('libpng', 'system'),
@@ -179,6 +178,9 @@ def configure(env):
env.Append(CPPFLAGS=['-DOPENGL_ENABLED'])
+ if (env["glew"] == "system"):
+ env.ParseConfig('pkg-config glew --cflags --libs')
+
if os.system("pkg-config --exists alsa")==0:
print("Enabling ALSA")
env.Append(CPPFLAGS=["-DALSA_ENABLED"])