From 741e367f92ceb994ef136d1580b1d14847a42f80 Mon Sep 17 00:00:00 2001 From: qiyong Date: Tue, 6 Jun 2006 06:05:01 +0000 Subject: [PATCH] Temp fix: gcc with 64-bit support (like in debian) doesn't mean the target is 64-bit. --- build/autoconf/lustre-build.m4 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/autoconf/lustre-build.m4 b/build/autoconf/lustre-build.m4 index 8deda35..31d5967 100644 --- a/build/autoconf/lustre-build.m4 +++ b/build/autoconf/lustre-build.m4 @@ -495,6 +495,9 @@ if test $ac_cv_sizeof_unsigned_long_long != 8 ; then AC_MSG_ERROR([** we assume that sizeof(long long) == 8. Tell phil@clusterfs.com]) fi +# FIXME +AC_CHECK_DECL([__i386__], [], [ + if test x$enable_bgl != xyes; then AC_MSG_CHECKING([if $CC accepts -m64]) CC_save="$CC" @@ -507,6 +510,8 @@ AC_TRY_COMPILE([],[],[ ]) fi +]) + CPPFLAGS="-I\$(top_builddir)/lnet/include -I\$(top_srcdir)/lnet/include -I\$(top_builddir)/lustre/include -I\$(top_srcdir)/lustre/include $CPPFLAGS" LLCPPFLAGS="-D__arch_lib__ -D_LARGEFILE64_SOURCE=1" -- 1.8.3.1