Search
lxdream.org :: lxdream/configure.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 635:76c63aac3590
prev614:a2d239d4438a
next1066:ddffe9d2b332
author nkeynes
date Sun Mar 16 04:49:19 2008 +0000 (16 years ago)
branchlxdream-render
permissions -rw-r--r--
last change Use max-z rather than min-z for tri sort (still wrong for some cases of course,
but consistent with prior behaviour)
file annotate diff log raw
1.1 --- a/configure.in Mon Jan 28 02:38:09 2008 +0000
1.2 +++ b/configure.in Sun Mar 16 04:49:19 2008 +0000
1.3 @@ -22,6 +22,18 @@
1.4 [if test "$enableval" == "yes"; then
1.5 AC_DEFINE(ENABLE_WATCH, 1, [Enable watchpoints])
1.6 fi] )
1.7 +AC_ARG_WITH( osmesa,
1.8 + AS_HELP_STRING( [--with-osmesa], [Build with the osmesa GL library (software rendering)]),
1.9 + [], [with_osmesa=no])
1.10 +
1.11 +AS_IF([test "x$with_osmesa" != xno], [
1.12 + AC_CHECK_LIB([OSMesa], [OSMesaCreateContext], [],
1.13 + [AC_MSG_FAILURE( [--with-osmesa was given, but OSMesa library could not be found])])
1.14 + AC_CHECK_HEADER([GL/osmesa.h], [],
1.15 + [AC_MSG_FAILURE( [--with-osmesa was given, but osmesa.h could not be found])])
1.16 + ])
1.17 +AM_CONDITIONAL(OSMESA_DRIVER, [test "x$with_osmesa" != xno])
1.18 +
1.19 dnl ----------- Check for mandatory dependencies --------------
1.20 dnl Building on MAC?
1.21 AC_CHECK_HEADER([Carbon/Carbon.h], [
1.22 @@ -41,6 +53,7 @@
1.23 exit 1])
1.24
1.25 if test "$APPLE_BUILD" != 'yes'; then
1.26 +if test "x$with_osmesa" == "xno"; then
1.27 AC_CHECK_LIB(GL, glXQueryVersion, [], [
1.28 echo "The OpenGL library (libGL.so) could not be found, but is required."
1.29 exit 1])
1.30 @@ -48,6 +61,7 @@
1.31 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
1.32 exit 1])
1.33 fi
1.34 +fi
1.35
1.36 dnl Check for GTK (required for unix systems)
1.37 PKG_CHECK_MODULES(GTK, gtk+-2.0, [
.