From 9c9ca2032bc033792d748264e34e810e689598b5 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 21 Dec 2012 13:41:43 +0100 Subject: [PATCH] configure: style changes * configure (case $targetos): Improve readibility. (case $cpu): New, to improve readability compare to if + test. --- configure | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/configure b/configure index b4ac3281..b440c5de 100755 --- a/configure +++ b/configure @@ -101,16 +101,10 @@ EXESUF="" # OS specific targetos=`uname -s` case $targetos in -MINGW32*) -mingw32="yes" -;; -DragonFly) -noldl="yes" -;; -OpenBSD) -noldl="yes" -;; -*) ;; + MINGW32*) mingw32=yes;; + DragonFly) noldl=yes;; + OpenBSD) noldl=yes;; + *) ;; esac # find source path @@ -231,9 +225,9 @@ fi else # if cross compiling, cannot launch a program, so make a static guess -if test "$cpu" = "powerpc" -o "$cpu" = "mips" -o "$cpu" = "s390" ; then - bigendian="yes" -fi +case $cpu in + powerpc|mips|s390) bigendian=yes;; +esac fi -- 2.11.4.GIT