summaryrefslogtreecommitdiffhomepage
path: root/sysinfo/host
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-02-26 18:20:41 -0500
committermidipix <writeonce@midipix.org>2016-11-11 00:22:35 -0500
commit3a8a92ecbd6df5d9c56e37b21c0c5d169e032a18 (patch)
tree62862960865636a073536a5b6149409b8c88108d /sysinfo/host
parentfe53cf4c2a9cf22cf8659c6f2c2555ee830481ac (diff)
downloadmdso-3a8a92ecbd6df5d9c56e37b21c0c5d169e032a18.tar.bz2
mdso-3a8a92ecbd6df5d9c56e37b21c0c5d169e032a18.tar.xz
build system: configure, host.sh: use modern portable shell idioms.
Diffstat (limited to 'sysinfo/host')
-rwxr-xr-xsysinfo/host/host.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysinfo/host/host.sh b/sysinfo/host/host.sh
index 5d963c9..e4079ee 100755
--- a/sysinfo/host/host.sh
+++ b/sysinfo/host/host.sh
@@ -10,7 +10,7 @@ host_test()
mb_hdrdir=$(pwd)/build
mkdir -p $mb_hdrdir || exit 2
- if [ x"$mb_compiler" = x ]; then
+ if [ -z "$mb_compiler" ]; then
echo "config error: compiler not set."
exit 2
fi
@@ -42,7 +42,7 @@ host_endian_h()
-E - > /dev/null 2>/dev/null \
&& mb_hosthdr='machine/'$mb_header
- if [ x"$mb_hosthdr" = x ]; then
+ if [ -z "$mb_hosthdr" ]; then
error_msg "config error: could not find an alternate <$mb_header>."
exit 2
fi