Re: [Freeciv-Dev] patch: Check for AMIGA in shared.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
sebauer@xxxxxxxxxxx (Sebastian Bauer) wrote:
[ dont_run_as_root() on Amiga ]
> But I ask me if the test programm is necesarry, because
> for the "Not GNU Amiga" compile I must write an own config.h
> anywhy (I cannot use configure). This is probably the same in
> the Mac version. What's about __EMX__?
> If so, we could simply define HAVE_ONLYROOT (or similiar)
> in acconfig.h (and in config.h.in) and check for it in shared.c.
> But I don't know if this is possible, because this define
> wouldn't not be touched in configure?
> (That means I don't know if autoheader will create a entry
> in config.h.in automatically if configure.in doesn't use
> HAVE_ONLYROOT)
This seems to work fine, and I've done something like this,
declaring ALWAYS_ROOT in acconfig.h/config.h.in, but not
setting it via configure, so it is always undefined unless
set by hand.
Regards,
-- David
|
|