Update the amd64 target detection checks.

Patch contributed by Markus F.X.J. Oberhumer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-12-23 21:08:52 +00:00
parent 72a59007d4
commit ee93c874aa
2 changed files with 12 additions and 12 deletions

View File

@ -139,11 +139,11 @@ dnl This will allow Makefiles to make a distinction between the hardware and
dnl the OS.
AC_CACHE_CHECK([target architecture],[llvm_cv_target_arch],
[case $target in
i?86-*) llvm_cv_target_arch="x86" ;;
amd64-*) llvm_cv_target_arch="amd64" ;;
sparc*-*) llvm_cv_target_arch="Sparc" ;;
powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
*) llvm_cv_target_arch="Unknown" ;;
i?86-*) llvm_cv_target_arch="x86" ;;
amd64-* | x86_64-*) llvm_cv_target_arch="AMD64" ;;
sparc*-*) llvm_cv_target_arch="Sparc" ;;
powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
*) llvm_cv_target_arch="Unknown" ;;
esac])
if test "$llvm_cv_target_arch" = "Unknown" ; then
@ -184,7 +184,7 @@ else
x86) AC_SUBST(JIT,[[TARGET_HAS_JIT=1]]) ;;
Sparc) AC_SUBST(JIT,[[TARGET_HAS_JIT=1]]) ;;
PowerPC) AC_SUBST(JIT,[[TARGET_HAS_JIT=1]]) ;;
amd64) AC_SUBST(JIT,[[]]) ;;
AMD64) AC_SUBST(JIT,[[]]) ;;
*) AC_SUBST(JIT,[[]]) ;;
esac
fi

12
configure vendored
View File

@ -1742,11 +1742,11 @@ if test "${llvm_cv_target_arch+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $target in
i?86-*) llvm_cv_target_arch="x86" ;;
amd64-*) llvm_cv_target_arch="amd64" ;;
sparc*-*) llvm_cv_target_arch="Sparc" ;;
powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
*) llvm_cv_target_arch="Unknown" ;;
i?86-*) llvm_cv_target_arch="x86" ;;
amd64-* | x86_64-*) llvm_cv_target_arch="AMD64" ;;
sparc*-*) llvm_cv_target_arch="Sparc" ;;
powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
*) llvm_cv_target_arch="Unknown" ;;
esac
fi
echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
@ -2955,7 +2955,7 @@ else
;;
PowerPC) JIT=TARGET_HAS_JIT=1
;;
amd64) JIT=
AMD64) JIT=
;;
*) JIT=
;;