Commits

Anonymous committed 134db58

do not prepend zero in cache size detection since that will trigger octal interpretation of the result

Comments (0)

Files changed (1)

m4/ax_cache_size.m4

       fi
       if test -n "$sysctl_exe"; then
 	if test -z "$ax_l2_size" ; then
-	  ax_l2_size=$((0`$sysctl_exe -n hw.l2cachesize 2>/dev/null` / 1024))
+	  ax_l2_size=$((`$sysctl_exe -n hw.l2cachesize 2>/dev/null` / 1024))
 	fi
 	if test -z "$ax_l1_size" ; then
-	  ax_l1_size=$((0`$sysctl_exe -n hw.l1dcachesize 2>/dev/null` / 1024))
+	  ax_l1_size=$((`$sysctl_exe -n hw.l1dcachesize 2>/dev/null` / 1024))
 	fi
 	if test -z "$ax_l1_size" ; then
-	  ax_l1_size=$((0`$sysctl_exe -n hw.l1cachesize 2>/dev/null` / 1024))
+	  ax_l1_size=$((`$sysctl_exe -n hw.l1cachesize 2>/dev/null` / 1024))
         fi
       fi
     fi