1 m4_include(../../config/acx.m4)
2 m4_include(../../config/override.m4)
3 m4_include(../../config/enable.m4)
4 m4_include(../transform.m4)
6 # AM_CONDITIONAL -*- Autoconf -*-
8 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
9 # Free Software Foundation, Inc.
11 # This file is free software; the Free Software Foundation
12 # gives unlimited permission to copy and/or distribute it,
13 # with or without modifications, as long as this notice is preserved.
17 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
18 # -------------------------------------
19 # Define a conditional.
20 AC_DEFUN([AM_CONDITIONAL],
22 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
23 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
33 AC_CONFIG_COMMANDS_PRE(
34 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
35 AC_MSG_ERROR([[conditional "$1" was never defined.
36 Usually this means the macro was only invoked conditionally.]])