Please add check for xmlto in xdg utils
Submitted by cyn..@..il.com
Assigned to Portland Bugs
Link to original bug (#101616)
Description
Ran
./configure --prefix=/home/rfirstaid/xdg-utils/install make
Got make[1]: Entering directory '/home/rfirstaid/xdg-utils/scripts' (cd html;/usr/bin/xmlto html-nochunks ../desc/xdg-desktop-menu.xml) /bin/sh: 1: /usr/bin/xmlto: not found Makefile:111: recipe for target 'html/xdg-desktop-menu.html' failed make[1]: *** [html/xdg-desktop-menu.html] Error 127 make[1]: Leaving directory '/home/rfirstaid/xdg-utils/scripts' Makefile:25: recipe for target 'scripts' failed make: *** [scripts] Error 2
Please add check to configure.ac like:
Check for xmlto (for html documentation, needed only for development)
AC_CHECK_PROGS([XMLTO], [$XMLTO xmlto], [:]) if test "$XMLTO" = ":"; then AC_MSG_WARN([xmlto not found, html documentation will not be rebuilt.]) fi
Then only build html target if there is xmlto...
Thanks! Cindy