From 6fac0a602e51982cd1b3cc548126d014162880d7 Mon Sep 17 00:00:00 2001 From: Steffen Moeller Date: Mon, 2 Feb 2026 16:04:33 +0100 Subject: [PATCH] d/configure: Prepare for execution on other OS Committer: Steffen Moeller --- debian/configure | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/debian/configure b/debian/configure index c960e40050c..38af84ec2e3 100755 --- a/debian/configure +++ b/debian/configure @@ -12,6 +12,26 @@ set -e +if [[ -z "$OSTYPE" ]]; then + echo "W: The 'OSTYPE' environment variable is not set." + echo " Failure to confirm Linux as the operating system cannot be determined." +elif [[ "$OSTYPE" == "linux-gnu"* ]]; then + echo "I: Found operating system '$OSTYPE'." +else + echo "W: LinuxCNC is not (yet) prepared for the operating system '$OSTYPE'." + echo " Instead of this Debian+derivative-tailored configuration please invoke the compilation directly." + if [[ "$OSTYPE" == "darwin"* ]]; then + echo + echo " LinuxCNC is yet unlikely to be successfully built on MacOS because of missing dependencies." + if command -v brew &> /dev/null; then + echo " With brew, we are aware of packages" + echo " autoconf automake libusb libmodbus libtircp pkgconf" + echo " but missing is, e.g., a package for libgpiod." + fi + fi + exit 1; +fi + usage () { P=${0##*/} cat 1>&2 <