# HG changeset patch # User Matti Hamalainen # Date 1208752211 -10800 # Node ID 1f0aa82891a5c139a6d7d0ff0508f6f95c43abe9 # Parent 925df071b0c784f1bc40324cdd1971a074bd1a9b Fix AUD_CONDITIONAL to work as expected; we need the values defined for AC_SUBST to actually substitute them. diff -r 925df071b0c7 -r 1f0aa82891a5 acinclude.m4 --- a/acinclude.m4 Mon Apr 21 06:55:02 2008 +0300 +++ b/acinclude.m4 Mon Apr 21 07:30:11 2008 +0300 @@ -35,9 +35,13 @@ dnl ** Simplifying wrapper -AC_DEFUN([AUD_CONDITIONAL], [AM_CONDITIONAL([$1],[dnl -test "x${$2}" = m4_ifval([$3], ["x$3"],["xyes"])dnl -])dnl +AC_DEFUN([AUD_CONDITIONAL], +dnl [AM_CONDITIONAL([$1],[test "x${$2}" = m4_ifval([$3], ["x$3"],["xyes"])]) +[if test "x${$2}" = m4_ifval([$3], ["x$3"],["xyes"]) ; then + $1="yes" +else + $1="no" +fi AC_SUBST([$1])dnl ])