mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed --disable-rt, link against -lm
This commit is contained in:
parent
42675ed215
commit
9528f7c187
13
configure.ac
13
configure.ac
|
@ -2,7 +2,7 @@
|
||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ([2.65])
|
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_AUX_DIR(configure_aux)
|
||||||
AC_CONFIG_SRCDIR([toxcore/net_crypto.c])
|
AC_CONFIG_SRCDIR([toxcore/net_crypto.c])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
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)]) ],
|
[AC_HELP_STRING([--disable-rt], [Disables the librt check (default: auto)]) ],
|
||||||
[
|
[
|
||||||
if test "x$enableval" = "xno"; then
|
if test "x$enableval" = "xno"; then
|
||||||
DISABLE_RT="no"
|
|
||||||
elif test "x$enableval" = "xyes"; then
|
|
||||||
DISABLE_RT="yes"
|
DISABLE_RT="yes"
|
||||||
|
elif test "x$enableval" = "xyes"; then
|
||||||
|
DISABLE_RT="no"
|
||||||
fi
|
fi
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
@ -295,6 +295,11 @@ AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes")
|
||||||
|
|
||||||
AC_SUBST(EXTRA_LT_LDFLAGS)
|
AC_SUBST(EXTRA_LT_LDFLAGS)
|
||||||
|
|
||||||
|
# Needed math flags for some compilers
|
||||||
|
|
||||||
|
MATH_LDFLAGS="-lm"
|
||||||
|
AC_SUBST(MATH_LDFLAGS)
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
|
|
||||||
if test "x$WANT_NACL" = "xyes"; then
|
if test "x$WANT_NACL" = "xyes"; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user