I think there's a bit of confusion between what's required to compile and
what to run an OpenGL program. The gl.h file is only required at compile
time, defines various functions and constants, and will be largely
functionally similar between different versions of OpenGL or Mesa (apart
from perhaps some extensions that analysis is unlikely to use).
You also need the OpenGL libraries present at compile time for the linker
to link against, and with appropriate linker flags you can direct the
linker to pick a particular one at that time.
However, analysis is typically compiled to use shared libraries and so at
run time it will usually link against the system default shared library
that matches (on Macs that looks like the vendor-supplied hardware
accelerated library, which is probably the best option). If you
specifically want to use different OpenGL libraries installed off the
standard shared library search path then you will need to get clever with
the LD_LIBRARY_PATH environment variable or equivalent.
You can check which libraries are really being used by a program using
lsof, but if you're seeing the ATI vendor string on your Mac, you know
you're getting the system library, whether you compiled against Mesa or
Dr. Brian O. Smith ---------------------- B Smith at bio gla ac uk
Division of Biochemistry & Molecular Biology,
Institute Biomedical & Life Sciences,
Joseph Black Building, University of Glasgow, Glasgow G12 8QQ, UK.
Tel: 0141 330 5167/6459/3089 Fax: 0141 330 8640