+if test "$theora" = "yes" ; then
+ if test "$libogg" = "no"; then
+ echo "libogg must be enabled to enable Theora"
+ fail="yes"
+ theora="no"
+ fi
+fi
+
+if test "$vorbis" = "yes" ; then
+ if test "$libogg" = "no"; then
+ echo "libogg must be enabled to enable Vorbis"
+ fail="yes"
+ vorbis="no"
+ fi
+fi
+
+if test "$gpl" != "yes"; then
+ if test "$pp" != "no" -o "$shared_pp" != "no"; then
+ echo "The Postprocessing code is under GPL and --enable-gpl is not specified"
+ fail="yes"
+ fi
+
+ if test "$a52" != "no" -o "$a52bin" != "no"; then
+ echo "liba52 is under GPL and --enable-gpl is not specified"
+ fail="yes"
+ fi
+
+ if test "$xvid" != "no"; then
+ echo "libxvidcore is under GPL and --enable-gpl is not specified"
+ fail="yes"
+ fi
+
+ if test "$x264" != "no"; then
+ echo "x264 is under GPL and --enable-gpl is not specified"
+ fail="yes"
+ fi
+
+ if test "$dts" != "no"; then
+ echo "libdts is under GPL and --enable-gpl is not specified"
+ fail="yes"
+ fi
+
+ if test "$faad" != "no" -o "$faadbin" != "no"; then
+ cat > $TMPC << EOF
+ #include <faad.h>
+ int main( void ) { return 0; }
+EOF
+
+ if $cc $CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
+ cat > $TMPC << EOF
+ #include <faad.h>
+ #ifndef FAAD2_VERSION
+ ok faad1
+ #endif
+ int main( void ) { return 0; }
+EOF
+ if $cc $CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
+ echo "faad2 is under GPL and --enable-gpl is not specified"
+ fail="yes"
+ fi
+ else
+ faad="no"
+ faadbin="no"
+ echo "faad test failed"
+ fi
+ fi
+
+
+ if test "$fail" = "yes"; then
+ exit 1
+ fi
+fi
+