From 22a4bcd5423435449ce924dc1198bce5a9fdd638 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 27 Aug 2000 23:42:18 +0000 Subject: [PATCH] * automake.in (handle_single_transform_list): Only add to %dep_files if language is found and supports automatic dependency tracking. Fixes PR automake/75. --- ChangeLog | 4 ++++ automake.in | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index ca44054f..606bb066 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-08-27 Tom Tromey + * automake.in (handle_single_transform_list): Only add to + %dep_files if language is found and supports automatic dependency + tracking. Fixes PR automake/75. + * automake.in (am_primary_prefixes): Don't set `valid' for configure variables that don't satisfy the other constraints. Fixes PR automake/68. diff --git a/automake.in b/automake.in index 9842b821..26898de8 100755 --- a/automake.in +++ b/automake.in @@ -1387,10 +1387,13 @@ sub handle_single_transform_list # Transform .o or $o file into .P file (for automatic # dependency code). - local ($depfile) = $object; - $depfile =~ s/\.([^.]*)$/.P$1/; - $depfile =~ s/\$\(OBJEXT\)$/o/ if $seen_objext; - $dep_files{'$(DEPDIR)/' . $depfile} = 1; + if ($lang && $language_map{$lang . '-autodep'} ne 'no') + { + local ($depfile) = $object; + $depfile =~ s/\.([^.]*)$/.P$1/; + $depfile =~ s/\$\(OBJEXT\)$/o/ if $seen_objext; + $dep_files{'$(DEPDIR)/' . $depfile} = 1; + } } } -- 2.43.5