summaryrefslogtreecommitdiff
path: root/sofort
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-14 18:02:16 -0500
committermidipix <writeonce@midipix.org>2018-12-18 20:38:38 -0500
commit86ce91746df24ff0ab6d53b91797f988ac4c85e9 (patch)
tree4157fe89764932bcf8c60c91c7af046282764d31 /sofort
parent163f7614a875802e3eccda713f206cfa7ae3534e (diff)
downloadsbpython3-86ce91746df24ff0ab6d53b91797f988ac4c85e9.tar.bz2
sbpython3-86ce91746df24ff0ab6d53b91797f988ac4c85e9.tar.xz
cfgtest.sh: cfgtest_interface_presence(): always output also a "simple" macro.
Diffstat (limited to 'sofort')
-rw-r--r--sofort/cfgtest.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/sofort/cfgtest.sh b/sofort/cfgtest.sh
index cb1e069..77ce1ea 100644
--- a/sofort/cfgtest.sh
+++ b/sofort/cfgtest.sh
@@ -146,6 +146,12 @@ cfgtest_interface_presence()
> /dev/null 2>/dev/null \
|| return 1
+ mb_internal_str=$(printf '%s%s' '-DHAVE_' "$@" \
+ | sed -e 's/\./_/g' \
+ | tr "[:lower:]" "[:upper:]")
+
+ cfgtest_cflags_append "$mb_internal_str"
+
return 0
}