Determine if a kernel is built with a specific option?

2009-01-12 Thread Andrew Brampton
Hi, 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

Re: Determine if a kernel is built with a specific option?

2009-01-12 Thread pluknet
2009/1/12 Andrew Brampton bramp...@gmail.com: Hi, 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

Re: Determine if a kernel is built with a specific option?

2009-01-12 Thread Andrew Brampton
2009/1/12 Eugene Grosbein eu...@kuzbass.ru: 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

Re: Determine if a kernel is built with a specific option?

2009-01-12 Thread Eugene Grosbein
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

Re: Determine if a kernel is built with a specific option?

2009-01-12 Thread Andrew Thompson
On Mon, Jan 12, 2009 at 11:55:11AM +, Andrew Brampton wrote: Hi, 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

Re: Determine if a kernel is built with a specific option?

2009-01-12 Thread Andrew Brampton
2009/1/12 Giorgos Keramidas keram...@ceid.upatras.gr: On Mon, 12 Jan 2009 14:56:21 +, Andrew Brampton brampton+freebsd-hack...@gmail.com wrote: If you were going to do this, would you make it a configure flag... ie --enable-polling... That way it doesn't matter if the build box is

Re: Determine if a kernel is built with a specific option?

2009-01-12 Thread Giorgos Keramidas
On Mon, 12 Jan 2009 14:56:21 +, Andrew Brampton brampton+freebsd-hack...@gmail.com wrote: If you were going to do this, would you make it a configure flag... ie --enable-polling... That way it doesn't matter if the build box is different? If both choices are available (i.e. no header