summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-10-06 13:24:09 -0400
committerOri Bernstein <ori@eigenstate.org>2014-10-06 13:24:09 -0400
commitb219309416b7f89e2ba6114bdf8f72f91e9f94b9 (patch)
treef83d2b4cd8a0ba3f2d99a636bb7b38c1502f3eb9 /configure
parentf639b6a266bd6b2d4950fabcee63ce2f40d5acfd (diff)
downloadmc-b219309416b7f89e2ba6114bdf8f72f91e9f94b9.tar.gz
Probe the architecture.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 14 insertions, 2 deletions
diff --git a/configure b/configure
index e26f9c4..3e568bf 100755
--- a/configure
+++ b/configure
@@ -30,6 +30,7 @@ for arg in $*; do
done
OS=`uname`
+MACH=`uname -m`
echo export INST_ROOT=$prefix > config.mk
@@ -52,15 +53,26 @@ case $OS in
;;
*)
echo ''
- echo ''
echo '********************************'
- echo 'Unknown architecture.'
+ echo 'Unknown system'
echo 'Cannot build'
echo '********************************'
rm -f config.h config.mk
exit 1
;;
esac
+echo '#define Instroot "'$prefix'"' > config.h
+case $MACH in
+ *x86_64*)
+ echo 'export ARCH=x64' >> config.mk
+ ;;
+ *)
+ echo ''
+ echo '********************************'
+ echo 'Unknown system'
+ echo 'Cannot build'
+ echo '********************************'
+esac
cat << EOF
Building with: