summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michaelrsweet@gmail.com>2017-06-01 14:07:52 -0400
committerMichael R Sweet <michaelrsweet@gmail.com>2017-06-01 14:07:52 -0400
commitbb719eb39ae5bedc9121be13acca44f6df620644 (patch)
tree5fb7fd3b1fb559a1ea0aeec01bf24e1c4c23d2b9
parent53af7f21603aaf2100a8915e88329ff5d002a086 (diff)
Fix configure script issue on Linux - no host_os_version.
Add help on building CUPS on Ubuntu - commands to get base dev packages.
-rw-r--r--INSTALL.md7
-rw-r--r--config-scripts/cups-opsys.m44
-rwxr-xr-xconfigure7
3 files changed, 18 insertions, 0 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 6acd9710c..c21cd85f5 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -30,6 +30,13 @@ Windows, and either MIT (1.6.3 or higher) or Heimdal Kerberos for Kerberos
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.
diff --git a/config-scripts/cups-opsys.m4 b/config-scripts/cups-opsys.m4
index 42fbe801b..d85454783 100644
--- a/config-scripts/cups-opsys.m4
+++ b/config-scripts/cups-opsys.m4
@@ -17,6 +17,10 @@ AC_CANONICAL_HOST
[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.])
diff --git a/configure b/configure
index 5ebc81e7e..74f67a587 100755
--- a/configure
+++ b/configure
@@ -2637,6 +2637,12 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
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
@@ -9491,6 +9497,7 @@ fi
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=""