From 8578a9d52d993f4425259462c01854ea7784c57f Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 1 Jun 2014 15:47:09 -0400 Subject: Always use GModule for plugin support Also cleans up some dead code --- configure.ac | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 0e4d1922..fdcf4fb9 100644 --- a/configure.ac +++ b/configure.ac @@ -185,9 +185,10 @@ fi PKG_CHECK_MODULES([GOBJECT], [gobject-2.0], [], [AC_MSG_ERROR(Cannot find gobject-2.0!)]) PKG_CHECK_MODULES([GIO], [gio-2.0], [], [AC_MSG_ERROR(Cannot find gio-2.0!)]) +PKG_CHECK_MODULES([GMODULE], [gmodule-2.0], [], [AC_MSG_ERROR(Cannot find gmodule-2.0!)]) -COMMON_CFLAGS="$GLIB_CFLAGS $GIO_CFLAGS $GOBJECT_CFLAGS -DG_DISABLE_SINGLE_INCLUDES" -COMMON_LIBS="$GLIB_LIBS $GIO_LIBS $GOBJECT_LIBS -lgmodule-2.0" +COMMON_CFLAGS="$GLIB_CFLAGS $GIO_CFLAGS $GOBJECT_CFLAGS $GMODULE_CFLAGS -DG_DISABLE_SINGLE_INCLUDES" +COMMON_LIBS="$GLIB_LIBS $GIO_LIBS $GOBJECT_LIBS $GMODULE_LIBS" dnl ********************************************************************* dnl ** GTK ************************************************************** @@ -426,29 +427,7 @@ dnl ** PLUGIN *********************************************************** dnl ********************************************************************* if test "$plugin" = yes; then - AC_CHECK_FUNCS(dlopen, have_dl=yes) - if test "$have_dl" != yes; then - AC_CHECK_LIB(dl, dlopen, have_dl=yes) - if test "$have_dl" = yes; then - LIBS="$LIBS -ldl" - fi - fi - if test "$have_dl" = yes; then - AC_DEFINE(USE_PLUGIN) - dnl we just need the -Wl,--export-dynamic, but not -lgmodule-2.0 - RDYNAMIC_FLAGS="`$PKG_CONFIG gmodule-2.0 --libs | $sedpath 's/ -lgmodule-2.0//'`" - LIBS="$LIBS $RDYNAMIC_FLAGS" - if test "$LD" = ""; then - VS="`ld --help | grep version-script 2> /dev/null`" - else - VS="`$LD --help | grep version-script 2> /dev/null`" - fi - if test "$VS" != ""; then - GUI_LIBS="$GUI_LIBS -Wl,--version-script,\$(srcdir)/../version-script" - fi - else - plugin=no - fi + AC_DEFINE(USE_PLUGIN) fi dnl ********************************************************************* -- cgit 1.4.1