aboutsummaryrefslogtreecommitdiff
path: root/scripts/portability.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/portability.sh')
-rw-r--r--scripts/portability.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/portability.sh b/scripts/portability.sh
index fddd84ec..abeb31f2 100644
--- a/scripts/portability.sh
+++ b/scripts/portability.sh
@@ -1,5 +1,13 @@
# sourced to find alternate names for things
+source configure
+
+if [ -z "$(command -v "${CROSS_COMPILE}${CC}")" ]
+then
+ echo "No ${CROSS_COMPILE}${CC} found" >&2
+ exit 1
+fi
+
if [ -z "$SED" ]
then
[ ! -z "$(which gsed 2>/dev/null)" ] && SED=gsed || SED=sed