From 22e8e61f2a54d8b7a15f093c563263bbab1ac496 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 30 Aug 2004 10:03:18 +0000 Subject: fixes #151232 Original commit message from CVS: fixes #151232 --- ChangeLog | 5 +++++ configure.ac | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9927e731..d4004ee3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-08-30 Thomas Vander Stichele + + * configure.ac: + check to define LAMEPRESET. Fixes #151232. + 2004-08-29 Ronald S. Bultje > * ext/alsa/gstalsamixer.c: (gst_alsa_mixer_build_list): diff --git a/configure.ac b/configure.ac index 0bda1cce..1a5ff31a 100644 --- a/configure.ac +++ b/configure.ac @@ -1197,7 +1197,14 @@ GST_CHECK_FEATURE(LAME, [lame mp3 encoder library], lame, [ ]) dnl is lame presets available LAME_CFLAGS="" -GST_CHECK_LIBHEADER(GSTLAME_PRESET, mp3lame, lame_set_preset, -lm, lame/lame.h, LAME_CFLAGS="-DGSTLAME_PRESET", LAME_CFLAGS="") +AC_TRY_RUN([ +#include +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) -- cgit v1.2.1