Mats Nilsson wrote:
>
> #ifdef WIN32
> # define OPENSSL_LACKS_SYSLOG
> #endif
>
> Then it becomes much more clear *why* a particular line in the code is
> sometimes omitted:
>
> #ifndef OPENSSL_LACKS_SYSLOG
> syslog(...);
> #endif
>
> It also becomes easy to add support for new platforms without having to
> touch thousands of files. Just select the features supported by your
> platform and create a new configuration file.
Which is exectly how GNU autoconf does it and they even contain
a programm to do the checks for a new system for you. But since
the discussion about the use of autoconf has largely died down
That is not the point I am making.
My point would be to adopt a policy of using
HAVE_<feature>
macros like this
#ifdef HAVE_<feature>
use_feature(...);
#endif
the I (and all others that use OpenSSL in projects where the use
of autoconf is desirable and possible) slap on the needed stuff
without having to touch the actual source code too much.
mfg lutz
--
*******************************************************************
Lutz Behnke Tel.: 040 / 766 29 1423
TC TrustCenter for Security Fax.: 040 / 766 29 577
in Data Networks GmbH email: [EMAIL PROTECTED]
Am Werder 1
21073 Hamburg, Germany
S/MIME Cryptographic Signature