From: Pavel Janík Date: Mon, 8 Apr 2002 06:16:33 +0000 (+0000) Subject: Add --with-sound. X-Git-Tag: ttn-vms-21-2-B4~15751 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3d9830e59fb5067e4cd79272192b5c324db0b74e;p=emacs.git Add --with-sound. --- diff --git a/ChangeLog b/ChangeLog index 91eae74d668..751db7b3121 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-04-08 Pavel Jan,Bm(Bk + + * configure.in: Add --with-sound. + 2002-03-18 Kim F. Storm * configure.in: Test for sendto, recvfrom, getsockopt, setsockopt, diff --git a/configure.in b/configure.in index 9ab76e187bf..28c419d7141 100644 --- a/configure.in +++ b/configure.in @@ -63,6 +63,10 @@ AC_DEFINE(KERBEROS5)]) AC_ARG_WITH(hesiod, [ --with-hesiod support Hesiod to get the POP server host], [AC_DEFINE(HESIOD)]) + +AC_ARG_WITH(sound, +[ --without-sound don't compile with sound support]) + dnl This should be the last --with option, because --with-x is dnl added later on when we find the path of X, and it's best to dnl keep them together visually. @@ -1348,11 +1352,13 @@ fi dnl Do this early because it can frob feature test macros for Unix-98 &c. AC_SYS_LARGEFILE -# Sound support for GNU/Linux and the free BSDs. -AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h soundcard.h) -# Emulation library used on NetBSD. -AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=) -AC_SUBST(LIBSOUND) +if test "${with_sound}" != "no"; then + # Sound support for GNU/Linux and the free BSDs. + AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h soundcard.h) + # Emulation library used on NetBSD. + AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=) + AC_SUBST(LIBSOUND) +fi dnl checks for header files AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \