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.
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
30 if _AM_COND_VALUE_$1; then
33 [_AM_COND_ELSE([$1])dnl
37 _AM_COND_ENDIF([$1])dnl