Bison

2011-01-11 Thread Russell Shaw

Hi,
On debian, there is /usr/bin/bison, and
/usr/bin/bison.yacc just does:

  exec '/usr/bin/bison' -y $@

How can i get autoconf to use bison?

The problem with yacc is that you can't rename
the output files and always get: y.tab.h y.tab.c

Is there a way i can get yacc to give better output
file names like myproj.tab.h myproj.tab.c ?

___
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf


Re: Bison

2011-01-11 Thread tom fogal

Russell Shaw wrote:

How can i get autoconf to use bison?

The problem with yacc is that you can't rename
the output files and always get: y.tab.h y.tab.c

Is there a way i can get yacc to give better output
file names like myproj.tab.h myproj.tab.c ?


Is this really an autoconf question?  Seems like something the build 
system should handle, not the configuration system.


If you're using automake, look into BUILT_SOURCES:

http://www.gnu.org/software/hello/manual/automake/Built-Sources-Example.html

cheers,

-tom

___
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf


Re: Bison

2011-01-11 Thread John Calcote
On 01/11/2011 04:31 AM, Russell Shaw wrote:
 Hi,
 On debian, there is /usr/bin/bison, and
 /usr/bin/bison.yacc just does:

   exec '/usr/bin/bison' -y $@

 How can i get autoconf to use bison?

 The problem with yacc is that you can't rename
 the output files and always get: y.tab.h y.tab.c

 Is there a way i can get yacc to give better output
 file names like myproj.tab.h myproj.tab.c ?

Hi Russell - try the techniques listed here:
http://www.mail-archive.com/help-bison@gnu.org/msg01897.html

Regards,
John

___
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf


Re: Bison

2011-01-11 Thread Russell Shaw

On 12/01/11 06:24, John Calcote wrote:

On 01/11/2011 04:31 AM, Russell Shaw wrote:

Hi,
On debian, there is /usr/bin/bison, and
/usr/bin/bison.yacc just does:

   exec '/usr/bin/bison' -y $@

How can i get autoconf to use bison?

The problem with yacc is that you can't rename
the output files and always get: y.tab.h y.tab.c

Is there a way i can get yacc to give better output
file names like myproj.tab.h myproj.tab.c ?


Hi Russell - try the techniques listed here:
http://www.mail-archive.com/help-bison@gnu.org/msg01897.html


Hi J.C,
It's close to what i'm looking for, but not complete enough.
I'm not good at autoconf stuff. Why is descriptor 5 used?

ac_compile_yacc='$CC -c $CFLAGS $CPPFLAGS $ac_cv_prog_yacc_root.c 5'

___
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf


AutoConf web documentation bug.

2011-01-11 Thread Mostafa
In 
http://www.gnu.org/software/autoconf/manual/autoconf.html#Conditional-constructs
 , under the definition for m4_ifval, I believe the following clause is 
erroneous:

This is shorthand for:

  m4_if([cond], [], [if-true], [if-false])

Since the latter expands to if-true if cond is empty, while the definition for 
m4_ifval says m4_ifval([cond], [if-true], [if-false]) expands to if-true if 
cond is NOT empty.

This was rather confusing and I had to verify the correct behaviour via a 
configure.ac template.

Hope this is corrected.

Thanks,

Mostafa





Re: AutoConf web documentation bug.

2011-01-11 Thread Mostafa
Hi,

--- On Tue, 11/1/11, Eric Blake ebl...@redhat.com wrote:

 I will push this once I know how to credit your name in
 THANKS (that is,
 do you have a preferred name longer than just Mostafa?).

Mostafa would be fine.

Thanks,

Mostafa