aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2007-06-05 16:28:35 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2007-06-05 16:28:35 +0000
commita4589d061217cec4ef6e8c35b936b9e52a98dfa8 (patch)
treef49c5a46ca25ff39dfd984dec68d03a5fed15e14 /configure.ac
parent8f0b75c515933f6856f44fc6c26b8db4b29125ce (diff)
downloadrpm-setup-a4589d061217cec4ef6e8c35b936b9e52a98dfa8.tar
rpm-setup-a4589d061217cec4ef6e8c35b936b9e52a98dfa8.tar.gz
rpm-setup-a4589d061217cec4ef6e8c35b936b9e52a98dfa8.tar.bz2
rpm-setup-a4589d061217cec4ef6e8c35b936b9e52a98dfa8.tar.xz
rpm-setup-a4589d061217cec4ef6e8c35b936b9e52a98dfa8.zip
- provide a /etc/rpm/platform
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 94958de..38f271c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,28 +21,37 @@ AC_CHECK_LIB([rpmio], [rpmLoadMacroFile])
AC_HEADER_STDC
AC_CHECK_HEADERS([string.h rpm/rpmmacros.h rpm/rpmlib.h])
+CANONTARGETCPU=${target_cpu}
+
case "${target_cpu}" in
*86|athlon|k6)
RPMALLARCH="i386 i486 i586 i686 k6 athlon pentium3 pentium4"
+ CANONTARGETCPU=i586
;;
x86_64|amd64)
RPMALLARCH="i386 i486 i586 i686 k6 athlon pentium3 pentium4 amd64 x86_64"
+ CANONTARGETCPU=x86_64
;;
ppc|powerpc)
RPMALLARCH="ppc"
+ CANONTARGETCPU=ppc
;;
ppc64|powerpc64)
RPMALLARCH="ppc ppc32 ppc64"
+ CANONTARGETCPU=ppc64
;;
sparc|sparcv9)
RPMALLARCH="sparc"
+ CANONTARGETCPU=sparc
;;
sparc64)
RPMALLARCH="sparc sparc64"
+ CANONTARGETCPU=sparc64
;;
esac
RPMALLARCH="${RPMALLARCH} noarch"
AC_SUBST(RPMALLARCH)
+AC_SUBST(CANONTARGETCPU)
#
# get rid of the 4-th tuple, if config.guess returned "linux-gnu" for build_os