--- apr-1.2.7.orig/configure.in	2006-03-21 12:29:41.000000000 -0700
+++ apr-1.2.7/configure.in	2006-10-26 08:36:50.000000000 -0700
@@ -1803,6 +1803,10 @@
 AC_SUBST(rand)
 
 dnl ----------------------------- Checking for UUID Support 
+AC_ARG_WITH([uuid], [AC_HELP_STRING([--with-uuid],[With uuid support, default=auto])],
+    [with_ext_uuid=$withval], [with_ext_uuid=auto])
+if test x"$with_ext_uuid" != xno ; then
+
 echo "${nl}Checking for OS UUID Support..."
 
 AC_CHECK_HEADERS(uuid.h uuid/uuid.h sys/uuid.h, break)
@@ -1859,6 +1863,13 @@
   osuuid="0"
   LIBS=$apr_revert_save_LIBS
 fi
+
+test x"$with_ext_uuid" = xyes && test $osuuid = 0 && \
+    AC_MSG_ERROR([--with-uuid specified but no uuid support available.])
+
+else
+  osuuid="0"
+fi
 AC_SUBST(osuuid)
 
 
