]> 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>
Tue, 3 Apr 2018 10:06:37 +0000 (12:06 +0200)
configure.ac

index ce16fb56ff9402dc7ad5a454bbf40eb2c0e23a29..c764e09bc71699dceae38d1478aea1b998b65e05 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."