[Top][All Lists]

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

Re: Problem using AC_LANG_PROGRAM with AC_EGREP_CPP

From: Eric Blake
Subject: Re: Problem using AC_LANG_PROGRAM with AC_EGREP_CPP
Date: Sat, 28 Mar 2009 07:27:56 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20090302 Thunderbird/ Mnenhy/

Hash: SHA1

According to Braden McDaniel on 3/27/2009 11:02 PM:
> When I try to use AC_LANG_PROGRAM in conjunction with AC_EGREP_CPP, I'm
> seeing this error:
> error: possibly undefined macro: AC_LANG_PROGRAM
>               If this token and others are legitimate, please use 
> m4_pattern_allow.
>               See the Autoconf documentation.

It sounds like something is overquoted in your file.

> My invocation of AC_EGREP_CPP looks like this:
>         AC_EGREP_CPP([HAVE_GL_GLU_H], [AC_LANG_PROGRAM([[foo]], [[bar]])],
>                      [OPENVRML_HAVE_GL_GLU_H=1],
>                      [OPENVRML_HAVE_GL_GLU_H=0])

In isolation, I don't see any quoting problems with this example.  But I'm
almost certain you didn't copy and paste from your, so maybe
in the rewrite for this email, you changed the quoting?

> If I have an instance of AC_LANG_PROGRAM usage earlier in the file that
> has been working fine.  However, the error message will point to it.
> Only if I remove the first occurrence does the error message point at
> the second invocation (the one mentioned listed above).

Can you post a complete file that reproduces the problem
(preferably trimming to a minimal testcase first), so we can see if
something earlier in the file may be impacting how this line is expanded?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


reply via email to

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