changeset 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 925df071b0c7
children 042eaca39ded
files acinclude.m4
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
 ])