automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AM_COND_IF for earlier Automake


From: Dave Hart
Subject: AM_COND_IF for earlier Automake
Date: Sat, 18 Dec 2010 08:35:47 +0000

I'd like a package I depend on to use AM_COND_IF, but it does not want
to demand Automake 1.11 at this point.  Does this seem like a
reasonable solution?

m4_ifndef([AM_COND_IF], [AC_DEFUN([AM_COND_IF],
[m4_ifndef([_AM_COND_VALUE_$1],
           [m4_fatal([$0: no such condition "$1"])])dnl
if _AM_COND_VALUE_$1; then
  m4_default([$2], [:])
m4_ifval([$3],
else
  $3
])dnl
fi[]dnl
])])

Thanks,
Dave Hart



reply via email to

[Prev in Thread] Current Thread [Next in Thread]