From c027407aaebd38137cac67a64e78a578c023027d Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Sun, 9 Jul 2017 16:03:31 +0300 Subject: [PATCH] Dont set flags when doing with-cares=auto --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index dcfa040..b9df3c8 100644 --- a/configure.ac +++ b/configure.ac @@ -91,10 +91,12 @@ AC_ARG_WITH(cares, AC_HELP_STRING([--with-cares=prefix],[Specify where c-ares is installed]), [ if test "$withval" = "no"; then use_cares=no - elif test "$withval" = "yes" || test "$withval" = "auto"; then + elif test "$withval" = "yes"; then use_cares="$withval" CARES_CFLAGS="" CARES_LIBS="-lcares" + elif test "$withval" = "auto"; then + use_cares="$withval" else use_cares=yes CARES_CFLAGS="-I$withval/include" -- 2.40.0