aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRamiro Polla <ramiro@lisha.ufsc.br>2007-01-31 11:52:47 +0000
committerDiego Biurrun <diego@biurrun.de>2007-01-31 11:52:47 +0000
commita2234ceb6431d149d296e6b88df76b7abd44d8ab (patch)
treea7d0d1e3377ce6daa188a8ce4c991e27fe0ef584 /configure
parent8643594ce3953da2b8d7712f36adfbad453a4622 (diff)
downloadffmpeg-a2234ceb6431d149d296e6b88df76b7abd44d8ab.tar.gz
Move libfaad2 check out of the GPL check.
patch by Ramiro Polla, ramiro lisha.ufsc br, simplifications by me Originally committed as revision 7782 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure38
1 files changed, 21 insertions, 17 deletions
diff --git a/configure b/configure
index 52f55b3d35..e76ac3d5c8 100755
--- a/configure
+++ b/configure
@@ -686,6 +686,7 @@ liba52bin="no"
libdts="no"
libfaac="no"
libfaad="no"
+libfaad2="no"
libfaadbin="no"
libgsm="no"
libmp3lame="no"
@@ -1230,6 +1231,24 @@ if enabled libvorbis && disabled libogg; then
die "libogg must be enabled to enable libvorbis."
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 enabled pp; then
die "The Postprocessing code is under GPL and --enable-gpl is not specified."
@@ -1251,23 +1270,8 @@ if disabled gpl ; then
die "libdts is under GPL and --enable-gpl is not specified."
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
- 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
+ if enabled libfaad2; then
+ die "FAAD2 is under GPL and --enable-gpl is not specified."
fi
if enabled x11grab; then