[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bison-1.875: installation as yacc
From: |
Paul Eggert |
Subject: |
Re: bison-1.875: installation as yacc |
Date: |
Sat, 4 Jan 2003 22:33:01 -0800 (PST) |
> Date: Fri, 3 Jan 2003 18:30:02 -0700 (MST)
> From: "Nelson H. F. Beebe" <address@hidden>
>
> That's the right direction, but I'd like the default to be to not
> install a yacc command: that is, require --enable-yacc to get such an
> installation. However, I can live with the other choice as long as I
> know about it in advance.
I'd rather that the default be POSIX-compliant, all other things being
equal. So I installed this for now:
2003-01-04 Paul Eggert <address@hidden>
* configure.ac (AC_ARG_ENABLE): Add --disable-yacc.
(YACC_SCRIPT, YACC_LIBRARY): New vars to AC_SUBST.
* lib/Makefile.am (lib_LIBRARIES): liby.a -> @address@hidden
(EXTRA_LIBRARIES): New var, for liby.a.
* src/Makefile.am (bin_SCRIPTS): yacc -> @address@hidden
(EXTRA_SCRIPTS): New var, for yacc.
* NEWS: Document the above.
--- NEWS.~1.87.~ 2003-01-01 01:00:41.000000000 -0800
+++ NEWS 2003-01-04 22:30:05.387282000 -0800
@@ -1,6 +1,11 @@
Bison News
----------
+Changes in version 1.875a:
+
+* New configure option --disable-yacc, to disable installation of the
+ yacc command and -ly library introduced in 1.875 for POSIX conformance.
+
Changes in version 1.875, 2003-01-01:
* The documentation license has been upgraded to version 1.2
--- configure.ac 1 Jan 2003 10:10:41 -0000 1.30
+++ configure.ac 5 Jan 2003 06:20:55 -0000
@@ -59,6 +59,21 @@ if test "${enableval}" = yes; then
AC_DEFINE([lint], 1, [Define to 1 if the compiler is checking for lint.])
fi
+AC_ARG_ENABLE([yacc],
+ [AC_HELP_STRING([--disable-yacc],
+ [do not build a yacc command or an -ly library])],
+ , [enable_yacc=yes])
+case $enable_yacc in
+yes)
+ YACC_SCRIPT=yacc
+ YACC_LIBRARY=liby.a;;
+*)
+ YACC_SCRIPT=
+ YACC_LIBRARY=;;
+esac
+AC_SUBST([YACC_SCRIPT])
+AC_SUBST([YACC_LIBRARY])
+
# Checks for programs.
AC_PROG_LEX
AC_PROG_YACC
--- lib/Makefile.am 11 Dec 2002 05:26:00 -0000 1.36
+++ lib/Makefile.am 5 Jan 2003 06:20:56 -0000
@@ -17,7 +17,8 @@
AM_CFLAGS = $(WARNING_CFLAGS)
-lib_LIBRARIES = liby.a
+lib_LIBRARIES = @YACC_LIBRARY@
+EXTRA_LIBRARIES = liby.a
noinst_LIBRARIES = libbison.a
# config.h is in build/., and system.h is in src/src/.
--- src/Makefile.am 13 Dec 2002 12:17:59 -0000 1.59
+++ src/Makefile.am 5 Jan 2003 06:20:56 -0000
@@ -29,7 +29,8 @@ INCLUDES = -I$(top_builddir) \
LDADD = ../lib/libbison.a $(LIBINTL)
bin_PROGRAMS = bison
-bin_SCRIPTS = yacc
+bin_SCRIPTS = @YACC_SCRIPT@
+EXTRA_SCRIPTS = yacc
bison_SOURCES = \
LR0.c LR0.h \
cvs server: Diffing tests
- Re: bison-1.875: installation as yacc,
Paul Eggert <=