Skip to content

Commit 8c5f44f

Browse files
committed
build: d/configure: severity prefix, instructions
1 parent 05047ee commit 8c5f44f

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

debian/configure

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ ENABLE_BUILD_DOCUMENTATION=--enable-build-documentation=pdf
4646

4747
while test $# -ne 0; do
4848
case "$1" in
49-
sim|uspace|noauto) echo "$1 is accepted for compatibility, but ignored";;
49+
sim|uspace|noauto) echo "I: Argument $1 is accepted for compatibility, but ignored";;
5050
no-docs) unset ENABLE_BUILD_DOCUMENTATION ;;
51-
*) echo 1>&2 "Unknown option: $1"; exit 99 ;;
51+
*) echo 1>&2 "E: Unknown option: $1"; exit 99 ;;
5252
esac
5353
shift
5454
done
@@ -109,9 +109,9 @@ case $DISTRIB_NAME in
109109
Debian-10|Debian-10.*|Raspbian-10|Raspbian-10.*)
110110
;;
111111
*)
112-
echo "unknown distribution: $DISTRIB_NAME"
113-
echo "detected dependencies may be incomplete or wrong"
114-
echo "please consider fixing it and submitting a pull request"
112+
echo "W: Unknown distribution: '$DISTRIB_NAME'."
113+
echo " Detected dependencies may be incomplete or wrong."
114+
echo " Please consider fixing it and submitting a pull request."
115115
;;
116116
esac
117117

@@ -195,4 +195,18 @@ fi
195195

196196

197197
rm -f ../build-stamp
198-
echo "successfully configured for '$DISTRIB_NAME'.."
198+
echo "I: Successfully configured for '$DISTRIB_NAME'.."
199+
200+
if which dpkg-checkbuilddeps > /dev/null; then
201+
a=$(cd .. && dpkg-checkbuilddeps)
202+
if [ -n "$a" ]; then
203+
echo "W: To successfully build all of LinuxCNC, install the following build dependencies are mising:\n$a"
204+
else
205+
echo "I: No build dependencies missing."
206+
fi
207+
else
208+
echo "W: Tool to check build-dependenices not found"
209+
echo " You may want to install and run it as follows:"
210+
echo " sudo apt install dpkg-dev"
211+
echo " dpkg-checkbuilddeps"
212+
fi

0 commit comments

Comments
 (0)