Elementary: Do not build modules if dlopen is not available on the system
authorkakaroto <kakaroto@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 15 Oct 2011 09:48:50 +0000 (09:48 +0000)
committerMike McCormack <mj.mccormack@samsung.com>
Thu, 10 Nov 2011 06:07:10 +0000 (15:07 +0900)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@64094 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/Makefile.am

index ba4b80c..827c2fe 100755 (executable)
@@ -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],
    [
index 8c0d716..abaa75d 100644 (file)
@@ -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