On 04/18/2011 05:55 AM, Vincent Lefevre wrote:
> Hi,
> 
> On a Debian/sid machine, with the following configure.ac
> 
> AC_INIT([Test], [1.0])
> AC_RUN_IFELSE(AC_LANG_PROGRAM([[ ]], [[ ]]),
>   [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)], [AC_MSG_RESULT(can not test)])
> 
> autoconf version 2.68 gives:
> 
> configure.ac:2: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in 
> body

Use correct quoting:

AC_RUN_IFELSE([AC_LANG_PROGRAM([[ ]], [[ ]])],
  [AC_MSG_RESULT...])

> So, I don't see anything wrong with the above example.

You weren't quoting the AC_LANG_PROGRAM invocation.

> 
> but since the example uses AC_LANG_PROGRAM, this should be OK.

You didn't use it quoted.  Therefore, the macro expanded too early, and
if it expands to anything that contains a comma, then AC_RUN_IFELSE will
be operating on the wrong data.

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to