changeset 20929:bbe37270c6ad

When testing lame preset presence, use actuall lame_set_preset() function to test its availablility in the library. Now it only tests include definitions.
author iive
date Wed, 15 Nov 2006 20:51:27 +0000
parents a2fb64026f2d
children 29c478a2483f
files configure
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Nov 15 17:32:00 2006 +0000
+++ b/configure	Wed Nov 15 20:51:27 2006 +0000
@@ -6555,12 +6555,12 @@
     _ld_mp3lame="-lmp3lame $_ld_vorbis"
     cat > $TMPC << EOF
 #include <lame/lame.h>
-int main(void) { int p = STANDARD_FAST; return 0; }
+int main(void) { lame_set_preset(NULL, STANDARD_FAST); return 0; }
 EOF
     cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset="#define HAVE_MP3LAME_PRESET"
     cat > $TMPC << EOF
 #include <lame/lame.h>
-int main(void) { int p = MEDIUM_FAST; return 0; }
+int main(void) { lame_set_preset(NULL, MEDIUM_FAST); return 0; }
 EOF
     cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset_medium="#define HAVE_MP3LAME_PRESET_MEDIUM"
     echo $_libavencoders | grep -q mp3lame && _lavc_mp3lame=yes || _lavc_mp3lame=no