@@ -46,9 +46,9 @@ ENABLE_BUILD_DOCUMENTATION=--enable-build-documentation=pdf
4646
4747while 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
5454done
@@ -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 ;;
116116esac
117117
195195
196196
197197rm -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 -B || true)
202+ if [ -n " $a " ]; then
203+ echo " W: To successfully build the binaries of LinuxCNC that you need to control your machine, not the extensive documentation"
204+ echo " TO install the what is missing, run:\n"
205+ echo " sudo apt install $a "
206+ echo " And execute the build by"
207+ echo " fakeroot ./debian/rules binary-arch"
208+ else
209+ echo " I: No dependencies missing for building binaries only."
210+ fi
211+
212+ if [ -n " $ENABLE_BUILD_DOCUMENTATION " ]; then
213+ a=$( cd .. && dpkg-checkbuilddeps || true)
214+ if [ -n " $a " ]; then
215+ echo " W: To successfully build all of LinuxCNC, install the following build dependencies are mising:\n$a "
216+ echo " The missing packages are auto-installed by"
217+ echo " sudo apt build-dep ."
218+ else
219+ echo " I: No build dependencies missing for complete bilds including documentation."
220+ fi
221+ fi
222+ else
223+ echo " W: Tool to check build-dependenices not found"
224+ echo " You may want to install and run it as follows:"
225+ echo " sudo apt install dpkg-dev"
226+ echo " dpkg-checkbuilddeps"
227+ fi
0 commit comments