From: Marko Kreen Date: Sun, 9 Jul 2017 13:03:31 +0000 (+0300) Subject: Dont set flags when doing with-cares=auto X-Git-Tag: pgbouncer_1_8~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c027407aaebd38137cac67a64e78a578c023027d;p=pgbouncer Dont set flags when doing with-cares=auto --- 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"