summaryrefslogtreecommitdiff
path: root/packages/gstreamer/gst-plugins/lame-autoconf.patch
blob: 3fb85e7d888094561335e41f5403da20339f21a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- gst-plugins-0.8.6.orig/configure.ac	2004-11-25 16:41:47.000000000 +0100
+++ gst-plugins-0.8.6/configure.ac	2005-02-22 19:02:58.000000000 +0100
@@ -1135,8 +1135,9 @@
   GST_CHECK_LIBHEADER(LAME, mp3lame, lame_init, -lm, lame/lame.h, HAVE_LAME="yes" LAME_LIBS="-lmp3lame -lm")
 ])
 dnl is lame presets available
+if test "x$HAVE_LAME" = "xyes"; then
 LAME_CFLAGS=""
-AC_TRY_RUN([
+AC_TRY_COMPILE([
 #include <lame/lame.h>
 int main (int argc, char *argv[])
 {
@@ -1144,6 +1145,7 @@
   return 0;
 }
 ],[LAME_CFLAGS="-DGSTLAME_PRESET"],[LAME_CFLAGS=""])
+fi
 AC_SUBST(LAME_CFLAGS)
 AC_SUBST(LAME_LIBS)