autotools: remove dlopen check (unused) and -lm in .pc
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
8d5b848156
commit
7e4d2fb36c
22
configure.ac
22
configure.ac
|
@ -63,28 +63,6 @@ fi
|
||||||
|
|
||||||
AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
|
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
|
EFL_CHECK_THREADS
|
||||||
|
|
||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
|
|
|
@ -8,5 +8,5 @@ Description: EFL IRC communication library
|
||||||
@pkgconfig_requires_private@: @requirements_libexpress@
|
@pkgconfig_requires_private@: @requirements_libexpress@
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Libs: -L${libdir} -lexpress
|
Libs: -L${libdir} -lexpress
|
||||||
Libs.private: -lm
|
Libs.private:
|
||||||
Cflags: -I${includedir}/express
|
Cflags: -I${includedir}/express
|
||||||
|
|
|
@ -19,7 +19,7 @@ libexpress_la_SOURCES = \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
libexpress_la_LDFLAGS = -version-info 0:1:0 @EXP_LDFLAGS@
|
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
|
installed_mainheaderdir = $(includedir)/express
|
||||||
dist_installed_mainheader_DATA = Express.h
|
dist_installed_mainheader_DATA = Express.h
|
||||||
|
|
Loading…
Reference in New Issue