1 dnl ---------------------------------------------------------------------------
2 dnl pstoimg: This program is needed for processing images. If not found,
3 dnl documentation can still be built, but without figures.
4 dnl ---------------------------------------------------------------------------
5 AC_DEFUN([GP_CHECK_PSTOIMG],
7 AC_REQUIRE([GP_CHECK_DOT])dnl for creating tesseract.ps
11 AC_ARG_WITH(pstoimg, AS_HELP_STRING([--without-pstoimg], [Do not use pstoimg]),[
12 if test "x$withval" = "xno"; then
16 AC_PATH_PROG(PSTOIMG,pstoimg)
17 if test -n "${PSTOIMG}"; then
21 if $have_pstoimg; then
23 AC_MSG_CHECKING([whether ${PSTOIMG} works])
25 ${PSTOIMG} -type png -scale 1.2 -antialias -crop a tesseract.ps > /dev/null
26 if test $? != 0 || test ! -f tesseract.png; then
34 AM_CONDITIONAL(ENABLE_PSTOIMG, $have_pstoimg)