--- configure.ac 2009-08-26 18:34:15.000000000 -0600 +++ configure.ac.non32 2009-08-26 18:33:06.000000000 -0600 @@ -44,15 +44,32 @@ AC_PROG_LN_S AC_PROG_MAKE_SET +enabled_non32bit="no" +AC_ARG_ENABLE([non32bit-int], + [ --enable-non32bit-int Allow compile on non 32bit int architectures [[default=no]]], + [if test "x$enableval" = "xyes"; then + enabled_non32bit="yes" + fi]) + dnl die on int != 32bits. This is too instrumental to our code right now. dnl AC_MSG_CHECKING(int is 4 bytes) OH_SET_SIZES if test "x$OH_SIZEOF_INT" != "x4"; then - AC_MSG_ERROR([ -*** int is not 4 bytes, it is $OH_SIZEOF_INT bytes on this platform -*** undefined behavior will result -*** please contact the openhpi development team to fix this -]) + if test "x$enabled_non32bit" = "xyes"; then + AC_MSG_WARN([ +*** Size of int is not 4 bytes, it is $OH_SIZEOF_INT bytes on this platform. +*** The --enable_non32bit_int arg has been used to force compilation regardless. +*** Execution on this platform is not supported and could produce undefined +*** behavior. + ]) + else + AC_MSG_ERROR([ +*** Size of int is not 4 bytes, it is $OH_SIZEOF_INT bytes on this platform. +*** Execution on this platform is not supported and could produce undefined +*** behavior. +*** Please contact the openhpi development team to fix this + ]) + fi fi AM_CONDITIONAL(CROSS_COMPILATION, test x$cross_compiling = xyes) @@ -164,7 +181,6 @@ AM_CONDITIONAL(OPENHPID_STATIC, test x$openhpid_static = xyes) - AC_ARG_ENABLE([clients], [ --enable-clients build HPI client programs [[default=yes]]], [if test "x$enableval" = "xyes"; then