diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
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 |