From 5c5dfbcbfce86ea695dd76e0ce24adbc1955b5ed Mon Sep 17 00:00:00 2001 From: kakaroto Date: Sat, 15 Oct 2011 09:48:50 +0000 Subject: [PATCH] Elementary: Do not build modules if dlopen is not available on the system git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@64094 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- configure.ac | 1 + src/Makefile.am | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ba4b80c..827c2fe 100755 --- a/configure.ac +++ b/configure.ac @@ -182,6 +182,7 @@ dnl managed by evil esac AC_CHECK_FUNCS(strcasestr, AC_DEFINE(HAVE_STRCASESTR)) AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"]) +AM_CONDITIONAL([BUILD_MODULES], [test "x$have_dlopen" = "xyes"]) m4_ifdef([v_mic], [ diff --git a/src/Makefile.am b/src/Makefile.am index 8c0d716..abaa75d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,10 @@ AUTOMAKE_OPTIONS = 1.4 foreign MAINTAINERCLEANFILES = Makefile.in -SUBDIRS = lib bin modules edje_externals examples +SUBDIRS = lib bin + +if BUILD_MODULES +SUBDIRS += modules edje_externals +endif + +SUBDIRS += examples -- 2.7.4