From 9528f7c18761033be2c405d0117f17e9a71f7d87 Mon Sep 17 00:00:00 2001 From: Sean Qureshi Date: Mon, 26 May 2014 22:45:51 -0700 Subject: [PATCH] Fixed --disable-rt, link against -lm --- configure.ac | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 2f216136..e3b9a77b 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.65]) -AC_INIT([tox], [0.0.0], [http://tox.im]) +AC_INIT([tox], [0.0.0], [https://tox.im]) AC_CONFIG_AUX_DIR(configure_aux) AC_CONFIG_SRCDIR([toxcore/net_crypto.c]) AC_CONFIG_HEADERS([config.h]) @@ -178,13 +178,13 @@ AC_ARG_ENABLE([daemon], ] ) -AC_ARG_ENABLE([nort], +AC_ARG_ENABLE([rt], [AC_HELP_STRING([--disable-rt], [Disables the librt check (default: auto)]) ], [ if test "x$enableval" = "xno"; then - DISABLE_RT="no" - elif test "x$enableval" = "xyes"; then DISABLE_RT="yes" + elif test "x$enableval" = "xyes"; then + DISABLE_RT="no" fi ] ) @@ -295,6 +295,11 @@ AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes") AC_SUBST(EXTRA_LT_LDFLAGS) +# Needed math flags for some compilers + +MATH_LDFLAGS="-lm" +AC_SUBST(MATH_LDFLAGS) + # Checks for libraries. if test "x$WANT_NACL" = "xyes"; then