--- configure.orig	2012-01-20 01:56:02.000000000 +0100
+++ configure	2012-03-10 08:22:40.000000000 +0100
@@ -331,7 +331,7 @@
   #       common.make
   UNAME=`uname`
   if [ "X${UNAME}" = "XLinux" ];then
-    UNAME=`uname -p`
+    UNAME=`uname -m`
     if [ ${UNAME} = x86_64 -o ${UNAME} = sparc64 -o ${UNAME} = ppc64 ];then
       cfgwrite "CGS_LIBDIR_NAME:=lib64"
     else
