From 5abe6bb6aaf75b918b2ca8787d6baf37aa5a0916 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sat, 25 Jun 2016 21:59:53 +0200 Subject: [PATCH] build system: configure test optimization: use native shell arithmetic --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index b13a064..97d56f6 100755 --- a/configure +++ b/configure @@ -316,7 +316,7 @@ native_defaults() mb_native_os_sizeof_pointer=`$mb_native_cc -dM -E - < /dev/null \ | awk '$2 == "__SIZEOF_POINTER__" { print $3 }'` - mb_native_os_bits=`expr '8' '*' '0'"$mb_native_os_sizeof_pointer"` + mb_native_os_bits=$((8 * ${mb_native_os_sizeof_pointer:-0})) if [ $mb_native_os_bits = 32 ]; then mb_native_os_underscore='_' -- 2.9.0