2022-11-21 Fred Gleason <fredg@paravelsystems.com>

* Modified build system to use pkg-config(1) to detect ALSA and
	JACK support elements in 'configure'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-11-21 15:10:07 -05:00
parent bef88a1336
commit 9dfa9c84eb
5 changed files with 20 additions and 18 deletions

View File

@@ -386,8 +386,6 @@ if test $DOCBOOK_STYLESHEETS ; then
ln -s $DOCBOOK_STYLESHEETS helpers/docbook
fi
#AC_SUBST(DOCBOOK_STYLESHEETS,$DOCBOOK_STYLESHEETS)
#
# RDXport Debug
#
@@ -432,8 +430,8 @@ fi
# Setup Sound API Dependencies
#
AC_CHECK_HEADER(asihpi/hpi.h,[HPI_FOUND=yes],[])
AC_CHECK_HEADER(jack/jack.h,[JACK_FOUND=yes],[])
AC_CHECK_HEADER(alsa/asoundlib.h,[ALSA_FOUND=yes],[])
PKG_CHECK_MODULES(LIBJACK,jack,[JACK_FOUND=yes],[])
PKG_CHECK_MODULES(ASOUNDLIB,alsa,[ALSA_FOUND=yes],[])
if test $HPI_FOUND ; then
if test -z $HPI_DISABLED ; then
USING_HPI=yes
@@ -465,14 +463,15 @@ if test $JACK_FOUND ; then
AC_MSG_ERROR([*** libsamplerate not found, but is needed for JACK support ***])
fi
AC_DEFINE(JACK,yes)
AC_SUBST(LIBJACK,-ljack)
SRC_NEEDED=yes
USING_JACK=yes
else
AC_SUBST(LIBJACK,"")
fi
else
AC_SUBST(JACK_CFLAGS,"")
AC_SUBST(JACK_LIBS,"")
fi
else
AC_SUBST(LIBJACK,"")
AC_SUBST(JACK_CFLAGS,"")
AC_SUBST(JACK_LIBS,"")
fi
if test $ALSA_FOUND ; then