Re: [AD] djgpp compilation problems

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Eric Botcazou wrote:
> Certainly because it is IMHO ugly. What's the point of using a helper
> file just for a comment ? Let's simply remove the comment.

We must put _something_ in asmcapa.h, because otherwise nothing will be
written to it when neither mmx nor sse is available. (And if asmcapa.h
is not present, then the compilation of any C file including it will
fail.) I think a comment is the best thing to put in it: e.g. `extern
int dummy;' is certainly uglier, and also no good because asmcapa.h is
included from allegro.h.

However, _echoing_ a C comment does not work because: 
 - Under MinGW32, make does not understand quotes properly and echoes
them literally into the file (so gcc thinks it's a string), so we can't
use echo _with_ quotes.
 - Under djgpp, make thinks that `echo /* foo */' should output a list
of all files in your root dir (becasue of the /*), so we can't use echo
_without_ quotes either.

The simplest option I can think of that is left now, is to have this
dummy comment in a separate file which we copy to asmcapa.h. This might
be slightly ugly, but is totally robust and works on all platforms.

-- 
Sven Sandberg    svsa1977@xxxxxxxxxx    home.student.uu.se/svsa1977



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/