[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Translator support for GNU tar

From: Wolfgang Jaehrling
Subject: Re: Translator support for GNU tar
Date: Fri, 20 Jun 2003 00:12:39 +0200
User-agent: Mutt/1.3.28i

On Thu, Jun 19, 2003 at 10:22:34PM +0200, Marco Gerards wrote:
> My biggest problem is autoconf. It doesn't even work perfectly for the
> orginal sourcecode. I've added a test to check for the Hurd by looking
> for hurd.h, is that correct?

Check for individual features; for example, when the feature in
question is support for translators, you might want to check for the
function file_set_translator.  This way, GNU tar will correctly detect
other systems that might support translators in the future but don't
provide a hurd.h file.

If you want to check for GNU/Hurd, use #ifdef __GNU__, but this should
only be done with a good reason, like when porting a program that uses
tests based on the operating system already.


"A good programming language should have features that make the kind
of people who use the phrase `software engineering' shake their heads
disapprovingly." -- Paul Graham

reply via email to

[Prev in Thread] Current Thread [Next in Thread]