aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2017-03-05 18:42:17 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2017-03-05 18:42:17 +0100
commit9d166ef42cbc82e747ef5901a384796b10f95060 (patch)
tree94f55af8b09a6f81b8cbe51f404b8da42b3a4dd6
parent39cfc5731695c46a337606da9bc86a659dbad5b3 (diff)
downloadsciteco-9d166ef42cbc82e747ef5901a384796b10f95060.tar.gz
fixed check for dlsym() on Linux where we need to link against libdl
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
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])
])