[MPlayer-dev-eng] [PATCH] 'configure' & lasattr improvement
Derek E. Lewis
dlewis at solnetworks.net
Sun Apr 2 09:56:40 CEST 2006
The output of 'lsattr -E -l proc0' has changed in AIX 5.3 (an additional
line detailing information about simultaneous multithreading -- SMT).
This patch uses the preferred interface for determining the processor type
in AIX.
Thanks,
Derek E. Lewis
dlewis at solnetworks.net
http://riemann.solnetworks.net/~dlewis
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1156
diff -u -r1.1156 configure
--- configure 2 Apr 2006 07:44:14 -0000 1.1156
+++ configure 2 Apr 2006 07:51:29 -0000
@@ -774,7 +774,7 @@
_cpuinfo="hostinfo"
elif aix; then
# use 'lsattr' on AIX
- _cpuinfo="lsattr -E -l proc0"
+ _cpuinfo="lsattr -E -l proc0 -a type"
elif x86; then
# all other OSes try to extract CPU information from a small helper
# program TOOLS/cpuinfo instead
@@ -1197,7 +1197,7 @@
esac
;;
AIX)
- proc=`$_cpuinfo | grep 'type' | cut -f 7 -d ' ' | sed 's/PowerPC_//'`
+ proc=`$_cpuinfo | grep 'type' | cut -f 2 -d ' ' | sed 's/PowerPC_//'`
;;
esac
if test "$_altivec" = yes; then
More information about the MPlayer-dev-eng
mailing list