X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=configure.ac;h=3578f2e145dd404d184313f3be68a05464c5453d;hp=59a7f355c005cebcd81e7d15f828e4d1899a7c77;hb=6616302fb8dbbca4eddc11a756ed4843bd0bf61a;hpb=43282e32b42b1c7e7739a4cb73728d3ecbc2af9a 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