summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipng/m4
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-03-25 10:26:13 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-03-25 10:26:13 +0000
commit1d49a87a191295313dd1fdbce07dfb18ddd65bfc (patch)
tree631332a3d14e82388951a15501845cb1b8c15e45 /Build/source/texk/dvipng/m4
parent2d7aa45b6526bc79bd79a64fc30acc7f44d55cec (diff)
new build system: dvipng 1.11 -> 1.12
git-svn-id: svn://tug.org/texlive/trunk@12514 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipng/m4')
-rw-r--r--Build/source/texk/dvipng/m4/gs-device.m429
-rw-r--r--Build/source/texk/dvipng/m4/makeinfo.m452
2 files changed, 81 insertions, 0 deletions
diff --git a/Build/source/texk/dvipng/m4/gs-device.m4 b/Build/source/texk/dvipng/m4/gs-device.m4
new file mode 100644
index 00000000000..f0ed6671a0f
--- /dev/null
+++ b/Build/source/texk/dvipng/m4/gs-device.m4
@@ -0,0 +1,29 @@
+# gs-device.m4 - Macro 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.
+## 26 Mar 2008, Peter Breitenlohner <tex-live@tug.org>
+##
+## This file is free software; the copyright holder gives unlimited
+## permission to copy and/or distribute it, with or without
+## modifications, as long as this notice is preserved.
+
+# 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
+
diff --git a/Build/source/texk/dvipng/m4/makeinfo.m4 b/Build/source/texk/dvipng/m4/makeinfo.m4
new file mode 100644
index 00000000000..86d52d2e495
--- /dev/null
+++ b/Build/source/texk/dvipng/m4/makeinfo.m4
@@ -0,0 +1,52 @@
+# makeinfo.m4 - Macros to determine makeinfo features.
+## Copyright (C) 20xx Some One <someone@somewhere.net>
+## Some affiliation
+##
+## Temporary notice:
+## I extracted these macros from aclocal.m4 in the dvipng-1.9 distribution
+## and slightly modified them for use with Automake.
+## 26 Mar 2008, Peter Breitenlohner <tex-live@tug.org>
+##
+## This file is free software; the copyright holder gives unlimited
+## permission to copy and/or distribute it, with or without
+## modifications, as long as this notice is preserved.
+
+# serial 1
+
+# MAKEINFO_CHECK_MACRO( MACRO, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# ----------------------------------------------------------------------
+# Check if makeinfo understands the macro @MACRO{}. Execute the shell
+# code ACTION-IF-FOUND if so, or ACTION-IF-NOT-FOUND otherwise.
+AC_DEFUN([MAKEINFO_CHECK_MACRO],
+[if test -n "$MAKEINFO" -a "$MAKEINFO" != ":"; then
+ AC_MSG_CHECKING([if $MAKEINFO understands @$1{}])
+ echo \\\\input texinfo > conftest.texi
+ echo @$1{test} >> conftest.texi
+ if $MAKEINFO conftest.texi > /dev/null 2> /dev/null; then
+ AC_MSG_RESULT(yes)
+ m4_ifval([$2], [$2
+])[]dnl
+ else
+ AC_MSG_RESULT(no)
+ m4_ifval([$3], [$3
+])[]dnl
+ fi
+ rm -f conftest.texi conftest.info
+fi
+])# MAKEINFO_CHECK_MACRO
+
+# MAKEINFO_CHECK_MACROS( MACRO ..., [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# ----------------------------------------------------------------------------
+# For each MACRO check if makeinfo understands @MACRO{}. Execute the shell
+# code ACTION-IF-FOUND for each macro understood, or ACTION-IF-NOT-FOUND
+# for each macro not understood. Prepend '-D no-MACRO' for each MACRO
+#not understood to the output variable AM_MAKEINFOFLAGS.
+AC_DEFUN([MAKEINFO_CHECK_MACROS],
+[for ac_macro in $1; do
+ MAKEINFO_CHECK_MACRO([$ac_macro], [$2],
+ [AM_MAKEINFOFLAGS="-D no-$ac_macro $AM_MAKEINFOFLAGS"
+ $3])
+done
+AC_SUBST([AM_MAKEINFOFLAGS])
+])# MAKEINFO_CHECK_MACROS
+