From 7e4d2fb36cfafd14a9e45d1287289dd60e7a5490 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sat, 6 Dec 2014 07:08:15 +0100 Subject: [PATCH] autotools: remove dlopen check (unused) and -lm in .pc Signed-off-by: Chris Michael --- configure.ac | 22 ---------------------- express.pc.in | 2 +- src/lib/Makefile.am | 2 +- 3 files changed, 2 insertions(+), 24 deletions(-) diff --git a/configure.ac b/configure.ac index 896c765..c78d49f 100644 --- a/configure.ac +++ b/configure.ac @@ -63,28 +63,6 @@ fi AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"]) -# dlopen -dlopen_libs="" -case "$host_os" in - mingw*) -# nothing on mingw platform - ;; - *) - AC_CHECK_FUNCS(dlopen, res=yes, res=no) - if test "x$res" = "xyes"; then - AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR)) - else - AC_CHECK_LIB(dl, dlopen, res=yes, res=no) - if test "x$res" = "xyes"; then - AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR)) - dlopen_libs=-ldl - else - AC_MSG_ERROR(Cannot find dlopen) - fi - fi -esac -AC_SUBST(dlopen_libs) - EFL_CHECK_THREADS PKG_PROG_PKG_CONFIG diff --git a/express.pc.in b/express.pc.in index bde56f0..61470fd 100644 --- a/express.pc.in +++ b/express.pc.in @@ -8,5 +8,5 @@ Description: EFL IRC communication library @pkgconfig_requires_private@: @requirements_libexpress@ Version: @VERSION@ Libs: -L${libdir} -lexpress -Libs.private: -lm +Libs.private: Cflags: -I${includedir}/express diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 76de396..ac2d06f 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -19,7 +19,7 @@ libexpress_la_SOURCES = \ main.c libexpress_la_LDFLAGS = -version-info 0:1:0 @EXP_LDFLAGS@ -libexpress_la_LIBADD = @dlopen_libs@ @LIBEXPRESS_LIBS@ +libexpress_la_LIBADD = @LIBEXPRESS_LIBS@ installed_mainheaderdir = $(includedir)/express dist_installed_mainheader_DATA = Express.h