configure.ac: Put additional LAME check inside the conditional. Fixes #152339
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 23 Dec 2004 12:43:31 +0000 (12:43 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 23 Dec 2004 12:43:31 +0000 (12:43 +0000)
Original commit message from CVS:
* configure.ac:
Put additional LAME check inside the conditional.  Fixes #152339

ChangeLog
configure.ac

index 77bf6c5..4de56c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-23  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * configure.ac:
+         Put additional LAME check inside the conditional.  Fixes #152339
+
 2004-12-23  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
 
        * gst/avi/gstavidemux.c: (gst_avi_demux_stream_index),
index 63d2628..97064bb 100644 (file)
@@ -1188,20 +1188,27 @@ GST_CHECK_FEATURE(LADSPA, [ladspa], ladspa, [
 dnl *** lame ***
 translit(dnm, m, l) AM_CONDITIONAL(USE_LAME, true)
 GST_CHECK_FEATURE(LAME, [lame mp3 encoder library], lame, [
-  GST_CHECK_LIBHEADER(LAME, mp3lame, lame_init, -lm, lame/lame.h, HAVE_LAME="yes" LAME_LIBS="-lmp3lame -lm")
-])
-dnl is lame presets available
-LAME_CFLAGS=""
-AC_TRY_RUN([
+  GST_CHECK_LIBHEADER(LAME, mp3lame, lame_init, -lm, lame/lame.h, 
+  [
+    HAVE_LAME="yes"
+    LAME_LIBS="-lmp3lame -lm"
+    dnl is lame presets available
+    LAME_CFLAGS=""
+    AC_TRY_RUN([
 #include <lame/lame.h>
 int main (int argc, char *argv[])
 {
   printf("%d\n", MEDIUM);
   return 0;
 }
-],[LAME_CFLAGS="-DGSTLAME_PRESET"],[LAME_CFLAGS=""])
-AC_SUBST(LAME_CFLAGS)
-AC_SUBST(LAME_LIBS)
+      ],
+      [LAME_CFLAGS="-DGSTLAME_PRESET"],
+      [LAME_CFLAGS=""]
+    )
+  AC_SUBST(LAME_CFLAGS)
+  AC_SUBST(LAME_LIBS)
+  ])
+])
 
 dnl *** MAS (TODO) ***
 dnl translit(dnm, m, l) AM_CONDITIONAL(USE_MAS, true)