comparison acinclude.m4 @ 4485:1f0aa82891a5

Fix AUD_CONDITIONAL to work as expected; we need the values defined for AC_SUBST to actually substitute them.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 21 Apr 2008 07:30:11 +0300
parents bb5d11a735a0
children 956272f5935d
comparison
equal deleted inserted replaced
4484:925df071b0c7 4485:1f0aa82891a5
33 ]) 33 ])
34 ]) 34 ])
35 35
36 36
37 dnl ** Simplifying wrapper 37 dnl ** Simplifying wrapper
38 AC_DEFUN([AUD_CONDITIONAL], [AM_CONDITIONAL([$1],[dnl 38 AC_DEFUN([AUD_CONDITIONAL],
39 test "x${$2}" = m4_ifval([$3], ["x$3"],["xyes"])dnl 39 dnl [AM_CONDITIONAL([$1],[test "x${$2}" = m4_ifval([$3], ["x$3"],["xyes"])])
40 ])dnl 40 [if test "x${$2}" = m4_ifval([$3], ["x$3"],["xyes"]) ; then
41 $1="yes"
42 else
43 $1="no"
44 fi
41 AC_SUBST([$1])dnl 45 AC_SUBST([$1])dnl
42 ]) 46 ])
43 47
44 48
45 dnl ** Simple wrapper for AC_ARG_ENABLE 49 dnl ** Simple wrapper for AC_ARG_ENABLE