Add help on building CUPS on Ubuntu - commands to get base dev packages.
support. CUPS will compile and run without these, however you'll miss out on
many of the features provided by CUPS.
+On a stock Ubuntu install, the following command will install the required
+prerequisites:
+
+ sudo apt-get install autoconf build-essential libavahi-client-dev \
+ libgnutls28-dev libkrb5-dev libnss-mdns libpam-dev \
+ libsystemd-dev libusb-1.0-0-dev zlib1g-dev
+
Also, please note that CUPS does not include print filters to support PDF or
raster printing. You *must* download GPL Ghostscript and/or the Open Printing
CUPS filters package separately to print on operating systems other than macOS.
[host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'`]
[host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'`]
+# Linux often does not yield an OS version we can use...
+if test "x$host_os_version" = x; then
+ host_os_version="0"
+fi
if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
AC_MSG_ERROR([Sorry, this version of CUPS requires macOS 10.8 or higher.])
host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'`
host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'`
+if test "x$host_os_version" = x; then
+ host_os_version="0"
+fi
+echo "host_os=$host_os"
+echo "host_os_name=$host_os_name"
+echo "host_os_version=$host_os_version"
if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
if test "${with_bundledir+set}" = set; then :
withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
else
+ echo "host_os_version=$host_os_version"
if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
LANGUAGES=""