From 0dc1b4a95dcf382f60b097c2b266ca6b7e676c00 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 26 Dec 2012 22:50:29 +0200 Subject: [PATCH] configure: handle ARM machine names with version like armv6l-unknown-linux-gnueabihf in Arch Linux --- configure | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/configure b/configure index c03d41fe..4d3bb5f8 100755 --- a/configure +++ b/configure @@ -181,16 +181,18 @@ cat > $TMPC <&1 | grep -i 'target:' | awk '{print $2}' \ - | awk -F '-' '{print $1}'` + ARCH=`$CC -dumpmachine | awk -F '-' '{print $1}'` fi -# ARM stuff -if [ "$ARCH" = "arm" ]; then +case "$ARCH" in +arm*) + # ARM stuff + ARCH="arm" + if [ "$optimize_cortexa8" = "yes" ]; then CFLAGS="$CFLAGS -mcpu=cortex-a8 -mtune=cortex-a8" ASFLAGS="$ASFLAGS -mcpu=cortex-a8" @@ -266,10 +268,12 @@ if [ "$ARCH" = "arm" ]; then echo "You probably want to specify -mcpu= or -march= like this:" echo " CFLAGS=-march=armv7-a ./configure ..." fi -else + ;; +*) # dynarec only available on ARM enable_dynarec="no" -fi + ;; +esac if [ "x$builtin_gpu" = "x" ]; then builtin_gpu="peops" -- 2.39.5