From 745fa29c0fe4860a67da698c17057d687f1b9bc7 Mon Sep 17 00:00:00 2001 From: waker Date: Wed, 4 May 2011 21:30:07 +0200 Subject: detect the need for linking to libdl.so in configure --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 575d795c..ede78b60 100644 --- a/configure.ac +++ b/configure.ac @@ -110,6 +110,9 @@ if test "x$enable_staticlink" != "xno" ; then STATICLINK=yes fi +dnl check for libdl +AC_CHECK_LIB([dl], [main], [HAVE_DL=yes;DL_LIBS="-ldl";AC_SUBST(DL_LIBS)]) + if test "x$enable_portable" != "xno" && test "x$enable_staticlink" != "xno" ; then AC_DEFINE_UNQUOTED([PORTABLE], [1], [Define if building portable version]) PORTABLE=yes @@ -450,7 +453,7 @@ fi if test "x$enable_src" != "xno" ; then if test "x$enable_staticlink" != "xno" ; then - LIBSAMPLERATE_DEPS_LIBS="../../$LIB/libsamplerate.a -lpthread -ldl" + LIBSAMPLERATE_DEPS_LIBS="../../$LIB/libsamplerate.a -lpthread ${DL_LIBS}" AC_SUBST(LIBSAMPLERATE_DEPS_LIBS) HAVE_DSP_SRC=yes else -- cgit v1.2.3