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.3.1.2, rncbc@rncbc.org, qsampler) |
AC_INIT(Qsampler, 0.3.1.11, rncbc@rncbc.org, qsampler) |
3 |
|
|
4 |
AC_CONFIG_SRCDIR(src/qsampler.cpp) |
AC_CONFIG_SRCDIR(src/qsampler.cpp) |
5 |
AC_CONFIG_HEADERS(src/config.h) |
AC_CONFIG_HEADERS(src/config.h) |
49 |
[ac_libgig="$enableval"], |
[ac_libgig="$enableval"], |
50 |
[ac_libgig="yes"]) |
[ac_libgig="yes"]) |
51 |
|
|
52 |
|
# Enable X11 unique/single instance. |
53 |
|
AC_ARG_ENABLE(xunique, |
54 |
|
AC_HELP_STRING([--enable-xunique], [enable X11 unique/single instance (default=yes)]), |
55 |
|
[ac_xunique="$enableval"], |
56 |
|
[ac_xunique="yes"]) |
57 |
|
|
58 |
# Enable debugger stack-trace option (assumes --enable-debug). |
# Enable debugger stack-trace option (assumes --enable-debug). |
59 |
AC_ARG_ENABLE(stacktrace, |
AC_ARG_ENABLE(stacktrace, |
60 |
AC_HELP_STRING([--enable-stacktrace], [enable debugger stack-trace (default=no)]), |
AC_HELP_STRING([--enable-stacktrace], [enable debugger stack-trace (default=no)]), |
213 |
if test "x$ac_qt4" = "xyes"; then |
if test "x$ac_qt4" = "xyes"; then |
214 |
AC_CACHE_CHECK([for Qt library version >= 4.4], |
AC_CACHE_CHECK([for Qt library version >= 4.4], |
215 |
ac_cv_qtversion, [ |
ac_cv_qtversion, [ |
216 |
AC_TRY_LINK([#include "QtCore/qglobal.h"], [ |
AC_TRY_COMPILE([#include "QtCore/qglobal.h"], [ |
217 |
#if QT_VERSION < 0x040400 || QT_VERSION >= 0x050000 |
#if QT_VERSION < 0x040400 || QT_VERSION >= 0x050000 |
218 |
#error Qt library 4.4 or greater required. |
#error Qt library 4.4 or greater required. |
219 |
#endif |
#endif |
227 |
if test "x$ac_qt5" = "xyes"; then |
if test "x$ac_qt5" = "xyes"; then |
228 |
AC_CACHE_CHECK([for Qt library version >= 5.1], |
AC_CACHE_CHECK([for Qt library version >= 5.1], |
229 |
ac_cv_qtversion, [ |
ac_cv_qtversion, [ |
230 |
AC_TRY_LINK([#include "QtCore/qglobal.h"], [ |
AC_TRY_COMPILE([#include "QtCore/qglobal.h"], [ |
231 |
#if QT_VERSION < 0x050100 || QT_VERSION >= 0x060000 |
#if QT_VERSION < 0x050100 || QT_VERSION >= 0x060000 |
232 |
#error Qt library 5.1 or greater required. |
#error Qt library 5.1 or greater required. |
233 |
#endif |
#endif |
424 |
AC_DEFINE(CONFIG_ROUND, 1, [Define if round is available.]) |
AC_DEFINE(CONFIG_ROUND, 1, [Define if round is available.]) |
425 |
fi |
fi |
426 |
|
|
427 |
|
# Check for X11 unique/single instance. |
428 |
|
if test "x$ac_xunique" = "xyes"; then |
429 |
|
AC_DEFINE(CONFIG_XUNIQUE, 1, [Define if X11 unique/single instance is enabled.]) |
430 |
|
fi |
431 |
|
|
432 |
# Check for debugging stack-trace. |
# Check for debugging stack-trace. |
433 |
if test "x$ac_stacktrace" = "xyes"; then |
if test "x$ac_stacktrace" = "xyes"; then |
434 |
AC_DEFINE(CONFIG_STACKTRACE, 1, [Define if debugger stack-trace is enabled.]) |
AC_DEFINE(CONFIG_STACKTRACE, 1, [Define if debugger stack-trace is enabled.]) |
497 |
echo " LSCP device MIDI event support . . . . . . . . . .: $ac_device_midi_event" |
echo " LSCP device MIDI event support . . . . . . . . . .: $ac_device_midi_event" |
498 |
echo " LSCP runtime max. voices / disk streams support .: $ac_max_voices" |
echo " LSCP runtime max. voices / disk streams support .: $ac_max_voices" |
499 |
echo |
echo |
500 |
|
echo " X11 Unique/Single instance . . . . . . . . . . . .: $ac_xunique" |
501 |
echo " Debugger stack-trace (gdb) . . . . . . . . . . . .: $ac_stacktrace" |
echo " Debugger stack-trace (gdb) . . . . . . . . . . . .: $ac_stacktrace" |
502 |
echo |
echo |
503 |
echo " Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix" |
echo " Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix" |