From: Tomohiro Kusumi Date: Tue, 8 Jun 2021 17:14:34 +0000 (+0900) Subject: configure: silence "pkg-config: not found" X-Git-Tag: fio-3.28~50^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=be5670c864a03d9c35081340dcb0a8e68c1725f3;p=fio.git configure: silence "pkg-config: not found" Do what check_min_lib_version() does to not print the error message when pkg-config doesn't exist. -- DAOS File System (dfs) Engine no ./configure: pkg-config: not found NFS engine no Signed-off-by: Tomohiro Kusumi --- diff --git a/configure b/configure index 8b763700..84ccce04 100755 --- a/configure +++ b/configure @@ -2285,7 +2285,7 @@ print_config "DAOS File System (dfs) Engine" "$dfs" ########################################## # Check if we have libnfs (for userspace nfs support). if test "$disable_nfs" != "yes"; then - if $(pkg-config libnfs); then + if $(pkg-config libnfs > /dev/null 2>&1); then libnfs="yes" libnfs_cflags=$(pkg-config --cflags libnfs) libnfs_libs=$(pkg-config --libs libnfs)