summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-08-01 16:15:45 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-08-01 16:15:45 +0100
commit707e7c9e1571880f4247a5770ca16b0c31de9c90 (patch)
tree2b8c6ce9fb27a747baa32b7da98da9c52660b546
parent0ebce6201e7501b43adc95a394117d1060b3a65e (diff)
downloaddabmux-707e7c9e1571880f4247a5770ca16b0c31de9c90.tar.gz
dabmux-707e7c9e1571880f4247a5770ca16b0c31de9c90.tar.bz2
dabmux-707e7c9e1571880f4247a5770ca16b0c31de9c90.zip
improve autoconfigure
-rw-r--r--configure.ac5
-rw-r--r--src/dabInputZmq.cpp2
2 files changed, 6 insertions, 1 deletions
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],
diff --git a/src/dabInputZmq.cpp b/src/dabInputZmq.cpp
index b0a44e7..94bbedc 100644
--- a/src/dabInputZmq.cpp
+++ b/src/dabInputZmq.cpp
@@ -42,7 +42,6 @@
#include "dabInput.h"
#include "dabInputZmq.h"
#include "StatsServer.h"
-#include "zmq.hpp"
#include "PcDebug.h"
#ifdef HAVE_CONFIG_H
@@ -51,6 +50,7 @@
#ifdef HAVE_INPUT_ZEROMQ
+#include "zmq.hpp"
#include <cstdio>
#include <cstdlib>
#include <list>