diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-16 11:22:15 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-16 11:22:15 +0000 |
commit | f90f4280c02f9f2228808934ec65758a6004c044 (patch) | |
tree | 674a841a787c762882672f2d750833f99ccb5344 /Build/source/m4 | |
parent | 24c37e32d4c16fe3ef9b4292aa997e41f4666729 (diff) |
update build system
git-svn-id: svn://tug.org/texlive/trunk@13771 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4')
-rw-r--r-- | Build/source/m4/kpse-common.m4 | 20 | ||||
-rw-r--r-- | Build/source/m4/kpse-setup.m4 | 3 |
2 files changed, 22 insertions, 1 deletions
diff --git a/Build/source/m4/kpse-common.m4 b/Build/source/m4/kpse-common.m4 index 926d6cbef7c..2345634835a 100644 --- a/Build/source/m4/kpse-common.m4 +++ b/Build/source/m4/kpse-common.m4 @@ -281,6 +281,26 @@ $2])], [AC_MSG_ERROR([$2], m4_default([$3], 1))]) ]) # KPSE_MSG_ERROR +# KPSE_MSG_WARN(PROBLEM) +# ---------------------- +# Same as AC_MSG_WARN, but terminate if `--disable-missing' was given. +AC_DEFUN([KPSE_MSG_WARN], +[AC_REQUIRE([_KPSE_MSG_WARN_PREPARE])[]dnl +AC_MSG_WARN([$1]) +AS_IF([test "x$enable_missing" = xno], + [AC_MSG_ERROR([terminating.])]) +]) # KPSE_MSG_WARN + +# _KPSE_MSG_WARN_PREPARE +# ---------------------- +# Internal subroutine. +AC_DEFUN([_KPSE_MSG_WARN_PREPARE], +[AC_ARG_ENABLE([missing], + AS_HELP_STRING([--disable-missing], + [terminate if a requested program or feature must + be disabled, e.g., due to missing libraries]))[]dnl +]) # _KPSE_MSG_WARN_PREPARE + # _KPSE_CHECK_PKG_CONFIG # ---------------------- # Check for pkg-config diff --git a/Build/source/m4/kpse-setup.m4 b/Build/source/m4/kpse-setup.m4 index 9321f9a0a76..a43d3ebfd28 100644 --- a/Build/source/m4/kpse-setup.m4 +++ b/Build/source/m4/kpse-setup.m4 @@ -17,7 +17,8 @@ # additional program specific configure options (if any) # library dependencies for programs and libraries AC_DEFUN([KPSE_SETUP], -[m4_define([kpse_TL], [$1])[]dnl +[AC_REQUIRE([_KPSE_MSG_WARN_PREPARE])[]dnl +m4_define([kpse_TL], [$1])[]dnl m4_define([kpse_indent_26], [28])[]dnl AC_ARG_ENABLE([all-pkgs], AS_HELP_STRING([--disable-all-pkgs], |