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

Diff of /linuxsampler/trunk/configure.ac

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

revision 1502 by senoner, Wed Nov 21 07:29:52 2007 UTC revision 1741 by schoenebeck, Wed May 28 03:44:46 2008 UTC
# Line 5  AC_INIT(configure.in) Line 5  AC_INIT(configure.in)
5    
6  LINUXSAMPLER_RELEASE_MAJOR=0  LINUXSAMPLER_RELEASE_MAJOR=0
7  LINUXSAMPLER_RELEASE_MINOR=5  LINUXSAMPLER_RELEASE_MINOR=5
8  LINUXSAMPLER_RELEASE_BUILD=0  LINUXSAMPLER_RELEASE_BUILD=1.5cvs
9    
10  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
11  # 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 24  LINUXSAMPLER_RELEASE_BUILD=0 Line 24  LINUXSAMPLER_RELEASE_BUILD=0
24  #  6. If any interfaces have been removed since the last public release, then set age  #  6. If any interfaces have been removed since the last public release, then set age
25  #     to 0.  #     to 0.
26    
27  LIBLINUXSAMPLER_LT_CURRENT=1  LIBLINUXSAMPLER_LT_CURRENT=2
28  LIBLINUXSAMPLER_LT_REVISION=0  LIBLINUXSAMPLER_LT_REVISION=0
29  LIBLINUXSAMPLER_LT_AGE=0  LIBLINUXSAMPLER_LT_AGE=1
30  SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE"  SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE"
31    
32  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
33  # the LSCP specification version this LinuSampler release complies with:  # the LSCP specification version this LinuSampler release complies with:
34    
35  LSCP_RELEASE_MAJOR=1  LSCP_RELEASE_MAJOR=1
36  LSCP_RELEASE_MINOR=2  LSCP_RELEASE_MINOR=4
37    
38  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.])  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.])
39  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.])  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.])
40    
41    AC_PROG_CXX
42  AM_PROG_LIBTOOL  AM_PROG_LIBTOOL
43    
44  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
# Line 52  AC_SUBST(target_cpu) Line 53  AC_SUBST(target_cpu)
53  AC_SUBST(target_os)  AC_SUBST(target_os)
54  AC_SUBST(target_vendor)  AC_SUBST(target_vendor)
55    
56    PKG_PROG_PKG_CONFIG
57    
58  ###########################################################################  ###########################################################################
59  # General Checks  # General Checks
# Line 272  fi Line 274  fi
274  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
275  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.])
276    
277    # JACK MIDI
278    have_jack_midi=0
279    if test $have_jack = "1"; then
280        linuxsampler_save_CFLAGS=$CFLAGS
281        linuxsampler_save_LIBS=$LIBS
282        CFLAGS="$JACK_CFLAGS $CFLAGS"
283        LIBS="$JACK_LIBS $LIBS"
284        AC_CHECK_HEADER(jack/midiport.h, have_jack_midi=1, have_jack_midi=0)
285        if test $have_jack_midi = "1"; then
286            AC_CHECK_FUNCS(jack_midi_get_event_count)
287            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <jack/midiport.h>]], [[
288                jack_midi_clear_buffer(0, 0);
289            ]])], [AC_DEFINE(JACK_MIDI_FUNCS_NEED_NFRAMES, 1,
290                      [Define to 1 if you have the old jack midi functions that need an nframes argument.])])
291            have_midi_input_driver="true"
292        fi
293        CFLAGS=$linuxsampler_save_CFLAGS
294        LIBS=$linuxsampler_save_LIBS
295    fi
296    AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1")
297    AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi,
298                       [Define to 1 if you have JACK with MIDI support installed.])
299    
300  # ARTS  # ARTS
301  AC_ARG_ENABLE(arts-driver,  AC_ARG_ENABLE(arts-driver,
302    [  --disable-arts-driver    [  --disable-arts-driver
# Line 407  AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_m Line 432  AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_m
432  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
433      echo "No supported MIDI input system found!"      echo "No supported MIDI input system found!"
434      echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"      echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
435      echo "ALSA, MIDIShare, CoreMIDI."      echo "ALSA, JACK, MIDIShare, CoreMIDI, MME."
436      echo "If you think you have one of those available on your system, make sure you"      echo "If you think you have one of those available on your system, make sure you"
437      echo "also have the respective development (header) files installed."      echo "also have the respective development (header) files installed."
438      exit -1;      exit -1;
439  fi  fi
440  if test "$have_audio_output_driver" = "false"; then  if test "$have_audio_output_driver" = "false"; then
441      echo "No supported audio output system found!"      echo "No supported audio output system found!"
442      echo "Sorry, LinuxSampler only supports ALSA, JACK and ARTS as audio output"      echo "Sorry, LinuxSampler only supports ALSA, JACK, ARTS and ASIO as audio output"
443      echo "driver at the moment!"      echo "driver at the moment!"
444      exit -1;      exit -1;
445  fi  fi
# Line 425  fi Line 450  fi
450  # Checks for various DLL libraries  # Checks for various DLL libraries
451    
452  # Check presence of libgig  # Check presence of libgig
453  libgig_version="3.2.0"  libgig_version="3.2.1"
454  PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false)  PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false)
455  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
456      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 532  if test "$config_rt_exceptions" = "yes"; Line 557  if test "$config_rt_exceptions" = "yes";
557    AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.])    AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.])
558  fi  fi
559    
560    AC_ARG_ENABLE(pthread-testcancel,
561      [  --enable-pthread-testcancel
562                              Enable pthread_testcancel() calls and avoid asynchronous
563                              cancel of pthreads (default=no).],
564      [config_pthread_testcancel="$enableval"],
565      [config_pthread_testcancel="no"]
566    )
567    if test "$config_pthread_testcancel" = "yes"; then
568      AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.])
569    fi
570    
571  AC_ARG_ENABLE(preload-samples,  AC_ARG_ENABLE(preload-samples,
572    [  --enable-preload-samples    [  --enable-preload-samples
573                            Due to seeking and latency issues with hard drives                            Due to seeking and latency issues with hard drives
# Line 1081  AM_CONFIG_HEADER(config.h) Line 1117  AM_CONFIG_HEADER(config.h)
1117  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD")  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD")
1118    
1119  AC_LANG_CPLUSPLUS  AC_LANG_CPLUSPLUS
 AC_PROG_CXX  
1120    
1121  # some gcc 4.0 versions need -msse for SSE register allocations  # some gcc 4.0 versions need -msse for SSE register allocations
1122  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
# Line 1104  AC_OUTPUT( \ Line 1139  AC_OUTPUT( \
1139      src/engines/Makefile \      src/engines/Makefile \
1140      src/engines/gig/Makefile \      src/engines/gig/Makefile \
1141      src/engines/common/Makefile \      src/engines/common/Makefile \
1142        src/effects/Makefile \
1143      src/common/Makefile \      src/common/Makefile \
1144      src/testcases/Makefile \      src/testcases/Makefile \
1145      src/drivers/Makefile \      src/drivers/Makefile \

Legend:
Removed from v.1502  
changed lines
  Added in v.1741

  ViewVC Help
Powered by ViewVC