/[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 1508 by schoenebeck, Thu Nov 22 02:48:41 2007 UTC revision 1803 by schoenebeck, Sun Dec 7 13:58:16 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.0.11, rncbc@rncbc.org, qsampler)  AC_INIT(Qsampler, 0.2.1.20, 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 205  if test "x$ac_fxsend" = "xyes"; then Line 205  if test "x$ac_fxsend" = "xyes"; then
205    if test "x$ac_fxsend_level" = "xyes"; then    if test "x$ac_fxsend_level" = "xyes"; then
206            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.])
207    fi    fi
208      AC_CHECK_LIB(lscp, lscp_set_fxsend_name, [ac_fxsend_rename="yes"], [ac_fxsend_rename="no"])
209      if test "x$ac_fxsend_rename" = "xyes"; then
210              AC_DEFINE(CONFIG_FXSEND_RENAME, 1, [Define if FX send rename is available.])
211      fi
212  fi  fi
213    
214  AC_CACHE_CHECK([for audio_routing array type],  AC_CACHE_CHECK([for audio_routing array type],
# Line 228  if test "x$ac_edit_instrument" = "xyes"; Line 232  if test "x$ac_edit_instrument" = "xyes";
232    AC_DEFINE(CONFIG_EDIT_INSTRUMENT, 1, [Define if instrument editing is available.])    AC_DEFINE(CONFIG_EDIT_INSTRUMENT, 1, [Define if instrument editing is available.])
233  fi  fi
234    
235    AC_CACHE_CHECK([for CHANNEL_MIDI LSCP event support in liblscp],
236      ac_lscp_channel_midi_event, [
237      AC_TRY_COMPILE([
238            #include "lscp/client.h"
239            #include "lscp/event.h"
240            ], [
241            lscp_event_t ev;
242            ev = LSCP_EVENT_CHANNEL_MIDI;
243        ], ac_lscp_channel_midi_event="yes", ac_lscp_channel_midi_event="no")
244    ])
245    if test "x$ac_lscp_channel_midi_event" = "xyes"; then
246       AC_DEFINE(CONFIG_EVENT_CHANNEL_MIDI, 1, [Define if LSCP CHANNEL_MIDI event support is available.])
247    fi
248    
249    AC_CACHE_CHECK([for DEVICE_MIDI LSCP event support in liblscp],
250      ac_lscp_device_midi_event, [
251      AC_TRY_COMPILE([
252            #include "lscp/client.h"
253            #include "lscp/event.h"
254            ], [
255            lscp_event_t ev;
256            ev = LSCP_EVENT_DEVICE_MIDI;
257        ], ac_lscp_device_midi_event="yes", ac_lscp_device_midi_event="no")
258    ])
259    if test "x$ac_lscp_device_midi_event" = "xyes"; then
260       AC_DEFINE(CONFIG_EVENT_DEVICE_MIDI, 1, [Define if LSCP DEVICE_MIDI event support is available.])
261    fi
262    
263    AC_CHECK_LIB(lscp, lscp_get_voices, [ac_max_voices="yes"], [ac_max_voices="no"])
264    if test "x$ac_max_voices" = "xyes"; then
265      AC_DEFINE(CONFIG_MAX_VOICES, 1, [Define if max. voices / streams is available.])
266    fi
267    
268  # Check for optional libraries.  # Check for optional libraries.
269  if test "x$ac_libgig" = "xyes"; then  if test "x$ac_libgig" = "xyes"; then
270     AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"])     AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"])
271     if test "x$ac_libgig" = "xyes"; then     if test "x$ac_libgig" = "xyes"; then
272        AC_DEFINE(CONFIG_LIBGIG, 1, [Define if libgig is available.])        AC_DEFINE(CONFIG_LIBGIG, 1, [Define if libgig is available.])
273        ac_libs="$ac_libs -lgig"        ac_libs="$ac_libs -lgig"
274          AC_MSG_CHECKING([for gig::File::SetAutoLoad() method in libgig])
275          AC_LANG_SAVE
276          AC_LANG_CPLUSPLUS
277          CXXFLAGS="$ac_libs"
278          AC_TRY_RUN([
279    #include <stdlib.h>
280    #include <gig.h>
281    int main() {
282        gig::File file;
283        file.SetAutoLoad(false);
284        exit(0);
285    }
286          ],
287          have_libgig_setautoload="yes",
288          have_libgig_setautoload="no",
289          have_libgig_setautoload="no"
290          )
291          AC_LANG_RESTORE
292          AC_MSG_RESULT([$have_libgig_setautoload])
293          if test "x$have_libgig_setautoload" = "xyes"; then
294              AC_DEFINE(HAVE_LIBGIG_SETAUTOLOAD, 1, [Define if libgig provides gig::File::SetAutoLoad() method.])
295          fi
296     fi     fi
297  fi  fi
298    
# Line 279  echo "  LSCP mute/solo support . . . . . Line 338  echo "  LSCP mute/solo support . . . . .
338  echo "  LSCP MIDI instrument support . . . . . . . . . . .: $ac_midi_instrument"  echo "  LSCP MIDI instrument support . . . . . . . . . . .: $ac_midi_instrument"
339  echo "  LSCP FX send support . . . . . . . . . . . . . . .: $ac_fxsend"  echo "  LSCP FX send support . . . . . . . . . . . . . . .: $ac_fxsend"
340  echo "  LSCP FX send level support . . . . . . . . . . . .: $ac_fxsend_level"  echo "  LSCP FX send level support . . . . . . . . . . . .: $ac_fxsend_level"
341    echo "  LSCP FX send rename support  . . . . . . . . . . .: $ac_fxsend_rename"
342  echo "  LSCP audio routing support . . . . . . . . . . . .: $ac_audio_routing"  echo "  LSCP audio routing support . . . . . . . . . . . .: $ac_audio_routing"
343  echo "  LSCP volume support  . . . . . . . . . . . . . . .: $ac_volume"  echo "  LSCP volume support  . . . . . . . . . . . . . . .: $ac_volume"
344  echo "  LSCP edit instrument support . . . . . . . . . . .: $ac_edit_instrument"  echo "  LSCP edit instrument support . . . . . . . . . . .: $ac_edit_instrument"
345  echo "  GigaSampler instrument file support (libgig) . . .: $ac_libgig"  echo "  GigaSampler instrument file support (libgig) . . .: $ac_libgig"
346    if test "x$ac_libgig" = "xyes"; then
347    echo "  libgig supports fast information retrieval . . . .: $have_libgig_setautoload"
348    fi
349    echo "  LSCP channel MIDI event support  . . . . . . . . .: $ac_lscp_channel_midi_event"
350    echo "  LSCP device MIDI event support . . . . . . . . . .: $ac_lscp_device_midi_event"
351    echo "  LSCP runtime max. voices / disk streams support  .: $ac_max_voices"
352  echo  echo
353  echo "  Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix"  echo "  Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix"
354  echo  echo

Legend:
Removed from v.1508  
changed lines
  Added in v.1803

  ViewVC Help
Powered by ViewVC