Skip to content

Commit

Permalink
configure: check if liburing is installed
Browse files Browse the repository at this point in the history
When user specifies --with-uring without a directory,
check that liburing is actually installed on the system.
If it isn't, instruct user to build and install liburing
and exit with error.

Signed-off-by: Jim Harris <[email protected]>
Change-Id: Iead4f30bdc3905c3b3462a32fd676a39fbd0d7d2

Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7542
Reviewed-by: Ben Walker <[email protected]>
Reviewed-by: Ziye Yang <[email protected]>
Reviewed-by: Aleksey Marchuk <[email protected]>
Reviewed-by: Tomasz Zawadzki <[email protected]>
Tested-by: SPDK CI Jenkins <[email protected]>
  • Loading branch information
jimharris committed Apr 22, 2021
1 parent 9d2f6f8 commit 4ccc9ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,11 @@ if [[ "${CONFIG[URING]}" = "y" ]]; then
echo "${CONFIG[URING_PATH]}: directory not found"
exit 1
fi
elif ! echo -e '#include <liburing.h>\nint main(void) { return 0; }\n' \
| "${BUILD_CMD[@]}" -luring - 2> /dev/null; then
echo "--with-uring requires liburing."
echo "Please build and install then re-run this script."
exit 1
fi
fi

Expand Down

0 comments on commit 4ccc9ea

Please sign in to comment.