autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_TRY_COMPILE() annoyances with 2.63b


From: Paolo Bonzini
Subject: Re: AC_TRY_COMPILE() annoyances with 2.63b
Date: Sun, 18 Oct 2009 14:53:21 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4


simple example:
$ cat configure.ac
AC_INIT
AS_IF([:], [
        : some random user stuff
],[
        AC_PROG_LEX
        AC_DECL_YYTEXT
])
AC_OUTPUT
$ autoconf --version
autoconf (GNU Autoconf) 2.64
$ autoconf&&  ./configure -q
./configure: line 2676: syntax error near unexpected token `fi'
./configure: line 2676: `fi'
-mike

This is a different issue. AS_IF strips leading and trailing blanks, but works on its unexpanded argument. It's probably something Eric could fix with his m4-fu in m4_if{,n}blank.

Minimized testcase:

echo 'm4_init[]m4_divert(0)[]m4_define([a], [])m4_ifblank([ a ], [blank])' | m4 m4sugar/m4sugar.m4 -


Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]