requirements_pc_deps_crypto=""
requirements_libs_crypto=""
-requirements_libs_evil=""
-requirements_libs_eina=""
-requirements_libs_eo=""
-requirements_libs_eet=""
-requirements_libs_evas=""
-requirements_libs_ecore=""
-requirements_libs_ecore_con=""
-requirements_libs_ecore_ipc=""
-requirements_libs_ecore_file=""
-requirements_libs_ecore_input=""
-requirements_libs_ecore_cocoa=""
-requirements_libs_ecore_fb=""
-requirements_libs_ecore_psl1ght=""
-requirements_libs_ecore_sdl=""
-requirements_libs_ecore_wayland=""
-requirements_libs_ecore_audio=""
-requirements_libs_ecore_win32=""
-requirements_libs_ecore_wince=""
-requirements_libs_ecore_x=""
-requirements_libs_ecore_evas=""
-requirements_libs_embryo=""
-requirements_libs_eio=""
-requirements_libs_edbus=""
-requirements_libs_efreet=""
-#requirements_libs_edje=""
-#requirements_libs_eeze=""
-#requirements_libs_emotion=""
-#requirements_libs_ethumb=""
-#requirements_libs_elementary=""
-
-requirements_pc_eina=""
-requirements_pc_eo=""
-requirements_pc_eet=""
-requirements_pc_evas=""
-requirements_pc_ecore=""
-requirements_pc_ecore_con=""
-requirements_pc_ecore_ipc=""
-requirements_pc_ecore_file=""
-requirements_pc_ecore_input=""
-requirements_pc_ecore_input_evas=""
-requirements_pc_ecore_cocoa=""
-requirements_pc_ecore_fb=""
-requirements_pc_ecore_psl1ght=""
-requirements_pc_ecore_sdl=""
-requirements_pc_ecore_wayland=""
-requirements_pc_ecore_audio=""
-requirements_pc_ecore_win32=""
-requirements_pc_ecore_wince=""
-requirements_pc_ecore_x=""
-requirements_pc_ecore_evas=""
-requirements_pc_embryo=""
-requirements_pc_eio=""
-requirements_pc_edbus=""
-requirements_pc_efreet=""
-#requirements_pc_edje=""
-#requirements_pc_eeze=""
-#requirements_pc_emotion=""
-#requirements_pc_ethumb=""
-#requirements_pc_elementary=""
-
-requirements_pc_deps_eina=""
-requirements_pc_deps_eo=""
-requirements_pc_deps_eet=""
-requirements_pc_deps_evas=""
-requirements_pc_deps_ecore=""
-requirements_pc_deps_ecore_con=""
-requirements_pc_deps_ecore_fb=""
-requirements_pc_deps_ecore_sdl=""
-requirements_pc_deps_ecore_wayland=""
-requirements_pc_deps_ecore_evas=""
-requirements_pc_deps_embryo=""
-requirements_pc_deps_edbus=""
-requirements_pc_deps_efreet=""
-#requirements_pc_deps_edje=""
-#requirements_pc_deps_eeze=""
-#requirements_pc_deps_emotion=""
-#requirements_pc_deps_ethumb=""
-#requirements_pc_deps_elementary=""
-
-AC_SUBST([requirements_libs_evil])
-AC_SUBST([requirements_libs_eina])
-AC_SUBST([requirements_libs_eo])
-AC_SUBST([requirements_libs_eet])
-AC_SUBST([requirements_libs_evas])
-AC_SUBST([requirements_libs_ecore])
-AC_SUBST([requirements_libs_ecore_con])
-AC_SUBST([requirements_libs_ecore_ipc])
-AC_SUBST([requirements_libs_ecore_file])
-AC_SUBST([requirements_libs_ecore_input])
-AC_SUBST([requirements_libs_ecore_cocoa])
-AC_SUBST([requirements_libs_ecore_fb])
-AC_SUBST([requirements_libs_ecore_psl1ght])
-AC_SUBST([requirements_libs_ecore_sdl])
-AC_SUBST([requirements_libs_ecore_wayland])
-AC_SUBST([requirements_libs_ecore_audio])
-AC_SUBST([requirements_libs_ecore_win32])
-AC_SUBST([requirements_libs_ecore_wince])
-AC_SUBST([requirements_libs_ecore_x])
-AC_SUBST([requirements_libs_ecore_evas])
-AC_SUBST([requirements_libs_embryo])
-AC_SUBST([requirements_libs_eio])
-AC_SUBST([requirements_libs_edbus])
-AC_SUBST([requirements_libs_efreet])
-#AC_SUBST([requirements_libs_edje])
-#AC_SUBST([requirements_libs_eeze])
-#AC_SUBST([requirements_libs_emotion])
-#AC_SUBST([requirements_libs_ethumb])
-#AC_SUBST([requirements_libs_elementary])
-
-AC_SUBST([requirements_pc_eina])
-AC_SUBST([requirements_pc_eo])
-AC_SUBST([requirements_pc_eet])
-AC_SUBST([requirements_pc_evas])
-AC_SUBST([requirements_pc_ecore])
-AC_SUBST([requirements_pc_ecore_con])
-AC_SUBST([requirements_pc_ecore_ipc])
-AC_SUBST([requirements_pc_ecore_file])
-AC_SUBST([requirements_pc_ecore_input])
-AC_SUBST([requirements_pc_ecore_input_evas])
-AC_SUBST([requirements_pc_ecore_imf])
-AC_SUBST([requirements_pc_ecore_imf_evas])
-AC_SUBST([requirements_pc_ecore_cocoa])
-AC_SUBST([requirements_pc_ecore_fb])
-AC_SUBST([requirements_pc_ecore_psl1ght])
-AC_SUBST([requirements_pc_ecore_sdl])
-AC_SUBST([requirements_pc_ecore_wayland])
-AC_SUBST([requirements_pc_ecore_audio])
-AC_SUBST([requirements_pc_ecore_win32])
-AC_SUBST([requirements_pc_ecore_wince])
-AC_SUBST([requirements_pc_ecore_x])
-AC_SUBST([requirements_pc_ecore_evas])
-AC_SUBST([requirements_pc_embryo])
-AC_SUBST([requirements_pc_eio])
-AC_SUBST([requirements_pc_edbus])
-AC_SUBST([requirements_pc_efreet])
-#AC_SUBST([requirements_pc_edje])
-#AC_SUBST([requirements_pc_eeze])
-#AC_SUBST([requirements_pc_emotion])
-#AC_SUBST([requirements_pc_ethumb])
-#AC_SUBST([requirements_pc_elementary])
-
-
AC_CANONICAL_HOST
# TODO: move me to m4 file that setups module/so related variables
USE_EVIL_CFLAGS=""
USE_EVIL_LIBS=""
-if test "x${have_windows}" = "xyes" ; then
-
-AC_MSG_NOTICE([Evil checks])
+EFL_LIB_START_OPTIONAL([Evil], [test "${have_windows}" = "yes"])
### Default values
AC_SUBST([EVIL_LIBS])
AC_SUBST([EVIL_DLFCN_LIBS])
-AC_DEFINE([HAVE_EVIL], [1], [Set to 1 if Evil package is installed])
-
### Checks for header files
### Checks for types
USE_EVIL_CFLAGS="-I\$(top_srcdir)/src/lib/evil"
USE_EVIL_LIBS="lib/evil/libevil.la"
DL_LIBS="lib/evil/libdl.la"
-fi
+
+EFL_LIB_END_OPTIONAL([Evil])
AC_SUBST([USE_EVIL_CFLAGS])
AC_SUBST([USE_EVIL_LIBS])
USE_ESCAPE_CFLAGS=""
USE_ESCAPE_LIBS=""
-if test "x${have_ps3}" = "xyes" ; then
-
-AC_MSG_NOTICE([Escape checks])
+EFL_LIB_START_OPTIONAL([Escape], [test "${have_ps3}" = "yes"])
### Additional options to configure
USE_ESCAPE_CFLAGS="-I\$(top_srcdir)/src/lib/escape"
USE_ESCAPE_LIBS="lib/escape/libescape.la"
-fi
+
+EFL_LIB_END_OPTIONAL([Escape])
AC_SUBST([USE_ESCAPE_CFLAGS])
AC_SUBST([USE_ESCAPE_LIBS])
-
#### End of Escape
AC_SUBST([DL_LIBS])
#### Eina
-AC_MSG_NOTICE([Eina checks])
+EFL_LIB_START([Eina])
### Default values
EINA_CHECK_MODULE([pass-through], [static], [pass through])
EINA_CHECK_MODULE([one-big], [static], [one big])
-
+EFL_LIB_END([Eina])
#### End of Eina
#### Eet
-AC_MSG_NOTICE([Eet checks])
+EFL_LIB_START([Eet])
### Default values
### Check availability
+EFL_LIB_END([Eet])
#### End of Eet
#### Eo
-AC_MSG_NOTICE([Eo checks])
+EFL_LIB_START([Eo])
### Default values
### Check availability
+EFL_LIB_END([Eo])
#### End of Eo
#### Evas
-AC_MSG_NOTICE([Evas checks])
+EFL_LIB_START([Evas])
### Additional options to configure
;;
esac
+EFL_LIB_END([Evas])
#### End of Evas
#### Embryo
-AC_MSG_NOTICE([Embryo checks])
+EFL_LIB_START([Embryo])
### Default values
### Check availability
+EFL_LIB_END([Embryo])
#### End of Embryo
#### Ecore
-AC_MSG_NOTICE([Ecore checks])
+EFL_LIB_START([Ecore])
### Additional options to configure
### Check availability
+EFL_LIB_END([Ecore])
#### End of Ecore
#### Ecore_Con
-AC_MSG_NOTICE([Ecore_Con checks])
+EFL_LIB_START([Ecore_Con])
### Additional options to configure
### Checks for library functions
+EFL_LIB_END([Ecore_Con])
#### End of Ecore_Con
#### Ecore_Ipc
-AC_MSG_NOTICE([Ecore_Ipc checks])
+EFL_LIB_START([Ecore_Ipc])
### Default values
### Checks for library functions
+EFL_LIB_END([Ecore_Ipc])
#### End of Ecore_Ipc
#### Ecore_File
-AC_MSG_NOTICE([Ecore_File checks])
+EFL_LIB_START([Ecore_File])
### Additional options to configure
### Checks for library functions
+EFL_LIB_END([Ecore_File])
#### End of Ecore_File
#### Ecore_Input
-AC_MSG_NOTICE([Ecore_Input checks])
+EFL_LIB_START([Ecore_Input])
### Additional options to configure
### Checks for library functions
+EFL_LIB_END([Ecore_Input])
#### End of Ecore_Input
#### Ecore_Cocoa
-AC_MSG_NOTICE([Ecore_Cocoa checks])
+EFL_LIB_START([Ecore_Cocoa])
### Additional options to configure
### Checks for library functions
+EFL_LIB_END([Ecore_Cocoa])
#### End of Ecore_Cocoa
#### Ecore_FB
-if test "${want_fb}" = "yes"; then
-
-AC_MSG_NOTICE([Ecore_FB checks])
+EFL_LIB_START_OPTIONAL([Ecore_FB], [test "${want_fb}" = "yes"])
### Additional options to configure
AC_ARG_ENABLE([tslib],
### Checks for library functions
-fi
-AM_CONDITIONAL([HAVE_ECORE_FB], [test "x${want_fb}" = "xyes"])
+EFL_LIB_END_OPTIONAL([Ecore_FB])
#### End of Ecore_FB
#### Ecore_Psl1ght
-
-if test "x${have_ps3}" = "xyes" ; then
-
-AC_MSG_NOTICE([Ecore_Psl1ght checks])
+EFL_LIB_START_OPTIONAL([Ecore_Psl1ght], [test "${have_ps3}" = "yes"])
### Additional options to configure
### Checks for library functions
-fi
-
+EFL_LIB_END_OPTIONAL([Ecore_Psl1ght])
#### End of Ecore_Psl1ght
#### Ecore_SDL
-if test "${want_sdl}" = "yes"; then
-
-AC_MSG_NOTICE([Ecore_SDL checks])
+EFL_LIB_START_OPTIONAL([Ecore_SDL], [test "${want_sdl}" = "yes"])
### Additional options to configure
### Checks for library functions
-fi
-AM_CONDITIONAL([HAVE_ECORE_SDL], [test "x${want_sdl}" = "xyes"])
+EFL_LIB_END_OPTIONAL([Ecore_SDL])
#### End of Ecore_SDL
#### Ecore_Wayland
-
-if test "${want_wayland}" = "yes"; then
-AC_MSG_NOTICE([Ecore_Wayland checks])
+EFL_LIB_START_OPTIONAL([Ecore_Wayland], [test "${want_wayland}" = "yes"])
### Additional options to configure
### Checks for linker characteristics
### Checks for library functions
-
-fi
-AM_CONDITIONAL([HAVE_ECORE_WAYLAND], [test "x${have_wayland}" = "xyes"])
+EFL_LIB_END_OPTIONAL([Ecore_Wayland])
#### End of Ecore_Wayland
],
[want_audio="yes"])
-if test "${want_audio}" = "yes"; then
-AC_MSG_NOTICE([Ecore_Audio checks])
-
-AC_DEFINE([HAVE_ECORE_AUDIO], [1], [build ecore_audio])
+EFL_LIB_START_OPTIONAL([Ecore_Audio], [test "${want_audio}" = "yes"])
### Additional options to configure
### Checks for library functions
-fi
-AM_CONDITIONAL([HAVE_ECORE_AUDIO], [test "${want_audio}" = "yes"])
+EFL_LIB_END_OPTIONAL([Ecore_Audio])
+#### End of Ecore_Audio
#### Ecore_Win32
-
-if test "x${have_win32}" = "xyes" ; then
-
-AC_MSG_NOTICE([Ecore_Win32 checks])
+EFL_LIB_START_OPTIONAL([Ecore_Win32], [test "${have_win32}" = "yes"])
### Additional options to configure
### Checks for library functions
-fi
-
+EFL_LIB_END_OPTIONAL([Ecore_Win32])
#### End of Ecore_Win32
#### Ecore_WinCE
-
-if test "x${have_wince}" = "xyes" ; then
-
-AC_MSG_NOTICE([Ecore_WinCE checks])
+EFL_LIB_START_OPTIONAL([Ecore_WinCE], [test "${have_wince}" = "yes"])
### Additional options to configure
### Checks for library functions
-fi
-
+EFL_LIB_END_OPTIONAL([Ecore_WinCE])
#### End of Ecore_WinCE
#### Ecore_X
-if test "${want_x11_any}" = "yes"; then
-AC_MSG_NOTICE([Ecore_X checks])
+EFL_LIB_START_OPTIONAL([Ecore_X], [test "${want_x11_any}" = "yes"])
### Additional options to configure
AC_SUBST([ECORE_X_CFLAGS])
AC_SUBST([ECORE_X_LIBS])
-fi
+EFL_LIB_END_OPTIONAL([Ecore_X])
+
AM_CONDITIONAL([HAVE_ECORE_X_XLIB], [test "${want_x11_xlib}" = "yes"])
AM_CONDITIONAL([HAVE_ECORE_X_XCB], [test "${want_x11_xcb}" = "yes"])
-AM_CONDITIONAL([HAVE_ECORE_X], [test "${want_x11_any}" = "yes"])
-
#### End of Ecore_X
#### Ecore_Imf
-
-AC_MSG_NOTICE([Ecore_Imf checks])
+EFL_LIB_START([Ecore_Imf])
### Additional options to configure
### Checks for library functions
+EFL_LIB_END([Ecore_Imf])
#### End of Ecore_Imf
#### Ecore_Evas
-
-AC_MSG_NOTICE([Ecore_Evas checks])
+EFL_LIB_START([Ecore_Evas])
### Additional options to configure
### Checks for library functions
+EFL_LIB_END([Ecore_Evas])
#### End of Ecore_Evas
#### Eio
-
-AC_MSG_NOTICE([Eio checks])
+EFL_LIB_START([Eio])
### Additional options to configure
AC_MSG_RESULT([${have_xattr}])
+EFL_LIB_END([Eio])
#### End of Eio
#### EDBus
-
-AC_MSG_NOTICE([EDBus checks])
+EFL_LIB_START([EDBus])
### Additional options to configure
### Checks for library functions
+EFL_LIB_END([EDBus])
#### End of EDBus
#### Efreet
-
-AC_MSG_NOTICE([Efreet checks])
+EFL_LIB_START([Efreet])
### Additional options to configure
### Checks for library functions
+EFL_LIB_END([Efreet])
#### End of Efreet