From c62f7a6ae820d1edf39e72176a08999b8e6d33a5 Mon Sep 17 00:00:00 2001 From: Date: Fri, 18 Jul 2008 04:56:06 -0700 Subject: [PATCH] Adding missing file. --- config/64bit.m4 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 config/64bit.m4 diff --git a/config/64bit.m4 b/config/64bit.m4 new file mode 100644 index 00000000..a704c655 --- /dev/null +++ b/config/64bit.m4 @@ -0,0 +1,31 @@ +dnl --------------------------------------------------------------------------- +dnl Macro: 64BIT +dnl --------------------------------------------------------------------------- +AC_ARG_ENABLE(64bit, + [ --enable-64bit Build 64bit library.], + [ + org_cflags=$CFLAGS + CFLAGS=-m64 + AC_LANG(C) + AC_RUN_IFELSE([ + AC_LANG_PROGRAM([], [ if (sizeof(void*) != 8) return 1;]) + ],[ + CFLAGS="$CFLAGS $org_cflags" + ],[ + AC_MSG_ERROR([Don't know how to build a 64-bit object.]) + ]) + org_cxxflags=$CXXFLAGS + CXXFLAGS=-m64 + AC_LANG(C++) + AC_RUN_IFELSE([ + AC_LANG_PROGRAM([], [ if (sizeof(void*) != 8) return 1;]) + ],[ + CXXFLAGS="$CXXFLAGS $org_cxxflags" + ],[ + AC_MSG_ERROR([Don't know how to build a 64-bit object.]) + ]) + + ]) +dnl --------------------------------------------------------------------------- +dnl End Macro: 64BIT +dnl --------------------------------------------------------------------------- -- 2.30.2