uuid.m4 556 B

1234567891011121314151617
  1. AC_DEFUN([CHECK_LIBUUID],
  2. [
  3. PKG_CHECK_MODULES([LIBUUID], [uuid >= 1.41.2],
  4. [LIBUUID_FOUND=yes], [LIBUUID_FOUND=no])
  5. if test "$LIBUUID_FOUND" = "no" ; then
  6. PKG_CHECK_MODULES([LIBUUID], [uuid],
  7. [LIBUUID_FOUND=yes], [LIBUUID_FOUND=no])
  8. if test "$LIBUUID_FOUND" = "no" ; then
  9. AC_MSG_WARN([libuuid development package highly recommended!])
  10. else
  11. LIBUUID_INCLUDEDIR=$(pkg-config --variable=includedir uuid)
  12. LIBUUID_CFLAGS+=" -I$LIBUUID_INCLUDEDIR/uuid "
  13. fi
  14. fi
  15. AC_SUBST([LIBUUID_CFLAGS])
  16. AC_SUBST([LIBUUID_LIBS])
  17. ])