bison-patches
[Top][All Lists]
Advanced

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

Re: YYSTYPE_IS_TRIVIAL


From: Paul Eggert
Subject: Re: YYSTYPE_IS_TRIVIAL
Date: Wed, 24 Apr 2002 00:00:24 -0700 (PDT)

> From: Akim Demaille <address@hidden>
> Date: 23 Apr 2002 10:24:33 +0200
> 
> | The main problem is that I haven't a clue as to what to do about those
> | patches to reader.c.  I gather that I need to add a muscle, but I need
> | something that will define YYSTYPE_IS_TRIVIAL only if the user does
> | not define YYSTYPE.
> 
> There is a global variable, named `typed'.  I would simply
> MUSCLE_INSERT_INT ("stype_is_trivial", typed); in reader.c:prepare,
> and in bison.simple, just use b4_stype_is_trivial with regular M4
> macros.

But don't see how to tell whether the type is trivial in m4.  If the
user defines the C macro YYSTYPE, then the code must assume that the
type not trivial.  This is not something that m4 can do, as far as I
know.

> It is up to you to use it to define a CPP macro, or to decide to use
> M4 to decide what code should be output.

I guess that I have to do the former.

> I believe the best would be using M4, and if you share my opinion
> but don't want to adjust the code to this end, just tell me, and
> leave it to me.

Sorry, I don't see how to do it in M4.  (On the other hand, I don't
understand the M4 model yet, partly because I can't bootstrap.)

> | I can merge the bison.simple part of the patch, as follows, and I
> | think the following patch is an improvement (though I can't test this
> | easily as the head has problems on my host as I discussed in an
> | earlier message today).  However, by itself the patch below won't fix
> | the C++-compiler-masquerading-as-C-compiler problem on the head.
> 
> Please, install!

OK, done.

I currently get the following in my attempt to bootstrap:

433-sic $ ./bootstrap
Bootstrapping CVS Bison...
autoreconf: working in `.'
autoreconf: running: aclocal -I m4 --output=aclocal.m4t
autoreconf: `aclocal.m4' is created
autoreconf: running: gettextize --copy --force
Wiping out intl/ subdirectory
Copying file ABOUT-NLS
Copying file config/config.rpath
Not copying intl/ directory.
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/address@hidden
Copying file po/address@hidden
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
Adding an entry to po/ChangeLog (backup is in po/ChangeLog~)
Copying file m4/codeset.m4
Copying file m4/gettext.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/isc-posix.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/progtest.m4
Updating EXTRA_DIST in m4/Makefile.am (backup is in m4/Makefile.am~)
Creating m4/ChangeLog
Updating Makefile.am (backup is in Makefile.am~)
Adding an entry to ChangeLog (backup is in ChangeLog~)

Please use AM_GNU_GETTEXT([external]) in order to cause autoconfiguration
to look for an external libintl.

Please update po/Makevars so that it defines all the variables mentioned
in po/Makevars.template.
You can then remove po/Makevars.template.

Please run 'aclocal -I m4' to regenerate the aclocal.m4 file.
You need aclocal from GNU automake 1.5 (or newer) to do this.
Then run 'autoconf' to regenerate the configure file.

You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

You might also want to copy the convenience header file gettext.h
from the /opt/reb/share/gettext directory into your package.
It is a wrapper around <libintl.h> that implements the configure --disable-nls
option.

autoreconf: configure.in: not using Libtool
autoreconf: running: automake --add-missing --copy --force-missing
configure.in: installing `config/mkinstalldirs'
configure.in: installing `config/missing'
aclocal.m4:1847: installing `config/config.guess'
aclocal.m4:1847: installing `config/config.sub'
Makefile.am: installing `./INSTALL'
configure.in:27: required file `./config.hin' not found
doc/Makefile.am:3: installing `config/mdate-sh'
doc/Makefile.am:3: installing `config/texinfo.tex'
lib/Makefile.am:18: installing `lib/ansi2knr.c'
lib/Makefile.am:18: installing `lib/ansi2knr.1'
automake: processing Makefiles another time to fix them up.
autoreconf: running: autoconf --force
autoreconf: running: autoheader --force
autoheader: `config.hin' is created
mv: cannot access configure.in~
autoreconf: working in `.'
autoreconf: running: aclocal -I m4 --output=aclocal.m4t
autoreconf: `aclocal.m4' is unchanged
autoreconf: configure.in: not running gettextize: `intl' is already present
autoreconf: configure.in: not using Libtool
autoreconf: running: automake --no-force
autoreconf: running: autoconf
autoreconf: running: autoheader
autoheader: `config.hin' is unchanged
435-sic $ ./configure --prefix=/tmp/prefix
checking for a BSD-compatible install... /opt/sfw/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for flex... flex
checking for yywrap in -lfl... no
checking for yywrap in -ll... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for strerror in -lcposix... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for gm4... /opt/sfw/bin/gm4
checking whether m4 supports frozen files... yes
checking for ANSI C header files... (cached) yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for function prototypes... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for working alloca.h... yes
checking for alloca... yes
checking for obstacks... no
checking for error_at_line... no
checking for working strnlen... no
checking for mkstemp... yes
checking for mkstemp limitations... no
checking for setlocale... yes
checking whether free is declared... yes
checking whether stpcpy is declared... no
checking whether strchr is declared... yes
checking whether strspn is declared... yes
checking whether strnlen is declared... no
checking whether malloc is declared... yes
checking whether memchr is declared... yes
checking whether memrchr is declared... no
checking for stpcpy... no
checking for strchr... yes
checking for strspn... yes
checking for memchr... yes
checking for memrchr... no
checking for working malloc... yes
checking for working realloc... yes
checking for isascii... yes
checking for iswprint... yes
checking for mbsinit... yes
checking whether mbrtowc and mbstate_t are properly declared... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for ANSI C header files... (cached) yes
checking whether backslash-a works in strings... yes
checking for stdlib.h... (cached) yes
checking for mbstate_t... yes
checking for function prototypes... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for strerror... yes
checking for vprintf... yes
checking for doprnt... no
checking whether strerror is declared... yes
checking whether strerror_r is declared... no
checking for strerror_r... no
checking whether strerror_r returns char *... no
checking for ANSI C header files... (cached) yes
checking if malloc debugging is wanted... no
checking for msgfmt... /opt/reb/bin/msgfmt
checking for gmsgfmt... /opt/reb/bin/msgfmt
checking for xgettext... /opt/reb/bin/xgettext
checking for msgmerge... /opt/reb/bin/msgmerge
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking for off_t... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... no
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking for iconv... yes
checking how to link with libiconv... -liconv
checking argz.h usability... no
checking argz.h presence... no
checking for argz.h... no
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for feof_unlocked... no
checking for fgets_unlocked... no
checking for getc_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... no
checking for munmap... yes
checking for putenv... yes
checking for setenv... no
checking for setlocale... (cached) yes
checking for stpcpy... (cached) no
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, const char * *inbuf, size_t 
*inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 1.35, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... no
configure: creating ./config.status
config.status: creating tests/Makefile
config.status: creating tests/atlocal
config.status: creating tests/bison
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating intl/Makefile
config.status: error: cannot find input file: intl/Makefile.in
438-sic $ ls intl
CVS



reply via email to

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