From e3dc3922399305df9c8320586c9add3b33f846d8 Mon Sep 17 00:00:00 2001 From: panne Date: Tue, 2 Dec 2003 19:16:44 +0000 Subject: [PATCH] [project @ 2003-12-02 19:16:41 by panne] Added the first pieces of an OpenAL binding which has been of my disk for quite a while. Note that it is built by default when a usable OpenAL library is found, but this could be disabled via --disable-openal on the configure commandline. Similar behaviour should probably be the default for all optional libraries. Note that I have created a new hierarchy rooted at "Sound", the existing hierarchies didn't fit. --- configure.ac | 15 ++++++++++++++- mk/config.mk.in | 4 ++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c2b79d6..7bc993f 100644 --- a/configure.ac +++ b/configure.ac @@ -619,7 +619,7 @@ AC_ARG_ENABLE(objectio, ) AC_SUBST(GhcLibsWithObjectIO) -dnl ** Enable the building of the OpenGL/GLUT binding in hslibs? +dnl ** Enable the building of the OpenGL/GLUT binding? dnl -------------------------------------------------------------- AC_ARG_ENABLE(hopengl, [ --enable-hopengl @@ -642,6 +642,19 @@ fi AC_SUBST([GhcLibsWithOpenGL]) AC_SUBST([GhcLibsWithGLUT]) +dnl ** Enable the building of the OpenAL binding? +dnl -------------------------------------------------------------- +AC_ARG_ENABLE([openal], + AC_HELP_STRING([--enable-openal], + [Build OpenAL binding [[default=autodetect]]]), + [GhcLibsWithOpenAL=$enableval], + [GhcLibsWithOpenAL=yes]) + +# This is silly! Alas, "YES" and "NO" are currently our standard... +GhcLibsWithOpenAL=`echo $GhcLibsWithOpenGL | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + +AC_SUBST([GhcLibsWithOpenAL]) + dnl ** .NET interop support? dnl -------------------------------------------------------------- AC_ARG_ENABLE(dotnet, diff --git a/mk/config.mk.in b/mk/config.mk.in index 7aa1976..daf0b4d 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -397,6 +397,10 @@ GhcLibsWithOpenGL=@GhcLibsWithOpenGL@ GL_CFLAGS=@GL_CFLAGS@ GL_LIBS=@GL_LIBS@ +# Build the Haskell OpenAL binding? +# +GhcLibsWithOpenAL=@GhcLibsWithOpenAL@ + # Build the Haskell GLUT binding? # GhcLibsWithGLUT=@GhcLibsWithGLUT@ -- 1.7.10.4