From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LKchB-0000YX-JL for qemu-devel@nongnu.org; Wed, 07 Jan 2009 12:59:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LKch8-0000U4-SM for qemu-devel@nongnu.org; Wed, 07 Jan 2009 12:59:57 -0500 Received: from [199.232.76.173] (port=34597 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKch8-0000Tj-NE for qemu-devel@nongnu.org; Wed, 07 Jan 2009 12:59:54 -0500 Received: from nf-out-0910.google.com ([64.233.182.186]:44012) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LKch8-0006ye-5V for qemu-devel@nongnu.org; Wed, 07 Jan 2009 12:59:54 -0500 Received: by nf-out-0910.google.com with SMTP id b2so1137102nfb.12 for ; Wed, 07 Jan 2009 09:59:52 -0800 (PST) Message-ID: <4964ED91.5090906@codemonkey.ws> Date: Wed, 07 Jan 2009 11:59:45 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] PATCH: enable -clock dynticks for non-linux hosts References: <20081220235546.GA55355@saturn.kn-bremen.de> In-Reply-To: <20081220235546.GA55355@saturn.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Juergen Lock wrote: > This does a configure check for posix timers instead of only enabling > them on linux (and w32) hosts, so that -clock dynticks also works on > FreeBSD >= 7.0 (and possibly others.) > > Index: qemu/configure > @@ -1025,11 +1025,26 @@ > rt=yes > fi > > +########################################## > +# posix timer probe > +cat > $TMPC < +#include > +int main(void) { timer_create(CLOCK_REALTIME, (struct sigevent *)NULL, (timer_t *)NULL); return 0; } > +EOF > +posixtimer=no > +if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then > + posixtimer=yes > +elif $cc $ARCH_CFLAGS -o $TMPE $TMPC -lrt 2> /dev/null ; then > + posixtimer=yes > + rt=yes > +fi > + > if test "$rt" = "yes" ; then > # Hack, we should have a general purpose LIBS for this sort of thing > AIOLIBS="$AIOLIBS -lrt" > fi > Can you add a proper POSIXTIMERLIBS or something like that instead of doing the silliness with AIOLIBS? Regards, Anthony Liguori