forked from pure-data/pure-data
-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure.ac
593 lines (522 loc) · 18.6 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
#########################################
##### Prelude #####
AC_PREREQ(2.59)
AC_INIT([pd], [0.51.4])
AC_CONFIG_SRCDIR(src/m_pd.c)
AC_CONFIG_AUX_DIR([m4/config])
AC_CONFIG_MACRO_DIR([m4/generated])
AM_INIT_AUTOMAKE([subdir-objects])
AC_CANONICAL_HOST
#########################################
##### Default values #####
# set here and not in AC_ARG_ENABLE so the values set in the OS detection
# below are not overwritten if the configure argument isn't used
portaudio=no
portmidi=no
local_portaudio=yes
local_portmidi=yes
mmio=no
asio=no
jack_framework=no
locales=yes
# wish command info, the actual value is set using the WISH define
# "wish" mirrors the default WISH define in s_inter.c
wish="wish"
# list of detected apis
audio_backends=""
midi_backends=""
# debug/release defaults
DEBUG_CFLAGS="-O0"
RELEASE_CFLAGS="-ffast-math -funroll-loops -fomit-frame-pointer -O3"
#########################################
##### OS Detection #####
# you will need to install XCode on Mac OS X to use this:
PD_CHECK_IPHONE(IPHONEOS=yes, IPHONEOS=no, AC_MSG_ERROR([iOS SDK not available]))
PD_CHECK_ANDROID(ANDROID=yes, ANDROID=no, AC_MSG_ERROR([Android SDK not available]))
AS_CASE([$host],
[*darwin*],[
AS_IF([test "x${IPHONEOS}" = "xno"],[
MACOSX=yes
platform="Mac OSX"
coreaudio=yes
portaudio=yes
portmidi=yes
jack_framework=yes
EXTERNAL_CFLAGS="-fPIC"
EXTERNAL_EXTENSION=d_fat
# a set of search paths are used on macOS in s_inter.c
wish="default search paths"
# required for dlopen & weak linking for older OSX version support
CFLAGS="-mmacosx-version-min=10.6 $CFLAGS"
],[
platform=iOS
locales=no
wish="not used"
])
# homebrew paths
AS_IF([test -e /usr/local],[
AM_CPPFLAGS="-I/usr/local/include $INCLUDES"
LDFLAGS="-L/usr/local/lib $LDFLAGS"
])
# fink paths
AS_IF([test -e /sw],[
AM_CPPFLAGS="-I/sw/include $INCLUDES"
LDFLAGS="-L/sw/lib $LDFLAGS"
])
# macports paths
AS_IF([test -e /opt/local],[
AM_CPPFLAGS="-I/opt/local/include $INCLUDES"
LDFLAGS="-L/opt/local/lib $LDFLAGS"
])
EXTERNAL_LDFLAGS="-bundle -undefined dynamic_lookup"
],[*linux*|*kfreebsd*gnu*],[
# GNU/kFreeBSD are for Debian, were they are treated very similar to linux
AS_IF([test "x${ANDROID}" = "xno"],[
LINUX=yes
platform=Linux
portaudio=yes
EXTERNAL_CFLAGS="-fPIC"
EXTERNAL_LDFLAGS="-Wl,--export-dynamic -fPIC"
EXTERNAL_EXTENSION=pd_linux
],[
platform=Android
])
],[*-*-gnu*],[
HURD=yes
platform=Hurd
EXTERNAL_CFLAGS="-fPIC"
EXTERNAL_LDFLAGS="-Wl,--export-dynamic -fPIC"
EXTERNAL_EXTENSION=pd_linux
],[*mingw*],[
WINDOWS=yes
MINGW=yes
platform=MinGW
mmio=yes
asio=yes
portaudio=yes
portmidi=yes
# this mirrors the default windows WISH define in s_inter.c
wish="wish85.exe"
# externals are dynamically linked to pd.dll in their individual automake files
EXTERNAL_CFLAGS="-mms-bitfields"
EXTERNAL_LDFLAGS="-s -Wl,--enable-auto-import -no-undefined -lpd"
EXTERNAL_EXTENSION=dll
# workaround for rpl_malloc/rpl_realloc bug in autoconf when cross-compiling
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
],[*cygwin*],[
WINDOWS=yes
CYGWIN=yes
platform=Cygwin
mmio=yes
asio=yes
portaudio=yes
portmidi=yes
# this mirrors the default windows WISH define in s_inter.c
wish="wish85.exe"
# externals are dynamically linked to pd.dll in their individual automake files
EXTERNAL_CFLAGS=
EXTERNAL_LDFLAGS="-Wl,--export-dynamic"
EXTERNAL_EXTENSION=dll
],[*openbsd*],[
OPENBSD=yes
platform=OpenBSD
portaudio=yes
EXTERNAL_CFLAGS="-D__OPENBSD__"
EXTERNAL_LDFLAGS="-liberty"
EXTERNAL_EXTENSION=pd_openbsd
],[
platform=Unknown
])
AM_CONDITIONAL(ANDROID, test x$ANDROID = xyes)
AM_CONDITIONAL(IPHONEOS, test x$IPHONEOS = xyes)
AM_CONDITIONAL(LINUX, test x$LINUX = xyes)
AM_CONDITIONAL(HURD, test x$HURD = xyes)
AM_CONDITIONAL(MACOSX, test x$MACOSX = xyes)
AM_CONDITIONAL(WINDOWS, test x$WINDOWS = xyes)
AM_CONDITIONAL(CYGWIN, test x$CYGWIN = xyes)
AM_CONDITIONAL(MINGW, test x$MINGW = xyes)
AM_CONDITIONAL(OPENBSD, test x$OPENBSD = xyes)
#########################################
##### Check for programs, libs, & headers #####
# Configure libtool.
AC_LIBTOOL_DLOPEN
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_LN_S
AC_PROG_MKDIR_P
AC_PROG_GREP
AC_PROG_SED
AC_CHECK_TOOL([WINDRES], [windres], [:])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h \
limits.h \
malloc.h \
netdb.h \
netinet/in.h \
stddef.h \
stdlib.h \
string.h \
sys/ioctl.h \
sys/param.h \
sys/socket.h \
sys/soundcard.h \
sys/time.h \
sys/timeb.h \
unistd.h
])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
# Checks for functions.
AC_FUNC_ALLOCA
AC_FUNC_ERROR_AT_LINE
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([dup2 \
floor \
getcwd \
gethostbyname \
gettimeofday \
memmove \
memset \
pow \
regcomp \
select \
socket \
sqrt \
strchr \
strerror \
strrchr \
strstr \
strtol
])
# Checks for libraries.
AC_CHECK_LIB([dl], [dlopen])
AC_CHECK_LIBM
# AC_CHECK_LIBM computes LIBM but does not add to LIBS, hence we add it in
# src/Makefile.am under pd_LDFLAGS as well
# Apple's CoreAudio
# not used directly, implicitly needed when using PortAudio on OSX
AC_CHECK_HEADER(CoreAudio/CoreAudio.h, [coreaudio=yes], [coreaudio=no])
# Checking for `pthread_create' function in -pthread (MinGW uses unusual names)
## CHECK whether this can be replaced by AX_PTHREAD
AC_CHECK_LIB([pthread], [pthread_create],LIBS="-lpthread $LIBS",
AC_CHECK_LIB([pthreadGC2], [pthread_create], LIBS="-lpthreadGC2 $LIBS",
AC_CHECK_LIB([pthreadGC1], [pthread_create], LIBS="-lpthreadGC1 $LIBS",
AC_CHECK_LIB([pthreadGC], [pthread_create], LIBS="-lpthreadGC $LIBS",
AC_MSG_WARN([pthreads required])))))
# Define variables for use in Makefiles
AC_SUBST(EXTERNTARGET)
AC_SUBST(EXTERNAL_EXTENSION)
AC_SUBST(EXTERNAL_CFLAGS)
AC_SUBST(EXTERNAL_LDFLAGS)
AC_SUBST([ALSA_LIBS])
AC_SUBST([JACK_LIBS])
# pass include paths down to all Makefiles
AC_SUBST([AM_CPPFLAGS], [$AM_CPPFLAGS])
#########################################
##### Configure Options #####
##### Build with debug flags? #####
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug], [use debugging support])],
[debug=$enableval], [debug=no])
AS_IF([test x$debug = xyes],[
CFLAGS="$CFLAGS $DEBUG_CFLAGS"
],[
CFLAGS="$CFLAGS $RELEASE_CFLAGS"
])
##### Universal/multi architecture build on macOS #####
PD_CHECK_UNIVERSAL(ARCH, [universal=yes], [universal=no])
AM_CONDITIONAL(UNIVERSAL, test x$universal = xyes)
AS_IF([test x$universal = xyes],[
CFLAGS="$ARCH_CFLAGS $CFLAGS"
LDFLAGS="$ARCH_LDFLAGS $LDFLAGS"
])
##### Gettext #####
# Gettext is needed to build language localizations.
AC_ARG_ENABLE([locales],
[AS_HELP_STRING([--disable-locales],
[do not compile localizations (requires gettext)])],
[locales=$enableval])
AS_IF([test x$locales = xyes],[
AC_CHECK_PROG(HAVE_MSGFMT, [msgfmt], yes, no)
AS_IF([test x$HAVE_MSGFMT = xno],[
AC_MSG_WARN([Install GNU gettext with msgfmt if you want localizations to be compiled!])
locales=no
])
])
AM_CONDITIONAL(MSGFMT, test x$HAVE_MSGFMT = xyes)
##### OSS #####
# Cygwin has sys/soundcard.h but Pd isn't ready for Cygwin since it only
# includes OSS for UNIX
AC_ARG_ENABLE([oss],
[AS_HELP_STRING([--disable-oss], [do not use OSS driver])],
[oss=$enableval], [oss=yes])
AS_IF([test x$oss = xyes],[
AC_CHECK_HEADER([sys/soundcard.h], [oss=yes], [oss=no])
])
##### ALSA #####
# shouldn't we use AM_PATH_ALSA from /usr/share/aclocal/alsa.m4
# alternatively we could use pkg-config
AC_ARG_ENABLE([alsa],
[AS_HELP_STRING([--disable-alsa], [do not use ALSA audio driver])],
[alsa=$enableval], [alsa=yes])
AS_IF([test x$alsa = xyes],[
AC_CHECK_LIB([asound], [snd_pcm_info], [ALSA_LIBS="-lasound"], [alsa=no])
])
##### JACK FRAMEWORK #####
# on macOS, use the JackOSX.com Jackmp.framework not the jack lib by default
# this is set in src/Makefile.am based on the JACK & JACK_FRAMEWORK vars
AC_ARG_ENABLE([jack-framework],
[AS_HELP_STRING([--disable-jack-framework],
[do not weak link to Jackmp.framework on macOS])],
[jack_framework=$enableval])
test x$MACOSX = xyes || jack_framework=no
AS_IF([test x$jack_framework = xyes],[
AC_MSG_NOTICE([Weak linking to Jackmp.framework])
])
##### JACK #####
AC_ARG_ENABLE([jack],
[AS_HELP_STRING([--enable-jack], [use JACK audio server])],
[jack=$enableval], [jack=no])
AS_IF([test x$jack_framework != xyes -a x$jack = xyes],[
AC_CHECK_LIB([rt], [shm_open], [LIBS="$LIBS -lrt"])
AC_CHECK_LIB([jack], [jack_set_xrun_callback], [JACK_LIBS="-ljack" ; jack=xrun])
AC_CHECK_LIB([jack], [jack_set_error_function], [JACK_LIBS="-ljack" ; jack=yes],
[AC_MSG_WARN([JACK development files not found... skipping (See INSTALL.txt)])
jack=no])
])
##### MMIO #####
AC_ARG_ENABLE([mmio],
[AS_HELP_STRING([--disable-mmio], [do not use MMIO driver])],
[mmio=$enableval])
test x$WINDOWS = xyes || mmio=no
##### ASIO #####
AC_ARG_ENABLE([asio],
[AS_HELP_STRING([--enable-asio], [use ASIO audio driver])],
[asio=$enableval])
test x$WINDOWS = xyes || asio=no
AS_IF([test x$asio = xyes],
test -f "${srcdir}"/asio/ASIOSDK/common/asio.h || asio=no
AS_IF([test x$asio = xno],
AC_MSG_WARN([ASIO SDK not found... skipping (See asio/README.txt)]))
)
##### PortAudio #####
AC_ARG_ENABLE([portaudio],
[AS_HELP_STRING([--disable-portaudio], [do not use portaudio])],
[portaudio=$enableval])
AC_ARG_WITH([local-portaudio],
[AS_HELP_STRING([--without-local-portaudio],
[do not use the portaudio included with Pd])],
[local_portaudio=$withval])
AS_IF([test x$portaudio = xyes],[
AS_IF([test x$local_portaudio = xno],[
# fall back to local portaudio if not foud
AC_CHECK_LIB([portaudio], [Pa_Initialize],
[AC_MSG_NOTICE([Using system PortAudio])], [local_portaudio=yes])
])
AS_IF([test x$local_portaudio = xyes],[
AS_IF([test -d "$srcdir/portaudio"],[
AC_MSG_NOTICE([Using included PortAudio])
],[
AC_MSG_WARN([PortAudio not found in Pd source directory])
portaudio=no
])
])
],[local_portaudio=no])
##### PortMidi #####
AC_ARG_ENABLE([portmidi],
[AS_HELP_STRING([--enable-portmidi], [use portmidi])],
[portmidi=$enableval])
AC_ARG_WITH([local-portmidi],
[AS_HELP_STRING([--without-local-portmidi],
[do not use the portmidi included with Pd])],
[local_portmidi=$withval])
# don't allow portmidi if already using oss
AS_IF([test x$oss = xyes -a x$portmidi != xno],
[AC_MSG_WARN([Cannot enable both OSS-midi and PortMidi... preferring OSS])
portmidi=no])
AS_IF([test x$portmidi = xyes],[
AS_IF([test x$local_portmidi = xno],[
# fall back to local portmidi if not foud
AC_CHECK_LIB([portmidi], [Pm_Initialize],
[AC_MSG_NOTICE([Using system PortMidi])], [local_portmidi=yes])
])
AS_IF([test x$local_portmidi = xyes],[
AS_IF([test -d "$srcdir/portmidi"],[
AC_MSG_NOTICE([Using included PortMidi])
],[
AC_MSG_WARN([PortMidi not found in Pd source directory])
portmidi=no
])
])
],[local_portmidi=no])
##### fftw v3 #####
AC_ARG_ENABLE([fftw],
[AS_HELP_STRING([--enable-fftw], [use FFTW package])],
[fftw=$enableval], [fftw=no])
AS_IF([test x$fftw = xyes],[
AC_CHECK_LIB([fftw3f], [fftwf_execute],
[LIBS="$LIBS -lfftw3f"],
[AC_MSG_WARN([FFTW development files not found... using built-in FFT])
fftw=no])
])
AM_CONDITIONAL(FFTW, test x$fftw = xyes)
##### Wish #####
AC_ARG_WITH([wish],
[AS_HELP_STRING([--with-wish=WISH],
[which Tk Wish application to use for the Pd GUI])],
[WISH=$withval])
AS_IF([test "x${WISH}" = "xyes" -o "x${WISH}" = "xno"],
[AC_MSG_NOTICE([--with-wish requires an application, ignoring '${WISH}'])
WISH=""])
AC_SUBST([WISH])
##### Configure Build From Options #####
## configure the build based on what we have found above
##### OSS #####
# Cygwin has a function OSS /dev/dsp, but not MIDI,
# and Pd is only set up to handle a single MIDI API
AS_IF([test x$WINDOW = xyes -a x$oss != xno],
[AC_MSG_WARN([OSS not working on W32... disabling]) ; oss=no])
AM_CONDITIONAL(OSS, test x$oss = xyes)
AS_IF([test x$oss = xyes], [audio_backends="OSS ${audio_backends}"])
AS_IF([test x$oss = xyes], [midi_backends="OSS ${midi_backends}"])
##### ALSA #####
AM_CONDITIONAL(ALSA, test x$alsa = xyes)
AS_IF([test x$alsa = xyes], [audio_backends="ALSA ${audio_backends}"])
AS_IF([test x$alsa = xyes], [midi_backends="ALSA ${midi_backends}"])
##### JACK #####
AM_CONDITIONAL(JACK, test x$jack = xyes)
AM_CONDITIONAL(JACK_FRAMEWORK, test x$jack_framework = xyes)
AS_IF([test x$jack = xyes], [audio_backends="JACK ${audio_backends}"])
##### MMIO #####
AM_CONDITIONAL(MMIO, test x$mmio = xyes)
AS_IF([test x$mmio = xyes], [audio_backends="MMIO ${audio_backends}"])
dnl AS_IF([test x$mmio = xyes], [midi_backends="MMIO ${midi_backends}"])
##### ASIO #####
AM_CONDITIONAL(ASIO, test x$asio = xyes)
AS_IF([test x$asio = xyes], [audio_backends="ASIO ${audio_backends}"])
##### CoreAudio #####
# portaudio doesn't work with iOS, so don't bother with CoreAudio
AS_IF([test x$IPHONEOS = xyes -a x$coreaudio != xno],
[AC_MSG_WARN([PortAudio not working on iOS... disabling CoreAudio])
coreaudio=no])
AM_CONDITIONAL(COREAUDIO, test x$coreaudio = xyes)
##### PortAudio #####
AM_CONDITIONAL(PORTAUDIO, test x$portaudio = xyes)
AM_CONDITIONAL(LOCAL_PORTAUDIO, test x$local_portaudio = xyes)
AS_IF([test x$portaudio = xyes], [audio_backends="PortAudio ${audio_backends}"])
##### PortMidi #####
AM_CONDITIONAL(PORTMIDI, test x$portmidi = xyes)
AM_CONDITIONAL(LOCAL_PORTMIDI, test x$local_portmidi = xyes)
AS_IF([test x$portmidi = xyes], [midi_backends="PortMidi ${midi_backends}"])
##### DUMMY #####
# warn if we end up trying to build without an audio or midi api
AM_CONDITIONAL(AUDIO_DUMMY, test "x$audio_backends" = "x")
AS_IF([test "x$audio_backends" = "x"],[
AC_MSG_WARN([No audio API specified or detected])
audio_backends="NONE!"
])
# we need the dummy MIDI backend, if there is no other backend providing the
# standard MIDI-functions (OSS and PortMidi provide them; ALSA not)
needs_midi_dummy="yes"
AS_IF([echo "${midi_backends}" | grep -wi OSS >/dev/null],[needs_midi_dummy="no"])
AS_IF([echo "${midi_backends}" | grep -wi PortMidi >/dev/null],[needs_midi_dummy="no"])
AM_CONDITIONAL(MIDI_DUMMY, test "x${needs_midi_dummy}" = "xyes")
AS_IF([test "x$midi_backends" = "x"],[
AC_MSG_WARN([No MIDI API specified or detected])
midi_backends="NONE!"
])
##### Wish #####
# add contextual info when adding a custom WISH path on macOS,
# other platforms use a single path so it's enough to print $wish as it is
AS_IF([test ! "x${WISH}" = "x"],[
AS_IF([test x"$MACOSX" = x"yes"], [
wish="prepending ${WISH} to search paths"
],[
wish="${WISH}"
])
])
#########################################
##### Output files #####
# Specify what files are to be created.
AC_CONFIG_FILES([Makefile
asio/Makefile
doc/Makefile
font/Makefile
mac/Makefile
man/Makefile
msw/Makefile
portaudio/Makefile
portmidi/Makefile
tcl/Makefile
tcl/pd-gui
po/Makefile
src/Makefile
extra/Makefile
extra/bob~/GNUmakefile
extra/bonk~/GNUmakefile
extra/choice/GNUmakefile
extra/fiddle~/GNUmakefile
extra/loop~/GNUmakefile
extra/lrshift~/GNUmakefile
extra/pd~/GNUmakefile
extra/pique/GNUmakefile
extra/sigmund~/GNUmakefile
extra/stdout/GNUmakefile
pd.pc
])
AC_OUTPUT
#########################################
##### Print a summary for the user #####
AC_MSG_NOTICE([
$PACKAGE $VERSION is now configured
Platform: $platform
Debug build: $debug
Universal build: $universal
Localizations: $locales
Source directory: $srcdir
Installation prefix: $prefix
Compiler: $CC
CPPFLAGS: $CPPFLAGS
CFLAGS: $CFLAGS
LDFLAGS: $LDFLAGS
INCLUDES: $AM_CPPFLAGS
LIBS: $LIBS
External extension: $EXTERNAL_EXTENSION
External CFLAGS: $EXTERNAL_CFLAGS
External LDFLAGS: $EXTERNAL_LDFLAGS
fftw: $fftw
wish(tcl/tk): $wish
audio APIs: $audio_backends
midi APIs: $midi_backends
])
AS_IF([test x$enable_locales = xyes -a x$locales = xno ],
AC_MSG_WARN([localization requested but no GNU gettext with msgfmt found... disabled]))
AS_IF([test x$enable_oss = xyes -a x$oss = xno ],
AC_MSG_WARN([OSS requested but no development files found... disabled]))
AS_IF([test x$enable_alsa = xyes -a x$alsa = xno ],
AC_MSG_WARN([ALSA requested but no development files found... disabled (See INSTALL.txt)]))
AS_IF([test x$enable_jack = xyes -a x$jack = xno ],
AC_MSG_WARN([JACK requested but no development files found... disabled (See INSTALL.txt)]))
AS_IF([test x$enable_jack_framework = xyes -a x$jack_jack != xyes ],
AC_MSG_WARN([JACK-Framework requested but no development files found... disabled (See INSTALL.txt)]))
AS_IF([test x$enable_mmio = xyes -a x$mmio = xno ],
AC_MSG_WARN([MMIO requested but not available... disabled (requires Windows)]))
AS_IF([test x$enable_asio = xyes -a x$asio = xno ],
AC_MSG_WARN([ASIO requested but no SDK found... disabled (see asio/README.txt)]))
# TODO portaudio
AS_IF([test x$enable_fftw = xyes -a x$fftw = xno ],
AC_MSG_WARN([FFTW requested but no development files found... disabled]))