diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-14 10:14:48 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-14 10:14:48 +0000 |
commit | 4f6fc4cebab47d7aecaa2f82b6ed535d67db1e69 (patch) | |
tree | 02337685ec197df6db192be68424e6a6b297b669 /configure | |
parent | cc3510ef06ddb3543806c5c0768e12dfb9271c13 (diff) |
Make FAAC detection follow standard enable/disable/auto semantics.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15457 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -1549,6 +1549,7 @@ for ac_option do --disable-internal-faad) _faad_internal=no ;; --enable-external-faad) _faad_external=yes _faad_internal=no ;; --disable-external-faad) _faad_external=no ;; + --enable-faac) _faac=yes ;; --disable-faac) _faac=no ;; --enable-ladspa) _ladspa=yes ;; --disable-ladspa) _ladspa=no ;; @@ -5420,20 +5421,17 @@ int main(void) { unsigned long x, y; faacEncOpen(48000, 2, &x, &y); return 0; } EOF if ( cc_check -c -O4 -lfaac $_ld_lm ); then _faac=yes - _ld_faac="-lfaac" + elif ( cc_check -c -O4 -lfaac -lmp4v2 -lstdc++ $_ld_lm ); then + _faac=yes + _ld_faac="-lmp4v2 -lstdc++" else - if ( cc_check -c -O4 -lfaac -lmp4v2 -lstdc++ $_ld_lm ); then - _faac=yes - _ld_faac="-lfaac -lmp4v2 -lstdc++" - else - _faac=no - _ld_faac="" - fi + _faac=no fi fi if test "$_faac" = yes ; then _def_faac="#define HAVE_FAAC 1" _codecmodules="$_codecmodules faac" + _ld_faac="-lfaac $_ld_faac" else _def_faac="#undef HAVE_FAAC" _nocodecmodules="$_nocodecmodules faac" |