OpenAL builds despite --disable-openal (was: Error building GHC: can't locate import `Package')

Volker Stolz stolz at i2.informatik.rwth-aachen.de
Mon Dec 20 11:43:45 EST 2004


In gmane.comp.lang.haskell.glasgow.user, you wrote:
> It shouldn't even build OpenOL, however, because I ran
> ./configure with "--disable-openal".
>
> I see the flag in "libraries/config.log", so it has been
> passed through alright. But ${SUBDIRS} contains the "OpenAL"
> directory nonetheless afterwards.

"" is neq to "no", so the Makefile tries to build it. Fix attached.

Index: configure.ac
===================================================================
RCS file: /home/cvs/root/fptools/libraries/OpenAL/configure.ac,v
retrieving revision 1.8
diff -u -r1.8 configure.ac
--- configure.ac        17 Dec 2004 00:09:08 -0000      1.8
+++ configure.ac        20 Dec 2004 16:42:20 -0000
@@ -10,10 +10,10 @@

 # Shall we build this package at all?
 FP_ARG_OPENAL
-if test x"$enable_openal" = xyes; then
-
 # We set this to "yes" later when we have found OpenAL libs and headers.
 AL_BUILD_PACKAGE=no
+if test x"$enable_openal" = xyes; then
+
 AC_SUBST([AL_BUILD_PACKAGE])

 # The following test for the OpenAL library is a bit of a hack, but gives nice
-- 
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME


More information about the Glasgow-haskell-users mailing list