From 9685d6632a9ac5b786c147a935b319f92f10efb2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 21 Nov 2019 10:09:40 +0100 Subject: Cleanup: Fix flake8 warnings --- wscript | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wscript b/wscript index 0bc939c..5ea944d 100644 --- a/wscript +++ b/wscript @@ -82,17 +82,17 @@ def configure(conf): else: conf.check_cc(lib='X11', uselib_store='X11') if not Options.options.no_gl: + glx_fragment = """#include + int main(void) { glXSwapBuffers(0, 0); return 0; }""" + conf.check_cc(lib='GLX', uselib_store='GLX', mandatory=False) conf.check_cc(lib='GL', uselib_store='GL', mandatory=False) - conf.check_cc( - fragment="""#include - int main(void) { glXSwapBuffers(0, 0); return 0; }""", - lib='GLX' if conf.env.LIB_GLX else 'GL', - mandatory=False, - msg='Checking for GLX') + conf.check_cc(fragment=glx_fragment, + lib='GLX' if conf.env.LIB_GLX else 'GL', + mandatory=False, + msg='Checking for GLX') conf.env.HAVE_GL = conf.env.LIB_GL or conf.env.LIB_GLX - # Check for Cairo via pkg-config if not Options.options.no_cairo: autowaf.check_pkg(conf, 'cairo', -- cgit v1.2.1