/[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 2012 by iliev, Fri Oct 23 17:53:17 2009 UTC revision 2356 by persson, Sun Jul 8 14:44:47 2012 UTC
# Line 5  AC_INIT(configure.in) Line 5  AC_INIT(configure.in)
5    
6  LINUXSAMPLER_RELEASE_MAJOR=1  LINUXSAMPLER_RELEASE_MAJOR=1
7  LINUXSAMPLER_RELEASE_MINOR=0  LINUXSAMPLER_RELEASE_MINOR=0
8  LINUXSAMPLER_RELEASE_BUILD=0.cvs1  LINUXSAMPLER_RELEASE_BUILD=0.svn18
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 33  SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT Line 33  SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT
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=4  LSCP_RELEASE_MINOR=5
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.])
# Line 78  if ! echo "X $CXXFLAGS " | grep -q -- " Line 78  if ! echo "X $CXXFLAGS " | grep -q -- "
78  fi  fi
79  AC_SUBST([CXX_CPU_SWITCH])  AC_SUBST([CXX_CPU_SWITCH])
80    
81    mac=no
82    linux=no
83    case "$host" in
84        *-*-darwin*)
85            mac=yes
86            ;;
87        *-*-linux*)
88            linux=yes
89            ;;
90    esac
91    AM_CONDITIONAL(LINUX, test "$linux" = yes)
92    AM_CONDITIONAL(MAC, test "$mac" = yes)
93    
94  # check if we're on MS Windows  # check if we're on MS Windows
95  AC_CHECK_HEADERS(  AC_CHECK_HEADERS(
96      mmsystem.h,      mmsystem.h,
# Line 499  AC_CHECK_HEADERS(dssi.h, Line 512  AC_CHECK_HEADERS(dssi.h,
512  AM_CONDITIONAL(HAVE_DSSI, test $config_have_dssi = "yes")  AM_CONDITIONAL(HAVE_DSSI, test $config_have_dssi = "yes")
513    
514  # LV2  # LV2
515  PKG_CHECK_MODULES(LV2, lv2core, config_have_lv2="yes", config_have_lv2="no")  PKG_CHECK_MODULES(LV2, lv2 >= 1.0.0, config_have_lv2="yes", config_have_lv2="no")
516  if test $config_have_lv2 = "no"; then  AC_SUBST(LV2_CFLAGS)
517      AC_CHECK_HEADER(lv2.h, config_have_lv2="yes", config_have_lv2="no")  AC_SUBST(LV2_LIBS)
 fi  
518  AM_CONDITIONAL(HAVE_LV2, test $config_have_lv2 = "yes")  AM_CONDITIONAL(HAVE_LV2, test $config_have_lv2 = "yes")
519    
520  # VST  # VST
# Line 528  AC_CHECK_HEADERS(AudioUnit/AudioUnit.h, Line 540  AC_CHECK_HEADERS(AudioUnit/AudioUnit.h,
540  AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes")  AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes")
541  AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "")  AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "")
542    
543    if test $config_have_au = "yes" ; then
544        if test "x$DEVELOPER_EXTRAS_DIR" = "x" ; then
545            if test -d /Developer/Extras ; then
546                DEVELOPER_EXTRAS_DIR=/Developer/Extras
547            else      
548                DEVELOPER_EXTRAS_DIR=/Developer/Examples
549            fi
550        fi
551        AC_SUBST(DEVELOPER_EXTRAS_DIR)
552    fi
553    
554    if test "x$MAC_PLUGIN_INSTALL_DIR" = "x" ; then
555        MAC_PLUGIN_INSTALL_DIR=/Library/Audio/Plug-Ins
556    fi
557    AC_SUBST(MAC_PLUGIN_INSTALL_DIR)
558    
559  # have we found at least one MIDI input and one audio output driver ?  # have we found at least one MIDI input and one audio output driver ?
560  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
# Line 563  fi Line 590  fi
590  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
591  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
592    
593  # SF2 Engine (requires libsf2)  # SF2 Engine (requires libgig)
594  AC_ARG_ENABLE(sf2-engine,  AC_ARG_ENABLE(sf2-engine,
595    [  --disable-sf2-engine    [  --disable-sf2-engine
596                            Disable compilation of the SF2 engine.                            Disable compilation of the SF2 engine.
597                            You need to have libsf2 installed.],                            You need to have libgig installed.],
598    [config_sf2_engine="$enableval"],    [config_sf2_engine="$enableval"],
599    [config_sf2_engine="yes"]    [config_sf2_engine="yes"]
600  )  )
601  HAVE_SF2=0;  HAVE_SF2=0;
602  if test "$config_sf2_engine" = "yes"; then  if test "$config_sf2_engine" = "yes"; then
603      # Check presence of libsf2      HAVE_SF2=1
     libsf2_version="0.0.1"  
     PKG_CHECK_MODULES(SF2, sf2 >= $libsf2_version, HAVE_SF2=true, HAVE_SF2=false)  
     AC_SUBST(SF2_LIBS)  
     AC_SUBST(SF2_CFLAGS)  
     if test $HAVE_SF2 = false; then  
         HAVE_SF2=0  
         config_sf2_engine="no"  
         echo "*** Required libsf2 version not found!"  
         echo "*** You need to have libsf2 version ${libsf2_version} or higher"  
         echo "*** for SF2 engine to be enabled."  
         echo "*** Support for SF2 instruments will be disabled!"  
     else  
         HAVE_SF2=1  
     fi  
604  else  else
605      echo "SF2 engine disabled by configure script parameter"      echo "SF2 engine disabled by configure script parameter"
606  fi  fi
# Line 611  fi Line 624  fi
624  AC_SUBST(SNDFILE_CFLAGS)  AC_SUBST(SNDFILE_CFLAGS)
625  AC_SUBST(SNDFILE_LIBS)  AC_SUBST(SNDFILE_LIBS)
626    
627    # Check for Vorbis support in libsndfile
628    linuxsampler_save_CFLAGS=$CFLAGS
629    CFLAGS="$SNDFILE_CFLAGS $CFLAGS"
630    AC_CHECK_DECLS([SF_FORMAT_VORBIS], [], [], [[#include <sndfile.h>]])
631    
632    # Check for loop functionality in libsndfile
633    AC_CHECK_MEMBERS([SF_INSTRUMENT.loops],,
634                     [AC_MSG_WARN([Your version of libsndfile does not support
635        reading of loop information. LinuxSampler will not be able to
636        extract loop information from sample files.])],
637                     [#include <sndfile.h>])
638    CFLAGS=$linuxsampler_save_CFLAGS
639    
640  # Instruments DB feature (requires SQLite 3.3)  # Instruments DB feature (requires SQLite 3.3)
641  AC_ARG_ENABLE(instruments-db,  AC_ARG_ENABLE(instruments-db,
642    [  --disable-instruments-db    [  --disable-instruments-db
# Line 706  if test "$config_rt_exceptions" = "yes"; Line 732  if test "$config_rt_exceptions" = "yes";
732    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.])
733  fi  fi
734    
735    config_pthread_testcancel="$mac"
736  AC_ARG_ENABLE(pthread-testcancel,  AC_ARG_ENABLE(pthread-testcancel,
737    [  --enable-pthread-testcancel    [  --enable-pthread-testcancel
738                            Enable pthread_testcancel() calls and avoid asynchronous                            Enable pthread_testcancel() calls and avoid
739                            cancel of pthreads (default=no).],                            asynchronous cancel of pthreads (default=yes
740                              for Mac targets, no otherwise).],
741    [config_pthread_testcancel="$enableval"],    [config_pthread_testcancel="$enableval"],
742    [config_pthread_testcancel="no"]    [])
 )  
743  if test "$config_pthread_testcancel" = "yes"; then  if test "$config_pthread_testcancel" = "yes"; then
744    AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.])    AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.])
745  fi  fi
# Line 1393  echo "#--------------------------------- Line 1420  echo "#---------------------------------
1420  echo "# Sampler Engines:"  echo "# Sampler Engines:"
1421  echo "# GIG: yes, SF2: ${config_have_sf2}, SFZ: yes"  echo "# GIG: yes, SF2: ${config_have_sf2}, SFZ: yes"
1422  echo "#-------------------------------------------------------------------"  echo "#-------------------------------------------------------------------"
1423    echo "# Effect plugin systems for internal effects:"
1424    echo "# LADSPA: yes"
1425    echo "#-------------------------------------------------------------------"
1426  echo "# Building sampler as plugin for following host standards:"  echo "# Building sampler as plugin for following host standards:"
1427  echo "# DSSI: ${config_have_dssi}, LV2: ${config_have_lv2}, VST: ${config_have_vst}, AU: ${config_have_au}"  echo "# DSSI: ${config_have_dssi}, LV2: ${config_have_lv2}, VST: ${config_have_vst}, AU: ${config_have_au}"
1428  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"

Legend:
Removed from v.2012  
changed lines
  Added in v.2356

  ViewVC Help
Powered by ViewVC