invert logic of dependency check configure-evo

Sun, 17 Sep 2023 12:15:14 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 17 Sep 2023 12:15:14 +0200
branch
configure-evo
changeset 57
df03772f7429
parent 56
d9e8fdfc08f6
child 58
362998dbe619

invert logic of dependency check

test/make/configure.vm file | annotate | diff | comparison | revisions
--- a/test/make/configure.vm	Sun Sep 17 12:08:33 2023 +0200
+++ b/test/make/configure.vm	Sun Sep 17 12:15:14 2023 +0200
@@ -254,7 +254,7 @@
 echo > "$TEMP_DIR/make.mk"
 
 #foreach( $dependency in $namedDependencies )
-dependency_${dependency.name}()
+dependency_error_${dependency.name}()
 {
     printf "checking for ${dependency.name}... "
     #foreach( $sub in $dependency.getSubdependencies() )
@@ -306,12 +306,12 @@
 __EOF__
         #end
         echo yes
-        return 0
+        return 1
     done
 
     #end
     echo no
-    return 1
+    return 0
 }
 #end
 
@@ -397,7 +397,7 @@
 {
     VERR=0
     #foreach( $dep in $val.dependencies )
-    if failed dependency_$dep ; then
+    if dependency_error_$dep ; then
         VERR=1
     fi
     #end
@@ -431,7 +431,7 @@
 TEMP_LDFLAGS=
 
 #foreach( $dependency in $target.dependencies )
-if failed dependency_$dependency; then
+if dependency_error_$dependency; then
     DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED ${dependency} "
     ERROR=1
 fi
@@ -442,7 +442,7 @@
 if [ -n "$${feature.getVarName()}" ]; then
 #foreach( $dependency in $feature.dependencies )
     # check dependency
-    if failed dependency_$dependency ; then
+    if dependency_error_$dependency ; then
         # "auto" features can fail and are just disabled in this case
         if [ "$${feature.getVarName()}" = "auto" ]; then
             unset ${feature.getVarName()}

mercurial