On 17 January 2018 at 15:18, Józef Kucia joseph.kucia@gmail.com wrote:
diff --git a/configure.ac b/configure.ac index b886058fef51..8a39fef7d2b9 100644 --- a/configure.ac +++ b/configure.ac @@ -62,6 +62,11 @@ m4_ifdef([PKG_PROG_PKG_CONFIG], [PKG_PROG_PKG_CONFIG], [m4_fatal([pkg-config aut
AC_CHECK_LIB([m], [ceilf])
+AC_ARG_VAR([DL_LIBS], [linker flags for dl]) +AC_CHECK_LIB([dl], [dlopen],
[AC_SUBST([DL_LIBS], ["-ldl"])],
[AC_MSG_ERROR([libdl not found.])])
I'm not sure we should necessarily care a lot about non-Linux systems at this point, but IIRC on at least some sytems dlopen() is part of libc.