ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/build_utils/find_libs.py
(Generate patch)

Comparing ray/build_utils/find_libs.py (file contents):
Revision 1.1 by schorsch, Tue Oct 21 19:27:28 2003 UTC vs.
Revision 1.2 by schorsch, Sun Jul 4 12:08:47 2004 UTC

# Line 30 | Line 30 | def find_gl(env):
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines