aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-19 12:55:43 +0100
committerMax Kellermann <max@duempel.org>2013-12-19 12:55:43 +0100
commitc47630514903da2d84cbc65c71ef1f562be9c1a1 (patch)
treedb062a96ebd98dfbf3d7367140945b6d6b93a193 /configure.ac
parent45ad7696fe0a7c475d60f3ff1a58778e5329e612 (diff)
downloadmpd-c47630514903da2d84cbc65c71ef1f562be9c1a1.tar.gz
mpd-c47630514903da2d84cbc65c71ef1f562be9c1a1.tar.xz
mpd-c47630514903da2d84cbc65c71ef1f562be9c1a1.zip
configure.ac: add variable $host_is_solaris
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files 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