From 1a66963d5240b13b5ca6a9985c97d394947ac9fc Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sat, 25 Jun 2016 21:44:01 +0200 Subject: [PATCH] Use awk instead of grep | cut --- configure | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure b/configure index a981967..1e100bd 100755 --- a/configure +++ b/configure @@ -314,8 +314,7 @@ native_defaults() mb_native_os=`uname | tr '[:upper:]' '[:lower:]'` mb_native_os_sizeof_pointer=`$mb_native_cc -dM -E - < /dev/null \ - | grep __SIZEOF_POINTER__ \ - | cut -d ' ' -f3` + | awk '$2 == "__SIZEOF_POINTER__" { print $3 }' mb_native_os_bits=`expr '8' '*' '0'"$mb_native_os_sizeof_pointer"` -- 2.9.0