Subject: OpenGL and autotools

Hello list,

i’m learning autotools and i want to know if there is ‘good’ way to
check if OpenGL is installed in any machine?
like AC_CHECK_LIB, or something like that.

Thanks a lot.

This really is not an OpenGL list. However, I’ll humor you.

There is a website somewhere around here that has a huge collection of
autoconf (AC) scripts, let me see…

http://autoconf-archive.cryp.to/

And here is OpenGL:

http://autoconf-archive.cryp.to/mdl_have_opengl.html

Be aware that on Mac OS X, the best way to include OpenGL and related
header files are like so:
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>

Hope this helps.On May 24, 2005, at 11:44 AM, David Roguin wrote:

Hello list,

i’m learning autotools and i want to know if there is ‘good’ way to
check if OpenGL is installed in any machine?
like AC_CHECK_LIB, or something like that.

Thanks a lot.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

…and for further humoring, here’s what we use in GEM (which is way
off-topic re: SDL):

dnl Check for OpenGL (Original or Mesa) (or osX-framework)
AC_CHECK_HEADERS(GL/gl.h GL/glu.h,
[AC_CHECK_HEADERS(OpenGL/gl.h OpenGL/glu.h,
[echo “OpenGL is mandatory”;exit 1])]
)

if test uname -s != Darwin;
then
AC_CHECK_LIB(GL, glInitNames,
AC_CHECK_LIB(MesaGL,glInitNames,
echo “OpenGL is mandatory”;exit 1)
)

dnl Check for GLU (Original or Mesa)
AC_CHECK_LIB(GLU, gluLookAt, ,
AC_CHECK_LIB(MesaGLU,gluLookAt,
echo “incomplete OpenGL (no GLU)”;exit 1)
)
fi

YMMV,
jamieOn May 24, 2005, at 8:02 PM, Donny Viszneki wrote:

This really is not an OpenGL list. However, I’ll humor you.

There is a website somewhere around here that has a huge collection
of autoconf (AC) scripts, let me see…

http://autoconf-archive.cryp.to/

And here is OpenGL:

http://autoconf-archive.cryp.to/mdl_have_opengl.html

Be aware that on Mac OS X, the best way to include OpenGL and
related header files are like so:
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>

Hope this helps.

On May 24, 2005, at 11:44 AM, David Roguin wrote:

Hello list,

i’m learning autotools and i want to know if there is ‘good’ way to
check if OpenGL is installed in any machine?
like AC_CHECK_LIB, or something like that.

Thanks a lot.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl