* configure (case $targetos): Improve readibility. (case $cpu): New, to improve readability compare to if + test.
Unified · Split
| @@ -101,16 +101,10 @@ EXESUF="" · 100 unmodified lines | |||
| 101 | # OS specific | 101 | # OS specific |
| 102 | targetos=`uname -s` | 102 | targetos=`uname -s` |
| 103 | case $targetos in | 103 | case $targetos in |
| 104 | MINGW32*) | 104 | MINGW32*) mingw32=yes;; |
| 105 | mingw32="yes" | 105 | DragonFly) noldl=yes;; |
| 106 | ;; | 106 | OpenBSD) noldl=yes;; |
| 107 | DragonFly) | 107 | *) ;; |
| 108 | noldl="yes" | ||
| 109 | ;; | ||
| 110 | OpenBSD) | ||
| 111 | noldl="yes" | ||
| 112 | ;; | ||
| 113 | *) ;; | ||
| 114 | esac | 108 | esac |
| 115 | 109 | ||
| 116 | # find source path | 110 | # find source path |
| @@ -231,9 +225,9 @@ fi · 114 unmodified lines | |||
| 231 | else | 225 | else |
| 232 | 226 | ||
| 233 | # if cross compiling, cannot launch a program, so make a static guess | 227 | # if cross compiling, cannot launch a program, so make a static guess |
| 234 | if test "$cpu" = "powerpc" -o "$cpu" = "mips" -o "$cpu" = "s390" ; then | 228 | case $cpu in |
| 235 | bigendian="yes" | 229 | powerpc|mips|s390) bigendian=yes;; |
| 236 | fi | 230 | esac |
| 237 | 231 | ||
| 238 | fi | 232 | fi |
| 239 | 233 | ||