1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-23 15:50:05 +02:00

Rob Sykes patch to support builds with a system lib

This commit is contained in:
windinthew 2013-01-11 06:18:23 +00:00
parent a9fac9b634
commit 9f618282fe

@ -18,20 +18,15 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSOXR], [
dnl see if libsoxr is installed on the system dnl see if libsoxr is installed on the system
AC_CHECK_LIB(soxr, soxr_create, PKG_CHECK_MODULES(SOXR, soxr >= 0.0.5,
libsoxr_found="yes", soxr_available_system="yes",
libsoxr_found="no") soxr_available_system="no")
soxr_h_found="no" if test "x$soxr_available_system" = "xyes" ; then
AC_CHECK_HEADER(soxr.h,
soxr_h_found="yes",
soxr_h_found="no")
if test "x$libsoxr_found" = "xyes" && test "x$soxr_h_found" = "xyes" ; then
LIBSOXR_SYSTEM_AVAILABLE="yes" LIBSOXR_SYSTEM_AVAILABLE="yes"
LIBSOXR_SYSTEM_LIBS="-lsoxr" LIBSOXR_SYSTEM_LIBS=$SOXR_LIBS
LIBSOXR_SYSTEM_CPPSYMBOLS="USE_SYSTEM_SOXR" LIBSOXR_SYSTEM_CXXFLAGS=$SOXR_CFLAGS
LIBSOXR_SYSTEM_CPPSYMBOLS="USE_LIBSOXR"
AC_MSG_NOTICE([Soxr libraries are available as system libraries]) AC_MSG_NOTICE([Soxr libraries are available as system libraries])
else else
LIBSOXR_SYSTEM_AVAILABLE="no" LIBSOXR_SYSTEM_AVAILABLE="no"
@ -40,7 +35,7 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBSOXR], [
dnl see if libsoxr is available locally dnl see if libsoxr is available locally
AC_CHECK_FILE(${srcdir}/lib-src/libsoxr/src/soxr-lsr.h, AC_CHECK_FILE(${srcdir}/lib-src/libsoxr/src/soxr.h,
soxr_h_found="yes", soxr_h_found="yes",
soxr_h_found="no") soxr_h_found="no")