Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 2009 21:51:31 +0700
From:      Eugene Grosbein <eugen@kuzbass.ru>
To:        Andrew Brampton <brampton@gmail.com>, hackers@freebsd.org
Subject:   Re: Determine if a kernel is built with a specific option?
Message-ID:  <20090112145131.GA4375@svzserv.kemerovo.su>
In-Reply-To: <a31046fc0901120500q5ab31adax903d32279894e23e@mail.gmail.com>
References:  <d41814900901120355h780a3232u14fa1e5da8f280ad@mail.gmail.com> <a31046fc0901120500q5ab31adax903d32279894e23e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> I was wondering how a autoconf configure script can determine if the
> kernel is built with a particular option. In this case the code I have
> can make use of the FreeBSD polling driver, which by default isn't
> built into a kernel. So I want my configure script to determine if the
> kernel supports it, if so sets a #define, otherwise doesn't.

You should not assume that compiled code does not need polling support
just because _buildbox_ doesn't have it enabled in time of build.
If the code builds here, it does not mean it will run here.

Eugene Grosbein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090112145131.GA4375>