only build ares if truly enabled
diff --git a/testcurl.sh b/testcurl.sh
index 967c0e1..0f872b2 100755
--- a/testcurl.sh
+++ b/testcurl.sh
@@ -206,7 +206,7 @@
 echo "testcurl: display lib/config.h"
 grep "^ *#" lib/config.h
 
-if { grep USE_ARES lib/config.h; } then
+if { grep "define USE_ARES" lib/config.h; } then
   echo "testcurl: setup to build ares"
 
   echo "testcurl: build ares"