Originally committed as revision 7782 to svn://svn.ffmpeg.org/ffmpeg/trunk
Ramiro Polla authored on 2007/01/31 20:52:47... | ... |
@@ -686,6 +686,7 @@ liba52bin="no" |
686 | 686 |
libdts="no" |
687 | 687 |
libfaac="no" |
688 | 688 |
libfaad="no" |
689 |
+libfaad2="no" |
|
689 | 690 |
libfaadbin="no" |
690 | 691 |
libgsm="no" |
691 | 692 |
libmp3lame="no" |
... | ... |
@@ -1230,6 +1231,24 @@ if enabled libvorbis && disabled libogg; then |
1230 | 1230 |
die "libogg must be enabled to enable libvorbis." |
1231 | 1231 |
fi |
1232 | 1232 |
|
1233 |
+if enabled_any libfaad libfaadbin ; then |
|
1234 |
+ if check_header faad.h; then |
|
1235 |
+ check_cc << EOF |
|
1236 |
+#include <faad.h> |
|
1237 |
+#ifndef FAAD2_VERSION |
|
1238 |
+ok faad1 |
|
1239 |
+#endif |
|
1240 |
+int main( void ) { return 0; } |
|
1241 |
+EOF |
|
1242 |
+ test $? = 0 && enable libfaad2 |
|
1243 |
+ else |
|
1244 |
+ libfaad="no" |
|
1245 |
+ libfaadbin="no" |
|
1246 |
+ echo "FAAD test failed." |
|
1247 |
+ fi |
|
1248 |
+fi |
|
1249 |
+ |
|
1250 |
+ |
|
1233 | 1251 |
if disabled gpl ; then |
1234 | 1252 |
if enabled pp; then |
1235 | 1253 |
die "The Postprocessing code is under GPL and --enable-gpl is not specified." |
... | ... |
@@ -1251,23 +1270,8 @@ if disabled gpl ; then |
1251 | 1251 |
die "libdts is under GPL and --enable-gpl is not specified." |
1252 | 1252 |
fi |
1253 | 1253 |
|
1254 |
- if enabled_any libfaad libfaadbin ; then |
|
1255 |
- if check_header faad.h; then |
|
1256 |
- check_cc << EOF |
|
1257 |
- #include <faad.h> |
|
1258 |
- #ifndef FAAD2_VERSION |
|
1259 |
- ok faad1 |
|
1260 |
- #endif |
|
1261 |
- int main( void ) { return 0; } |
|
1262 |
-EOF |
|
1263 |
- if test $? = 0 ; then |
|
1264 |
- die "FAAD2 is under GPL and --enable-gpl is not specified." |
|
1265 |
- fi |
|
1266 |
- else |
|
1267 |
- libfaad="no" |
|
1268 |
- libfaadbin="no" |
|
1269 |
- echo "FAAD test failed." |
|
1270 |
- fi |
|
1254 |
+ if enabled libfaad2; then |
|
1255 |
+ die "FAAD2 is under GPL and --enable-gpl is not specified." |
|
1271 | 1256 |
fi |
1272 | 1257 |
|
1273 | 1258 |
if enabled x11grab; then |