--- Makefile.orig 2010-09-01 10:57:58.000000000 -0400 +++ Makefile 2010-09-01 10:58:40.000000000 -0400 @@ -69,14 +69,14 @@ include $(top_srcdir)/buildflags.mak lib_build_dir := $(build_dir) -ifneq (x86_64,$(arch)) - ifneq (i386,$(arch)) - $(error Unsupported architecture $(arch)) +ifneq (x86_64,$(shell uname -m)) + ifneq (i386,$(shell uname -m)) + $(error Unsupported architecture $(shell uname -m)) endif endif ifndef LIBDIR - ifeq (${arch},x86_64) + ifeq ($(shell uname -m),x86_64) INSTALL_LIB_TARG=/usr/lib64 else INSTALL_LIB_TARG=/usr/lib