From b8b773b6257c85e6321db763de3af0f90efa8621 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 1 May 2020 09:34:26 +0000
Subject: [PATCH] Allow disalbing ALSA using WITHOUT_ALSA_SOUND=1

---
 src/xpdev/GNUmakefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/xpdev/GNUmakefile b/src/xpdev/GNUmakefile
index e56a44f81a..84c3d0f15b 100644
--- a/src/xpdev/GNUmakefile
+++ b/src/xpdev/GNUmakefile
@@ -9,8 +9,10 @@ ifneq ($(os),win32)
 endif
 
 CFLAGS	+=	-DSOUNDCARD_H_IN=$(shell if [ -f /usr/include/sys/soundcard.h ] ; then echo 1 ; elif [ -f /usr/include/soundcard.h ] ; then echo 2 ; elif [ -f /usr/include/linux/soundcard.h ] ; then echo 3 ; else echo 0 ; fi) -I. $(XPDEV_CFLAGS)
-ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
-	CFLAGS	+=	-DUSE_ALSA_SOUND
+ifndef WITHOUT_ALSA_SOUND
+	ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
+		CFLAGS	+=	-DUSE_ALSA_SOUND
+	endif
 endif
 MT_CFLAGS	+=	$(XPDEV-MT_CFLAGS)
 
-- 
GitLab