mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-11-04 08:04:06 +01:00 
			
		
		
		
	enable support for using the system portaudio library. The latter also corrects a long standing bug that prevented using config.status to regenerate src/Makefile. As a result of the above, I've taken Benjamin's *_LOCAL_CONFIGURE_ARGS idea and propagated its usage to the other place where ac_configure_args was being set directly. Removed old stuff from lib-src/Makefile.in and made the library locations for portaudio and portmixer like the rest (a symlink in lib-src). Reworked portmixer's configure.ac to properly detect host apis.
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
dnl Please increment the serial number below whenever you alter this macro
 | 
						|
dnl for the benefit of automatic macro update systems
 | 
						|
# audacity_checklib_libsbsms.m4 serial 1
 | 
						|
 | 
						|
 | 
						|
AC_DEFUN([AUDACITY_CHECKLIB_LIBSBSMS], [
 | 
						|
   AC_ARG_WITH(sbsms,
 | 
						|
               [AS_HELP_STRING([--with-sbsms],
 | 
						|
                      [use libsbsms for pitch and tempo changing])],
 | 
						|
               LIBSBSMS_ARGUMENT=$withval,
 | 
						|
               LIBSBSMS_ARGUMENT="unspecified")
 | 
						|
 | 
						|
   if false ; then
 | 
						|
      AC_DEFINE(USE_SBSMS, 1,
 | 
						|
                [Define if SBSMS support should be enabled])
 | 
						|
   fi
 | 
						|
 | 
						|
   dnl see if sbsms is installed on the system
 | 
						|
 | 
						|
   PKG_CHECK_MODULES(SBSMS, sbsms >= 1.6.0,
 | 
						|
                     sbsms_available_system="yes",
 | 
						|
                     sbsms_available_system="no")
 | 
						|
 | 
						|
 | 
						|
   if test "x$sbsms_available_system" = "xyes" ; then
 | 
						|
      LIBSBSMS_SYSTEM_AVAILABLE="yes"
 | 
						|
      LIBSBSMS_SYSTEM_LIBS=$SBSMS_LIBS
 | 
						|
      LIBSBSMS_SYSTEM_CXXFLAGS=$SBSMS_CFLAGS
 | 
						|
      LIBSBSMS_SYSTEM_CPPSYMBOLS="USE_SBSMS"
 | 
						|
      AC_MSG_NOTICE([Libsbsms libraries are available as system libraries])
 | 
						|
   else
 | 
						|
      LIBSBSMS_SYSTEM_AVAILABLE="no"
 | 
						|
      AC_MSG_NOTICE([Libsbsms libraries are NOT available as system libraries])
 | 
						|
   fi
 | 
						|
 | 
						|
   dnl see if libsbsms is available locally
 | 
						|
 | 
						|
   AC_CHECK_FILE(${srcdir}/lib-src/sbsms/include/sbsms.h,
 | 
						|
                 sbsms_h_found="yes",
 | 
						|
                 sbsms_h_found="no")
 | 
						|
 | 
						|
   if test "x$sbsms_h_found" = "xyes" ; then
 | 
						|
      LIBSBSMS_LOCAL_AVAILABLE="yes"
 | 
						|
      LIBSBSMS_LOCAL_LIBS="libsbsms.a"
 | 
						|
      LIBSBSMS_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/sbsms/include'
 | 
						|
      LIBSBSMS_LOCAL_CPPSYMBOLS="USE_SBSMS"
 | 
						|
 | 
						|
	  dnl set up configuring sbsms
 | 
						|
      LIBSBSMS_LOCAL_CONFIG_SUBDIRS="lib-src/sbsms"
 | 
						|
	  dnl do not build programs we don't need
 | 
						|
	   LIBSBSMS_LOCAL_CONFIGURE_ARGS="--disable-programs"
 | 
						|
 | 
						|
      AC_MSG_NOTICE([libsbsms libraries are available in the local tree])
 | 
						|
   else
 | 
						|
      LIBSBSMS_LOCAL_AVAILABLE="no"
 | 
						|
      AC_MSG_NOTICE([libsbsms libraries are NOT available in the local tree])
 | 
						|
   fi
 | 
						|
 | 
						|
])
 | 
						|
 |