[Scummvm-cvs-logs] SF.net SVN: scummvm: [31910] scummvm/trunk/configure

jvprat at users.sourceforge.net jvprat at users.sourceforge.net
Wed May 7 00:09:28 CEST 2008


Revision: 31910
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31910&view=rev
Author:   jvprat
Date:     2008-05-06 15:09:27 -0700 (Tue, 06 May 2008)

Log Message:
-----------
Fail on invalid --enable/disable options

Modified Paths:
--------------
    scummvm/trunk/configure

Modified: scummvm/trunk/configure
===================================================================
--- scummvm/trunk/configure	2008-05-06 22:05:26 UTC (rev 31909)
+++ scummvm/trunk/configure	2008-05-06 22:09:27 UTC (rev 31910)
@@ -374,7 +374,7 @@
 	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 @@
 # 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


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list