From 6616302fb8dbbca4eddc11a756ed4843bd0bf61a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Edgar=20Fu=C3=9F?= Date: Tue, 29 Oct 2019 18:47:55 +0100 Subject: [PATCH] Fix libupsclient detection Check libupsclient $withval for being a regular file in addition to being executable/searchable. The value may be a directory name. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 59a7f355..3578f2e1 100644 --- a/configure.ac +++ b/configure.ac @@ -5518,7 +5518,7 @@ AC_ARG_WITH([libupsclient], else if test "x$withval" = "xyes"; then with_libupsclient="use_pkgconfig" else - if test -x "$withval"; then + if test -f "$withval" && test -x "$withval"; then with_libupsclient_config="$withval" with_libupsclient="use_libupsclient_config" else if test -x "$withval/bin/libupsclient-config"; then -- 2.11.0