]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix CLS configure check
authorVictor Julien <victor@inliniac.net>
Mon, 15 Jul 2013 12:06:42 +0000 (14:06 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 15 Jul 2013 12:06:42 +0000 (14:06 +0200)
configure.ac

index 2bf93b2db60d80650dc0bf808bea56f4ab5d5f6b..9b7ce46740a062269a695ed835045c65a000311c 100644 (file)
@@ -1505,7 +1505,7 @@ AC_INIT(configure.ac)
     AC_PATH_PROG(HAVE_GETCONF_CMD, getconf, "no")
     if test "$HAVE_GETCONF_CMD" != "no"; then
         CLS=$(getconf LEVEL1_DCACHE_LINESIZE)
-        if test "$CLS" != "" and "$CLS" != "0"; then
+        if [test "$CLS" != "" && test "$CLS" != "0"]; then
             AC_DEFINE_UNQUOTED([CLS],[${CLS}],[L1 cache line size])
         else
             AC_DEFINE_UNQUOTED([CLS],[64],[L1 cache line size])