Macro: ac_prog_fig2dev

Back to the Main Page. | # ac_prog_fig2dev | Download the M4 Source.

Synopsis

  `AC_PROG_FIG2DEV`

Version

  1.1.1.1 (2001/07/26) Installed_Packages @ ac-archive-0.5.39

Author

  Ville Laurikari <vl@iki.fi>

Description

  obsoleted - renamed to VL_PROG_FIG2DEV

  If `fig2dev' is found, sets the output variable `FIG2DEV' to `fig2dev', and `FIG2DEV_ESPLANG' to the graphics language which can be used to produce Encapsulated PostScript. Older versions of `fig2dev' produce EPS with `-Lps' and new versions with `-Leps', this macro finds out the correct language option automatically.

M4 Source Code

      AC_DEFUN([AC_PROG_FIG2DEV], [
        AC_CHECK_PROG(FIG2DEV, fig2dev, fig2dev)
        if test "x$FIG2DEV" != "x"; then
          AC_CACHE_CHECK(how to produce EPS with fig2dev,
                         ac_cv_sys_fig2dev_epslang, [
            if $FIG2DEV -Leps /dev/null 2>&1 |grep Unknown > /dev/null; then
              ac_cv_sys_fig2dev_epslang=ps
            else
              ac_cv_sys_fig2dev_epslang=eps
            fi
          ])
          FIG2DEV_EPSLANG=$ac_cv_sys_fig2dev_epslang
          AC_SUBST(FIG2DEV_EPSLANG)
        fi
      ])