From e3a4755b781fe92eb8c6aaadcf7718a4706c6973 Mon Sep 17 00:00:00 2001 From: Sean Qureshi Date: Wed, 21 May 2014 17:39:53 -0700 Subject: [PATCH] Adds --disable-rt to configure, fixing Android --- configure.ac | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cb003036..d42961eb 100644 --- a/configure.ac +++ b/configure.ac @@ -139,6 +139,17 @@ AC_ARG_ENABLE([daemon], ] ) +AC_ARG_ENABLE([nort], + [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" + fi + ] +) + AC_ARG_ENABLE([testing], [AC_HELP_STRING([--disable-testing], [build various testing tools (default: auto)]) ], [ @@ -392,7 +403,7 @@ AC_C_BIGENDIAN # Checks for library functions. AC_FUNC_FORK AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc]) -if (test "x$WIN32" != "xyes") && (test "x$MACH" != "xyes"); then +if (test "x$WIN32" != "xyes") && (test "x$MACH" != "xyes") && (test "x$DISABLE_RT" != "xyes"); then AC_CHECK_LIB(rt, clock_gettime, [ RT_LIBS="-lrt"