Patch by Matt Madia: Added automatic detection of 32 or 64 bit mode.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29314 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-02-24 14:14:40 +00:00
parent be125ae02f
commit 308c212c31

14
configure vendored
View File

@ -238,6 +238,7 @@ cd "$currentDir"
# default parameter values
#
platform=`uname`
platform_machine=`uname -m`
haikuGCCVersion=
haikuGCCMachine=i586-pc-haiku
haikuStaticLibStdCxx=
@ -335,6 +336,13 @@ while [ $# -gt 0 ] ; do
esac
done
# check for a 64bit platform
case "${platform_machine}" in
x86_64) use_32bit=1 ;;
*) echo Assuming 32-bit machine: "$platform_machine"
use_32bit=0 ;;
esac
# detect the build platform
case "${platform}" in
BeOS) revision=`uname -r`
@ -348,7 +356,11 @@ case "${platform}" in
esac
;;
Darwin) buildPlatform=darwin ;;
FreeBSD) buildPlatform=freebsd ;;
FreeBSD) buildPlatform=freebsd
if [ "$use_32bit" = 1 ] ; then
echo Unsupported platform: FreeBSD ${platform_machine}
exit 1
fi ;;
Haiku) buildPlatform=haiku_host ;;
Linux) buildPlatform=linux ;;
OpenBSD) buildPlatform=openbsd ;;