-ELM_ELOCATION_DEF="#undef"
-have_elementary_elocation="no"
-want_elementary_elocation="auto"
-AC_ARG_ENABLE([elocation],
- [AC_HELP_STRING([--disable-elocation], [disable elocation support. @<:@default=detect@:>@])],
- [want_elementary_elocation=$enableval], [])
-
-if test "x$want_elementary_elocation" != "xno"; then
- PKG_CHECK_MODULES([ELEMENTARY_ELOCATION],
- [
- elocation >= 0.1.0
- ],
- [
- AC_DEFINE(HAVE_ELEMENTARY_ELOCATION, 1, [Elocation support for Elementary])
- have_elementary_elocation="yes"
- ELM_ELOCATION_DEF="#define"
- requirement_elm="elocation >= 0.1.0 ${requirement_elm}"
- ],
- [have_elementary_elocation="no"]
- )
-else
- have_elementary_elocation="no"
-fi
-if test "x$want_elementary_elocation" = "xyes" -a "x$have_elementary_elocation" = "xno"; then
- AC_MSG_ERROR([elocation support requested, but elocation was not found by pkg-config.])
-fi
-AC_SUBST(ELM_ELOCATION_DEF)
-
-ELM_EWEATHER_DEF="#undef"
-have_elementary_eweather="no"
-want_elementary_eweather="auto"
-AC_ARG_ENABLE([eweather],
- [AC_HELP_STRING([--disable-eweather], [disable eweather support. @<:@default=detect@:>@])],
- [want_elementary_eweather=$enableval], [])
-
-if test "x$want_elementary_eweather" != "xno"; then
- PKG_CHECK_MODULES([ELEMENTARY_EWEATHER],
- [
- eweather
- ],
- [
- AC_DEFINE(HAVE_ELEMENTARY_EWEATHER, 1, [EWeather support for Elementary])
- have_elementary_eweather="yes"
- ELM_EWEATHER_DEF="#define"
- requirement_elm="eweather ${requirement_elm}"
- ],
- [have_elementary_eweather="no"]
- )
-else
- have_elementary_eweather="no"
-fi
-if test "x$want_elementary_eweather" = "xyes" -a "x$have_elementary_eweather" = "xno"; then
- AC_MSG_ERROR([Eweather support requested, but eweather was not found by pkg-config.])
-fi
-AC_SUBST(ELM_EWEATHER_DEF)
-
-ELM_EMAP_DEF="#undef"
-have_elementary_emap="no"
-want_elementary_emap="auto"
-AC_ARG_ENABLE([emap],
- [AC_HELP_STRING([--disable-emap], [disable emap support. @<:@default=detect@:>@])],
- [want_elementary_emap=$enableval], [])
-
-if test "x$want_elementary_emap" != "xno"; then
- PKG_CHECK_MODULES([ELEMENTARY_EMAP],
- [
- emap
- ],
- [
- AC_DEFINE(HAVE_ELEMENTARY_EMAP, 1, [EMap support for Elementary])
- have_elementary_emap="yes"
- ELM_EMAP_DEF="#define"
- requirement_elm="emap ${requirement_elm}"
- ],
- [have_elementary_emap="no"]
- )
-else
- have_elementary_emap="no"
-fi
-if test "x$want_elementary_emap" = "xyes" -a "x$have_elementary_emap" = "xno"; then
- AC_MSG_ERROR([Emap support requested, but emap was not found by pkg-config.])