aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authortwinaphex2013-01-04 19:03:21 +0100
committertwinaphex2013-01-04 19:03:21 +0100
commitac7b2a33ddb2392582c50d29c772e9e99cd762c9 (patch)
treeab7b9fb3383c1f135b43abd62262b74fd838fe88 /configure
parenta9a3be15b649c633521b5a0143715d4ae901b790 (diff)
parent7ba3e79c025dfd41ba88bcbe7b330a1a7fd68551 (diff)
downloadpcsx_rearmed-ac7b2a33ddb2392582c50d29c772e9e99cd762c9.tar.gz
pcsx_rearmed-ac7b2a33ddb2392582c50d29c772e9e99cd762c9.tar.bz2
pcsx_rearmed-ac7b2a33ddb2392582c50d29c772e9e99cd762c9.zip
Merge git://github.com/notaz/pcsx_rearmed
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 11 insertions, 7 deletions
diff --git a/configure b/configure
index c03d41f..4d3bb5f 100755
--- a/configure
+++ b/configure
@@ -181,16 +181,18 @@ cat > $TMPC <<EOF
int main(void) { return 0; }
EOF
if ! compile_binary; then
- fail "basic compiler test failed, please check config.log"
+ fail "compiler test failed, please check config.log"
fi
if [ -z "$ARCH" ]; then
- ARCH=`$CC -v 2>&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"