From: Date: Fri, 18 Jul 2008 11:56:06 +0000 (-0700) Subject: Adding missing file. X-Git-Tag: 0.23~26 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c62f7a6ae820d1edf39e72176a08999b8e6d33a5;p=awesomized%2Flibmemcached Adding missing file. --- 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 ---------------------------------------------------------------------------