Don't add afalg engine if configured "no-engine"
authorRichard Levitte <levitte@openssl.org>
Wed, 9 Mar 2016 08:05:03 +0000 (09:05 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 9 Mar 2016 11:51:07 +0000 (12:51 +0100)
Also, indent a little deeper, for clarity.

Reviewed-by: Matt Caswell <matt@openssl.org>
engines/afalg/build.info

index ecbc9a187eb6b1bd6364663a472f55931bc04097..5aba44716ae931e0bb5e659e69c81e7cb96f5bbc 100644 (file)
@@ -1,13 +1,15 @@
 {- use File::Spec::Functions qw/:DEFAULT rel2abs/; -}
 
-IF[{- !$disabled{afalg} -}]
- IF[{- $disabled{"dynamic-engine"} -}]
-  LIBS=../../libcrypto
-  SOURCE[../../libcrypto]=e_afalg.c e_afalg_err.c
- ELSE
-  ENGINES=afalg
-  SOURCE[afalg]=e_afalg.c e_afalg_err.c
-  DEPEND[afalg]=../../libcrypto
-  INCLUDE[afalg]= {- rel2abs(catdir($builddir,"../../include")) -} ../../include
- ENDIF
+IF[{- !$disabled{"engine"} -}]
+  IF[{- !$disabled{afalg} -}]
+    IF[{- $disabled{"dynamic-engine"} -}]
+      LIBS=../../libcrypto
+      SOURCE[../../libcrypto]=e_afalg.c e_afalg_err.c
+    ELSE
+      ENGINES=afalg
+      SOURCE[afalg]=e_afalg.c e_afalg_err.c
+      DEPEND[afalg]=../../libcrypto
+      INCLUDE[afalg]= {- rel2abs(catdir($builddir,"../../include")) -} ../../include
+    ENDIF
+  ENDIF
 ENDIF