diff options
author | midipix <writeonce@midipix.org> | 2016-06-25 15:48:22 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-06-25 17:34:23 -0400 |
commit | 0947de4fa8e5b33a4906524b29215d0d52624fec (patch) | |
tree | d4a7a14e21eabdaab3c4bb2e79a1356a64e5273c | |
parent | 462f60913d98bebc34af7a723f116aa768fe2c41 (diff) | |
download | pemagine-0947de4fa8e5b33a4906524b29215d0d52624fec.tar.bz2 pemagine-0947de4fa8e5b33a4906524b29215d0d52624fec.tar.xz |
build system: configure test optimization: use `awk` instead of `grep | cut`.
-rwxr-xr-x | configure | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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"` |