]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: fix small issue with libevent check
authorVictor Julien <victor@inliniac.net>
Tue, 3 Apr 2018 10:06:37 +0000 (12:06 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 16 Jul 2018 10:56:41 +0000 (12:56 +0200)
configure.ac

index 8d8210c3f33e61028047094b7b9a7fa83afe34d3..01589b19ec002d81d9e4b06a32e2ffeaf621408e 100644 (file)
                     AC_CHECK_LIB(event, event_base_free,, HAVE_LIBEVENT="no")
                     AC_CHECK_LIB(event_pthreads, evthread_use_pthreads,, HAVE_LIBEVENT_PTHREADS="no")
                 fi
-                if test "$HAVE_LIBEVENT" = "no" -o test "$HAVE_LIBEVENT_PTHREADS" = "no" ; then
+                if [ test "$HAVE_LIBEVENT" = "no" ] && [ -o test "$HAVE_LIBEVENT_PTHREADS" = "no"]; then
                     if test "$HAVE_LIBEVENT" = "no"; then
                         echo
                         echo "  Async mode for redis output will not be available."