Commit 34ba23c9 authored by Måns Rullgård's avatar Måns Rullgård

configure: simplify $cpu handling for some architectures

Originally committed as revision 21298 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9dbd5c3d
...@@ -1881,44 +1881,26 @@ elif enabled sparc; then ...@@ -1881,44 +1881,26 @@ elif enabled sparc; then
elif enabled arm; then elif enabled arm; then
case $cpu in case $cpu in
arm11*|cortex*)
cpuflags="-mcpu=$cpu"
;;
armv[67]*)
cpuflags="-march=$cpu"
;;
armv*) armv*)
cpuflags="-march=$cpu" cpuflags="-march=$cpu"
;; ;;
arm*) *)
cpuflags="-mcpu=$cpu" cpuflags="-mcpu=$cpu"
;; ;;
esac esac
elif enabled alpha; then elif enabled alpha; then
case $cpu in
ev4|ev45|ev5|ev56|pca56|ev6|ev67)
enabled ccc && cpuflags="-arch $cpu" || cpuflags="-mcpu=$cpu" enabled ccc && cpuflags="-arch $cpu" || cpuflags="-mcpu=$cpu"
;;
esac
elif enabled bfin; then elif enabled bfin; then
case $cpu in
bf*)
cpuflags="-mcpu=$cpu" cpuflags="-mcpu=$cpu"
;;
esac
elif enabled mips; then elif enabled mips; then
case $cpu in
mips*|[45]k*|[237]4k*|m4k|r*000|loongson2[ef])
cpuflags="-march=$cpu" cpuflags="-march=$cpu"
;;
esac
elif enabled avr32; then elif enabled avr32; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment