beta-0.89.2
[luatex.git] / source / texk / web2c / m4 / web2c-disable.m4
blob65a34f4c87259c91e67de156066c00df9a032530
1 # Autoconf macros for web2c.
2 # Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
4 # This file is free software; the copyright holders
5 # give unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
8 # WEB2C_DISABLE(PROGRAM, PROBLEM)
9 # ------------------------------
10 # Disable building PROGRAM due to PROBLEM, usually missing libraries.
11 # Terminate, via KPSE_MSG_WARN, if `--disable-missing' was given.
12 AC_DEFUN([WEB2C_DISABLE],
13 [AS_IF([test "x$enable_$1" = xyes],
14        [KPSE_MSG_WARN([Sorry, $2: disabling $1])
15                        enable_$1=no])
16 ]) # WEB2C_DISABLE