Fri Aug 9 09:18:46 1996 Tom Tromey <tromey@creche.cygnus.com>
+ * automake.in (handle_programs): Substitute @XLINK@. Make sure
+ linker variable is transformed name.
+ * program.am (@PROGRAM@): Use @XLINK@ to link.
+
* automake.in (handle_scripts): Fixed call to
am_primary_prefixes.
(handle_libraries): Better error message when AC_PROG_RANLIB
$output_vars .= $xname . '_LDADD = $(LDADD)' . "\n";
}
- # Define prog_LINK unless user did.
- if (! &variable_defined ($one_file . '_LINK'))
+ # Determine program to use for link.
+ local ($xlink);
+ if (&variable_defined ($xname . '_LINK'))
{
- $output_vars .= $xname . '_LINK = $(LINK)' . "\n";
+ $xlink = $xname . '_LINK';
+ }
+ else
+ {
+ $xlink = 'LINK';
}
$output_rules .=
&file_contents_with_transform
('s/\@PROGRAM\@/' . $one_file . '/go;'
- . 's/\@XPROGRAM\@/' . $xname . '/go;',
+ . 's/\@XPROGRAM\@/' . $xname . '/go;'
+ . 's/\@XLINK\@/' . $xlink . '/go;',
'program');
}
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
@PROGRAM@: $(@XPROGRAM@_OBJECTS) $(@XPROGRAM@_DEPENDENCIES)
- $(@XPROGRAM@_LINK) $(@XPROGRAM@_OBJECTS) $(@XPROGRAM@_LDADD) $(LIBS)
+ $(@XLINK@) $(@XPROGRAM@_OBJECTS) $(@XPROGRAM@_LDADD) $(LIBS)
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
@PROGRAM@: $(@XPROGRAM@_OBJECTS) $(@XPROGRAM@_DEPENDENCIES)
- $(@XPROGRAM@_LINK) $(@XPROGRAM@_OBJECTS) $(@XPROGRAM@_LDADD) $(LIBS)
+ $(@XLINK@) $(@XPROGRAM@_OBJECTS) $(@XPROGRAM@_LDADD) $(LIBS)