summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-23 04:25:15 -0500
committermidipix <writeonce@midipix.org>2018-12-24 10:51:55 -0500
commite2ed8bc44935bcd75918519c2d80e4b8650196aa (patch)
treee500eb9c7c12431f0fd1bf1d9761f1eaa14e49dc /configure
parent43ac973f6e7945e07ff5ae45050ab9033fd78d3a (diff)
downloadapimagic-e2ed8bc44935bcd75918519c2d80e4b8650196aa.tar.bz2
apimagic-e2ed8bc44935bcd75918519c2d80e4b8650196aa.tar.xz
build system: config_support(): initial clean-up.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 8425401..0c0ac00 100755
--- a/configure
+++ b/configure
@@ -639,14 +639,14 @@ config_support()
mbt_cc=$(make .display-cc)
mbt_cflags=$(make .display-cflags)
mbt_source='int foo(int x){return ++x;}'
- mbt_result='no'
+ mbt_result=no
rm -f a.out
- echo "$mbt_source" | "$mbt_cc" -shared -o a.out -xc -
- stat a.out >/dev/null 2>&1 && mbt_result=yes
+ printf '%s' "$mbt_source" | $mbt_cc -shared -o a.out -xc -
+ [ -f a.out ] && mbt_result=yes
rm -f a.out
- if [ "$mbt_result" = 'no' ]; then
+ if [ $mbt_result = no ]; then
mb_disable_shared=yes
config_copy
fi