From patchwork Sun Jul 4 03:17:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "C.W. Betts" X-Patchwork-Id: 57826 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 293F3B6EF7 for ; Sun, 4 Jul 2010 13:19:15 +1000 (EST) Received: from localhost ([127.0.0.1]:35365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVFjc-0006In-AY for incoming@patchwork.ozlabs.org; Sat, 03 Jul 2010 23:19:12 -0400 Received: from [140.186.70.92] (port=34380 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVFiO-0005zg-9t for qemu-devel@nongnu.org; Sat, 03 Jul 2010 23:17:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OVFiN-0001Ko-92 for qemu-devel@nongnu.org; Sat, 03 Jul 2010 23:17:56 -0400 Received: from blu0-omc2-s25.blu0.hotmail.com ([65.55.111.100]:20930) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVFiN-0001Kd-7N for qemu-devel@nongnu.org; Sat, 03 Jul 2010 23:17:55 -0400 Received: from BLU0-SMTP60 ([65.55.111.71]) by blu0-omc2-s25.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 3 Jul 2010 20:17:54 -0700 X-Originating-IP: [66.29.163.1] X-Originating-Email: [computers57@hotmail.com] Message-ID: Received: from [192.168.0.196] ([66.29.163.1]) by BLU0-SMTP60.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sat, 3 Jul 2010 20:17:53 -0700 From: "C.W. Betts" Date: Sat, 3 Jul 2010 21:17:50 -0600 To: qemu-devel@nongnu.org Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) X-OriginalArrivalTime: 04 Jul 2010 03:17:53.0524 (UTC) FILETIME=[7D9BFB40:01CB1B27] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ Subject: [Qemu-devel] Make configure find uuid functions in Mac OS X by looking into libSystem.B X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Make configure find uuid functions in Mac OS X by looking into libSystem.B Mac OS X consolidates many smaller libraries into libSystem.B.dylib. libuuid is one of these. This patch makes it so that configure doesn't look for a non-existant libuuid.dylib, but look in libSystem for the uuid functions. Signed off by C.W. Betts --- configure | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 966cd7d..ecc3317 100755 --- a/configure +++ b/configure @@ -1198,7 +1198,11 @@ fi ########################################## # uuid_generate() probe, used for vdi block driver if test "$uuid" != "no" ; then - uuid_libs="-luuid" + if test "$darwin" == "yes"; then + uuid_libs="" + else + uuid_libs="-luuid" + fi cat > $TMPC << EOF #include int main(void)