From 707e7c9e1571880f4247a5770ca16b0c31de9c90 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 1 Aug 2014 16:15:45 +0100 Subject: improve autoconfigure --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 20f6a16..6d694bb 100644 --- a/configure.ac +++ b/configure.ac @@ -144,6 +144,11 @@ AS_IF([test "x$enable_input_zeromq" = "xyes"], AS_IF([test "x$enable_input_zeromq" = "xyes"], AC_DEFINE(HAVE_INPUT_ZEROMQ, [1], [Define if ZEROMQ input is enabled])) +save_LDFLAGS="$LDFLAGS" +LDFLAGS="$LDFLAGS -lm" +AC_CHECK_LIB(fec, encode_rs_char, [] , AC_MSG_ERROR(libfec is required)) +LDFLAGS="$save_LDFLAGS" + # Outputs # FILE AC_ARG_ENABLE([output_file], -- cgit v1.2.3