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 |
|
|
143 |
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.]) |
144 |
|
|
145 |
|
|
146 |
if test "$have_midi_input_driver=" = "false"; then |
if test "$have_midi_input_driver" = "false"; then |
147 |
echo "No supported MIDI input system found!" |
echo "No supported MIDI input system found!" |
148 |
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!" |
149 |
exit -1; |
exit -1; |
150 |
fi |
fi |
151 |
if test "$have_audio_output_driver=" = "false"; then |
if test "$have_audio_output_driver" = "false"; then |
152 |
echo "No supported audio output system found!" |
echo "No supported audio output system found!" |
153 |
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!" |
154 |
exit -1; |
exit -1; |