Make ecore_data enabled or disabled with configure.
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 15 Feb 2010 20:29:38 +0000 (20:29 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 15 Feb 2010 20:29:38 +0000 (20:29 +0000)
This will help me for the opensolaris port... (btw
inlined functions should not be in ecore_list source
code but in its header, for those who want to fix that)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@46195 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

Makefile.am
configure.ac
src/lib/ecore_data/Makefile.am

index 3912465..0da3fe6 100644 (file)
@@ -83,7 +83,11 @@ EXTRA_DIST = AUTHORS COPYING COPYING-PLAIN \
             ecore.spec.in ecore.spec
 
 pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = ecore.pc ecore-data.pc
+pkgconfig_DATA = ecore.pc
+
+if BUILD_ECORE_DATA
+pkgconfig_DATA += ecore-data.pc
+endif
 
 if BUILD_ECORE_CON
 pkgconfig_DATA += ecore-con.pc
index e50f71d..ea2440b 100644 (file)
@@ -96,6 +96,7 @@ want_tslib="no"
 want_glib="no"
 
 # core modules
+want_ecore_data="yes"
 want_ecore_txt="no"
 want_ecore_con="no"
 want_ecore_ipc="no"
@@ -321,7 +322,6 @@ case "$host_os" in
       requirements_ecore_file="evil ${requirements_ecore_file}"
       requirements_ecore_imf="evil ${requirements_ecore_imf}"
       requirements_ecore_imf_evas="evil ${requirements_ecore_imf_evas}"
-      requirements_ecore_txt="evil ${requirements_ecore_txt}"
       EFL_ECORE_BUILD="-DEFL_ECORE_BUILD"
       EFL_ECORE_TXT_BUILD="-DEFL_ECORE_TXT_BUILD"
       EFL_ECORE_FILE_BUILD="-DEFL_ECORE_FILE_BUILD"
@@ -968,6 +968,9 @@ fi
 
 ## Core modules
 
+# ecore_data
+ECORE_CHECK_MODULE([data], [${want_ecore_data}], [Data])
+
 # ecore_txt
 ECORE_CHECK_MODULE([txt], [${want_ecore_txt}], [Txt], [$have_iconv])
 
@@ -1383,6 +1386,7 @@ echo
 echo "  Ecore........................: always"
 echo "    Thread support.............: $have_pthread"
 echo "    GLib support...............: $have_glib"
+echo "  Ecore_Data...................: $have_ecore_data"
 echo "  Ecore_Txt....................: $have_ecore_txt"
 echo "  Ecore_Con....................: $have_ecore_con"
 if test "x$have_ecore_con" = "xyes" ; then
index 934d51d..00a2110 100644 (file)
@@ -1,7 +1,13 @@
 MAINTAINERCLEANFILES = Makefile.in
 
-AM_CPPFLAGS = -I$(top_srcdir)/src/lib/ecore \
-@EVIL_CFLAGS@ @EINA_CFLAGS@  @WIN32_CPPFLAGS@ @EFL_ECORE_BUILD@
+AM_CPPFLAGS = \
+-I$(top_srcdir)/src/lib/ecore \
+@EVIL_CFLAGS@ \
+@EINA_CFLAGS@ \
+@WIN32_CPPFLAGS@ \
+@EFL_ECORE_BUILD@
+
+if BUILD_ECORE_DATA
 
 lib_LTLIBRARIES = libecore_data.la
 include_HEADERS = \
@@ -22,3 +28,4 @@ ecore_value.c
 libecore_data_la_LIBADD = @dlopen_libs@ @EINA_LIBS@ @EVIL_LIBS@ @WIN32_LIBS@ @LTLIBINTL@ @EFL_PTHREAD_LIBS@ -lm
 libecore_data_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @ecore_release_info@
 
+endif