History

configure: style changes

* configure (case $targetos): Improve readibility. (case $cpu): New, to improve readability compare to if + test.

Akim Demaille committed 13 years ago

Commit 9c9ca201 parent 5ebc6a91 file · +7 −13Browse files

Unified · Split

configure+7−13
@@ -101,16 +101,10 @@ EXESUF="" · 100 unmodified lines
101101 # OS specific
102102 targetos=`uname -s`
103103 case $targetos in
104−MINGW32*)
105−mingw32="yes"
106−;;
107−DragonFly)
108−noldl="yes"
109−;;
110−OpenBSD)
111−noldl="yes"
112−;;
113−*) ;;
104+ MINGW32*) mingw32=yes;;
105+ DragonFly) noldl=yes;;
106+ OpenBSD) noldl=yes;;
107+ *) ;;
114108 esac
115109
116110 # find source path
@@ -231,9 +225,9 @@ fi · 114 unmodified lines
231225 else
232226
233227 # if cross compiling, cannot launch a program, so make a static guess
234−if test "$cpu" = "powerpc" -o "$cpu" = "mips" -o "$cpu" = "s390" ; then
235− bigendian="yes"
236−fi
228+case $cpu in
229+ powerpc|mips|s390) bigendian=yes;;
230+esac
237231
238232 fi
239233

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t