+2001-02-07 Tom Tromey <tromey@redhat.com>
+
+ * automake.in (handle_configure): Handle case where output file is
+ in subdir with no Makefile of its own. Fixes remake3.test,
+ distcommon.test.
+
2001-02-06 Pavel Roskin <proski@gnu.org>
* automake.in (handle_dependencies): Rename AM_INCLUDE to
# Normal usage.
$file = $lfile;
$local = &basename ($file);
- @inputs = ($local . '.in');
+ @inputs = ($file . '.in');
@rewritten_inputs =
- &rewrite_inputs_into_dependencies (1, $file . '.in');
+ &rewrite_inputs_into_dependencies (1, @inputs);
$need_rewritten = 0;
}
}
}
- # Skip files not in this directory.
- next unless &dirname ($file) eq $relative_dir;
-
- # Skip any file that is an automake input.
+ # We skip any automake input files, as they are handled
+ # elsewhere. We also skip files that aren't in this
+ # directory. However, if the file's directory does not have a
+ # Makefile, and we are currently doing `.', then we create a
+ # rule to rebuild the file in the subdir.
next if -f $file . '.am';
+ local ($fd) = &dirname ($file);
+ if ($fd ne $relative_dir)
+ {
+ if ($relative_dir eq '.' && ! &is_make_dir ($fd))
+ {
+ $local = $file;
+ }
+ else
+ {
+ next;
+ }
+ }
# Some users have been tempted to put `stamp-h' in the
# AC_OUTPUT line. This won't do the right thing, so we
echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
fi
-for ac_prog in mawk gawk nawk awk
+for ac_prog in gawk mawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2