Use AM_CONDITIONAL(HAVE_RAGEL, ...) to rebuild ragel parser only if ragel is available

Change-Id: I904cf4ea0a99652f2a2370fde17af770b1273dc4