30 |
|
conf = SConf(env) |
31 |
|
if conf.CheckLibWithHeader('GL', 'GL/gl.h', 'C', autoadd=0): |
32 |
|
env['OGL'] = 1 |
33 |
< |
env = conf.Finish() |
33 |
> |
elif env.has_key('X11INCLUDE'): # sometimes found there |
34 |
> |
incdir = env['X11INCLUDE'] |
35 |
> |
libdir = env['X11LIB'] |
36 |
> |
env.Append(CPPPATH=[incdir]) # add temporarily |
37 |
> |
#env.Append(LIBPATH=[libdir]) |
38 |
> |
if conf.CheckLibWithHeader('GL', 'GL/gl.h', 'C', autoadd=0): |
39 |
> |
env['OGL'] = 1 |
40 |
> |
env.Replace(OGLINCLUDE=incdir) |
41 |
> |
env.Replace(OGLLIB=libdir) |
42 |
> |
if incdir: env['CPPPATH'].remove(incdir) # not needed for now |
43 |
> |
#if libdir: env['LIBPATH'].remove(libdir) |
44 |
> |
conf.Finish() |
45 |
|
|
46 |
|
|
47 |
|
|