Stepan Kasal wrote: > > I looked at /usr/share/automake-1.9/compile and I cannot understand > how this could happen. > I think that the parametr to compile should look like > some/path/main.c > which becomes cfile, and then cofile is assigned as > > cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'` >
Unfrtunately $cfile is the output of 'cygpath -w ../hello.c' in this case, e.g. '\\somehost\somepath\hello.c'. So $cofile is set to '\\somehost\somepath\hello.o'. Surely not correct. How about this patch for compile? cofile=`echo "$cfile" | sed -e 's|^.*[/\\]||' -e 's/\.c$/.o/'` ^^^^^ If a user adds '\' into his Unix filenames and uses a compiler that doesn't understand -c -o, then he is out of luck. Regards Harri