diff --git a/configure.in b/configure.in
index 74764cd4e5b6a7187358ed9773afddad4c9d6fe6..d1c201ddf7718087140607c4c747989b7fd60e7b 100644
--- a/configure.in
+++ b/configure.in
@@ -70,8 +70,7 @@ if test "$event_found" = no; then
      LDFLAGS="$LDFLAGS -L/usr/local/lib"
      AC_TRY_LINK([], [ void *event_init(void); event_init(); ],
         [ libevent_is_in_local=yes ], [ libevent_is_in_local=no ])
-    echo libevent_is_in_local is $libevent_is_in_local
-    if test libevent_is_in_local = yes; then
+    if test $libevent_is_in_local = yes; then
        AC_TRY_RUN([
 void *event_init(void);
 int main(void)