Subject: Re: pkgsrc/mail/elm-me
To: Georg Schwarz <email@example.com>
From: Michal Pasternak <firstname.lastname@example.org>
Date: 01/19/2004 00:17:35
Georg Schwarz [Mon, Jan 19, 2004 at 12:40:29AM +0100]:
> On IRIX 5.3 the elm-me configure also sets I_INTTYPES while it rather
> should not (because inclusing both inttypes.h and sys/types.h does not
> work there)
> Is this some "feature" of GNU configure? Is there an elegant way around
... and this issue I'd fix by patching each source file like:
#ifndef __IRIX__ /* or whatever is it called, `echo f00 | cpp -dM' to check */
If the source is already configure-compatible (eg. listens to config.h
settings), you could patch config.h to #undef I_INTTYPES on IRIX, but I
think, that doing such things via config.h could be a fault (eg. there are
possibly some better places to do it, maybe configure script itself could be
learnt to do this, but I'm no GNU configure specialist).
A good practice could be to write a patch in way, that would affect only the
system you are running -- if gcc on your platform defines automatically some
version numbers, you can use them.
A good practice also would be to check the patches on a recent IRIX system.
... then send-pr(1), then send the patches to authors of elm-me.