]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Update configure.ac to use the default value of 64 for the cache line size
authorAnoop Saldanha <anoopsaldanha@gmail.com>
Tue, 2 Jul 2013 12:29:17 +0000 (17:59 +0530)
committerVictor Julien <victor@inliniac.net>
Tue, 2 Jul 2013 15:49:28 +0000 (17:49 +0200)
for systems which return a value of 0.

configure.ac

index 775c16f834ee799dc1695bf4025021907de5f7d1..c360582512c42a8c68dcfe598d6091c439fe09ef 100644 (file)
@@ -1496,7 +1496,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" != ""; then
+        if test "$CLS" != "" and "$CLS" != "0"; then
             AC_DEFINE_UNQUOTED([CLS],[${CLS}],[L1 cache line size])
         else
             AC_DEFINE_UNQUOTED([CLS],[64],[L1 cache line size])