On Thu, Jun 7, 2012 at 4:04 PM, Eric Blake <eblake@xxxxxxxxxx> wrote: >> AS_IF([test "$GCC" = yes],[ > ^ > Unmatched [. Thanks, I'd spotted that but it still doesn't seem to fix the problem for me. I now have: # check for clang AS_IF([test "x$GCC" = xyes], [AS_IF([test "`$CC -v 2>&1 | grep -c 'clang_version'`" != "0"],[CLANG_CC=1])], [CLANG_CC=]) > What you are doing should work, once you fix the typo; this is what I > see in a resulting configure file after pasting in a corrected version > of your attempt: > > if test "$GCC" = yes; then : > if test "`$CC -v 2>&1 | grep -c 'clang_version'`" != "0"; then : > CLANG_CC=1 > fi > else > CLANG_CC= > fi I'm getting: # check for clang if test "x$GCC" = xyes; then : if test "`$CC -v 2>&1 | grep -c 'clang_version'`" != "0"; then : CLANG_CC=1 fi else CLANG_CC= fi so it's missing a closing fi. Cheers Adam _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf