summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-07 06:10:17 +0000
committermidipix <writeonce@midipix.org>2020-01-07 06:10:17 +0000
commit2b384e99a62c880f22bfd9b0364299a8b24ab99a (patch)
tree36621323be6845ff6881e1829f44496534157f5f
parent0a080f74b3bb5de50d1c4460a8d2466120416c82 (diff)
downloadmmglue-2b384e99a62c880f22bfd9b0364299a8b24ab99a.tar.bz2
mmglue-2b384e99a62c880f22bfd9b0364299a8b24ab99a.tar.xz
build system: cfgtest.sh: added cfgtest_code_snippet_asm().
-rw-r--r--sofort/cfgtest/cfgtest.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/sofort/cfgtest/cfgtest.sh b/sofort/cfgtest/cfgtest.sh
index 60241aa..9cf5ec0 100644
--- a/sofort/cfgtest/cfgtest.sh
+++ b/sofort/cfgtest/cfgtest.sh
@@ -430,6 +430,33 @@ cfgtest_code_snippet()
}
+cfgtest_code_snippet_asm()
+{
+ mb_internal_cflags=''
+ mb_internal_test="$@"
+
+ cfgtest_tmp=$(mktemp ./tmp_XXXXXXXXXXXXXXXX)
+ cfgtest_ret=1
+
+ for mb_header in $mb_cfgtest_headers; do
+ mb_internal_cflags="$mb_internal_cflags --include=$mb_header"
+ done
+
+ printf '%s' "$mb_internal_test" \
+ | $mb_cfgtest_cc -c -xc - \
+ -o $cfgtest_tmp \
+ $mb_cfgtest_cflags \
+ $mb_internal_cflags \
+ > /dev/null 2>/dev/null \
+ && cfgtest_ret=0
+
+ rm -f "$cfgtest_tmp"
+ unset cfgtest_tmp
+
+ return $cfgtest_ret
+}
+
+
cfgtest_library_presence()
{
cfgtest_libs=