diff options
author | midipix <writeonce@midipix.org> | 2016-06-25 15:48:22 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-06-25 17:35:00 -0400 |
commit | 3a41d7e8670088d1adb469da4a7416077c004799 (patch) | |
tree | f34a0128a637f9f2f4b19e560ce03afe7a68752c | |
parent | 6ceb24701cf3baa7f912a976520b25cfec44637a (diff) | |
download | ntapi-3a41d7e8670088d1adb469da4a7416077c004799.tar.bz2 ntapi-3a41d7e8670088d1adb469da4a7416077c004799.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"` |