1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Set the correct PREFIX for the call to PKG_CHECK_MODULES, without which the required libraries are not added to the link command and the final link fails. This was broken in the conversion to automake when variable assignments to achive this were removed

This commit is contained in:
richardash1981 2014-08-09 19:53:02 +00:00
parent fbfea286c6
commit 51dbb4e4fa

View File

@ -7,16 +7,17 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSAMPLERATE], [
AC_ARG_WITH(libsamplerate,
[AS_HELP_STRING([--with-libsamplerate],
[use libsamplerate for sample rate conversion. Do not use in conjunction with VST plug-in support!])],
[use libsamplerate for sample rate conversion])],
LIBSAMPLERATE_ARGUMENT=$withval,
LIBSAMPLERATE_ARGUMENT="unspecified")
dnl see if libsamplerate is installed on the system
PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.1.2,
PKG_CHECK_MODULES(LIBSAMPLERATE_SYSTEM, samplerate >= 0.1.2,
LIBSAMPLERATE_SYSTEM_AVAILABLE="yes",
LIBSAMPLERATE_SYSTEM_AVAILABLE="no")
dnl the unusual choice of prefix above avoids having to re-assign the variables
dnl generates by PKG_CHECK_MODULES, which will be LIBSAMPLERATE_SYSTEML_LIBS and
dnl so on.
if test "$LIBSAMPLERATE_SYSTEM_AVAILABLE" = "yes" ; then
AC_MSG_NOTICE([Libsamplerate libraries are available as system libraries])
else