comparison configure @ 1335:71c0f15c4712

Detect cpu architecture for a few more linux variants (linux/sparc, linux/ppc, linux/alpha) Try to find out cpu architecture for OpenBSD/x86 (of cause someone still needs to port the code to openbsd...)
author jkeil
date Mon, 16 Jul 2001 18:40:51 +0000
parents 267b7e92edc3
children bb1f389a002c
comparison
equal deleted inserted replaced
1334:061cabfbc07b 1335:71c0f15c4712
187 # Determine our OS name and CPU architecture 187 # Determine our OS name and CPU architecture
188 188
189 system_name=`uname -s 2>&1` # name of operating system: Linux, FreeBSD, NetBSD, SunOS 189 system_name=`uname -s 2>&1` # name of operating system: Linux, FreeBSD, NetBSD, SunOS
190 host_arch=`uname -p 2>&1` # host's instruction set or processor type 190 host_arch=`uname -p 2>&1` # host's instruction set or processor type
191 case "$host_arch" in 191 case "$host_arch" in
192 unknown) # Linux returns "unknown" for the processor type 192 i386|sparc|ppc|alpha)
193 # fine, uname -p output looks good, it has returned
194 # something this configure script recognizes
195 ;;
196
197 *) # uname -p on Linux returns 'unknown' for the processor type,
198 # OpenBSD returns 'Intel Pentium/MMX ("Genuine Intel" 586-class)'
199
200 # Maybe uname -m (machine hardware name) returns something we
201 # recognize.
202
193 case "`uname -m 2>&1`" in 203 case "`uname -m 2>&1`" in
194 i[3-9]86) 204 i[3-9]86)
195 host_arch=i386;; 205 host_arch=i386;;
196 ppc) 206 ppc)
197 host_arch=ppc;; 207 host_arch=ppc;;
208 alpha)
209 host_arch=alpha;;
210 sparc64)
211 host_arch=sparc;;
198 esac 212 esac
199 ;; 213 ;;
200 esac 214 esac
201 215
202 # Determine OS dependent libs 216 # Determine OS dependent libs
649 # _mcpu="" 663 # _mcpu=""
650 # ;; 664 # ;;
651 665
652 *) 666 *)
653 echo "The architecture of your CPU ($host_arch) is not supported by this configure script" 667 echo "The architecture of your CPU ($host_arch) is not supported by this configure script"
668 echo "It seems, as if noone has ported MPlayer to your OS or CPU type yet."
654 exit 1 669 exit 1
655 ;; 670 ;;
656 esac 671 esac
657 672
658 # --- 673 # ---