Patchwork Make configure find uuid functions in Mac OS X by looking into libSystem.B

login
register
mail settings
Submitter C.W. Betts
Date July 4, 2010, 3:17 a.m.
Message ID <BLU0-SMTP6022480E73077EEE8E9D85B9B00@phx.gbl>
Download mbox | patch
Permalink /patch/57826/
State New
Headers show

Comments

C.W. Betts - July 4, 2010, 3:17 a.m.
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 <computers57@hotmail.com>
---
configure |    6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

Patch

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 <uuid/uuid.h>
int main(void)