summaryrefslogtreecommitdiffhomepage
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-14 18:05:52 -0500
commitdd45b68a8ac8e68e78235ee0d1d2a79332b87afe (patch)
treecabcb8dae38f4a912c37b89836bdc1819e1a73df /sofort
parent5a50911c692dd51c582709b7c02e1fee86ee0c42 (diff)
downloadsofort-dd45b68a8ac8e68e78235ee0d1d2a79332b87afe.tar.bz2
sofort-dd45b68a8ac8e68e78235ee0d1d2a79332b87afe.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
}