Skip to content

Commit 2bc20b7

Browse files
committed
host_os_name value in config-scripts has changed to 'solaris' some time ago
1 parent 4310a07 commit 2bc20b7

6 files changed

Lines changed: 11 additions & 7 deletions

File tree

config-scripts/cups-compiler.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ AS_IF([test -n "$GCC"], [
202202
])
203203
], [
204204
# Add vendor-specific compiler options...
205-
AS_CASE([$host_os_name], [sunos*], [
205+
AS_CASE([$host_os_name], [sunos* | solaris*], [
206206
# Solaris
207207
AS_IF([test -z "$OPTIM"], [
208208
OPTIM="-xO2"

config-scripts/cups-defaults.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ AS_IF([test x$default_printcap != xno], [
335335
AS_IF([test "x$default_printcap" = "xdefault"], [
336336
AS_CASE([$host_os_name], [darwin*], [
337337
CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
338-
], [sunos*], [
338+
], [sunos* | solaris*], [
339339
CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
340340
], [*], [
341341
CUPS_DEFAULT_PRINTCAP="/etc/printcap"

config-scripts/cups-directories.m4

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ AC_SUBST([CUPS_DOCROOT])
184184

185185
# Locale data
186186
AS_IF([test "$localedir" = "\${datarootdir}/locale"], [
187-
AS_CASE(["$host_os_name"], [linux* | gnu* | *bsd* | darwin*], [
187+
AS_CASE(["$host_os_name"], [linux* | gnu* | *bsd* | darwin* | solaris*], [
188188
CUPS_LOCALEDIR="$datarootdir/locale"
189189
], [*], [
190190
# This is the standard System V location...
@@ -266,6 +266,10 @@ AC_ARG_WITH([rundir], AS_HELP_STRING([--with-rundir], [set transient run-time st
266266
AS_CASE(["$host_os_name"], [darwin*], [
267267
# Darwin (macOS)
268268
CUPS_STATEDIR="$CUPS_SERVERROOT"
269+
], [sun* | solaris*], [
270+
AS_IF([test -d /system/volatile], [
271+
CUPS_STATEDIR="/system/volatile/cups"
272+
])
269273
], [*], [
270274
# All others
271275
CUPS_STATEDIR="$localstatedir/run/cups"

config-scripts/cups-gssapi.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ AS_IF([test x$enable_gssapi = xyes], [
3030
], [
3131
AC_MSG_RESULT([no])
3232
])
33-
], [sunos*], [
33+
], [sunos* | solaris*], [
3434
# Solaris has a non-standard krb5-config, don't use it!
3535
SAVELIBS="$LIBS"
3636
AC_CHECK_LIB([gss], [gss_display_status], [

config-scripts/cups-sharedlibs.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ AS_IF([test x$enable_shared != xno], [
2828
DSO="\$(CC)"
2929
DSOXX="\$(CXX)"
3030
DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G"
31-
], [linux* | gnu* | *bsd*], [
31+
], [linux* | gnu* | *bsd* | solaris*], [
3232
LIBCUPS="lib$cupsbase.so.2"
3333
AS_IF([test "x$cupsimagebase" != x], [
3434
LIBCUPSIMAGE="lib$cupsimagebase.so.2"
@@ -102,7 +102,7 @@ AS_IF([test "$DSO" != ":"], [
102102
# Tell the run-time linkers where to find a DSO. Some platforms
103103
# need this option, even when the library is installed in a
104104
# standard location...
105-
AS_CASE([$host_os_name], [sunos*], [
105+
AS_CASE([$host_os_name], [sunos* | solaris*], [
106106
# Solaris...
107107
AS_IF([test $exec_prefix != /usr], [
108108
DSOFLAGS="-R$libdir $DSOFLAGS"

config-scripts/cups-threads.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ AS_IF([test x$ac_cv_header_pthread_h = xyes], [
3838
3939
# Solaris requires -D_POSIX_PTHREAD_SEMANTICS to be POSIX-
4040
# compliant... :(
41-
AS_IF([test $host_os_name = sunos], [
41+
AS_IF([test $host_os_name = solaris], [
4242
PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
4343
])
4444
break

0 commit comments

Comments
 (0)