summaryrefslogtreecommitdiff
path: root/Build/source/m4/kpse-common.m4
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-04-20 18:13:48 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-04-20 18:13:48 +0000
commite5786f530f9555469c01435f86039b06aa53feba (patch)
treec868e8d32282422d7d445b729db95c3fcdafb6d0 /Build/source/m4/kpse-common.m4
parentebaa1768b43c8606d923d2e861b5286b74207b3e (diff)
new build system: build icu libs and xetex plus misc updates
git-svn-id: svn://tug.org/texlive/trunk@12759 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4/kpse-common.m4')
-rw-r--r--Build/source/m4/kpse-common.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/Build/source/m4/kpse-common.m4 b/Build/source/m4/kpse-common.m4
index 86ab1decc8c..05386a7b70d 100644
--- a/Build/source/m4/kpse-common.m4
+++ b/Build/source/m4/kpse-common.m4
@@ -259,3 +259,19 @@ AC_DEFUN([KPSE_ADD_FLAGS],
CPPFLAGS="$CPPFLAGS $[]AS_TR_CPP($1)_INCLUDES"
LIBS="$[]AS_TR_CPP($1)_LIBS $LIBS"
]) # KPSE_ADD_FLAGS
+
+# KPSE_MSG_ERROR(PACKAGE, ERROR, [EXIT-STATUS = 1])
+# -------------------------------------------------
+# Same as AC_MSG_ERROR(ERROR, EXIT-STATUS), except when building this
+# package PACKAGE has been disabled.
+#
+# The new (2009) TL build system requires all directories to be configured
+# for the benefit of 'dist*' Make targets. When building PACKAGE has been
+# disabled, configuring that package must not fail because building required
+# libraries from the TL tree has been disabled as a consequence.
+AC_DEFUN([KPSE_MSG_ERROR],
+[AS_IF([test "x$enable_build" = xno],
+ [AC_MSG_WARN([building $1 has been disabled and would fail because
+$2])],
+ [AC_MSG_ERROR([$2], m4_default([$3], 1))])
+]) # KPSE_MSG_ERROR