/[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 2365 by persson, Sun Aug 5 13:21:12 2012 UTC revision 2366 by persson, Sat Sep 8 17:21:48 2012 UTC
# Line 1  Line 1 
1  dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
 AC_INIT(configure.ac)  
 AC_CONFIG_AUX_DIR([.])  
2    
3  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
4  # The following is the current, official release version of gigedit:  # The following is the current, official release version of gigedit:
5    
6  GIGEDIT_VER_MAJOR=0  m4_define(gigedit_ver_major, 0)
7  GIGEDIT_VER_MINOR=2  m4_define(gigedit_ver_minor, 2)
8  GIGEDIT_VER_RELEASE=0  m4_define(gigedit_ver_release, 0)
9    
10    AC_INIT([gigedit], [gigedit_ver_major.gigedit_ver_minor.gigedit_ver_release])
11    AC_CONFIG_SRCDIR([configure.ac])
12    AC_CONFIG_AUX_DIR([.])
13    
14  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
15  # The following is the libtool / shared library version. This doesn't have to  # The following is the libtool / shared library version. This doesn't have to
# Line 31  LIBGIGEDIT_LT_REVISION=0 Line 33  LIBGIGEDIT_LT_REVISION=0
33  LIBGIGEDIT_LT_AGE=0  LIBGIGEDIT_LT_AGE=0
34    
35  SHARED_VERSION_INFO="$LIBGIGEDIT_LT_CURRENT:$LIBGIGEDIT_LT_REVISION:$LIBGIGEDIT_LT_AGE"  SHARED_VERSION_INFO="$LIBGIGEDIT_LT_CURRENT:$LIBGIGEDIT_LT_REVISION:$LIBGIGEDIT_LT_AGE"
36  AC_LANG_CPLUSPLUS  AC_LANG([C++])
37  AC_PROG_CXX  AC_PROG_CXX
38  AC_LIBTOOL_WIN32_DLL  AC_LIBTOOL_WIN32_DLL
39  AC_PROG_LIBTOOL  AC_PROG_LIBTOOL
40  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
41  AC_SUBST(SHARED_VERSION_INFO)  AC_SUBST(SHARED_VERSION_INFO)
42  AC_SUBST(GIGEDIT_VER_MAJOR)  AC_SUBST(GIGEDIT_VER_MAJOR, gigedit_ver_major)
43  AC_SUBST(GIGEDIT_VER_MINOR)  AC_SUBST(GIGEDIT_VER_MINOR, gigedit_ver_minor)
44  AC_SUBST(GIGEDIT_VER_RELEASE)  AC_SUBST(GIGEDIT_VER_RELEASE, gigedit_ver_release)
45    
46  # configure checks for the following file's existence to make sure that  # configure checks for the following file's existence to make sure that
47  # the directory that it is told contains the source code in fact does.  # the directory that it is told contains the source code in fact does.
# Line 150  AC_DEFINE_UNQUOTED( Line 152  AC_DEFINE_UNQUOTED(
152  have_ls_vmidi=0  have_ls_vmidi=0
153  if test $have_linuxsampler = "1"; then  if test $have_linuxsampler = "1"; then
154      AC_MSG_CHECKING([whether LinuxSampler supports virtual MIDI devices])      AC_MSG_CHECKING([whether LinuxSampler supports virtual MIDI devices])
155      AC_LANG_SAVE      AC_LANG_PUSH([C++])
     AC_LANG_CPLUSPLUS  
156      LIBS="$LINUXSAMPLER_LIBS $LIBS"      LIBS="$LINUXSAMPLER_LIBS $LIBS"
157      CFLAGS="$CFLAGS $LINUXSAMPLER_CFLAGS"      CFLAGS="$CFLAGS $LINUXSAMPLER_CFLAGS"
158      CXXFLAGS="$CXXFLAGS $CFLAGS"      CXXFLAGS="$CXXFLAGS $CFLAGS"
159      AC_TRY_COMPILE([      AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
160              #include <linuxsampler/drivers/midi/VirtualMidiDevice.h>              #include <linuxsampler/drivers/midi/VirtualMidiDevice.h>
161              using namespace LinuxSampler;              using namespace LinuxSampler;
162          ], [          ]], [[
163              bool (VirtualMidiDevice::*ptr1)(uint8_t, uint8_t) = 0;              bool (VirtualMidiDevice::*ptr1)(uint8_t, uint8_t) = 0;
164              bool (VirtualMidiDevice::*ptr2)() = 0;              bool (VirtualMidiDevice::*ptr2)() = 0;
165              bool (VirtualMidiDevice::*ptr3)(uint8_t) = 0;              bool (VirtualMidiDevice::*ptr3)(uint8_t) = 0;
# Line 167  if test $have_linuxsampler = "1"; then Line 168  if test $have_linuxsampler = "1"; then
168              ptr2 = &VirtualMidiDevice::NotesChanged;              ptr2 = &VirtualMidiDevice::NotesChanged;
169              ptr3 = &VirtualMidiDevice::NoteChanged;              ptr3 = &VirtualMidiDevice::NoteChanged;
170              ptr4 = &VirtualMidiDevice::NoteOffVelocity;              ptr4 = &VirtualMidiDevice::NoteOffVelocity;
171          ], [          ]])],[
172              AC_MSG_RESULT(yes)              AC_MSG_RESULT(yes)
173              have_ls_vmidi=1              have_ls_vmidi=1
174          ], [          ],[
175              AC_MSG_RESULT(no)              AC_MSG_RESULT(no)
176              echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"              echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
177              echo "! Support for the virtual MIDI keyboard in gigedit will"              echo "! Support for the virtual MIDI keyboard in gigedit will"
# Line 180  if test $have_linuxsampler = "1"; then Line 181  if test $have_linuxsampler = "1"; then
181              echo "! Update LinuxSampler and recompile gigedit if you want"              echo "! Update LinuxSampler and recompile gigedit if you want"
182              echo "! this feature."              echo "! this feature."
183              echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"              echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
184          ]      ])
185      )      AC_LANG_POP([C++])
     AC_LANG_RESTORE  
186  fi  fi
187  AC_DEFINE_UNQUOTED(  AC_DEFINE_UNQUOTED(
188      HAVE_LINUXSAMPLER_VIRTUAL_MIDI_DEVICE, $have_ls_vmidi,      HAVE_LINUXSAMPLER_VIRTUAL_MIDI_DEVICE, $have_ls_vmidi,
# Line 190  AC_DEFINE_UNQUOTED( Line 190  AC_DEFINE_UNQUOTED(
190  )  )
191    
192  AC_CONFIG_HEADERS(config.h)  AC_CONFIG_HEADERS(config.h)
193  AM_INIT_AUTOMAKE(gigedit, "$GIGEDIT_VER_MAJOR.$GIGEDIT_VER_MINOR.$GIGEDIT_VER_RELEASE")  AM_INIT_AUTOMAKE
194    
195  AC_CONFIG_FILES([  AC_CONFIG_FILES([
196          Makefile          Makefile

Legend:
Removed from v.2365  
changed lines
  Added in v.2366

  ViewVC Help
Powered by ViewVC