610
|
1 |
--- xpilot-ng-4.7.2.orig/configure.ac Thu Sep 15 19:35:33 2005
|
|
2 |
+++ xpilot-ng-4.7.2/configure.ac Sat Oct 27 21:14:25 2007
|
|
3 |
@@ -314,21 +314,31 @@
|
|
4 |
dnl OpenAL client sound support.
|
|
5 |
if test x$enable_sound = xyes; then
|
|
6 |
have_openal=no
|
|
7 |
+ have_alut=no
|
|
8 |
+ have_sound=no
|
|
9 |
AC_CHECK_LIB(
|
|
10 |
openal,
|
|
11 |
- alutInit,
|
|
12 |
+ main,
|
|
13 |
[have_openal=yes],
|
|
14 |
[])
|
|
15 |
+ AC_CHECK_LIB(
|
|
16 |
+ alut,
|
|
17 |
+ main,
|
|
18 |
+ [have_alut=yes],
|
|
19 |
+ [])
|
|
20 |
if test x$have_openal = xyes; then
|
|
21 |
- SOUND_LIBS=-lopenal
|
|
22 |
- AC_DEFINE([SOUND], 1, [Define to 1 if you want OpenAL sound.])
|
|
23 |
- else
|
|
24 |
- echo "*** Client sound disabled. Check that you have OpenAL installed."
|
|
25 |
+ if test x$have_alut = xyes; then
|
|
26 |
+ have_sound=yes
|
|
27 |
+ SOUND_LIBS="-lopenal -lalut"
|
|
28 |
+ AC_DEFINE([SOUND], 1, [Define to 1 if you want OpenAL sound.])
|
|
29 |
+ else
|
|
30 |
+ echo "*** Client sound disabled. Check that you have OpenAL installed."
|
|
31 |
+ fi
|
|
32 |
fi
|
|
33 |
AC_SUBST(SOUND_LIBS)
|
|
34 |
fi
|
|
35 |
|
|
36 |
-AM_CONDITIONAL([COND_SOUND], [test x$have_openal = xyes])
|
|
37 |
+AM_CONDITIONAL([COND_SOUND], [test x$have_sound = xyes])
|
|
38 |
|
|
39 |
dnl Checks for header files.
|
|
40 |
dnl AC_HEADER_STDC
|