mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-11-03 15:43:50 +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.
		
			
				
	
	
		
			53 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
dnl Add Audacity / raptor license?
 | 
						|
dnl Please increment the serial number below whenever you alter this macro
 | 
						|
dnl for the benefit of automatic macro update systems
 | 
						|
# audacity_checklib_libraptor.m4 serial 1
 | 
						|
 | 
						|
AC_DEFUN([AUDACITY_CHECKLIB_LIBRAPTOR], [
 | 
						|
   AC_ARG_WITH(libraptor,
 | 
						|
               [AS_HELP_STRING([--with-libraptor],
 | 
						|
                               [libraptor is needed for categorisation of LADSPA plugins])],
 | 
						|
               LIBRAPTOR_ARGUMENT=$withval,
 | 
						|
               LIBRAPTOR_ARGUMENT="unspecified")
 | 
						|
 | 
						|
   dnl Check for a system copy of libraptor to use. 
 | 
						|
 | 
						|
   PKG_CHECK_MODULES(LIBRAPTOR, raptor >= 1.4.17,
 | 
						|
                     libraptor_available_system="yes",
 | 
						|
                     libraptor_available_system="no")
 | 
						|
 | 
						|
   LIBRAPTOR_SYSTEM_AVAILABLE="no"
 | 
						|
   if test "x$libraptor_available_system" = "xyes" ; then
 | 
						|
      LIBRAPTOR_SYSTEM_AVAILABLE="yes"
 | 
						|
      LIBRAPTOR_SYSTEM_LIBS="$LIBRAPTOR_LIBS"
 | 
						|
      LIBRAPTOR_SYSTEM_CXXFLAGS="$LIBRAPTOR_CFLAGS"
 | 
						|
      AC_MSG_NOTICE([libraptor available as system library])
 | 
						|
   fi
 | 
						|
   if test "x$LIBRAPTOR_SYSTEM_AVAILABLE" = "xno" ; then
 | 
						|
      AC_MSG_NOTICE([libraptor NOT available as system library])
 | 
						|
   fi
 | 
						|
 | 
						|
   dnl see if libraptor is available locally
 | 
						|
   AC_CHECK_FILE(${srcdir}/lib-src/libraptor/src/raptor.h,
 | 
						|
                 raptor_h_found="yes",
 | 
						|
                 raptor_h_found="no")
 | 
						|
 | 
						|
   if test "x$raptor_h_found" = "xyes" ; then
 | 
						|
      LIBRAPTOR_LOCAL_AVAILABLE="yes"
 | 
						|
      LIBRAPTOR_LOCAL_LIBS="libraptor.a"
 | 
						|
      LIBRAPTOR_LOCAL_CXXFLAGS='-I$(top_srcdir)/lib-src/libraptor/src'
 | 
						|
      if test ! -f lib-src/libraptor/Makefile ; then
 | 
						|
         LIBRAPTOR_LOCAL_CONFIG_SUBDIRS="lib-src/libraptor"
 | 
						|
      fi
 | 
						|
      AC_MSG_NOTICE([libraptor is available in the local tree])
 | 
						|
      if test "x$LIBEXPAT_SYSTEM_AVAILABLE" = "xno" ; then
 | 
						|
         LIBRAPTOR_LOCAL_CONFIGURE_ARGS="\"--with-expat-source=${srcdir}/src/include\""
 | 
						|
      fi
 | 
						|
      LIBRAPTOR_LOCAL_CONFIGURE_ARGS="$LIBRAPTOR_LOCAL_CONFIGURE_ARGS RAPTOR_CFLAGS='-I../../libraptor/src' RAPTOR_LIBS='-L../.. -lraptor'"
 | 
						|
   else
 | 
						|
      LIBRAPTOR_LOCAL_AVAILABLE="no"
 | 
						|
      AC_MSG_NOTICE([libraptor is NOT available in the local tree])
 | 
						|
   fi
 | 
						|
])
 | 
						|
 |