diff --git a/legacy/elementary/configure.ac b/legacy/elementary/configure.ac index a336a77d6a..5b536284f2 100644 --- a/legacy/elementary/configure.ac +++ b/legacy/elementary/configure.ac @@ -181,6 +181,7 @@ dnl managed by evil ;; esac 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/legacy/elementary/src/Makefile.am b/legacy/elementary/src/Makefile.am index 8c0d716935..abaa75d7dd 100644 --- a/legacy/elementary/src/Makefile.am +++ b/legacy/elementary/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