Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-12-24 06:12:36 +0300
committerDiego Biurrun <diego@biurrun.de>2006-12-24 06:12:36 +0300
commit6cf161d21ec309b50830e3b5c864f1ecacc31b80 (patch)
treef60c08945c05b3e85fad99633b0529c51f2ecdd0 /configure
parent5931bfc383c4875191d4de978ee037a42bb748c7 (diff)
Replace fail test with the die function.
Originally committed as revision 7373 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 9 insertions, 22 deletions
diff --git a/configure b/configure
index d68d39b44e..71de5d176a 100755
--- a/configure
+++ b/configure
@@ -1117,34 +1117,28 @@ EOF
fi
if test "$libvorbis" = "yes" && test "$libogg" = "no"; then
- echo "libogg must be enabled to enable libvorbis."
- fail="yes"
+ die "libogg must be enabled to enable libvorbis."
fi
if test "$gpl" != "yes"; then
if test "$pp" != "no"; then
- echo "The Postprocessing code is under GPL and --enable-gpl is not specified."
- fail="yes"
+ die "The Postprocessing code is under GPL and --enable-gpl is not specified."
fi
if test "$a52" != "no" -o "$a52bin" != "no"; then
- echo "liba52 is under GPL and --enable-gpl is not specified."
- fail="yes"
+ die "liba52 is under GPL and --enable-gpl is not specified."
fi
if test "$xvid" != "no"; then
- echo "libxvidcore is under GPL and --enable-gpl is not specified."
- fail="yes"
+ die "libxvidcore is under GPL and --enable-gpl is not specified."
fi
if test "$x264" != "no"; then
- echo "x264 is under GPL and --enable-gpl is not specified."
- fail="yes"
+ die "x264 is under GPL and --enable-gpl is not specified."
fi
if test "$dts" != "no"; then
- echo "libdts is under GPL and --enable-gpl is not specified."
- fail="yes"
+ die "libdts is under GPL and --enable-gpl is not specified."
fi
if test "$faad" != "no" -o "$faadbin" != "no"; then
@@ -1157,8 +1151,7 @@ if test "$gpl" != "yes"; then
int main( void ) { return 0; }
EOF
if test $? = 0 ; then
- echo "FAAD2 is under GPL and --enable-gpl is not specified."
- fail="yes"
+ die "FAAD2 is under GPL and --enable-gpl is not specified."
fi
else
faad="no"
@@ -1168,20 +1161,14 @@ EOF
fi
if test "$x11grab" != "no"; then
- echo "The X11 grabber is under GPL and --enable-gpl is not specified."
- fail="yes"
+ die "The X11 grabber is under GPL and --enable-gpl is not specified."
fi
if test "$swscaler" != "no"; then
- echo "The software scaler is under GPL and --enable-gpl is not specified."
- fail="yes"
+ die "The software scaler is under GPL and --enable-gpl is not specified."
fi
fi
-if test "$fail" = "yes"; then
- exit 1
-fi
-
# compute MMX state
if test $mmx = "default"; then
if test $arch = "x86_32" -o $arch = "x86_64"; then