From eeae0a696309b42aa985a27e98ec832d21bbaff8 Mon Sep 17 00:00:00 2001 From: Michael Steinert Date: Tue, 15 May 2012 17:49:02 -0600 Subject: Cleanup 64-bit option Signed-off-by: Michael Steinert --- configure.ac | 13 ++++++++----- 1 file 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 ]) -- cgit v1.2.1