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.2.19, rncbc@rncbc.org, qsampler) |
AC_INIT(Qsampler, 0.2.2.27, 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) |
111 |
done |
done |
112 |
|
|
113 |
# Check for proper Qt version. |
# Check for proper Qt version. |
114 |
AC_CACHE_CHECK([for Qt library version >= 4.1], |
AC_CACHE_CHECK([for Qt library version >= 4.2], |
115 |
ac_cv_qtversion, [ |
ac_cv_qtversion, [ |
116 |
AC_TRY_LINK([#include "Qt/qglobal.h"], [ |
AC_TRY_LINK([#include "Qt/qglobal.h"], [ |
117 |
#if QT_VERSION < 0x040100 |
#if QT_VERSION < 0x040200 |
118 |
#error Qt library 4.1 or greater required. |
#error Qt library 4.2 or greater required. |
119 |
#endif |
#endif |
120 |
], ac_cv_qtversion="yes", [ |
], ac_cv_qtversion="yes", [ |
121 |
echo "no; Qt 4.1 or greater is required" |
echo "no; Qt 4.2 or greater is required" |
122 |
exit |
exit |
123 |
]) |
]) |
124 |
]) |
]) |
334 |
AC_DEFINE(CONFIG_STACKTRACE, 1, [Define if debugger stack-trace is enabled.]) |
AC_DEFINE(CONFIG_STACKTRACE, 1, [Define if debugger stack-trace is enabled.]) |
335 |
fi |
fi |
336 |
|
|
337 |
|
# Some recent distros (eg. fedora, debian) require this. |
338 |
|
ac_libs="$ac_libs -lX11" |
339 |
|
|
340 |
AC_SUBST(ac_libs) |
AC_SUBST(ac_libs) |
341 |
AC_SUBST(ac_incpath) |
AC_SUBST(ac_incpath) |
342 |
|
|