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

1  2 
configure.ac

diff --combined configure.ac
@@@ -5399,7 -5399,7 +5399,7 @@@ AC_ARG_WITH([libtokyotyrant]
        with_libtokyotyrant="$withval"
      else
        with_libtokyotyrant_cppflags="-I$withval/include"
 -      with_libtokyotyrant_ldflags="-L$withval/include"
 +      with_libtokyotyrant_ldflags="-L$withval/lib"
        with_libtokyotyrant_libs="-ltokyotyrant"
        with_libtokyotyrant="yes"
      fi
@@@ -5518,7 -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