From e356cb16ad1a6b0f82969513360bbce481795a1c Mon Sep 17 00:00:00 2001
From: Rong Yan <rongyan236@gmail.com>
Date: Mon, 13 Oct 2014 06:40:30 +0000
Subject: [PATCH] configure: fix bug to ensure that  HAVE_VSX is only enabled
 when HAVE_ALTIVEC is enabled and in LE environment

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index cda463d..2ec6ad0 100755
--- a/configure
+++ b/configure
@@ -4390,7 +4390,7 @@ EOF
 od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
 
 if  [ "$cpu" = "power7" ] || [ "$cpu" = "power8" ] ;then
-    if ! enabled bigendian ;then
+    if ! enabled bigendian && enabled altivec ;then
         enable vsx
     fi
 fi
-- 
1.9.1

