--- extconf.rb Sat Aug 16 23:04:32 2003
+++ ../opengl-0.32c-patched/extconf.rb Tue Jan 27 22:25:34 2004
- idir, ldir = dir_config("x11", "/usr/X11R6")
- have_library("Xi", "XAllowDeviceEvents")
- have_library("Xext", "XMITMiscGetBugMode")
- have_library("Xmu", "XmuAddCloseDisplayHook")
- have_library("X11", "XOpenDisplay")
-dir_config("opengl", idir, ldir)
-dir_config("glut", idir, ldir)
def have_ogl_library(lib, func = 'main')
- have_library(lib, func) || have_library("Mesa"+lib, func)
$objs = ["glu.o", "ogl.o", "rbogl.o"]
-if have_library(glut_libname)
- create_makefile("glut")
- File.rename("Makefile", "Makefile.glut")
- modules = "glut.#{CONFIG['DLEXT']} " + modules
+File.rename("Makefile", "Makefile.glut")
+modules = "glut.#{CONFIG['DLEXT']} " + modules
open("Makefile", "w") {|f|
v = $nmake ? '{$(srcdir)}' : ''