101
101
AC_DEFINE_UNQUOTED(INSTALL_PREFIX, "$prefix")
105
dnl Required sublibraries
108
106
AC_ARG_ENABLE(static,
109
107
[AC_HELP_STRING([--enable-static],
110
[link wx statically (default=no)])],
108
[link wx statically [default=no]])],
111
109
static_preference="--static=$enableval",
112
110
static_preference="")
115
112
AC_ARG_ENABLE(unicode,
116
113
[AC_HELP_STRING([--enable-unicode],
117
[enable unicode support (default=no)])],
114
[enable unicode support [default=no]])],
118
115
unicode_preference="--unicode=$enableval",
119
116
unicode_preference="")
121
118
AC_ARG_ENABLE(debug,
122
119
[AC_HELP_STRING([--enable-debug],
123
[enable debug support (default=none)])],
120
[enable debug support [default=no]])],
124
121
debug_preference="--debug=$enableval",
125
122
debug_preference="")
127
126
AC_ARG_WITH(lib-preference,
128
127
[AC_HELP_STRING([--with-lib-preference],
129
[use local and/or system libraries, in preferred order [system,local]])],
128
[whether to use local and/or system libraries, in order of preference (default="system local")])],
130
129
lib_preference=$withval,
131
130
lib_preference="system local")
133
132
AC_ARG_WITH(wx-version,
134
133
[AC_HELP_STRING([--with-wx-version],
135
[override default wxWidgets version [2.6,2.8]])],
134
[select wxWidgets version (if both installed) [2.6,2.8]])],
136
135
wx_preference="--version=$withval",
137
136
wx_preference="")
139
138
AC_CONFIG_SUBDIRS([lib-src/FileDialog])
141
LIBRARIES="LIBVORBIS LIBMAD LIBSNDFILE LIBFLAC LIBID3TAG LIBSAMPLERATE LIBRESAMPLE LIBSOUNDTOUCH LIBNYQUIST LIBEXPAT LIBTWOLAME"
140
LIBRARIES="LIBVORBIS LIBMAD LIBSNDFILE LIBFLAC LIBID3TAG LIBSAMPLERATE LIBRESAMPLE LIBSOUNDTOUCH LIBNYQUIST LIBVAMP LIBEXPAT LIBTWOLAME"
143
142
AC_MSG_NOTICE([Determining what libraries are available in this tree and on the system])
144
AUDACITY_CHECKLIB_LIBSNDFILE
145
AUDACITY_CHECKLIB_LIBEXPAT
146
AUDACITY_CHECKLIB_LIBSAMPLERATE
147
AUDACITY_CHECKLIB_LIBRESAMPLE
145
148
AUDACITY_CHECKLIB_LIBVORBIS
146
149
AUDACITY_CHECKLIB_LIBMAD
147
150
AUDACITY_CHECKLIB_LIBFLAC
148
AUDACITY_CHECKLIB_LIBSNDFILE
149
151
AUDACITY_CHECKLIB_LIBID3TAG
150
AUDACITY_CHECKLIB_LIBSAMPLERATE
151
AUDACITY_CHECKLIB_LIBRESAMPLE
152
152
AUDACITY_CHECKLIB_LIBSOUNDTOUCH
153
153
AUDACITY_CHECKLIB_LIBNYQUIST
154
AUDACITY_CHECKLIB_LIBEXPAT
154
AUDACITY_CHECKLIB_LIBVAMP
155
155
AUDACITY_CHECKLIB_LIBTWOLAME
157
157
dnl Decide what libraries to build with, and whether to use system or local libraries
293
293
dnl Optional sublibraries
301
[AC_HELP_STRING([--with-ladspa],
302
[compile with ladspa plug-in support [default=yes]])],
296
dnl build options that don't use libraries - just compile-time on/off
298
AC_ARG_ENABLE(audiounits,
299
[AC_HELP_STRING([--enable-audiounits],
300
[enable audio unit plug-in support (Mac OS X only)
301
[default=auto]])], use_audiounits=$enableval,
302
use_audiounits="auto")
304
AC_ARG_ENABLE(ladspa,
305
[AC_HELP_STRING([--enable-ladspa],
306
[enable LADSPA plug-in support [default=yes]])],
307
use_ladspa=$enableval,
304
308
use_ladspa="yes")
306
AC_ARG_WITH(audiounits,
307
[AC_HELP_STRING([--with-audiounits],
308
[compile with audio unit plug-in support [default=auto]])],
309
use_audiounits=$withval,
310
use_audiounits="auto")
312
AC_ARG_WITH(quicktime,
313
[AC_HELP_STRING([--with-quicktime],
314
[compile with QuickTime import support (Mac OS X only) [default=auto]])],
315
use_quicktime=$withval,
310
AC_ARG_ENABLE(quicktime,
311
[AC_HELP_STRING([--enable-quicktime],
312
[enable QuickTime import support (Mac OS X only) [default=auto]])],
313
use_quicktime=$enableval,
316
314
use_quicktime="auto")
316
dnl In-tree libraries (ones we write, so only options are off and local)
318
318
AC_ARG_WITH(portmixer,
319
319
[AC_HELP_STRING([--with-portmixer],
320
320
[compile with PortMixer [default=yes]])],
327
327
use_portaudio=$withval,
328
328
use_portaudio="v19")
331
[AC_HELP_STRING([--with-rtaudio],
332
[compile with RTAudio instead of PortAudio [default=no]])],
333
use_rtaudio=$withval,
330
dnl RTaudio doesn't work right now, so commenting this out RA 30/07/07
331
dnl AC_ARG_WITH(rtaudio,
332
dnl [AC_HELP_STRING([--with-rtaudio],
333
dnl [compile with RTAudio instead of PortAudio [default=no]])],
334
dnl use_rtaudio=$withval,
335
dnl use_rtaudio="no")
336
337
dnl --- check for required libraries ---
482
if [[ "$use_rtaudio" = "yes" ]] ; then
483
AC_CONFIG_SUBDIRS([lib-src/rtaudio])
484
AC_DEFINE(USE_RTAUDIO, 1,
485
[Define if RTAudio support should be enabled])
486
CXXFLAGS="-I\$(top_srcdir)/lib-src/rtaudio $CXXFLAGS"
487
CXXFLAGS="\`../lib-src/rtaudio/rtaudio-config --cflags\` $CXXFLAGS"
488
BUILDLIBS="$BUILDLIBS rtaudio/librtaudio.a"
489
EXTRAOBJS="$EXTRAOBJS ../lib-src/librtaudio.a"
490
LIBS = "$LIBS \`../lib-src/rtaudio/rtaudio-config --libs\`"
486
dnl Again, not in use now so disable
487
dnl if [[ "$use_rtaudio" = "yes" ]] ; then
488
dnl AC_CONFIG_SUBDIRS([lib-src/rtaudio])
489
dnl AC_DEFINE(USE_RTAUDIO, 1,
490
dnl [Define if RTAudio support should be enabled])
491
dnl CXXFLAGS="-I\$(top_srcdir)/lib-src/rtaudio $CXXFLAGS"
492
dnl CXXFLAGS="\`../lib-src/rtaudio/rtaudio-config --cflags\` $CXXFLAGS"
493
dnl BUILDLIBS="$BUILDLIBS rtaudio/librtaudio.a"
494
dnl EXTRAOBJS="$EXTRAOBJS ../lib-src/librtaudio.a"
495
dnl LIBS = "$LIBS \`../lib-src/rtaudio/rtaudio-config --libs\`"
493
498
if [[ "$use_portmixer" = "yes" ]] ; then
494
499
AC_DEFINE(USE_PORTMIXER, 1,