aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordi Vilalta Prat2008-05-06 22:09:27 +0000
committerJordi Vilalta Prat2008-05-06 22:09:27 +0000
commit586046d871806dcee92a48eca585955e937af6f6 (patch)
tree8e6625a5146c2c9d6d8a0c01c1568b54b10fea77
parent10b73b474f5618b91456db91f3e5e18a18fa0f97 (diff)
downloadscummvm-rg350-586046d871806dcee92a48eca585955e937af6f6.tar.gz
scummvm-rg350-586046d871806dcee92a48eca585955e937af6f6.tar.bz2
scummvm-rg350-586046d871806dcee92a48eca585955e937af6f6.zip
Fail on invalid --enable/disable options
svn-id: r31910
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index d71501098a..2c2e81c4a7 100755
--- a/configure
+++ b/configure
@@ -374,7 +374,7 @@ engine_enable() {
fi
engine=`echo $eng | sed 's/-/_/g'`
if test "$opt" = "static" -o "$opt" = "dynamic" -o "$opt" = "yes" ; then
- if test "`get_engine_build ${engine}`" != "$opt" ; then
+ if test "`get_engine_name ${engine}`" != "" -a "`get_engine_build ${engine}`" != "$opt" ; then
eval _engine_${engine}_build=$opt
else
option_error
@@ -387,7 +387,7 @@ engine_enable() {
# Disable the given engine
engine_disable() {
engine=`echo $1 | sed 's/-/_/g'`
- if test "`get_engine_build $engine`" != "no" ; then
+ if test "`get_engine_name ${engine}`" != "" -a "`get_engine_build $engine`" != "no" ; then
eval _engine_${engine}_build=no
else
option_error