+Wed Apr 16 00:05:47 1997 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (define_program_variable): Added `override' argument.
+ (handle_texinfo): Pass override arg when defining MAKEINFO.
+ (AC_MISSING_PROG): New constant.
+ (scan_one_configure_file): Use it.
+
Tue Apr 15 12:12:28 1997 Tom Tromey <tromey@cygnus.com>
* automake.in (handle_texinfo): In --cygnus mode, reserve
NORMAL_UNINSTALL = true
PRE_UNINSTALL = true
POST_UNINSTALL = true
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
PERL = @PERL@
TAR = @TAR@
CONFIG_CLEAN_FILES = automake aclocal
SCRIPTS = $(bin_SCRIPTS) $(pkgdata_SCRIPTS)
-MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
TEXINFO_TEX = $(srcdir)/texinfo.tex
INFO_DEPS = automake.info
done; \
done
-mostlyclean-info:
+mostlyclean-aminfo:
rm -f automake.aux automake.cp automake.cps automake.dvi automake.fn \
automake.fns automake.ky automake.log automake.pg \
automake.toc automake.tp automake.tps automake.vr \
automake.vrs automake.op automake.tr automake.cv
-clean-info:
+clean-aminfo:
-distclean-info:
+distclean-aminfo:
-maintainer-clean-info:
+maintainer-clean-aminfo:
for i in $(INFO_DEPS); do rm -f `eval echo $$i*`; done
install-pkgdataDATA: $(pkgdata_DATA)
.PHONY: default uninstall-binSCRIPTS install-binSCRIPTS \
uninstall-pkgdataSCRIPTS install-pkgdataSCRIPTS mostlyclean-vti \
distclean-vti clean-vti maintainer-clean-vti install-info-am \
-uninstall-info mostlyclean-info distclean-info clean-info \
-maintainer-clean-info uninstall-pkgdataDATA install-pkgdataDATA \
+uninstall-info mostlyclean-aminfo distclean-aminfo clean-aminfo \
+maintainer-clean-aminfo uninstall-pkgdataDATA install-pkgdataDATA \
install-data-recursive uninstall-data-recursive install-exec-recursive \
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
all-recursive check-recursive installcheck-recursive info-recursive \
$AM_PACKAGE_VERSION_PATTERN = "^\\s*\\[?([^]\\s]+)\\]?\\s*\$";
# Note that there is no AC_PATH_TOOL. But we don't really care.
$AC_CHECK_PATTERN = "AC_(CHECK|PATH)_(PROG|PROGS|TOOL)\\(\\[?(\\w+)";
+$AM_MISSING_PATTERN = "AM_MISSING_PROG\\(\\[?(\\w+)";
# Just check for alphanumeric in AC_SUBST. If you do AC_SUBST(5),
# then too bad.
$AC_SUBST_PATTERN = "AC_SUBST\\(\\[?(\\w+)";
# Find these programs wherever they may lie. Yes, this has
# intimate knowledge of the structure of the texinfo distribution.
&define_program_variable ('MAKEINFO', 'build', 'texinfo/makeinfo',
- '@MAKEINFO@');
+ 'makeinfo', '@MAKEINFO@');
&define_program_variable ('TEXI2DVI', 'src', 'texinfo/util',
'texi2dvi');
{
$configure_vars{$3} = 1;
}
+ if (/$AM_MISSING_PATTERN/o)
+ {
+ $configure_vars{$1} = 1;
+ }
# Explicitly avoid ANSI2KNR -- we AC_SUBST that in protos.m4,
# but later define it elsewhere. This is pretty hacky. We
# be found. (runtest is in srcdir!)
# * SUBDIR Subdir of top-level dir
# * PROGRAM Name of program
+# * OVERRIDE If specified, the name of the program to use when not in
+# Cygnus mode. Defaults to PROGRAM.
sub define_program_variable
{
- local ($var, $whatdir, $subdir, $program) = @_;
+ local ($var, $whatdir, $subdir, $program, $override) = @_;
+
+ if (! $override)
+ {
+ $override = $program;
+ }
if ($cygnus_mode)
{
}
else
{
- &define_variable ($var, $program);
+ &define_variable ($var, $override);
}
}