96550473f7
* NEW: Put custom autoconf macros in the "m4" directory. * NEW: Drop libltdl. [GB.IMAGE] * NEW: Image.Resize() and Image.Mirror() has been put in common there. * NEW: Image.Flip() has been removed. * NEW: Image.Copy() and Image.Resize() now supports 24-bits images. [GB.OPENGL] * NEW: Depends on gb.image now. * NEW: Texture images can have any format now. git-svn-id: svn://localhost/gambas/trunk@2236 867c0c6c-44f3-4631-809d-bfa615b0a4ec
29 lines
705 B
Text
29 lines
705 B
Text
dnl ---- configure.ac for gb.opengl
|
|
|
|
AC_INIT(configure.ac)
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
GB_INIT(gb.opengl)
|
|
AC_PROG_LIBTOOL
|
|
|
|
dnl x/glx is currently needed, will be optional when moved to other platform
|
|
AC_PATH_X
|
|
AC_PATH_XTRA
|
|
AC_CHECK_HEADER(GL/glx.h,
|
|
AC_DEFINE(HAVE_X11_GLX, 1, [Target system is X11/glx]),
|
|
[ AC_MSG_WARN([glx.h not found. Check 'config.log' for more details.])
|
|
touch DISABLED])
|
|
|
|
GB_COMPONENT_SEARCH(
|
|
opengl,
|
|
OPENGL,
|
|
[OpenGL support component],
|
|
[src],
|
|
gl glu,
|
|
[GB_FIND(gl.h glu.h, /usr /usr/X11R6 /usr/local, include include/GL)],
|
|
[GB_FIND(libGL.$SHLIBEXT libGLU.$SHLIBEXT, /usr /usr/X11R6 /usr/local, lib)],
|
|
[-lGL -lGLU])
|
|
|
|
AC_OUTPUT( \
|
|
Makefile \
|
|
src/Makefile \
|
|
)
|