configure: silence "pkg-config: not found"
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 8 Jun 2021 17:14:34 +0000 (02:14 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 8 Jun 2021 17:43:41 +0000 (02:43 +0900)
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 <kusumi.tomohiro@gmail.com>
configure

index 8b763700dacd203fcde0f3649beaa339608cd204..84ccce040ece052b6cf844b082114f2d38bc8f26 100755 (executable)
--- 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)