/[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 2137 by schoenebeck, Mon Oct 4 12:20:23 2010 UTC revision 2197 by persson, Sat Jul 2 09:55:42 2011 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.cvs8  LINUXSAMPLER_RELEASE_BUILD=0.cvs10
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 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 528  AC_CHECK_HEADERS(AudioUnit/AudioUnit.h, Line 541  AC_CHECK_HEADERS(AudioUnit/AudioUnit.h,
541  AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes")  AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes")
542  AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "")  AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "")
543    
544    if test $config_have_au = "yes" ; then
545        if test "x$DEVELOPER_EXTRAS_DIR" = "x" ; then
546            if test -d /Developer/Extras ; then
547                DEVELOPER_EXTRAS_DIR=/Developer/Extras
548            else      
549                DEVELOPER_EXTRAS_DIR=/Developer/Examples
550            fi
551        fi
552        AC_SUBST(DEVELOPER_EXTRAS_DIR)
553    fi
554    
555  # 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 ?
556  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
# Line 601  AC_SUBST(SNDFILE_LIBS) Line 624  AC_SUBST(SNDFILE_LIBS)
624  linuxsampler_save_CFLAGS=$CFLAGS  linuxsampler_save_CFLAGS=$CFLAGS
625  CFLAGS="$SNDFILE_CFLAGS $CFLAGS"  CFLAGS="$SNDFILE_CFLAGS $CFLAGS"
626  AC_CHECK_DECLS([SF_FORMAT_VORBIS], [], [] ,[[#include <sndfile.h>]])  AC_CHECK_DECLS([SF_FORMAT_VORBIS], [], [] ,[[#include <sndfile.h>]])
627    
628    # Check for loop functionality in libsndfile
629    AC_CHECK_MEMBERS([SF_INSTRUMENT.loops],,
630                     [AC_MSG_WARN([Your version of libsndfile does not support
631        reading of loop information. LinuxSampler will not be able to
632        extract loop information from sample files.])],
633                     [#include <sndfile.h>])
634  CFLAGS=$linuxsampler_save_CFLAGS  CFLAGS=$linuxsampler_save_CFLAGS
635    
636  # Instruments DB feature (requires SQLite 3.3)  # Instruments DB feature (requires SQLite 3.3)
# Line 698  if test "$config_rt_exceptions" = "yes"; Line 728  if test "$config_rt_exceptions" = "yes";
728    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.])
729  fi  fi
730    
731    config_pthread_testcancel="$mac"
732  AC_ARG_ENABLE(pthread-testcancel,  AC_ARG_ENABLE(pthread-testcancel,
733    [  --enable-pthread-testcancel    [  --enable-pthread-testcancel
734                            Enable pthread_testcancel() calls and avoid asynchronous                            Enable pthread_testcancel() calls and avoid
735                            cancel of pthreads (default=no).],                            asynchronous cancel of pthreads (default=yes
736                              for Mac targets, no otherwise).],
737    [config_pthread_testcancel="$enableval"],    [config_pthread_testcancel="$enableval"],
738    [config_pthread_testcancel="no"]    []
739  )  )
740  if test "$config_pthread_testcancel" = "yes"; then  if test "$config_pthread_testcancel" = "yes"; then
741    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.])

Legend:
Removed from v.2137  
changed lines
  Added in v.2197

  ViewVC Help
Powered by ViewVC