configure.in
changeset 978 3b1ba22f5a28
parent 973 795ac5fbe260
child 989 475166d13b44
     1.1 --- a/configure.in	Mon Nov 15 23:34:56 2004 +0000
     1.2 +++ b/configure.in	Wed Nov 17 23:13:15 2004 +0000
     1.3 @@ -1129,6 +1129,19 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +dnl Check for Mesa offscreen rendering
     1.8 +CheckOSMesa()
     1.9 +{
    1.10 +    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
    1.11 +        AC_CHECK_HEADER(GL/osmesa.h, have_osmesa_hdr=yes)
    1.12 +        AC_CHECK_LIB(OSMesa, OSMesaCreateContext, have_osmesa_lib=yes, have_osmesa_lib=no, -lm)
    1.13 +        if test x$have_osmesa_hdr = xyes -a x$have_osmesa_lib = xyes; then
    1.14 +    	    CFLAGS="$CFLAGS -DHAVE_OPENGL"
    1.15 +			SYSTEM_LIBS="$SYSTEM_LIBS -lOSMesa"
    1.16 +        fi
    1.17 +    fi
    1.18 +}
    1.19 +
    1.20  dnl See if we can use the new unified event interface in Linux 2.4
    1.21  CheckInputEvents()
    1.22  {
    1.23 @@ -2572,6 +2585,7 @@
    1.24          CheckAtariAudio
    1.25          CheckAtariLdg
    1.26          CheckPTH
    1.27 +		CheckOSMesa
    1.28          # Set up files for the audio library
    1.29          if test x$enable_threads = xyes -a x$enable_pth = xyes; then
    1.30              if test x$enable_audio = xyes; then