Commit 1b56b585 authored by diego's avatar diego

Move libfaad2 check out of the GPL check.

patch by Ramiro Polla, ramiro lisha.ufsc br, simplifications by me


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7782 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0cc21550
...@@ -686,6 +686,7 @@ liba52bin="no" ...@@ -686,6 +686,7 @@ liba52bin="no"
libdts="no" libdts="no"
libfaac="no" libfaac="no"
libfaad="no" libfaad="no"
libfaad2="no"
libfaadbin="no" libfaadbin="no"
libgsm="no" libgsm="no"
libmp3lame="no" libmp3lame="no"
...@@ -1230,6 +1231,24 @@ if enabled libvorbis && disabled libogg; then ...@@ -1230,6 +1231,24 @@ if enabled libvorbis && disabled libogg; then
die "libogg must be enabled to enable libvorbis." die "libogg must be enabled to enable libvorbis."
fi fi
if enabled_any libfaad libfaadbin ; then
if check_header faad.h; then
check_cc << EOF
#include <faad.h>
#ifndef FAAD2_VERSION
ok faad1
#endif
int main( void ) { return 0; }
EOF
test $? = 0 && enable libfaad2
else
libfaad="no"
libfaadbin="no"
echo "FAAD test failed."
fi
fi
if disabled gpl ; then if disabled gpl ; then
if enabled pp; then if enabled pp; then
die "The Postprocessing code is under GPL and --enable-gpl is not specified." die "The Postprocessing code is under GPL and --enable-gpl is not specified."
...@@ -1251,23 +1270,8 @@ if disabled gpl ; then ...@@ -1251,23 +1270,8 @@ if disabled gpl ; then
die "libdts is under GPL and --enable-gpl is not specified." die "libdts is under GPL and --enable-gpl is not specified."
fi fi
if enabled_any libfaad libfaadbin ; then if enabled libfaad2; then
if check_header faad.h; then die "FAAD2 is under GPL and --enable-gpl is not specified."
check_cc << EOF
#include <faad.h>
#ifndef FAAD2_VERSION
ok faad1
#endif
int main( void ) { return 0; }
EOF
if test $? = 0 ; then
die "FAAD2 is under GPL and --enable-gpl is not specified."
fi
else
libfaad="no"
libfaadbin="no"
echo "FAAD test failed."
fi
fi fi
if enabled x11grab; then if enabled x11grab; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment