mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-25 16:47:38 +01:00
Check for assembler with AM_PROG_AS.
(get_arch): Fix typo: $target_cpu -> $1. (ARCH_X86): Rename from ARCH_IA32. (Logical change 1.32)
This commit is contained in:
parent
99b6fe2870
commit
c9f67822dc
1 changed files with 3 additions and 6 deletions
|
@ -28,15 +28,12 @@ AC_FUNC_MEMCMP
|
|||
AC_TYPE_SIGNAL
|
||||
AC_CHECK_FUNCS(getunwind)
|
||||
|
||||
dnl Hopefully there will be an AC_PROG_AS at some point...
|
||||
AS="$CC"
|
||||
AC_SUBST(AS)
|
||||
AC_SUBST(ASFLAGS)
|
||||
AM_PROG_AS
|
||||
|
||||
get_arch() {
|
||||
case "$1" in
|
||||
i?86) echo x86;;
|
||||
*) echo $target_cpu;;
|
||||
*) echo $1;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
@ -45,7 +42,7 @@ target_arch=`get_arch $target_cpu`
|
|||
|
||||
AM_CONDITIONAL(REMOTE_ONLY, test x$target_arch != x$build_arch)
|
||||
AM_CONDITIONAL(ARCH_IA64, test x$target_arch == xia64)
|
||||
AM_CONDITIONAL(ARCH_IA32, test x$target_arch == x86)
|
||||
AM_CONDITIONAL(ARCH_X86, test x$target_arch == xx86)
|
||||
|
||||
if test x$target_arch != x$build_arch; then
|
||||
CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
|
||||
|
|
Loading…
Reference in a new issue