summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-10-08 16:19:17 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-10-08 16:19:17 +0200
commit7f9c0a810b6028680d14a9b479a61b37ffa10f83 (patch)
tree8162469ab9228f7e5269df6d1fcdd9273d3343f3 /configure.ac
parenta7825f19f14e149f6b14107124ee1521417f2fec (diff)
downloadODR-AudioEnc-7f9c0a810b6028680d14a9b479a61b37ffa10f83.tar.gz
ODR-AudioEnc-7f9c0a810b6028680d14a9b479a61b37ffa10f83.tar.bz2
ODR-AudioEnc-7f9c0a810b6028680d14a9b479a61b37ffa10f83.zip
Use pkg-config to check for fdk-aac
This solves wrong linking if both /usr/lib/libfdk.so.0 and /usr/local/lib/libfdk.so.1 exist
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 0a5cd6f..915f43d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,7 +80,9 @@ AM_CONDITIONAL([HAVE_JACK], [ test "x$enable_jack" = "xyes" ])
AM_CONDITIONAL([HAVE_ALSA], [ test "x$enable_alsa" = "xyes" ])
AC_CHECK_LIB(zmq, zmq_init, , AC_MSG_ERROR(ZeroMQ libzmq is required))
-AC_CHECK_LIB(fdk-aac, aacEncOpen, , AC_MSG_ERROR(The FDK-AAC library is required))
+PKG_CHECK_MODULES([LIBFDKAAC], [fdk-aac])
+AC_SUBST([LIBFDKAAC_CFLAGS])
+AC_SUBST([LIBFDKAAC_LIBS])
# We need to have the ODR fdk-aac, the upstream one doesn't support DAB+
AC_MSG_CHECKING([for DAB+ support in FDK-AAC])