diff options
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | polyp/Makefile.am | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 00273399..c8511643 100644 --- a/configure.ac +++ b/configure.ac @@ -223,6 +223,12 @@ PKG_CHECK_MODULES(LIBSNDFILE, [ sndfile >= 1.0.10 ]) AC_SUBST(LIBSNDFILE_CFLAGS) AC_SUBST(LIBSNDFILE_LIBS) +#### OSS support (optional) #### + +AC_CHECK_HEADERS([sys/soundcard.h], [HAVE_OSS=1], [HAVE_OSS=0]) +AC_SUBST(HAVE_OSS) +AM_CONDITIONAL([HAVE_OSS], [test "x$HAVE_OSS" = x1]) + #### ALSA support (optional) #### PKG_CHECK_MODULES(ASOUNDLIB, [ alsa >= 1.0.0 ], [HAVE_ALSA=1], [HAVE_ALSA=0]) diff --git a/polyp/Makefile.am b/polyp/Makefile.am index 847be9a8..2cd2a1f3 100644 --- a/polyp/Makefile.am +++ b/polyp/Makefile.am @@ -478,7 +478,7 @@ modlib_LTLIBRARIES += \ libx11prop.la endif -if !OS_IS_WIN32 +if HAVE_OSS modlib_LTLIBRARIES += \ liboss-util.la endif @@ -662,7 +662,7 @@ modlib_LTLIBRARIES += \ module-x11-publish.la endif -if !OS_IS_WIN32 +if HAVE_OSS modlib_LTLIBRARIES += \ module-oss.la \ module-oss-mmap.la |