Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
First steps for support to flexml within 'simgrid' ;)
[simgrid.git] / configure.ac
index 333990f..9c6b330 100644 (file)
@@ -70,7 +70,13 @@ AC_PROG_LEX
 if test "$LEX" != flex; then
   LEX="$SHELL $missing_dir/missing flex"
 fi
-                                                                 
+               
+# Can we rebuild the xml-lexers from the XML specification?
+# if not, simply touch the flex source files (which are distributed in
+#  tarballs even if generated by flexml) and hope for the best.
+AC_CHECK_PROG(FLEXML,flexml,,NOTFOUND)
+AM_CONDITIONAL(HAVE_FLEXML,test x$FLEXML != NOTFOUND)
+
 # Can we rebuild the documentation?
 GTK_DOC_CHECK()
 AC_SUBST([htmldir],         ['${datadir}/doc/gras/html'])dnl