From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 12 20:07:14 2009 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D73A21065729 for ; Mon, 12 Jan 2009 20:07:14 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id 439158FC17 for ; Mon, 12 Jan 2009 20:07:13 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-av-05.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-01.forthnet.gr (8.14.3/8.14.3) with ESMTP id n0CGHiok027807; Mon, 12 Jan 2009 18:17:44 +0200 Received: from MX-IN-01.forthnet.gr (mx-in-01.forthnet.gr [193.92.150.23]) by mx-av-05.forthnet.gr (8.14.3/8.14.3) with ESMTP id n0CGHihE014383; Mon, 12 Jan 2009 18:17:44 +0200 Received: from kobe.laptop (adsl45-26.kln.forthnet.gr [77.49.172.26]) by MX-IN-01.forthnet.gr (8.14.3/8.14.3) with ESMTP id n0CGHfTm021988; Mon, 12 Jan 2009 18:17:42 +0200 Authentication-Results: MX-IN-01.forthnet.gr smtp.mail=keramida@ceid.upatras.gr; spf=neutral Authentication-Results: MX-IN-01.forthnet.gr header.from=keramida@ceid.upatras.gr; sender-id=neutral Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n0CGHfRA037763; Mon, 12 Jan 2009 18:17:41 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n0CGHcTv037756; Mon, 12 Jan 2009 18:17:38 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: "Andrew Brampton" References: <20090112145131.GA4375@svzserv.kemerovo.su> Date: Mon, 12 Jan 2009 18:17:38 +0200 In-Reply-To: (Andrew Brampton's message of "Mon, 12 Jan 2009 14:56:21 +0000") Message-ID: <873afolcrh.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: hackers@freebsd.org, Eugene Grosbein Subject: Re: Determine if a kernel is built with a specific option? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2009 20:07:15 -0000 On Mon, 12 Jan 2009 14:56:21 +0000, "Andrew Brampton" 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 files are missing, no link-time libraries are unavailable, and so on), I'd probably make it a runtime option: * A configure-time flag to set the 'default' and * A runtime option to explicitly specify the current preference when the program runs. This seems a bit more flexible, and does not require an expensive ``go back to your vendor, and ask for a special build-time option'' cycle to test different setups when a field installation is done.