/[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 1931 by persson, Sat Jul 4 14:58:34 2009 UTC revision 2343 by persson, Sun Apr 29 16:14:45 2012 UTC
# Line 3  AC_INIT(configure.in) Line 3  AC_INIT(configure.in)
3  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
4  # LinuxSampler's / liblinuxsampler's "official" release version:  # LinuxSampler's / liblinuxsampler's "official" release version:
5    
6  LINUXSAMPLER_RELEASE_MAJOR=0  LINUXSAMPLER_RELEASE_MAJOR=1
7  LINUXSAMPLER_RELEASE_MINOR=5  LINUXSAMPLER_RELEASE_MINOR=0
8  LINUXSAMPLER_RELEASE_BUILD=1.12cvs  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 24  LINUXSAMPLER_RELEASE_BUILD=1.12cvs Line 24  LINUXSAMPLER_RELEASE_BUILD=1.12cvs
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=2  LIBLINUXSAMPLER_LT_CURRENT=3
28  LIBLINUXSAMPLER_LT_REVISION=0  LIBLINUXSAMPLER_LT_REVISION=0
29  LIBLINUXSAMPLER_LT_AGE=1  LIBLINUXSAMPLER_LT_AGE=0
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=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,
516  if test $config_have_lv2 = "no"; then    [config_have_lv2="yes"
517      AC_CHECK_HEADER(lv2.h, config_have_lv2="yes", config_have_lv2="no")    AC_DEFINE(HAVE_LV2_PACKAGE, 1,
518  fi              [Define to 1 if you have the lv2 package installed.])],
519      [config_have_lv2="no"
520      PKG_CHECK_MODULES(LV2, lv2core, config_have_lv2="yes",
521        [AC_CHECK_HEADER(lv2.h, config_have_lv2="yes")])])
522    
523    AC_SUBST(LV2_CFLAGS)
524    AC_SUBST(LV2_LIBS)
525  AM_CONDITIONAL(HAVE_LV2, test $config_have_lv2 = "yes")  AM_CONDITIONAL(HAVE_LV2, test $config_have_lv2 = "yes")
526    
527  # VST  # VST
# Line 528  AC_CHECK_HEADERS(AudioUnit/AudioUnit.h, Line 547  AC_CHECK_HEADERS(AudioUnit/AudioUnit.h,
547  AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes")  AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes")
548  AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "")  AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "")
549    
550    if test $config_have_au = "yes" ; then
551        if test "x$DEVELOPER_EXTRAS_DIR" = "x" ; then
552            if test -d /Developer/Extras ; then
553                DEVELOPER_EXTRAS_DIR=/Developer/Extras
554            else      
555                DEVELOPER_EXTRAS_DIR=/Developer/Examples
556            fi
557        fi
558        AC_SUBST(DEVELOPER_EXTRAS_DIR)
559    fi
560    
561    if test "x$MAC_PLUGIN_INSTALL_DIR" = "x" ; then
562        MAC_PLUGIN_INSTALL_DIR=/Library/Audio/Plug-Ins
563    fi
564    AC_SUBST(MAC_PLUGIN_INSTALL_DIR)
565    
566  # 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 ?
567  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
# Line 551  fi Line 585  fi
585  # Checks for various DLL libraries  # Checks for various DLL libraries
586    
587  # Check presence of libgig  # Check presence of libgig
588  libgig_version="3.2.1"  libgig_version="3.3.0"
589  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)
590  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
591      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 563  fi Line 597  fi
597  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
598  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
599    
600    # SF2 Engine (requires libgig)
601    AC_ARG_ENABLE(sf2-engine,
602      [  --disable-sf2-engine
603                              Disable compilation of the SF2 engine.
604                              You need to have libgig installed.],
605      [config_sf2_engine="$enableval"],
606      [config_sf2_engine="yes"]
607    )
608    HAVE_SF2=0;
609    if test "$config_sf2_engine" = "yes"; then
610        HAVE_SF2=1
611    else
612        echo "SF2 engine disabled by configure script parameter"
613    fi
614    AM_CONDITIONAL(HAVE_SF2, test $HAVE_SF2 = 1)
615    AC_DEFINE_UNQUOTED(HAVE_SF2,$HAVE_SF2,[Define to 1 if you want SF2 engine and have libsf2 installed.])
616    config_have_sf2="no"
617    if test $HAVE_SF2 = "1"; then
618        config_have_sf2="yes"
619    fi
620    
621    # Check presence of libsndfile
622    libsndfile_version="1.0"
623    PKG_CHECK_MODULES(SNDFILE, sndfile >= $libsndfile_version, HAVE_SNDFILE=true, HAVE_SNDFILE=false)
624    if test "$HAVE_SNDFILE" = "false"; then
625        echo "Required libsndfile version not found!"
626        echo "You need to have libsndfile version ${libsndfile_version} installed!"
627        exit -1;
628    else
629        echo "yes, found libsndfile $libsndfile_version"
630    fi
631    AC_SUBST(SNDFILE_CFLAGS)
632    AC_SUBST(SNDFILE_LIBS)
633    
634    # Check for Vorbis support in libsndfile
635    linuxsampler_save_CFLAGS=$CFLAGS
636    CFLAGS="$SNDFILE_CFLAGS $CFLAGS"
637    AC_CHECK_DECLS([SF_FORMAT_VORBIS], [], [], [[#include <sndfile.h>]])
638    
639    # Check for loop functionality in libsndfile
640    AC_CHECK_MEMBERS([SF_INSTRUMENT.loops],,
641                     [AC_MSG_WARN([Your version of libsndfile does not support
642        reading of loop information. LinuxSampler will not be able to
643        extract loop information from sample files.])],
644                     [#include <sndfile.h>])
645    CFLAGS=$linuxsampler_save_CFLAGS
646    
647  # Instruments DB feature (requires SQLite 3.3)  # Instruments DB feature (requires SQLite 3.3)
648  AC_ARG_ENABLE(instruments-db,  AC_ARG_ENABLE(instruments-db,
649    [  --disable-instruments-db    [  --disable-instruments-db
# Line 658  if test "$config_rt_exceptions" = "yes"; Line 739  if test "$config_rt_exceptions" = "yes";
739    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.])
740  fi  fi
741    
742    config_pthread_testcancel="$mac"
743  AC_ARG_ENABLE(pthread-testcancel,  AC_ARG_ENABLE(pthread-testcancel,
744    [  --enable-pthread-testcancel    [  --enable-pthread-testcancel
745                            Enable pthread_testcancel() calls and avoid asynchronous                            Enable pthread_testcancel() calls and avoid
746                            cancel of pthreads (default=no).],                            asynchronous cancel of pthreads (default=yes
747                              for Mac targets, no otherwise).],
748    [config_pthread_testcancel="$enableval"],    [config_pthread_testcancel="$enableval"],
749    [config_pthread_testcancel="no"]    [])
 )  
750  if test "$config_pthread_testcancel" = "yes"; then  if test "$config_pthread_testcancel" = "yes"; then
751    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.])
752  fi  fi
# Line 1250  AC_OUTPUT( \ Line 1332  AC_OUTPUT( \
1332      src/network/Makefile \      src/network/Makefile \
1333      src/engines/Makefile \      src/engines/Makefile \
1334      src/engines/gig/Makefile \      src/engines/gig/Makefile \
1335        src/engines/sf2/Makefile \
1336        src/engines/sfz/Makefile \
1337      src/engines/common/Makefile \      src/engines/common/Makefile \
1338      src/effects/Makefile \      src/effects/Makefile \
1339      src/common/Makefile \      src/common/Makefile \
# Line 1340  echo "#--------------------------------- Line 1424  echo "#---------------------------------
1424  echo "# Audio Output Drivers:"  echo "# Audio Output Drivers:"
1425  echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack}, ARTS: ${config_have_arts}, CoreAudio: ${config_have_coreaudio}, ASIO: ${config_have_asio}"  echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack}, ARTS: ${config_have_arts}, CoreAudio: ${config_have_coreaudio}, ASIO: ${config_have_asio}"
1426  echo "#-------------------------------------------------------------------"  echo "#-------------------------------------------------------------------"
1427    echo "# Sampler Engines:"
1428    echo "# GIG: yes, SF2: ${config_have_sf2}, SFZ: yes"
1429    echo "#-------------------------------------------------------------------"
1430    echo "# Effect plugin systems for internal effects:"
1431    echo "# LADSPA: yes"
1432    echo "#-------------------------------------------------------------------"
1433  echo "# Building sampler as plugin for following host standards:"  echo "# Building sampler as plugin for following host standards:"
1434  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}"
1435  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"

Legend:
Removed from v.1931  
changed lines
  Added in v.2343

  ViewVC Help
Powered by ViewVC