Added i18n support.

This commit is contained in:
Jesse Thilo
1999-03-23 00:48:58 +00:00
parent ca1d9e53ce
commit bbcb769c0e
4 changed files with 28 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
## Process this file with automake to produce Makefile.in -*-Makefile-*-
AUTOMAKE_OPTIONS = 1.4 ansi2knr
SUBDIRS = intl po
bin_PROGRAMS = bison
bison_SOURCES = LR0.c allocate.c closure.c conflicts.c derives.c \
@@ -27,4 +29,4 @@ bison.simple: bison.s1 Makefile
sed -e "/^#line/ s|bison|$(datadir)/bison|" -e "s/@bison_version@/$(VERSION)/" < $(srcdir)/bison.s1 > $@-tmp
mv $@-tmp $@
DISTCLEANFILES = bison.simple
DISTCLEANFILES = bison.simple intl/libintl.h

View File

@@ -11,6 +11,21 @@
/* Define if the compiler understands prototypes. */
#undef PROTOTYPES
/* Define to 1 if NLS is requested. */
#undef ENABLE_NLS
/* Define as 1 if you have catgets and don't want to use GNU gettext. */
#undef HAVE_CATGETS
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
#undef HAVE_GETTEXT
/* Define if your locale.h file contains LC_MESSAGES. */
#undef HAVE_LC_MESSAGES
/* Define to 1 if you have the stpcpy function. */
#undef HAVE_STPCPY
/* The location of the simple parser (bison.simple). */
#undef XPFILE

View File

@@ -4,6 +4,8 @@ AM_INIT_AUTOMAKE(bison,1.27)
AM_CONFIG_HEADER(config.h:config.hin)
AC_PREREQ(2.13)
ALL_LINGUAS="de es fr nl"
dnl Checks for programs.
AC_PROG_CC
AC_MINIX
@@ -30,9 +32,15 @@ dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_CHECK_FUNCS(mkstemp setlocale)
AM_GNU_GETTEXT
# This is necessary so that .o files in LIBOBJS are also built via
# the ANSI2KNR-filtering rules.
LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
PFILE="${datadir}/bison.simple"
BISON_DEFINE_FILE(XPFILE, PFILE)
PFILE1="${datadir}/bison.hairy"
BISON_DEFINE_FILE(XPFILE1, PFILE1)
AC_OUTPUT(Makefile)
AC_OUTPUT(Makefile intl/Makefile po/Makefile.in)

View File

@@ -1,3 +1,4 @@
*.gmo
Makefile
Makefile.in
POTFILES