Merge pull request #3328 from efuss/fix-3312
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 30 Oct 2019 08:20:50 +0000 (09:20 +0100)
committerGitHub <noreply@github.com>
Wed, 30 Oct 2019 08:20:50 +0000 (09:20 +0100)
Fix libupsclient detection

configure.ac

index 40ccafe..9fc40b1 100644 (file)
@@ -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