autotools: remove dlopen check (unused) and -lm in .pc

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Vincent Torri 2014-12-06 07:08:15 +01:00 committed by Chris Michael
parent 8d5b848156
commit 7e4d2fb36c
3 changed files with 2 additions and 24 deletions

View File

@ -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

View File

@ -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

View File

@ -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