GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / toolchains / hndtools-arm-linux-2.6.36-uclibc-4.5.3 / share / aclocal-1.11 / cond-if.m4
blob9f2611ecb49ffb5e4e52dcbf4da4a811eff66624
1 # AM_COND_IF                                            -*- Autoconf -*-
3 # Copyright (C) 2008 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # serial 1
11 # _AM_COND_IF
12 # _AM_COND_ELSE
13 # _AM_COND_ENDIF
14 # --------------
15 # These macros are only used for tracing.
16 m4_define([_AM_COND_IF])
17 m4_define([_AM_COND_ELSE])
18 m4_define([_AM_COND_ENDIF])
21 # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
22 # ---------------------------------------
23 # If the shell condition matching COND is true, execute IF-TRUE,
24 # otherwise execute IF-FALSE.  Allow automake to learn about conditional
25 # instantiating macros (the AC_CONFIG_FOOS).
26 AC_DEFUN([AM_COND_IF],
27 [m4_ifndef([_AM_COND_VALUE_$1],
28            [m4_fatal([$0: no such condition "$1"])])dnl
29 _AM_COND_IF([$1])dnl
30 if _AM_COND_VALUE_$1; then
31   m4_default([$2], [:])
32 m4_ifval([$3],
33 [_AM_COND_ELSE([$1])dnl
34 else
35   $3
36 ])dnl
37 _AM_COND_ENDIF([$1])dnl
38 fi[]dnl