# HG changeset patch # User iive # Date 1163623887 0 # Node ID bbe37270c6ad809a3c448c319b9fe35d61e79a93 # Parent a2fb64026f2d2afc62af668196687993f80cab43 When testing lame preset presence, use actuall lame_set_preset() function to test its availablility in the library. Now it only tests include definitions. diff -r a2fb64026f2d -r bbe37270c6ad configure --- 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 -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 -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