--- libgig/trunk/configure.in 2009/10/27 18:34:06 2016 +++ libgig/trunk/configure.in 2011/06/11 17:53:24 2182 @@ -72,7 +72,7 @@ AC_CHECK_HEADERS(uuid/uuid.h) AC_SEARCH_LIBS(uuid_generate, uuid) -AC_CHECK_FUNCS(uuid_generate CFUUIDCreate) +AC_CHECK_FUNCS(uuid_generate) case "$host" in *mingw*|*cygwin*) @@ -84,8 +84,18 @@ esac AM_CONDITIONAL(WIN32, test "$win32" = "yes") -if test "$ac_cv_func_uuid_generate" = no -a "$ac_cv_func_CFUUIDCreate" = no -a "$win32" = no; then - AC_MSG_WARN([No UUID generate function found. +case "$host" in + *-*-darwin*) + mac=yes + ;; + *) + mac=no + ;; +esac +AM_CONDITIONAL(MAC, test "$mac" = "yes") + +if test "$ac_cv_func_uuid_generate" = no -a "$mac" = no -a "$win32" = no; then + AC_MSG_WARN([No UUID generate function found. *** libgig will not be able to create DLSIDs in DLS and gig files. *** Install libuuid from e2fsprogs to solve this. Package might be called *** uuid-dev, libext2fs2-devel or e2fsprogs-devel.])