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.1.4.10, rncbc@rncbc.org, qsampler) |
AC_INIT(Qsampler, 0.2.0.18, rncbc@rncbc.org, qsampler) |
3 |
AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui.h) |
|
4 |
|
AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui) |
5 |
AC_CONFIG_HEADERS(config.h) |
AC_CONFIG_HEADERS(config.h) |
6 |
AC_CONFIG_FILES(Makefile qsampler.pro qsampler.spec qsampler.desktop) |
AC_CONFIG_FILES(Makefile qsampler.pro qsampler.spec qsampler.desktop) |
7 |
|
|
38 |
|
|
39 |
# Some a-la-debian alternatives... |
# Some a-la-debian alternatives... |
40 |
for X in /usr/lib /usr/share; do |
for X in /usr/lib /usr/share; do |
41 |
for Y in qt qt3; do |
for Y in qt qt4; do |
42 |
if test -d $X/$Y/bin; then |
if test -d $X/$Y/bin; then |
43 |
ac_with_paths="$ac_with_paths $X/$Y" |
ac_with_paths="$ac_with_paths $X/$Y" |
44 |
fi |
fi |
45 |
done |
done |
46 |
done |
done |
47 |
|
|
48 |
|
# Set for alternate Qt installation dir. |
49 |
|
AC_ARG_WITH(qt, |
50 |
|
AC_HELP_STRING([--with-qt=PATH], [use alternate Qt install path]), |
51 |
|
[ac_with_paths="$ac_with_paths $withval"]) |
52 |
|
|
53 |
# Set for alternate liblscp installation dir. |
# Set for alternate liblscp installation dir. |
54 |
AC_ARG_WITH(liblscp, |
AC_ARG_WITH(liblscp, |
55 |
AC_HELP_STRING([--with-liblscp=PATH], [use alternate liblscp install path]), |
AC_HELP_STRING([--with-liblscp=PATH], [use alternate liblscp install path]), |
71 |
AC_LANG_C |
AC_LANG_C |
72 |
AC_LANG_CPLUSPLUS |
AC_LANG_CPLUSPLUS |
73 |
|
|
|
# Check for QTDIR environment variable. |
|
|
AC_MSG_CHECKING([whether QTDIR environment variable is set]) |
|
|
if test "x$QTDIR" = "x"; then |
|
|
AC_MSG_RESULT([no]) |
|
|
else |
|
|
AC_MSG_RESULT([$QTDIR]) |
|
|
ac_with_paths="$ac_with_paths $QTDIR" |
|
|
fi |
|
|
|
|
74 |
# Prepend alternate dependencies paths. |
# Prepend alternate dependencies paths. |
75 |
ac_path=$PATH |
ac_path=$PATH |
76 |
for X in $ac_with_paths; do |
for X in $ac_with_paths; do |
77 |
if test -d $X/bin; then |
if test -d $X/bin; then |
78 |
ac_path="$X/bin:$ac_path" |
ac_path="$X/bin:$ac_path" |
79 |
fi |
fi |
80 |
|
if test -x $X/qmake; then |
81 |
|
ac_path="$X:$ac_path" |
82 |
|
fi |
83 |
if test -d $X/include; then |
if test -d $X/include; then |
84 |
for Y in qt qt3; do |
for Y in qt qt4; do |
85 |
if test -d $X/include/$Y; then |
if test -d $X/include/$Y; then |
86 |
CFLAGS="-I$X/include/$Y $CFLAGS" |
CFLAGS="-I$X/include/$Y $CFLAGS" |
87 |
CPPFLAGS="-I$X/include/$Y $CPPFLAGS" |
CPPFLAGS="-I$X/include/$Y $CPPFLAGS" |
102 |
fi |
fi |
103 |
done |
done |
104 |
|
|
105 |
# Checks for Qt library. |
# Check for proper Qt version. |
106 |
for X in qt-mt qt; do |
AC_CACHE_CHECK([for Qt library version >= 4.1], |
|
if test "x$ac_qtlib" = "x"; then |
|
|
AC_CHECK_LIB($X, main, [ac_qtlib=$X]) |
|
|
fi |
|
|
done |
|
|
if test "x$ac_qtlib" = "x"; then |
|
|
AC_MSG_ERROR([Qt library not found. Maybe QTDIR isn't properly set.]) |
|
|
fi |
|
|
AC_SUBST(ac_qtlib) |
|
|
|
|
|
# Check for Qt multi-thread support. |
|
|
if test "x$ac_qtlib" = "xqt-mt"; then |
|
|
ac_thread="thread" |
|
|
fi |
|
|
AC_SUBST(ac_thread) |
|
|
|
|
|
AC_CACHE_CHECK([for Qt library version >= 3.1.1], |
|
107 |
ac_qtlib_version, [ |
ac_qtlib_version, [ |
108 |
AC_TRY_LINK([#include "qglobal.h"], [ |
AC_TRY_LINK([#include "Qt/qglobal.h"], [ |
109 |
#if QT_VERSION < 0x030101 |
#if QT_VERSION < 0x040100 |
110 |
#error Qt library 3.1.1 or greater required. |
#error Qt library 4.1 or greater required. |
111 |
#endif |
#endif |
112 |
], |
], |
113 |
ac_qtlib_version="yes", [ |
ac_qtlib_version="yes", [ |
114 |
echo "no; Qt 3.1.1 or greater is required" |
echo "no; Qt 4.1 or greater is required" |
115 |
exit |
exit |
116 |
]) |
]) |
117 |
]) |
]) |
118 |
|
|
119 |
# A common error message: |
# A common error message: |
120 |
ac_qtdir_errmsg="not found in current PATH. Maybe QT development environment isn't available (qt3-devel)." |
ac_errmsg="not found in current PATH. Maybe QT development environment isn't available (qt-devel)." |
121 |
|
|
122 |
# Check for Qt qmake utility. |
# Check for Qt qmake utility. |
123 |
AC_PATH_PROG(ac_qmake, qmake, [no], $ac_path) |
AC_PATH_PROG(ac_qmake, qmake, [no], $ac_path) |
124 |
if test "x$ac_qmake" = "xno"; then |
if test "x$ac_qmake" = "xno"; then |
125 |
AC_MSG_ERROR([qmake $ac_qtdir_errmsg]) |
AC_MSG_ERROR([qmake $ac_errmsg]) |
126 |
fi |
fi |
127 |
AC_SUBST(ac_qmake) |
AC_SUBST(ac_qmake) |
128 |
|
|
129 |
# Check for Qt moc utility. |
# Check for Qt moc utility. |
130 |
AC_PATH_PROG(ac_moc, moc, [no], $ac_path) |
AC_PATH_PROG(ac_moc, moc, [no], $ac_path) |
131 |
if test "x$ac_moc" = "xno"; then |
if test "x$ac_moc" = "xno"; then |
132 |
AC_MSG_ERROR([moc $ac_qtdir_errmsg]) |
AC_MSG_ERROR([moc $ac_errmsg]) |
133 |
fi |
fi |
134 |
AC_SUBST(ac_moc) |
AC_SUBST(ac_moc) |
135 |
|
|
136 |
# Check for Qt uic utility. |
# Check for Qt uic utility. |
137 |
AC_PATH_PROG(ac_uic, uic, [no], $ac_path) |
AC_PATH_PROG(ac_uic, uic, [no], $ac_path) |
138 |
if test "x$ac_uic" = "xno"; then |
if test "x$ac_uic" = "xno"; then |
139 |
AC_MSG_ERROR([uic $ac_qtdir_errmsg]) |
AC_MSG_ERROR([uic $ac_errmsg]) |
140 |
fi |
fi |
141 |
AC_SUBST(ac_uic) |
AC_SUBST(ac_uic) |
142 |
|
|
144 |
AC_CHECK_LIB(m, main) |
AC_CHECK_LIB(m, main) |
145 |
AC_CHECK_LIB(X11, main) |
AC_CHECK_LIB(X11, main) |
146 |
AC_CHECK_LIB(Xext, main) |
AC_CHECK_LIB(Xext, main) |
|
AC_CHECK_LIB($ac_qtlib, main) |
|
147 |
|
|
148 |
# Check for round math function. |
# Check for round math function. |
149 |
AC_CHECK_LIB(m, round, [ac_round="yes"], [ac_round="no"]) |
AC_CHECK_LIB(m, round, [ac_round="yes"], [ac_round="no"]) |
267 |
|
|
268 |
# make clean > /dev/null 2>&1 |
# make clean > /dev/null 2>&1 |
269 |
|
|
270 |
echo "" |
# Output summary message |
271 |
|
|
272 |
|
echo |
273 |
|
echo " $PACKAGE_NAME $PACKAGE_VERSION" |
274 |
|
echo |
275 |
|
echo " Build target . . . . . . . . . . . . . . . . . . .: $ac_debug" |
276 |
|
echo |
277 |
|
echo " LSCP instrument name support . . . . . . . . . . .: $ac_instrument_name" |
278 |
|
echo " LSCP mute/solo support . . . . . . . . . . . . . .: $ac_mute_solo" |
279 |
|
echo " LSCP MIDI instrument support . . . . . . . . . . .: $ac_midi_instrument" |
280 |
|
echo " LSCP FX send support . . . . . . . . . . . . . . .: $ac_fxsend" |
281 |
|
echo " LSCP FX send level support . . . . . . . . . . . .: $ac_fxsend_level" |
282 |
|
echo " LSCP audio routing support . . . . . . . . . . . .: $ac_audio_routing" |
283 |
|
echo " LSCP volume support . . . . . . . . . . . . . . .: $ac_volume" |
284 |
|
echo " LSCP edit instrument support . . . . . . . . . . .: $ac_edit_instrument" |
285 |
|
echo " GigaSampler instrument file support (libgig) . . .: $ac_libgig" |
286 |
|
echo |
287 |
|
echo " Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix" |
288 |
|
echo |
289 |
echo "Now type 'make', followed by 'make install' as root." |
echo "Now type 'make', followed by 'make install' as root." |
290 |
echo "" |
echo |