changeset 1697:e4d9d2657d9a trunk

[svn] This adds -lossaudio to the OSS and esd plugin on platforms having that libs. With this, Audacious finally build & runs perfectly on OpenBSD.
author js
date Fri, 15 Sep 2006 08:01:40 -0700
parents cd8711f34c88
children e951086a47a8
files ChangeLog Plugins/Output/OSS/Makefile.in Plugins/Output/esd/Makefile.in configure.ac mk/rules.mk.in
diffstat 5 files changed, 30 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Sep 15 07:46:49 2006 -0700
+++ b/ChangeLog	Fri Sep 15 08:01:40 2006 -0700
@@ -1,3 +1,12 @@
+2006-09-15 14:46:49 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2329]
+  - DND fixes
+  
+
+  Changes:        Modified:
+  +2 -2           trunk/audacious/mainwin.c  
+
+
 2006-09-15 13:36:26 +0000  Jonathan Schleifer <js@h3c.de>
   revision [2327]
   - Removed .cpp.o target since we don't have any .cpp files anymore.
--- a/Plugins/Output/OSS/Makefile.in	Fri Sep 15 07:46:49 2006 -0700
+++ b/Plugins/Output/OSS/Makefile.in	Fri Sep 15 08:01:40 2006 -0700
@@ -7,7 +7,7 @@
 
 LIBDIR = $(plugindir)/$(OUTPUT_PLUGIN_DIR)
 
-LIBADD = $(GTK_LIBS)
+LIBADD = $(OSS_LIBS) $(GTK_LIBS)
 SOURCES = OSS.c mixer.c about.c configure.c audio.c init.c convert.c
 
 OBJECTS = ${SOURCES:.c=.o}
--- a/Plugins/Output/esd/Makefile.in	Fri Sep 15 07:46:49 2006 -0700
+++ b/Plugins/Output/esd/Makefile.in	Fri Sep 15 08:01:40 2006 -0700
@@ -7,7 +7,7 @@
 
 LIBDIR = $(plugindir)/$(OUTPUT_PLUGIN_DIR)
 
-LIBADD = $(GTK_LIBS) $(ESD_LIBS)
+LIBADD = $(GTK_LIBS) $(ESD_LIBS) $(OSS_LIBS)
 SOURCES = esd.c mixer.c about.c configure.c audio.c init.c
 
 OBJECTS = ${SOURCES:.c=.o}
--- a/configure.ac	Fri Sep 15 07:46:49 2006 -0700
+++ b/configure.ac	Fri Sep 15 08:01:40 2006 -0700
@@ -637,6 +637,22 @@
     if test "${ac_cv_header_sys_soundcard_h}" = "yes" || test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
         have_oss=yes
     fi
+
+    AC_MSG_CHECKING(wether we need -lossaudio)
+    AC_TRY_LINK([
+	#include <sys/ioctl.h>
+	#ifdef HAVE_SYS_SOUNDCARD_H
+	#include <sys/soundcard.h>
+	#else
+	#include <soundcard.h>
+	#endif
+    ], [
+	int fd, value;
+	ioctl(fd, SOUND_MIXER_READ_VOLUME, &value);
+    ], AC_MSG_RESULT(no), [
+	OSS_LIBS="-lossaudio"
+	AC_MSG_RESULT(yes)
+    ])
 fi
 
 if test "$have_oss" = "yes"; then
@@ -649,6 +665,8 @@
 	OUTPUT_PLUGINS="$OUTPUT_PLUGINS OSS"
 fi
 
+AC_SUBST(OSS_LIBS)
+
 dnl *** ALSA output plugin
 
 AC_ARG_ENABLE(alsa,
--- a/mk/rules.mk.in	Fri Sep 15 07:46:49 2006 -0700
+++ b/mk/rules.mk.in	Fri Sep 15 08:01:40 2006 -0700
@@ -221,6 +221,7 @@
 OBJEXT ?= @OBJEXT@
 OGG_VORBIS_CFLAGS ?= @OGG_VORBIS_CFLAGS@
 OGG_VORBIS_LIBS ?= @OGG_VORBIS_LIBS@
+OSS_LIBS ?= @OSS_LIBS@
 OUTPUT_PLUGINS ?= @OUTPUT_PLUGINS@
 OUTPUT_PLUGIN_DIR ?= @OUTPUT_PLUGIN_DIR@
 PACKAGE ?= @PACKAGE@