]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix CLS detection on systems that have getconf, but don't support the LEVEL1_DCACHE_L...
authorVictor Julien <victor@inliniac.net>
Wed, 8 May 2013 10:41:10 +0000 (12:41 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 8 May 2013 10:41:10 +0000 (12:41 +0200)
configure.ac

index 843ab977251236e37ff9246af558fccfc68aa7d9..977f12db0124bf8d77510da02ff5c1b9d78415dd 100644 (file)
@@ -1486,7 +1486,9 @@ AC_INIT(configure.ac)
     AC_PATH_PROG(HAVE_GETCONF_CMD, getconf, "no")
     if test "$HAVE_GETCONF_CMD" != "no"; then
         CLS=$(getconf LEVEL1_DCACHE_LINESIZE)
-        AC_DEFINE_UNQUOTED([CLS],[${CLS}],[L1 cache line size])
+        if test "$CLS" != ""; then
+            AC_DEFINE_UNQUOTED([CLS],[${CLS}],[L1 cache line size])
+        fi
     fi
 
 # get revision