Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.4KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_prog_fig2dev.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_PROG_FIG2DEV
  8. #
  9. # DESCRIPTION
  10. #
  11. # If `fig2dev' is found, sets the output variable `FIG2DEV' to `fig2dev',
  12. # and `FIG2DEV_ESPLANG' to the graphics language which can be used to
  13. # produce Encapsulated PostScript. Older versions of `fig2dev' produce EPS
  14. # with `-Lps' and new versions with `-Leps', this macro finds out the
  15. # correct language option automatically.
  16. #
  17. # LICENSE
  18. #
  19. # Copyright (c) 2008 Ville Laurikari <vl@iki.fi>
  20. #
  21. # Copying and distribution of this file, with or without modification, are
  22. # permitted in any medium without royalty provided the copyright notice
  23. # and this notice are preserved. This file is offered as-is, without any
  24. # warranty.
  25. #serial 7
  26. AU_ALIAS([VL_PROG_FIG2DEV], [AX_PROG_FIG2DEV])
  27. AC_DEFUN([AX_PROG_FIG2DEV], [
  28. AC_CHECK_PROG(FIG2DEV, fig2dev, fig2dev)
  29. if test "x$FIG2DEV" != "x"; then
  30. AC_CACHE_CHECK(how to produce EPS with fig2dev,
  31. ax_cv_sys_fig2dev_epslang, [
  32. if "$FIG2DEV" -Leps /dev/null 2>&1 | grep Unknown > /dev/null; then
  33. ax_cv_sys_fig2dev_epslang=ps
  34. else
  35. ax_cv_sys_fig2dev_epslang=eps
  36. fi
  37. ])
  38. FIG2DEV_EPSLANG=$ax_cv_sys_fig2dev_epslang
  39. AC_SUBST(FIG2DEV_EPSLANG)
  40. fi
  41. ])