summaryrefslogtreecommitdiff
blob: de0af21f2fc05c71a9dc4c72296266c6edfc1570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Make sure we ask alsa what libraries it needs rather than assuming.

http://bugs.gentoo.org/97628

Changes for configure.ac:
	--------------------------------------
	 		[snd_pcm_open],
	 		[ac_lib_alsa=yes],
	 		[ac_lib_alsa=no],
	-		[-lm]
	+		[`pkg-config alsa --libs`]
	 	)
	 	if test $ac_lib_alsa = yes; then
	 		AC_MSG_CHECKING([for ALSA])
	--------------------------------------
	 		[snd_pcm_open],
	 		[],
	 		[AC_MSG_ERROR([the ALSA library is missing])],
	-		[-lm]
	+		[`pkg-config alsa --libs`]
	 	)
	 	AC_MSG_CHECKING([for ALSA version])
	 	AC_TRY_COMPILE([

--- configure
+++ configure
@@ -8298,7 +8298,7 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lasound -lm
+LIBS="-lasound `pkg-config alsa --libs`
 	 $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
@@ -8428,7 +8428,7 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lasound -lm
+LIBS="-lasound `pkg-config alsa --libs`
 	 $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */