version 1.78, 2002/01/21 08:19:54
|
version 1.79, 2002/02/11 15:44:50
|
Line 543 AC_ARG_WITH(GL, [ --with-g
|
Line 543 AC_ARG_WITH(GL, [ --with-g
|
dnl |
dnl |
dnl GL canvas is disabled by default |
dnl GL canvas is disabled by default |
dnl |
dnl |
dnl needs Opengl, glut, glu, |
dnl needs Opengl, glu, Xft (xfree 4 font server) |
dnl needs GTK |
dnl needs GTK |
dnl text WILL need freetype2, ftgl |
dnl text WILL need freetype2, ftgl |
dnl GL is for opengl |
dnl GL is for opengl |
dnl Xmu is for a linking in Glut |
|
dnl Glu is for text drawing (until we switch) |
dnl Glu is for text drawing (until we switch) |
dnl GLU is for tesselation algortihms (until we extract it from this lib) |
dnl GLU is for tesselation algortihms (until we extract it from this lib) |
dnl (tesselation is used for polygons with holes in it...) |
dnl (tesselation is used for polygons with holes in it...) |
Line 573 if test "$with_gl" = "yes" ; then
|
Line 572 if test "$with_gl" = "yes" ; then
|
gl_inc="yes" |
gl_inc="yes" |
break |
break |
fi |
fi |
done |
done |
for ac_dir in \ |
|
/usr/include/GL \ |
|
/usr/include \ |
|
/usr/X11R6/include/GL \ |
|
/usr/X11R6/include \ |
|
/usr/local/include \ |
|
/usr/local/include/GL \ |
|
; \ |
|
do if test -r "$ac_dir/glut.h" ; then |
|
glut_inc="yes" |
|
break |
|
fi |
|
done |
|
for ac_dir in \ |
for ac_dir in \ |
/usr/include/GL \ |
/usr/include/GL \ |
/usr/include \ |
/usr/include \ |
Line 621 if test "$with_gl" = "yes" ; then
|
Line 607 if test "$with_gl" = "yes" ; then
|
GL_INCLUDES= |
GL_INCLUDES= |
GL_LIBRARIES= |
GL_LIBRARIES= |
fi |
fi |
if test "$glut_inc" = "" ; then |
|
AC_MSG_WARN(Glut headers (glut.h) not found !!) |
|
AC_MSG_WARN(Disabling opengl build !) |
|
with_gl="no" |
|
GL_OPTIONS= |
|
GL_INCLUDES= |
|
GL_LIBRARIES= |
|
fi |
|
if test "$glu_inc" = "" ; then |
if test "$glu_inc" = "" ; then |
AC_MSG_WARN(Glu headers (glu.h) not found !!) |
AC_MSG_WARN(Glu headers (glu.h) not found !!) |
AC_MSG_WARN(Disabling opengl build !) |
AC_MSG_WARN(Disabling opengl build !) |
Line 646 if test "$with_gl" = "yes" ; then
|
Line 624 if test "$with_gl" = "yes" ; then
|
GL_LIBRARIES= |
GL_LIBRARIES= |
fi |
fi |
if test "$gl_inc" = "yes" ; then |
if test "$gl_inc" = "yes" ; then |
if test "$glut_inc" = "yes" ; then |
if test "$glu_inc" = "yes" ; then |
if test "$glu_inc" = "yes" ; then |
if test "$gtkgl_inc" = "yes" ; then |
if test "$gtkgl_inc" = "yes" ; then |
GL_INCLUDES="-I$ac_dir " |
GL_INCLUDES="-I$ac_dir " |
GL_LIBRARIES=" -lXmu -lXft -lGL -lGLU -lgtkgl " |
GL_LIBRARIES=" -lXmu -lGL -lglut -lGLU -lgtkgl " |
GL_OPTIONS=-D_GL |
GL_OPTIONS=-D_GL |
no_motif=yes |
no_motif=yes |
|
fi |
|
fi |
fi |
fi |
fi |
fi |
fi |