62 |
|
|
63 |
AC_CHECK_HEADER(alsa/asoundlib.h, |
AC_CHECK_HEADER(alsa/asoundlib.h, |
64 |
AC_CHECK_LIB(asound, main, |
AC_CHECK_LIB(asound, main, |
65 |
have_alsa="true" |
have_alsa=1 |
66 |
, |
, |
67 |
have_alsa="false" |
have_alsa=0 |
68 |
) |
) |
69 |
, |
, |
70 |
have_alsa="false" |
have_alsa=0 |
71 |
) |
) |
72 |
if test "$have_alsa" = "true"; then |
if test "$have_alsa" = "1"; then |
73 |
have_midi_input_driver="true" |
have_midi_input_driver="true" |
74 |
have_audio_output_driver="true"; |
have_audio_output_driver="true"; |
75 |
fi |
fi |
76 |
AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "true") |
AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1") |
77 |
AC_DEFINE_UNQUOTED(HAVE_ALSA,$have_alsa,[Define to 1 if you have ALSA installed.]) |
AC_DEFINE_UNQUOTED(HAVE_ALSA,$have_alsa,[Define to 1 if you have ALSA installed.]) |
78 |
|
|
79 |
|
|
138 |
else |
else |
139 |
HAVE_JACK=1 |
HAVE_JACK=1 |
140 |
have_audio_output_driver="true"; |
have_audio_output_driver="true"; |
141 |
|
AC_CHECK_LIB(jack, jack_client_name_size, [AC_DEFINE(HAVE_JACK_CLIENT_NAME_SIZE, 1, [Define to 1 if you have the `jack_client_name_size' function.])], , $JACK_LIBS) |
142 |
fi |
fi |
143 |
AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1) |
AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1) |
144 |
AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.]) |
AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.]) |
145 |
|
|
146 |
|
|
147 |
if test "$have_midi_input_driver=" = "false"; then |
if test "$have_midi_input_driver" = "false"; then |
148 |
echo "No supported MIDI input system found!" |
echo "No supported MIDI input system found!" |
149 |
echo "Sorry, LinuxSampler only supports ALSA as MIDI input driver at the moment!" |
echo "Sorry, LinuxSampler only supports ALSA as MIDI input driver at the moment!" |
150 |
exit -1; |
exit -1; |
151 |
fi |
fi |
152 |
if test "$have_audio_output_driver=" = "false"; then |
if test "$have_audio_output_driver" = "false"; then |
153 |
echo "No supported audio output system found!" |
echo "No supported audio output system found!" |
154 |
echo "Sorry, LinuxSampler only supports ALSA and JACK as audio output driver at the moment!" |
echo "Sorry, LinuxSampler only supports ALSA and JACK as audio output driver at the moment!" |
155 |
exit -1; |
exit -1; |