Subject: Re: Detecting NetBSD 1.5
To: Michael Richardson <mcr@research.solidum.com>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-net
Date: 12/14/2000 11:17:04
Michael Richardson wrote:
> Is is a reasonable snippet of code for configure.in?
> Or is there a better one. I need to detect IPv6 (for mrt). It currently
> detects KAME, but it then expects it to be in /usr/local/v6.
>
> AC_EGREP_CPP(yes, [
> #include <sys/param.h>
> #ifdef __NetBSD_Version__
> #if __NetBSD_Version__ > 105000000
> yes
> #endif
> #endif
> ], [actions])
IPv6 appeared between 1.4 and 1.5. Couldn't you add an autoconf test
for the existance of, say, <netinet6/in6.h> ?
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD Sales, Support and Service: http://www.wasabisystems.com/