From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 13 14:40:34 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68A0A1065672 for ; Sun, 13 Sep 2009 14:40:34 +0000 (UTC) (envelope-from herbszt@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id ABBCF8FC08 for ; Sun, 13 Sep 2009 14:40:33 +0000 (UTC) Received: (qmail invoked by alias); 13 Sep 2009 14:40:30 -0000 Received: from p54BD02AA.dip0.t-ipconnect.de (HELO FSCPC) [84.189.2.170] by mail.gmx.net (mp007) with SMTP; 13 Sep 2009 16:40:30 +0200 X-Authenticated: #310364 X-Provags-ID: V01U2FsdGVkX19zvDMbVUZzpKusJ5bCcSXirQO2ExNM88EknQf0fw P200KhYKlTijdZ Message-ID: From: "Sebastian Herbszt" To: "Juergen Lock" References: <20090829222339.GA93608@triton8.kn-bremen.de> <20090902175621.GA63905@triton8.kn-bremen.de> <20090904193435.GA77708@triton8.kn-bremen.de> <2E5888455DA643CEB3960168C1AAB4E0@FSCPC> <20090912183516.GA65678@triton8.kn-bremen.de> In-Reply-To: <20090912183516.GA65678@triton8.kn-bremen.de> Date: Sun, 13 Sep 2009 16:38:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16669 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 Cc: freebsd-emulation@FreeBSD.org, Juergen Lock , Jung-uk Kim , qemu-devel@nongnu.org Subject: Re: experimental FreeBSD qemu-devel git head port update for testing X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2009 14:40:34 -0000 Replace own invokation of $cc with compile_prog (patch will likely not apply). - Sebastian @@ -37,7 +37,7 @@ + else + libpcap=-lwpcap + fi -+ if ! $cc $ARCH_CFLAGS -o $TMPE $libpcap $TMPC 2> /dev/null ; then ++ if ! compile_prog "" "$libpcap" ; then + echo + echo "Error: Could not find pcap" + echo "Make sure to have the pcap libs and headers installed." @@ -52,7 +52,7 @@ + return (pcap_create("foo", errbuf) == (pcap_t *)0 ? 1 : 0); +} +EOF -+ if $cc $ARCH_CFLAGS -o $TMPE $libpcap $TMPC 2> /dev/null ; then ++ if compile_prog "" "$libpcap" ; then + pcap_create="yes" + fi + cat > $TMPC << EOF @@ -61,10 +61,9 @@ +#include +int main(void) { return (BPF_MAJOR_VERSION); } +EOF -+ if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then ++ if compile_prog "" "" ; then + bpf="yes" + fi -+# LIBS="$libpcap $LIBS" + libs_softmmu="$libpcap $libs_softmmu" +fi # test "$pcap" + @@ -72,7 +71,7 @@