AC_CONFIG_HEADERS([src/gras_config.h])
# A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
-AC_REVISION($Revision: 6267 $)
+AC_REVISION($Revision: 6998 $)
AC_CANONICAL_TARGET
AC_LANG([C])
AC_PROG_CXX
# Check for doxygen when in maintainer mode which is helpful to build doc & dist
AC_PATH_PROG(DOXYGEN,doxygen,`which doxygen`)
-AM_CONDITIONAL(HAVE_DOXYGEN,test x$DOXYGEN != x)
+AC_PATH_PROG(FIG2DEV,fig2dev,`which fig2dev`)
+AM_CONDITIONAL(HAVE_DOXYGEN,test x$DOXYGEN != x &&
+ test x$FIG2DEV != x)
# Can we rebuild the publication list from the bib file?
AC_CHECK_PROG(BIBTEX,bibtex,`which flexml`,NOTFOUND)
if MAINTAINER_MODE
if HAVE_DOXYGEN
simgrid_modules.map: fig/simgrid_modules.fig
- fig2dev -Lmap fig/simgrid_modules.fig | grep -e IMG -e MAP -e AREA | \
+ $(FIG2DEV) -Lmap fig/simgrid_modules.fig | grep -e IMG -e MAP -e AREA | \
sed 's/imagemap/simgrid_modules/g' | sed 's/\.gif/.png/' | \
sed 's/<IMG /<IMG style="border:0px "/g' | sed 's/\.gif/.png/' \
> simgrid_modules.map
%.png: fig/%.fig
- fig2dev -Lpng $^ > $@
+ $(FIG2DEV) -Lpng $^ > $@
html: Doxyfile ./logcategories.doc simgrid_modules.map $(PNGS) $(DOCSOURCES) \
html/gras.html html/amok.html html/msg.html html/simdag.html \
cp @srcdir@/webcruft/Paje_MSG_screenshot_thn.jpg @srcdir@/webcruft/Paje_MSG_screenshot.jpg html/
cp @srcdir@/simgrid.css html/
: # First pass
- doxygen Doxyfile >/dev/null
+ $(DOXYGEN) Doxyfile >/dev/null
@top_srcdir@/tools/doxygen/index_create.pl simgrid.tag index-API.doc
@top_srcdir@/tools/doxygen/toc_create.pl \
@srcdir@/FAQ.doc @srcdir@/index.doc @srcdir@/contrib.doc \
@srcdir@/gtut-introduction.doc @srcdir@/history.doc
: # Second pass
- doxygen Doxyfile >/dev/null
+ $(DOXYGEN) Doxyfile >/dev/null
: # Post-processing
rm -f html/dir*
@top_srcdir@/tools/doxygen/index_php.pl @srcdir@/index.php.in html/index.html index.php