+Sat Mar 22 00:06:00 1997 Tom Tromey <tromey@cygnus.com>
+
+ * texinfos.am (.texi.dvi): Look in @TEXINFODIR@ for texinfo.tex.
+ (.texinfo.dvi): Likewise.
+
+ * automake.in (handle_texinfo): TEXINFO_TEX variable can set
+ location of texinfo.tex.
+
Fri Mar 21 10:22:51 1997 Tom Tromey <tromey@cygnus.com>
+ * texinfos.am (.texinfo.dvi): Mirror .texi.dvi.
+
* ansi2knr.c, ansi2knr.1: New versions from L. Peter Deutsch.
* scripts.am: Add @EXEEXT@ to installed scripts.
what goes in AC_CONFIG_AUX_DIR
+TEXINFO_TEX
+
SUBDIR entry must be direct subdir of this dir
C++ -vs- yacc/lex
&define_program_variable ('TEXI2DVI', 'src', 'texinfo/util',
'texi2dvi');
+ # Set transform for including texinfos.am. First, handle --cygnus
+ # stuff.
local ($xform);
if ($cygnus_mode)
{
{
$xform = 's/^CYGNUS.*$//; s/^NOTCYGNUS//;';
}
+
+ # Handle location of texinfo.tex.
+ if ($cygnus_mode)
+ {
+ &define_variable ('TEXINFO_TEX',
+ '$(top_srcdir)/../texinfo/texinfo.tex');
+ }
+ elsif (! &variable_defined ('TEXINFO_TEX'))
+ {
+ &define_variable ('TEXINFO_TEX', '$(srcdir)/texinfo.tex');
+ }
+ local ($xxform) = &dirname ($contents{'TEXINFO_TEX'});
+ $xxform =~ s/(\W)/\\$1/g;
+ $xform .= ' s/\@TEXINFODIR\@/' . $xxform . '/g;';
+
$output_rules .= &file_contents_with_transform ($xform, 'texinfos');
push (@phony, 'install-info-am', 'uninstall-info');
push (@dist_targets, 'dist-info');
&define_variable ("TEXINFOS", $contents{'info_TEXINFOS'});
# Do some error checking. Note that this file is not required
- # when in Cygnus mode -- a bletcherous hack.
- &require_file_with_line ('info_TEXINFOS',
- $cygnus_mode ? $GNU : $FOREIGN,
- 'texinfo.tex')
- unless defined $options{'no-texinfo.tex'};
+ # when in Cygnus mode; instead we defined TEXINFO_TEX explicitly
+ # up above.
+ &require_file_with_line ('info_TEXINFOS', $FOREIGN, 'texinfo.tex')
+ unless (defined $options{'no-texinfo.tex'}
+ || &variable_defined ('TEXINFO_TEX'));
}
# Handle any man pages.
CYGNUS $(MAKEINFO) -I $(srcdir) $<
.texi.dvi:
- TEXINPUTS=$(srcdir):$$TEXINPUTS \
+ TEXINPUTS=@TEXINFODIR@:$$TEXINPUTS \
## Must set MAKEINFO like this so that version.texi will be found even
## if it is in srcdir.
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
CYGNUS $(MAKEINFO) $<
.texinfo.dvi:
- TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
+ TEXINPUTS=@TEXINFODIR@:$$TEXINPUTS \
+## Must set MAKEINFO like this so that version.texi will be found even
+## if it is in srcdir.
+ MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
## The way to make PostScript, for those who want it.
DVIPS = dvips
CYGNUS $(MAKEINFO) -I $(srcdir) $<
.texi.dvi:
- TEXINPUTS=$(srcdir):$$TEXINPUTS \
+ TEXINPUTS=@TEXINFODIR@:$$TEXINPUTS \
## Must set MAKEINFO like this so that version.texi will be found even
## if it is in srcdir.
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
CYGNUS $(MAKEINFO) $<
.texinfo.dvi:
- TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
+ TEXINPUTS=@TEXINFODIR@:$$TEXINPUTS \
+## Must set MAKEINFO like this so that version.texi will be found even
+## if it is in srcdir.
+ MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
## The way to make PostScript, for those who want it.
DVIPS = dvips