diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-15 15:12:22 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-15 15:12:22 +0000 |
commit | 44686714a168a1117a294067e0d9943947aeeb7d (patch) | |
tree | 26437a3f6ca4f5c6848e3135d72fd3f03e7b0745 /Build/source/texk/dvipng/m4 | |
parent | 273ed9c5b194dca51ed972db8071522d60733284 (diff) |
reorganize texk/dvipng
git-svn-id: svn://tug.org/texlive/trunk@13752 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipng/m4')
-rw-r--r-- | Build/source/texk/dvipng/m4/gs-device.m4 | 51 |
1 files changed, 34 insertions, 17 deletions
diff --git a/Build/source/texk/dvipng/m4/gs-device.m4 b/Build/source/texk/dvipng/m4/gs-device.m4 index f0ed6671a0f..dcd0dea1f8b 100644 --- a/Build/source/texk/dvipng/m4/gs-device.m4 +++ b/Build/source/texk/dvipng/m4/gs-device.m4 @@ -1,10 +1,10 @@ -# gs-device.m4 - Macro to check for GS devices. +# gs-device.m4 - Macros to check for GS devices. ## Copyright (C) 20xx Some One <someone@somewhere.net> ## Some affiliation ## -## Temporary notice: -## I extracted this macro from aclocal.m4 in the dvipng-1.9 distribution -## and renamed it in order not to violate the Autoconf (AC_) namespace. +## Notice: +## I extracted these macros from aclocal.m4 in the dvipng-1,12 distribution +## and renamed one in order not to violate the Autoconf (AC_) namespace. ## 26 Mar 2008, Peter Breitenlohner <tex-live@tug.org> ## ## This file is free software; the copyright holder gives unlimited @@ -13,17 +13,34 @@ # serial 1 -# xx_GS_HAS_DEVICE(DEVICE, ACTION-IF-FAILED) -# ------------------------------------------ -# Check if GS has the device DEVICE and execute the shell code -# ACTION-IF-FAILED if not. -AC_DEFUN([xx_GS_HAS_DEVICE], - [AC_MSG_CHECKING([whether $GS has the $1 device]) - if $GS -h | grep $1 >/dev/null; then - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) - $2 - fi -])# xx_GS_HAS_DEVICE +# GS_CHECK_DEVICES +# ---------------- +# Check GS (ghostscript) devices. +AC_DEFUN([GS_CHECK_DEVICES], +[GS_WARN= +_GS_HAS_DEVICE([pngalpha], + [GS_WARN="Your EPS inclusions will be cropped to the + boundingbox, and rendered on an opaque background. + Upgrade GhostScript to avoid this." + _GS_HAS_DEVICE([png16m], + [GS_WARN="Your EPS inclusions may not work. + Upgrade/install GhostScript to avoid this."])]) +if test -n "$GS_WARN"; then + AC_MSG_WARN([$GS_WARN]) +fi +]) # GS_CHECK_DEVICES + +# _GS_HAS_DEVICE(DEVICE, ACTION-IF-FAILED) +# ---------------------------------------- +# Internal subroutine. Check if GS has the device DEVICE and +# execute the shell code ACTION-IF-FAILED if not. +m4_define([_GS_HAS_DEVICE], +[AC_MSG_CHECKING([whether $GS has the $1 device]) +if $GS -h | grep $1 >/dev/null; then + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) + $2 +fi +])# _GS_HAS_DEVICE |