diff options
author | Tom Tromey <tromey@redhat.com> | 2001-06-17 19:02:40 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2001-06-17 19:02:40 +0000 |
commit | 00329142f70a22c9e7dc69b01bdf6b6b63277f3d (patch) | |
tree | cc85a8e2865ac3f0720d69a42a6ef59d34810857 /automake.in | |
parent | eeaa4f07917cd4a0578f1b054e180d3bd7c30873 (diff) | |
download | automake-00329142f70a22c9e7dc69b01bdf6b6b63277f3d.tar.gz |
Fix for libtool.test:
* automake.in (generate_makefile): Call handle_libtool.
(handle_libtool): New sub.
(handle_compile): Don't read `libtool' file.
Diffstat (limited to 'automake.in')
-rwxr-xr-x | automake.in | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/automake.in b/automake.in index 83ac74af8..4fe79c9dd 100755 --- a/automake.in +++ b/automake.in @@ -1174,10 +1174,7 @@ sub generate_makefile # or libtool scripts (ltconfig and ltmain.sh). if ($relative_dir eq '.') { - # libtool requires some files. - &require_conf_file_with_conf_line ($libtool_line, $FOREIGN, - @libtoolize_files) - if $seen_libtool; + &handle_libtool; # AC_CANONICAL_HOST and AC_CANONICAL_SYSTEM need config.guess and # config.sub. @@ -2276,12 +2273,6 @@ sub handle_compile () $output_vars .= $vars; $output_rules .= "$coms$rules"; - if ($seen_libtool) - { - # Output the libtool compilation rules. - $output_rules .= &file_contents ('libtool'); - } - # Check for automatic de-ANSI-fication. if (defined $options{'ansi2knr'}) { @@ -2316,7 +2307,19 @@ sub handle_compile () } } +# handle_libtool () +# ----------------- +# Handle libtool rules. Only called when RELATIVE_DIR is `.'. +sub handle_libtool +{ + return unless $seen_libtool; + # libtool requires some files. + &require_conf_file_with_conf_line ($libtool_line, $FOREIGN, + @libtoolize_files); + # Output the libtool compilation rules. + $output_rules .= &file_contents ('libtool'); +} # handle_programs () # ------------------ |