diff --git a/CONFIG b/CONFIG index 0f235136a..8abbf58c5 100644 --- a/CONFIG +++ b/CONFIG @@ -204,6 +204,9 @@ CONFIG_IDXD_KERNEL=n # arc4random is available in stdlib.h CONFIG_HAVE_ARC4RANDOM=n +# uuid_generate_sha1 is available in uuid/uuid.h +CONFIG_HAVE_UUID_GENERATE_SHA1=n + # Is DPDK using libbsd? CONFIG_HAVE_LIBBSD=n diff --git a/configure b/configure index 5935ff50e..f5557ce2c 100755 --- a/configure +++ b/configure @@ -1109,6 +1109,11 @@ if echo -e '#include \nint main(void) { arc4random(); return 0; }\n' \ CONFIG[HAVE_ARC4RANDOM]="y" fi +if echo -e '#include \nint main(void) { uuid_generate_sha1(NULL, NULL, NULL, 0); return 0; }\n' \ + | "${BUILD_CMD[@]}" - -luuid 2> /dev/null; then + CONFIG[HAVE_UUID_GENERATE_SHA1]="y" +fi + if [[ "${CONFIG[OCF]}" = "y" ]]; then echo "WARNING: OCF - bdev_ocf is deprecated." # If OCF_PATH is a file, assume it is a library and use it to compile with