diff options
author | Michael Steinert <mike.steinert@gmail.com> | 2012-05-15 17:49:02 -0600 |
---|---|---|
committer | Michael Steinert <mike.steinert@gmail.com> | 2012-05-17 11:44:45 -0600 |
commit | eeae0a696309b42aa985a27e98ec832d21bbaff8 (patch) | |
tree | 5ef32dbcbb7e125f2718a05ba500577fab03e2ca /configure.ac | |
parent | 6d01db78dfdaa4e72b69605a778899280fa32db8 (diff) | |
download | rabbitmq-c-github-ask-eeae0a696309b42aa985a27e98ec832d21bbaff8.tar.gz |
Cleanup 64-bit option
Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index fa444c3..e03761f 100644 --- a/configure.ac +++ b/configure.ac @@ -71,11 +71,13 @@ AC_SUBST(PLATFORM_DIR) AM_CONDITIONAL([OS_UNIX], [test "x$windows" = "xno"]) AM_CONDITIONAL([OS_WIN32], [test "x$windows" = "xyes"]) -dnl Enable -m64 if we were asked to do so -AC_ARG_ENABLE(64-bit, -[ --enable-64-bit produce 64-bit library], -[CFLAGS="$CFLAGS -m64"; LDFLAGS="$LDFLAGS -m64"], -) +# 64-bit option +AC_ARG_ENABLE([64-bit], + [AS_HELP_STRING([--enable-64-bit], + [produce 64-bit library @<:@no@:>@])], + [AX_TRY_CFLAGS([-m64], AX_CFLAGS([-m64])) + AX_TRY_LDFLAGS([-m64], [AX_LDFLAGS([-m64])])], + [enable_64_bit=no]) # Configure python pythons="python python2.6 python2.5" @@ -147,6 +149,7 @@ AC_MSG_RESULT([ $PACKAGE_NAME build options: Host: $host Version: $VERSION + 64-bit: $enable_64_bit Tools: $enable_tools Documentation: $enable_docs ]) |