--- audacity-src-1.3.4-beta/acinclude.m4.system-libs 2007-11-13 23:01:28.000000000 +0100 +++ audacity-src-1.3.4-beta/acinclude.m4 2007-11-15 01:20:45.000000000 +0100 @@ -210,7 +210,22 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBRESAMPLE] dnl ... but libresample isn't generally installed as a system library... - LIBRESAMPLE_SYSTEM_AVAILABLE="no" + AC_CHECK_LIB(resample, resample_open, + libresample_found="yes", + libresample_found="no") + + AC_CHECK_HEADER(libresample.h, + libresample_h_found="yes", + libresample_h_found="no") + + if test "x$libresample_found" = "xyes" && test "x$libresample_h_found" = "xyes" ; then + LIBRESAMPLE_SYSTEM_AVAILABLE="yes" + LIBRESAMPLE_SYSTEM_LIBS=-lresample + AC_MSG_NOTICE([Libresample libraries are available as system libraries]) + else + LIBRESAMPLE_SYSTEM_AVAILABLE="no" + AC_MSG_NOTICE([Libresample libraries are NOT available as system libraries]) + fi dnl see if libresample is available locally