From: Jafar Al-Gharaibeh Date: Tue, 1 Aug 2017 20:06:38 +0000 (-0500) Subject: config: On some platfroms json check fails if we don't link lm, no-op otherwise X-Git-Tag: frr-4.0-dev~460^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ea2fd55a65c0d8cef0ad3a824afae26d2a120554;p=mirror%2Ffrr.git config: On some platfroms json check fails if we don't link lm, no-op otherwise Signed-off-by: Jafar Al-Gharaibeh --- diff --git a/configure.ac b/configure.ac index 1f6ea14d4d..a67f5934e3 100755 --- a/configure.ac +++ b/configure.ac @@ -378,7 +378,7 @@ AC_ARG_ENABLE([oldvpn_commands], AS_HELP_STRING([--enable-oldvpn-commands], [Keep old vpn commands])) AC_CHECK_HEADERS(json-c/json.h) -AC_CHECK_LIB(json-c, json_object_get, LIBS="$LIBS -ljson-c") +AC_CHECK_LIB(json-c, json_object_get, LIBS="$LIBS -ljson-c", [], [-lm]) if test $ac_cv_lib_json_c_json_object_get = no; then AC_CHECK_LIB(json, json_object_get, LIBS="$LIBS -ljson") if test $ac_cv_lib_json_json_object_get = no; then