diff options
author | midipix <writeonce@midipix.org> | 2018-12-23 04:25:15 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-24 10:51:56 -0500 |
commit | 90a5999daa26ec7e0ad5bcbd917174d86cce7026 (patch) | |
tree | 75d0734292862b7b5ead133bd0a4c28797e82cd9 | |
parent | c7132af7ef4372253853b349c2a5a0a280a21d2c (diff) | |
download | bcparser-90a5999daa26ec7e0ad5bcbd917174d86cce7026.tar.bz2 bcparser-90a5999daa26ec7e0ad5bcbd917174d86cce7026.tar.xz |
build system: config_support(): initial clean-up.
-rwxr-xr-x | configure | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |