From fce91531c22392ead3c1f9c42238fd2c12a34024 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 27 May 1997 05:46:04 +0000 Subject: [PATCH] fix for --no-force --- ChangeLog | 3 +++ automake.in | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a879423..870262a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Mon May 26 22:50:49 1997 Tom Tromey + * automake.in (generate_makefile): If --no-force, check + Makefile.in against configure.in and aclocal.m4. + * automake.in (handle_dist_worker): Put --include-deps on command line if specified originally. (handle_configure): Likewise. diff --git a/automake.in b/automake.in index 5e2b47f..7192ecd 100755 --- a/automake.in +++ b/automake.in @@ -572,12 +572,19 @@ sub generate_makefile { local ($am_time) = (stat ($makefile . '.am'))[9]; local ($in_time) = (stat ($out_file))[9]; + # FIXME: should cache these times. + local ($conf_time) = (stat ('configure.in'))[9]; # FIXME: how to do unsigned comparison? - if ($am_time < $in_time) + if ($am_time < $in_time || $am_time < $conf_time) { # No need to update. return; } + if (-f 'aclocal.m4') + { + local ($acl_time) = (stat _)[9]; + return if ($am_time < $acl_time); + } } if (! open (GM_FILE, "> " . $out_file)) -- 2.7.4