From 9d166ef42cbc82e747ef5901a384796b10f95060 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 5 Mar 2017 18:42:17 +0100 Subject: fixed check for dlsym() on Linux where we need to link against libdl --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e47ac0d..dc8b1d2 100644 --- a/configure.ac +++ b/configure.ac @@ -166,6 +166,9 @@ AC_CHECK_FUNCS([memset setlocale strchr strrchr fstat], , [ # glib defines G_OS_UNIX||G_OS_HAIKU instead... case $host in *-*-linux* | *-*-*bsd* | *-*-darwin* | *-*-cygwin* | *-*-haiku*) + AC_SEARCH_LIBS([dlsym], [dl], , [ + AC_MSG_ERROR([Required function dlsym() not found!]) + ]) AC_CHECK_FUNCS([realpath fchown dup dup2 dlsym], , [ AC_MSG_ERROR([Missing libc function]) ]) -- cgit v1.2.3