|
From: <sv...@va...> - 2006-06-07 17:44:48
|
Author: tom
Date: 2006-06-07 18:44:36 +0100 (Wed, 07 Jun 2006)
New Revision: 5966
Log:
Try and automatically detect pure 64 bit systems with no 32 bit support.
Modified:
trunk/configure.in
Modified: trunk/configure.in
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/configure.in 2006-06-07 17:44:07 UTC (rev 5965)
+++ trunk/configure.in 2006-06-07 17:44:36 UTC (rev 5966)
@@ -238,7 +238,32 @@
;;
esac
=20
+# If we are building on a 64 bit platform test to see if the system
+# supports building 32 bit programs and disable 32 bit support if it
+# does not support building 32 bit programs
=20
+case "$VG_ARCH-$VG_OS" in
+ amd64-linux|ppc64-linux)
+ AC_MSG_CHECKING([for 32 bit build support])
+ safe_CFLAGS=3D$CFLAGS
+ CFLAGS=3D"-m32"
+ AC_TRY_LINK(, [
+ int main () { return 0 ; }
+ ],
+ [
+ AC_MSG_RESULT([yes])
+ ], [
+ vg_cv_only64bit=3D"yes"
+ AC_MSG_RESULT([no])
+ ])
+ CFLAGS=3D$safe_CFLAGS;;
+esac
+
+if test x$vg_cv_only64bit =3D xyes -a x$vg_cv_only32bit =3D xyes; then
+ AC_MSG_ERROR(
+ [--enable-only32bit was specified but system does not support 32 b=
it builds])
+fi
+
# Establish VG_PLATFORM_PRI. This is the primary build target. The
# entire system, including regression and performance tests, will be
# built for this target.
|