1 |
# Process this file with autoconf to produce a configure script. |
# Process this file with autoconf to produce a configure script. |
2 |
AC_INIT(Qsampler, 0.2.1.4, rncbc@rncbc.org, qsampler) |
AC_INIT(Qsampler, 0.2.1.21, rncbc@rncbc.org, qsampler) |
3 |
|
|
4 |
AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui) |
AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui) |
5 |
AC_CONFIG_HEADERS(config.h) |
AC_CONFIG_HEADERS(config.h) |
232 |
AC_DEFINE(CONFIG_EDIT_INSTRUMENT, 1, [Define if instrument editing is available.]) |
AC_DEFINE(CONFIG_EDIT_INSTRUMENT, 1, [Define if instrument editing is available.]) |
233 |
fi |
fi |
234 |
|
|
235 |
|
AC_CACHE_CHECK([for CHANNEL_MIDI LSCP event support in liblscp], |
236 |
|
ac_lscp_channel_midi_event, [ |
237 |
|
AC_TRY_COMPILE([ |
238 |
|
#include "lscp/client.h" |
239 |
|
#include "lscp/event.h" |
240 |
|
], [ |
241 |
|
lscp_event_t ev; |
242 |
|
ev = LSCP_EVENT_CHANNEL_MIDI; |
243 |
|
], ac_lscp_channel_midi_event="yes", ac_lscp_channel_midi_event="no") |
244 |
|
]) |
245 |
|
if test "x$ac_lscp_channel_midi_event" = "xyes"; then |
246 |
|
AC_DEFINE(CONFIG_EVENT_CHANNEL_MIDI, 1, [Define if LSCP CHANNEL_MIDI event support is available.]) |
247 |
|
fi |
248 |
|
|
249 |
|
AC_CACHE_CHECK([for DEVICE_MIDI LSCP event support in liblscp], |
250 |
|
ac_lscp_device_midi_event, [ |
251 |
|
AC_TRY_COMPILE([ |
252 |
|
#include "lscp/client.h" |
253 |
|
#include "lscp/event.h" |
254 |
|
], [ |
255 |
|
lscp_event_t ev; |
256 |
|
ev = LSCP_EVENT_DEVICE_MIDI; |
257 |
|
], ac_lscp_device_midi_event="yes", ac_lscp_device_midi_event="no") |
258 |
|
]) |
259 |
|
if test "x$ac_lscp_device_midi_event" = "xyes"; then |
260 |
|
AC_DEFINE(CONFIG_EVENT_DEVICE_MIDI, 1, [Define if LSCP DEVICE_MIDI event support is available.]) |
261 |
|
fi |
262 |
|
|
263 |
|
AC_CHECK_LIB(lscp, lscp_get_voices, [ac_max_voices="yes"], [ac_max_voices="no"]) |
264 |
|
if test "x$ac_max_voices" = "xyes"; then |
265 |
|
AC_DEFINE(CONFIG_MAX_VOICES, 1, [Define if max. voices / streams is available.]) |
266 |
|
fi |
267 |
|
|
268 |
# Check for optional libraries. |
# Check for optional libraries. |
269 |
if test "x$ac_libgig" = "xyes"; then |
if test "x$ac_libgig" = "xyes"; then |
270 |
AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"]) |
AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"]) |
346 |
if test "x$ac_libgig" = "xyes"; then |
if test "x$ac_libgig" = "xyes"; then |
347 |
echo " libgig supports fast information retrieval . . . .: $have_libgig_setautoload" |
echo " libgig supports fast information retrieval . . . .: $have_libgig_setautoload" |
348 |
fi |
fi |
349 |
|
echo " LSCP channel MIDI event support . . . . . . . . .: $ac_lscp_channel_midi_event" |
350 |
|
echo " LSCP device MIDI event support . . . . . . . . . .: $ac_lscp_device_midi_event" |
351 |
|
echo " LSCP runtime max. voices / disk streams support .: $ac_max_voices" |
352 |
echo |
echo |
353 |
echo " Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix" |
echo " Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix" |
354 |
echo |
echo |