summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaren Myneni <haren@us.ibm.com>2006-07-27 10:55:20 -0600
committerEric W. Biederman <ebiederm@xmission.com>2006-07-27 10:55:34 -0600
commit3d14d4d0ac791d1d180763806f610cdd06a95a94 (patch)
tree8df39ae0a0f87a0a6c1507c0f7711f681cabc7c4
parent92aade5b19bfdd14dfa47ed1426bd90d2064cfe8 (diff)
Missing powerpc64 and s390 support in configure.ac script
Olaf, The attached patch will fix the problem that you reported - "unrecognized architecture powerpc64" when building kexec-tools. Even though the configure script can recognize powerpc64, getting unrecognized architecture "powerpc64" when we run "autoreconf .." tool since it modifies the configure script based on configure.ac script. But the powerpc64 support is missing in configure.ac. Similarly for s390. Thanks Haren Signed-off-by: Haren Myneni <haren@us.ibm.com> Signed-off-by: Maneesh Soni <maneesh@in.ibm.com>
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3d81910..c1d9224 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,6 +25,9 @@ case $host_cpu in
powerpc )
host_cpu="ppc"
;;
+ powerpc64 )
+ host_cpu="ppc64"
+ ;;
s390x )
host_cpu="s390"
;;
@@ -48,6 +51,12 @@ if test "${host_alias}" ; then
OBJDIR="$OBJDIR-${host_alias}"
fi
EXTRA_CFLAGS=""
+
+# Check whether ppc64. Add -m64 for building 64-bit binary
+if test "$ARCH" = ppc64; then
+ EXTRA_CFLAGS="$EXTRA_CFLAGS -m64"
+fi;
+
AC_ARG_WITH([objdir], AC_HELP_STRING([--with-objdir=<dir>],[select directory for object files]),
[ OBJDIR="$withval" ], [ OBJDIR="$OBJDIR" ])