mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* m4/m4.m4: New, from CVS Autoconf.
* configure.in: Invoke it. * src/output.c (output_skeleton): Use its result instead of the hard coded name.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2002-02-25 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* m4/m4.m4: New, from CVS Autoconf.
|
||||
* configure.in: Invoke it.
|
||||
* src/output.c (output_skeleton): Use its result instead of the
|
||||
hard coded name.
|
||||
|
||||
2002-02-25 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
|
||||
|
||||
@@ -42,6 +42,11 @@ AC_ISC_POSIX
|
||||
AM_PROG_CC_STDC
|
||||
AC_PROG_RANLIB
|
||||
AM_MISSING_PROG([AUTOM4TE], [autom4te])
|
||||
BISON_PROG_GNU_M4
|
||||
if test x"$ac_cv_prog_gnu_m4" != xyes; then
|
||||
AC_MSG_ERROR([GNU M4 1.4 is required])
|
||||
fi
|
||||
AC_DEFINE_UNQUOTED([M4], ["$M4"], [Define to the GNU M4 executable name.])
|
||||
|
||||
AC_ARG_ENABLE(gcc-warnings,
|
||||
[ --enable-gcc-warnings turn on lots of GCC warnings (not recommended)],
|
||||
|
||||
@@ -9,6 +9,7 @@ glibc21.m4 \
|
||||
iconv.m4 \
|
||||
isc-posix.m4 \
|
||||
lcmessage.m4 \
|
||||
m4.m4 \
|
||||
malloc.m4 \
|
||||
mbrtowc.m4 \
|
||||
mbstate_t.m4 \
|
||||
|
||||
12
src/output.c
12
src/output.c
@@ -1001,15 +1001,17 @@ output_skeleton (void)
|
||||
/* Invoke m4 on the definition of the muscles, and the skeleton. */
|
||||
{
|
||||
const char *bison_pkgdatadir = getenv ("BISON_PKGDATADIR");
|
||||
const char *m4 = getenv ("M4");
|
||||
if (!m4)
|
||||
m4 = M4;
|
||||
if (!bison_pkgdatadir)
|
||||
bison_pkgdatadir = PKGDATADIR;
|
||||
if (trace_flag)
|
||||
fprintf (stderr,
|
||||
"running: m4 -I %s m4sugar/m4sugar.m4 %s %s\n",
|
||||
bison_pkgdatadir, tempfile, skeleton);
|
||||
skel_in = readpipe ("m4",
|
||||
"-I",
|
||||
bison_pkgdatadir,
|
||||
"running: %s -I %s m4sugar/m4sugar.m4 %s %s\n",
|
||||
m4, bison_pkgdatadir, tempfile, skeleton);
|
||||
skel_in = readpipe (m4,
|
||||
"-I", bison_pkgdatadir,
|
||||
"m4sugar/m4sugar.m4",
|
||||
tempfile,
|
||||
skeleton,
|
||||
|
||||
Reference in New Issue
Block a user