+AM_CONDITIONAL([BUILD_EHAL], [test "x${enable_ehal}" = "xyes"])
+AM_CONDITIONAL([BUILD_ENOTIFY], [test "x${enable_enotify}" = "xyes"])
+AM_CONDITIONAL([BUILD_EOFONO], [test "x${enable_eofono}" = "xyes"])
+AM_CONDITIONAL([BUILD_EUKIT], [test "x${enable_eukit}" = "xyes"])
+
+# Dependencies for the binaries
+
+EFL_ENABLE_BIN([edbus-test], ["yes"])
+EFL_ENABLE_BIN([edbus-test-client], ["yes"])
+EFL_ENABLE_BIN([edbus-bluez-test], [${enable_ebluez}])
+EFL_ENABLE_BIN([edbus-connman-test], [${enable_econnman}])
+EFL_ENABLE_BIN([edbus-notification-daemon-test], [${enable_enotify}])
+EFL_ENABLE_BIN([edbus-notify-send], [${enable_enotify}])
+EFL_ENABLE_BIN([edbus-notify-test], [${enable_enotify}])
+EFL_ENABLE_BIN([edbus-ofono-test], [${enable_eofono}])
+EFL_ENABLE_BIN([edbus-ukit-test], [${enable_eukit}])
+
+if test "x${have_edbus_test}" = "xyes" ; then
+ PKG_CHECK_MODULES([EDBUS_TEST],
+ [ecore >= 1.0.0 dbus-1 >= 0.62],
+ [have_edbus_test="yes"],
+ [have_edbus_test="no"])
+fi
+
+if test "x${have_edbus_test_client}" = "xyes" ; then
+ PKG_CHECK_MODULES([EDBUS_TEST_CLIENT],
+ [ecore >= 1.0.0 dbus-1 >= 0.62],
+ [have_edbus_test_client="yes"],
+ [have_edbus_test_client="no"])
+fi
+
+if test "x${have_edbus_bluez_test}" = "xyes" ; then
+ PKG_CHECK_MODULES([EDBUS_BLUEZ_TEST],
+ [ecore >= 1.0.0 eina >= 1.0.0 dbus-1 >= 0.62],
+ [have_edbus_bluez_test="yes"],
+ [have_edbus_bluez_test="no"])
+fi
+
+if test "x${have_edbus_connman_test}" = "xyes" ; then
+ PKG_CHECK_MODULES([EDBUS_CONNMAN_TEST],
+ [ecore >= 1.0.0 eina >= 1.0.0 dbus-1 >= 0.62],
+ [have_edbus_connman_test="yes"],
+ [have_edbus_connman_test="no"])
+fi
+
+if test "x${have_edbus_notification_daemon_test}" = "xyes" ; then
+ PKG_CHECK_MODULES([EDBUS_NOTIFICATION_DAEMON_TEST],
+ [ecore >= 1.0.0 evas >= 1.0.0 eina >= 1.0.0 dbus-1 >= 0.62],
+ [have_edbus_notification_daemon_test="yes"],
+ [have_edbus_notification_daemon_test="no"])
+fi
+
+if test "x${have_edbus_notify_send}" = "xyes" ; then
+ PKG_CHECK_MODULES([EDBUS_NOTIFY_SEND],
+ [ecore >= 1.0.0 evas >= 1.0.0 eina >= 1.0.0 dbus-1 >= 0.62],
+ [have_edbus_notify_send="yes"],
+ [have_edbus_notify_send="no"])
+fi
+
+if test "x${have_edbus_notify_test}" = "xyes" ; then
+ PKG_CHECK_MODULES([EDBUS_NOTIFY_TEST],
+ [ecore >= 1.0.0 evas >= 1.0.0 eina >= 1.0.0 dbus-1 >= 0.62],
+ [have_edbus_notify_test="yes"],
+ [have_edbus_notify_test="no"])
+fi
+
+if test "x${have_edbus_ofono_test}" = "xyes" ; then
+ PKG_CHECK_MODULES([EDBUS_OFONO_TEST],
+ [ecore >= 1.0.0 eina >= 1.0.0 dbus-1 >= 0.62],
+ [have_edbus_ofono_test="yes"],
+ [have_edbus_ofono_test="no"])
+fi
+
+if test "x${have_edbus_ukit_test}" = "xyes" ; then
+ PKG_CHECK_MODULES([EDBUS_UKIT_TEST],
+ [ecore >= 1.0.0 eina >= 1.0.0 dbus-1 >= 0.62],
+ [have_edbus_ukit_test="yes"],
+ [have_edbus_ukit_test="no"])
+fi
+
+
+### Checks for header files
+
+
+### Checks for types
+
+
+### Checks for structures
+
+
+### Checks for compiler characteristics
+
+EFL_EDBUS_BUILD=""
+case "$host_os" in
+ mingw*)
+ EFL_EDBUS_BUILD="-DEFL_EDBUS_BUILD"
+ ;;
+esac
+AC_SUBST(EFL_EDBUS_BUILD)
+
+AC_HEADER_STDC
+AC_C___ATTRIBUTE__
+
+if ! test "x${VMIC}" = "x" ; then
+ EFL_COMPILER_FLAG([-Wall])
+ EFL_COMPILER_FLAG([-W])
+fi
+
+EFL_COMPILER_FLAG([-Wshadow])
+
+
+### Checks for linker characteristics
+
+lt_enable_auto_import=""
+case "$host_os" in
+ mingw*)
+ lt_enable_auto_import="-Wl,--enable-auto-import"
+ ;;
+esac
+AC_SUBST(lt_enable_auto_import)
+
+
+### Checks for library functions
+
+AC_FUNC_ALLOCA
+
+
+AC_SUBST(requirement_ebluez)
+AC_SUBST(requirement_econnman)
+AC_SUBST(requirement_edbus)
+AC_SUBST(requirement_ehal)
+AC_SUBST(requirement_enotify)
+AC_SUBST(requirement_eofono)
+AC_SUBST(requirement_eukit)
+AC_SUBST(requirement_dbus)