]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
configure: don't both with checks for padlock in non-x86
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 25 Sep 2014 16:46:55 +0000 (18:46 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 25 Sep 2014 16:46:55 +0000 (18:46 +0200)
configure.ac

index 6c468dd3384e868f82b6b3fb8f54efca3aab7d78..ff17d55cdf91c8f8a91dcc0aa3b2f2ce18896ee1 100644 (file)
@@ -102,6 +102,7 @@ AC_ARG_ENABLE(hardware-acceleration,
 hw_accel=none
 
 
+use_padlock=no
 if test "$use_accel" != "no"; then
 case $host_cpu in
   i?86 | x86_64 | amd64)
@@ -111,6 +112,7 @@ case $host_cpu in
       else
         hw_accel="x86"
       fi
+      use_padlock=yes
   ;;
   *)
   ;;
@@ -120,7 +122,7 @@ fi
 
 AC_ARG_ENABLE(padlock,
   AS_HELP_STRING([--disable-padlock], [unconditionally disable padlock acceleration]),
-    use_padlock=$enableval, use_padlock=yes)
+    use_padlock=$enableval)
 
 if test "$use_padlock" != "no"; then
     AC_DEFINE([ENABLE_PADLOCK], 1, [Enable padlock acceleration])