Fri Jan 26 00:15:25 1996 Tom Tromey <tromey@creche.cygnus.com>
+ * automake.in (am_conf_error): New function.
+ (scan_configure): Use it.
+ (scan_configure): A comma also ends AC_OUTPUT macro.
+
* automake.in (read_am_file): Compute top_builddir when including
header-vars.am.
(handle_configure): Use $top_builddir, not $top_reldir.
if defined $contents{'CONFIG_HEADER'};
# Generate CONFIG_HEADER define, and define interally.
- $output_vars .= "CONFIG_HEADER = ${top_builddir}${config_name}\n"
- if $config_name;
- $contents{'CONFIG_HEADER'} = "${top_builddir}${config_name}"
+ $output_vars .= "CONFIG_HEADER = ${top_builddir}/${config_name}\n"
if $config_name;
+ $contents{'CONFIG_HEADER'} = "${top_builddir}/${config_name}";
}
# Handle C headers.
if ($in_ac_output)
{
s/\]//;
- $in_ac_output = 0 if s/\)//;
+ $in_ac_output = 0 if s/[\),]//;
# Look at potential Makefile.am's.
foreach (split)
{
if (! defined $contents{'SUBDIRS'})
{
- &am_error
+ &am_conf_error
("ud_GNU_GETTEXT in configure.in but SUBDIRS not defined");
}
else
{
- &am_error ("ud_GNU_GETTEXT in configure.in but \`po' not in SUBDIRS")
- if $contents{'SUBDIRS'} !~ /\bpo\b/;
- &am_error ("ud_GNU_GETTEXT in configure.in but \`intl' not in SUBDIRS")
- if $contents{'SUBDIRS'} !~ /\bintl\b/;
+ &am_conf_error
+ ("ud_GNU_GETTEXT in configure.in but \`po' not in SUBDIRS")
+ if $contents{'SUBDIRS'} !~ /\bpo\b/;
+ &am_conf_error
+ ("ud_GNU_GETTEXT in configure.in but \`intl' not in SUBDIRS")
+ if $contents{'SUBDIRS'} !~ /\bintl\b/;
}
&require_file ($NORMAL, 'ABOUT-NLS');
&require_file ($NORMAL, 'config.guess', 'config.sub')
if $seen_canonical;
- &am_error ("fp_PROG_INSTALL must be used in configure.in")
+ &am_conf_error ("fp_PROG_INSTALL must be used in configure.in")
unless $seen_prog_install;
- &am_error ("AC_ARG_PROGRAM must be used in configure.in")
+ &am_conf_error ("AC_ARG_PROGRAM must be used in configure.in")
unless $seen_arg_prog;
close (CONFIGURE);
$exit_status = 1;
}
+# The same, but while scanning configure.in.
+sub am_conf_error
+{
+ # FIXME can run in subdirs.
+ warn "automake: configure.in: ", join (' ', @_), "\n";
+ $exit_status = 1;
+}
+
# Print usage information.
sub usage
{