Mercurial > octave
comparison Makefile.am @ 30170:72adc88bc674
modernize bison rules
* bootstrap.conf (gnulib_modules): Include bison in the list.
* m4/acinclude.m4 (OCTAVE_PROG_BISON): Use gl_PROG_BISON to define
BISON instead of AC_PROG_YACC to define YACC. Don't substitute
WARN_YFLAGS.
* libinterp/module.mk (%.cc %.h : %.yy): Assume we have bison, that it
supports --defines=FILE and --output=FILE, and that we don't have to
use ylwrap or work around weird y.tab.c and y.tab.h generated file
names.
* Makefile.am (AM_YFLAGS): Delete.
(YACC): Define so that automake doesn't complain about seeing .yy
source files without a definition of YACC in the Makefile.
(AM_V_BISON, am__v_BISON_, am__v_BISON_0, am__v_BISON_1): New macros.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 14 Sep 2021 10:34:59 -0400 |
parents | 7854d5752dd2 |
children | f655202744be |
comparison
equal
deleted
inserted
replaced
30169:cefa5d2d30bc | 30170:72adc88bc674 |
---|---|
40 | 40 |
41 ## AM_LIBTOOLFLAGS = --silent | 41 ## AM_LIBTOOLFLAGS = --silent |
42 | 42 |
43 AM_LFLAGS = @LFLAGS@ | 43 AM_LFLAGS = @LFLAGS@ |
44 | 44 |
45 AM_YFLAGS = -dv ${WARN_YFLAGS} | 45 # Until modern Bison rules are handled by autoconf/automake. |
46 | |
47 AM_V_BISON = $(am__v_BISON_$(V)) | |
48 am__v_BISON_ = $(am__v_BISON_$(AM_DEFAULT_VERBOSITY)) | |
49 am__v_BISON_0 = @echo " BISON " $@; | |
50 am__v_BISON_1 = | |
51 | |
52 BISON = @BISON@ | |
53 BISONCOMPILE = $(BISON) $(AM_BISONFLAGS) $(BISONFLAGS) | |
54 | |
55 # Define YACC to pacify automake | |
56 | |
57 YACC = $(BISON) | |
46 | 58 |
47 if AMCOND_LIB_VISIBILITY_FLAGS | 59 if AMCOND_LIB_VISIBILITY_FLAGS |
48 OCTAVE_VISIBILITY_FLAGS = ${CFLAG_VISIBILITY} | 60 OCTAVE_VISIBILITY_FLAGS = ${CFLAG_VISIBILITY} |
49 endif | 61 endif |
50 | 62 |