From c47630514903da2d84cbc65c71ef1f562be9c1a1 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Thu, 19 Dec 2013 12:55:43 +0100
Subject: [PATCH] configure.ac: add variable $host_is_solaris

---
 configure.ac | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/configure.ac b/configure.ac
index eafb165c5..b4bfd0659 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,6 +66,7 @@ dnl ---------------------------------------------------------------------------
 AC_CANONICAL_HOST
 
 host_is_darwin=no
+host_is_solaris=no
 host_is_windows=no
 
 case "$host_os" in
@@ -83,6 +84,10 @@ mingw32* | windows*)
 darwin*)
 	host_is_darwin=yes
 	;;
+
+solaris*)
+	host_is_solaris=yes
+	;;
 esac
 AM_CONDITIONAL([HAVE_WINDOWS], [test x$host_is_windows = xyes])
 
@@ -456,7 +461,7 @@ AC_ARG_ENABLE(sndfile,
 AC_ARG_ENABLE(solaris_output,
 	AS_HELP_STRING([--enable-solaris-output],
 		[enables the Solaris /dev/audio output]),,
-	[enable_solaris_output=auto])
+	[enable_solaris_output=$host_is_solaris])
 
 AC_ARG_ENABLE(sqlite,
 	AS_HELP_STRING([--enable-sqlite],
@@ -1465,18 +1470,6 @@ AM_CONDITIONAL(HAVE_SHOUT, test x$enable_shout = xyes)
 
 dnl --------------------------------- Solaris ---------------------------------
 
-if test x$enable_solaris_output = xauto; then
-	case "$host_os" in
-	solaris*)
-		enable_solaris_output=yes
-		;;
-
-	*)
-		enable_solaris_output=no
-		;;
-	esac
-fi
-
 if test x$enable_solaris_output = xyes; then
 	AC_DEFINE(ENABLE_SOLARIS_OUTPUT, 1, [Define to enable Solaris /dev/audio support])
 fi