summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-10-10 22:31:18 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-10-10 22:31:18 +0900
commit2c1c6b9335e38c6e52b06829a95d9b58d780c99e (patch)
tree8ff42a2d2e2c3be345953558fd94aa463b670fb7 /configure.ac
parent4ce3e1e72f600be69702ac918f4ff8a099d49c6d (diff)
ecore-con: make curl support entirely runtime loaded via eina_module
this makes curl support a pure runtime-only thing. libcurl is loaded by eina_module (dlopen/dlsym) when curl is actually first needed (when a url connection/object is created). this means that ecore-con has no link or compile dependencies on curl, only runtime, AND this saves memory (due to curl inits using apparently a chunk of private pages). so this saves memory and moves the dependency to runtime (though still consider libcurl a dependency of efl - but like a binary executed, it's at runtime).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 0 insertions, 17 deletions
diff --git a/configure.ac b/configure.ac
index 77972b8997..d5a359e39c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1969,26 +1969,12 @@ EFL_LIB_END([Ecore])
1969 1969
1970EFL_LIB_START([Ecore_Con]) 1970EFL_LIB_START([Ecore_Con])
1971 1971
1972### Additional options to configure
1973
1974AC_ARG_ENABLE([curl],
1975 [AC_HELP_STRING([--disable-curl], [disable curl support. @<:@default=enabled@:>@])],
1976 [
1977 if test "x${enableval}" = "xyes" ; then
1978 want_curl="yes"
1979 else
1980 want_curl="no"
1981 fi
1982 ],
1983 [want_curl="yes"])
1984
1985### Default values 1972### Default values
1986 1973
1987want_ecore_con_local_sockets="yes" 1974want_ecore_con_local_sockets="yes"
1988want_ecore_con_abstract_sockets="yes" 1975want_ecore_con_abstract_sockets="yes"
1989 1976
1990if test "${have_wince}" = "yes"; then 1977if test "${have_wince}" = "yes"; then
1991 want_curl="no"
1992 want_cares="no" 1978 want_cares="no"
1993 want_ecore_con_local_sockets="no" 1979 want_ecore_con_local_sockets="no"
1994 want_ecore_con_abstract_sockets="no" 1980 want_ecore_con_abstract_sockets="no"
@@ -2027,8 +2013,6 @@ EFL_INTERNAL_DEPEND_PKG([ECORE_CON], [ecore])
2027 2013
2028EFL_ADD_LIBS([ECORE_CON], [-lm]) 2014EFL_ADD_LIBS([ECORE_CON], [-lm])
2029 2015
2030EFL_OPTIONAL_DEPEND_PKG([ECORE_CON], [${want_curl}], [CURL], [libcurl])
2031
2032EFL_OPTIONAL_DEPEND_PKG([ECORE_CON], [${want_cares}], 2016EFL_OPTIONAL_DEPEND_PKG([ECORE_CON], [${want_cares}],
2033 [CARES], [libcares >= 1.6.1]) 2017 [CARES], [libcares >= 1.6.1])
2034AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"]) 2018AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
@@ -2043,7 +2027,6 @@ fi
2043 2027
2044EFL_OPTIONAL_DEPEND_PKG([ECORE_CON], [${want_systemd}], [SYSTEMD], [libsystemd-daemon]) 2028EFL_OPTIONAL_DEPEND_PKG([ECORE_CON], [${want_systemd}], [SYSTEMD], [libsystemd-daemon])
2045 2029
2046EFL_ADD_FEATURE([ECORE_CON], [curl])
2047EFL_ADD_FEATURE([ECORE_CON], [cares]) 2030EFL_ADD_FEATURE([ECORE_CON], [cares])
2048EFL_ADD_FEATURE([ECORE_CON], [local-sockets], [${want_ecore_con_local_sockets}]) 2031EFL_ADD_FEATURE([ECORE_CON], [local-sockets], [${want_ecore_con_local_sockets}])
2049EFL_ADD_FEATURE([ECORE_CON], [abstract-sockets], [${want_ecore_con_abstract_sockets}]) 2032EFL_ADD_FEATURE([ECORE_CON], [abstract-sockets], [${want_ecore_con_abstract_sockets}])