/[svn]/gigedit/trunk/configure.ac
ViewVC logotype

Diff of /gigedit/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1645 by schoenebeck, Sat Jan 19 20:07:39 2008 UTC revision 1679 by schoenebeck, Tue Feb 12 14:13:46 2008 UTC
# Line 128  AC_DEFINE_UNQUOTED( Line 128  AC_DEFINE_UNQUOTED(
128      [Define to 1 if you have LinuxSampler installed.]      [Define to 1 if you have LinuxSampler installed.]
129  )  )
130    
131    have_ls_vmidi=0
132    if test $have_linuxsampler = "1"; then
133        AC_MSG_CHECKING([whether LinuxSampler supports virtual MIDI devices])
134        AC_LANG_SAVE
135        AC_LANG_CPLUSPLUS
136        LIBS="$LINUXSAMPLER_LIBS $LIBS"
137        CFLAGS="$CFLAGS $LINUXSAMPLER_CFLAGS"
138        CXXFLAGS="$CXXFLAGS $CFLAGS"
139        AC_TRY_COMPILE([
140                #include <linuxsampler/drivers/midi/VirtualMidiDevice.h>
141                using namespace LinuxSampler;
142            ], [
143                bool (VirtualMidiDevice::*ptr1)(uint8_t, uint8_t) = 0;
144                bool (VirtualMidiDevice::*ptr2)() = 0;
145                bool (VirtualMidiDevice::*ptr3)(uint8_t) = 0;
146                uint8_t (VirtualMidiDevice::*ptr4)(uint8_t) = 0;
147                ptr1 = &VirtualMidiDevice::SendNoteOnToSampler;
148                ptr2 = &VirtualMidiDevice::NotesChanged;
149                ptr3 = &VirtualMidiDevice::NoteChanged;
150                ptr4 = &VirtualMidiDevice::NoteOffVelocity;
151            ], [
152                AC_MSG_RESULT(yes)
153                have_ls_vmidi=1
154            ], [
155                AC_MSG_RESULT(no)
156                echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
157                echo "! Support for the virtual MIDI keyboard in gigedit will"
158                echo "! be disabled. You'll see the keyboard in gigedit, but"
159                echo "! you won't be able to trigger notes with it nor see"
160                echo "! active notes caused by external MIDI sources of LS."
161                echo "! Update LinuxSampler and recompile gigedit if you want"
162                echo "! this feature."
163                echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
164            ]
165        )
166        AC_LANG_RESTORE
167    fi
168    AC_DEFINE_UNQUOTED(
169        HAVE_LINUXSAMPLER_VIRTUAL_MIDI_DEVICE, $have_ls_vmidi,
170        [Define to 1 if LinuxSampler supports virtual MIDI devices.]
171    )
172    
173  AC_CONFIG_HEADERS(config.h)  AC_CONFIG_HEADERS(config.h)
174  AM_INIT_AUTOMAKE(gigedit, "$GIGEDIT_VER_MAJOR.$GIGEDIT_VER_MINOR.$GIGEDIT_VER_RELEASE")  AM_INIT_AUTOMAKE(gigedit, "$GIGEDIT_VER_MAJOR.$GIGEDIT_VER_MINOR.$GIGEDIT_VER_RELEASE")
175    

Legend:
Removed from v.1645  
changed lines
  Added in v.1679

  ViewVC Help
Powered by ViewVC