[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Nested AS_IF calls
From: |
Adam Mercer |
Subject: |
Re: Nested AS_IF calls |
Date: |
Thu, 7 Jun 2012 15:21:46 +0100 |
On Thu, Jun 7, 2012 at 3:09 PM, Peter Breitenlohner <address@hidden> wrote:
> according to the Autoconf manual (8.1 M4 Quotation) that should be
>
>
> AS_IF([test "$GCC" = yes],
> [AS_IF([test "`$CC -v 2>&1 | grep -c 'clang_version'`" !=
> "0"],[CLANG_CC=1])],
> [CLANG_CC=])
>
> i.e., exactly one level of quotes for each macro argument.
Actually I made a typo and that's what I have. Still having the same problem.
> In addition it
> might be safer to replace
> test "$GCC" = yes
> by
> test "X$GCC" = Xyes
> and similar.
Thanks, I use a similar approach in other tests so I'll use the same here.
Cheers
Adam