AM_CONDITIONAL([EFL_ENABLE_COVERAGE], [test "${want_coverage}" = "yes"])
+# ragel
+
+AC_CHECK_PROG([have_ragel], [ragel], [yes], [no])
+AM_CONDITIONAL([EFL_HAVE_RAGEL], [test "${have_ragel}" = "yes"])
+
#### Checks for libraries
# check unit testing library
include Makefile_Eolian_Helper.am
EXTRA_DIST += lib/eolian/eo_lexer.rl
+
+if EFL_HAVE_RAGEL
+SUFFIXES += .rl
+
+AM_V_RAGEL = $(am__v_RAGEL_@AM_V@)
+am__v_RAGEL_ = $(am__v_RAGEL_@AM_DEFAULT_V@)
+am__v_RAGEL_0 = @echo " RAGEL " $@;
+
+.rl.c:
+ $(AM_V_RAGEL) ragel -o $@ $<
+
+lib/eolian/eo_lexer.c: lib/eolian/eo_lexer.rl
+endif