Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > b30107eb07e57ab7103b0581b7316395 > files > 17

pciutils-3.2.0-2.mga2.src.rpm

diff -up pciutils-3.0.2/lib/configure.arm pciutils-3.0.2/lib/configure
--- pciutils-3.0.2/lib/configure.arm	2009-04-29 16:58:54.097763684 +0200
+++ pciutils-3.0.2/lib/configure	2009-04-29 17:16:50.442420669 +0200
@@ -30,7 +30,7 @@ if [ -z "$HOST" ] ; then
 		proc=`/usr/sbin/lsdev -C -c processor -S available -F name | head -1`
 		cpu=`/usr/sbin/lsattr -F value -l $proc -a type | sed 's/_.*//'`
 	else
-		cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`
+		cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/;s/^arm.*$/arm/'`
 	fi
 	if [ "$sys" = "GNU/kFreeBSD" -o "$sys" = "DragonFly" ]
 	then
@@ -80,6 +80,8 @@ cat >$c <<EOF
 #define PCI_ARCH_SPARC
 #elif defined(__sh__)
 #define PCI_ARCH_SH
+#elif defined(__arm__)
+#define PCI_ARCH_ARM
 #else
 #error Unknown Arch
 #endif