Hi folks,
Harald Dunkel wrote:
> Hi folks,
>
> What is the criteria for copying the compile script into
> the source directory tree? I have some *.cc code, it is
> mentioned in my Makefile.am file, configure detects that
> the compile script must be used, too, but Automake doesn't
> provide it.
>
It seems that the compile script is only copied, if you have
C code only. As soon as you have C++ code in your Makefile.am
(with or without C code), compile is not copied into the
source tree anymore. This breaks support for MSVC.
Below you can find a patch.
Regards
Harri
------------------------------------------------------------------
diff -urN automake-1.9.6.orig/automake.in automake-1.9.6/automake.in
--- automake-1.9.6.orig/automake.in 2005-06-30 23:17:13.000000000 +0200
+++ automake-1.9.6/automake.in 2005-11-07 15:58:49.000000000 +0100
@@ -1138,7 +1138,7 @@
my $output_flag = $lang->output_flag || '';
$output_flag = '-o'
if (! $output_flag
- && $lang->name eq 'c'
+ && ($lang->name eq 'c' || $lang->name eq 'cxx')
&& option 'subdir-objects');
# Compute a possible derived extension.
@@ -1599,7 +1599,7 @@
$object = $dname . '-' . $object;
require_conf_file ("$am_file.am", FOREIGN, 'compile')
- if $lang->name eq 'c';
+ if $lang->name eq 'c' || $lang->name eq 'cxx';
prog_error ($lang->name . " flags defined without compiler")
if ! defined $lang->compile;