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

Diff of /qsampler/trunk/configure.ac

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

revision 1816 by schoenebeck, Mon Dec 22 13:28:53 2008 UTC revision 1820 by capela, Thu Dec 25 17:07:22 2008 UTC
# Line 1  Line 1 
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.2.1.22, rncbc@rncbc.org, qsampler)  AC_INIT(Qsampler, 0.2.1.23, rncbc@rncbc.org, qsampler)
3    
4  AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui)  AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui)
5  AC_CONFIG_HEADERS(config.h)  AC_CONFIG_HEADERS(config.h)
# Line 104  done Line 104  done
104    
105  # Check for proper Qt version.  # Check for proper Qt version.
106  AC_CACHE_CHECK([for Qt library version >= 4.1],  AC_CACHE_CHECK([for Qt library version >= 4.1],
107    ac_qtlib_version, [    ac_cv_qtversion, [
108    AC_TRY_LINK([#include "Qt/qglobal.h"], [    AC_TRY_LINK([#include "Qt/qglobal.h"], [
109  #if QT_VERSION < 0x040100  #if QT_VERSION < 0x040100
110  #error Qt library 4.1 or greater required.  #error Qt library 4.1 or greater required.
111  #endif  #endif
112      ],      ], ac_cv_qtversion="yes", [
     ac_qtlib_version="yes", [  
113        echo "no; Qt 4.1 or greater is required"        echo "no; Qt 4.1 or greater is required"
114        exit        exit
115      ])      ])
# Line 159  fi Line 158  fi
158  ac_libs="$ac_libs -llscp"  ac_libs="$ac_libs -llscp"
159    
160  AC_CACHE_CHECK([for instrument_name in lscp_channel_info_t],  AC_CACHE_CHECK([for instrument_name in lscp_channel_info_t],
161    ac_instrument_name, [    ac_cv_instrument_name, [
162    AC_TRY_COMPILE([#include "lscp/client.h"], [    AC_TRY_COMPILE([#include "lscp/client.h"], [
163          lscp_channel_info_t info;          lscp_channel_info_t info;
164          info.instrument_name = 0;          info.instrument_name = 0;
165      ], ac_instrument_name="yes", ac_instrument_name="no")      ], ac_cv_instrument_name="yes", ac_cv_instrument_name="no")
166  ])  ])
167    ac_instrument_name=$ac_cv_instrument_name
168  if test "x$ac_instrument_name" = "xyes"; then  if test "x$ac_instrument_name" = "xyes"; then
169     AC_DEFINE(CONFIG_INSTRUMENT_NAME, 1, [Define if instrument_name is available.])     AC_DEFINE(CONFIG_INSTRUMENT_NAME, 1, [Define if instrument_name is available.])
170  fi  fi
171    
172  AC_CACHE_CHECK([for mute/solo in lscp_channel_info_t],  AC_CACHE_CHECK([for mute/solo in lscp_channel_info_t],
173    ac_mute_solo, [    ac_cv_mute_solo, [
174    AC_TRY_COMPILE([#include "lscp/client.h"], [    AC_TRY_COMPILE([#include "lscp/client.h"], [
175          lscp_channel_info_t info;          lscp_channel_info_t info;
176          info.mute = 0;          info.mute = 0;
177          info.solo = 0;          info.solo = 0;
178      ], ac_mute_solo="yes", ac_mute_solo="no")      ], ac_cv_mute_solo="yes", ac_cv_mute_solo="no")
179  ])  ])
180    ac_mute_solo=$ac_cv_mute_solo
181  if test "x$ac_mute_solo" = "xyes"; then  if test "x$ac_mute_solo" = "xyes"; then
182     AC_CHECK_LIB(lscp, lscp_set_channel_mute, [ac_mute_solo="yes"], [ac_mute_solo="no"])     AC_CHECK_LIB(lscp, lscp_set_channel_mute, [ac_mute_solo="yes"], [ac_mute_solo="no"])
183  fi  fi
# Line 196  AC_CHECK_LIB(lscp, lscp_create_fxsend, [ Line 197  AC_CHECK_LIB(lscp, lscp_create_fxsend, [
197  if test "x$ac_fxsend" = "xyes"; then  if test "x$ac_fxsend" = "xyes"; then
198    AC_DEFINE(CONFIG_FXSEND, 1, [Define if FX sends is available.])    AC_DEFINE(CONFIG_FXSEND, 1, [Define if FX sends is available.])
199    AC_CACHE_CHECK([for FX send level in lscp_fxsend_info_t],    AC_CACHE_CHECK([for FX send level in lscp_fxsend_info_t],
200      ac_fxsend_level, [      ac_cv_fxsend_level, [
201      AC_TRY_COMPILE([#include "lscp/client.h"], [      AC_TRY_COMPILE([#include "lscp/client.h"], [
202            lscp_fxsend_info_t info;            lscp_fxsend_info_t info;
203            info.level = 0.0f;            info.level = 0.0f;
204        ], ac_fxsend_level="yes", ac_fxsend_level="no")        ], ac_cv_fxsend_level="yes", ac_cv_fxsend_level="no")
205    ])    ])
206      ac_fxsend_level=$ac_cv_fxsend_level
207    if test "x$ac_fxsend_level" = "xyes"; then    if test "x$ac_fxsend_level" = "xyes"; then
208            AC_DEFINE(CONFIG_FXSEND_LEVEL, 1, [Define if FX send level is available.])            AC_DEFINE(CONFIG_FXSEND_LEVEL, 1, [Define if FX send level is available.])
209    fi    fi
# Line 212  if test "x$ac_fxsend" = "xyes"; then Line 214  if test "x$ac_fxsend" = "xyes"; then
214  fi  fi
215    
216  AC_CACHE_CHECK([for audio_routing array type],  AC_CACHE_CHECK([for audio_routing array type],
217    ac_audio_routing, [    ac_cv_audio_routing, [
218    AC_TRY_COMPILE([#include "lscp/client.h"], [    AC_TRY_COMPILE([#include "lscp/client.h"], [
219      lscp_channel_info_t info;      lscp_channel_info_t info;
220      char ch = info.audio_routing[0][0];      char ch = info.audio_routing[0][0];
221      ], ac_audio_routing="no", ac_audio_routing="yes")      ], ac_cv_audio_routing="no", ac_cv_audio_routing="yes")
222  ])  ])
223    ac_audio_routing=$ac_cv_audio_routing
224  if test "x$ac_audio_routing" = "xyes"; then  if test "x$ac_audio_routing" = "xyes"; then
225     AC_DEFINE(CONFIG_AUDIO_ROUTING, 1, [Define if audio_routing is an integer array.])     AC_DEFINE(CONFIG_AUDIO_ROUTING, 1, [Define if audio_routing is an integer array.])
226  fi  fi
# Line 233  if test "x$ac_edit_instrument" = "xyes"; Line 236  if test "x$ac_edit_instrument" = "xyes";
236  fi  fi
237    
238  AC_CACHE_CHECK([for CHANNEL_MIDI LSCP event support in liblscp],  AC_CACHE_CHECK([for CHANNEL_MIDI LSCP event support in liblscp],
239    ac_lscp_channel_midi_event, [    ac_cv_channel_midi_event, [
240    AC_TRY_COMPILE([    AC_TRY_COMPILE([
241          #include "lscp/client.h"          #include "lscp/client.h"
242          #include "lscp/event.h"          #include "lscp/event.h"
243          ], [          ], [
244          lscp_event_t ev;          lscp_event_t ev;
245          ev = LSCP_EVENT_CHANNEL_MIDI;          ev = LSCP_EVENT_CHANNEL_MIDI;
246      ], ac_lscp_channel_midi_event="yes", ac_lscp_channel_midi_event="no")      ], ac_cv_channel_midi_event="yes", ac_cv_channel_midi_event="no")
247  ])  ])
248  if test "x$ac_lscp_channel_midi_event" = "xyes"; then  ac_channel_midi_event=$ac_cv_channel_midi_event
249    if test "x$ac_channel_midi_event" = "xyes"; then
250     AC_DEFINE(CONFIG_EVENT_CHANNEL_MIDI, 1, [Define if LSCP CHANNEL_MIDI event support is available.])     AC_DEFINE(CONFIG_EVENT_CHANNEL_MIDI, 1, [Define if LSCP CHANNEL_MIDI event support is available.])
251  fi  fi
252    
253  AC_CACHE_CHECK([for DEVICE_MIDI LSCP event support in liblscp],  AC_CACHE_CHECK([for DEVICE_MIDI LSCP event support in liblscp],
254    ac_lscp_device_midi_event, [    ac_cv_device_midi_event, [
255    AC_TRY_COMPILE([    AC_TRY_COMPILE([
256          #include "lscp/client.h"          #include "lscp/client.h"
257          #include "lscp/event.h"          #include "lscp/event.h"
258          ], [          ], [
259          lscp_event_t ev;          lscp_event_t ev;
260          ev = LSCP_EVENT_DEVICE_MIDI;          ev = LSCP_EVENT_DEVICE_MIDI;
261      ], ac_lscp_device_midi_event="yes", ac_lscp_device_midi_event="no")      ], ac_cv_device_midi_event="yes", ac_cv_device_midi_event="no")
262  ])  ])
263  if test "x$ac_lscp_device_midi_event" = "xyes"; then  ac_device_midi_event=$ac_cv_device_midi_event
264    if test "x$ac_device_midi_event" = "xyes"; then
265     AC_DEFINE(CONFIG_EVENT_DEVICE_MIDI, 1, [Define if LSCP DEVICE_MIDI event support is available.])     AC_DEFINE(CONFIG_EVENT_DEVICE_MIDI, 1, [Define if LSCP DEVICE_MIDI event support is available.])
266  fi  fi
267    
# Line 346  echo "  GigaSampler instrument file supp Line 351  echo "  GigaSampler instrument file supp
351  if test "x$ac_libgig" = "xyes"; then  if test "x$ac_libgig" = "xyes"; then
352  echo "  libgig supports fast information retrieval . . . .: $have_libgig_setautoload"  echo "  libgig supports fast information retrieval . . . .: $have_libgig_setautoload"
353  fi  fi
354  echo "  LSCP channel MIDI event support  . . . . . . . . .: $ac_lscp_channel_midi_event"  echo "  LSCP channel MIDI event support  . . . . . . . . .: $ac_channel_midi_event"
355  echo "  LSCP device MIDI event support . . . . . . . . . .: $ac_lscp_device_midi_event"  echo "  LSCP device MIDI event support . . . . . . . . . .: $ac_device_midi_event"
356  echo "  LSCP runtime max. voices / disk streams support  .: $ac_max_voices"  echo "  LSCP runtime max. voices / disk streams support  .: $ac_max_voices"
357  echo  echo
358  echo "  Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix"  echo "  Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix"

Legend:
Removed from v.1816  
changed lines
  Added in v.1820

  ViewVC Help
Powered by ViewVC