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

Diff of /linuxsampler/trunk/configure.in

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

revision 1432 by schoenebeck, Mon Oct 15 12:14:13 2007 UTC revision 1560 by schoenebeck, Thu Dec 6 17:19:16 2007 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
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=3
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 79  if ! echo "X $CXXFLAGS " | grep -q -- " Line 79  if ! echo "X $CXXFLAGS " | grep -q -- "
79  fi  fi
80  AC_SUBST([CXX_CPU_SWITCH])  AC_SUBST([CXX_CPU_SWITCH])
81    
82    # check if we're on MS Windows
83    AC_CHECK_HEADERS(
84        mmsystem.h,
85        have_windows=1,
86        have_windows=0
87    )
88    AM_CONDITIONAL(HAVE_WINDOWS, test $have_windows = "1")
89    
90  AC_MSG_CHECKING([whether UNIX98 compatible])  AC_MSG_CHECKING([whether UNIX98 compatible])
91  AC_LANG_SAVE  AC_LANG_SAVE
92  AC_LANG_C  AC_LANG_C
# Line 101  have_unix98="no" Line 109  have_unix98="no"
109  )  )
110  AC_LANG_RESTORE  AC_LANG_RESTORE
111  AC_MSG_RESULT([$have_unix98])  AC_MSG_RESULT([$have_unix98])
112  if test "$have_unix98" = "no"; then  if test "$have_unix98" = "no" -a "have_windows" = "0"; then
113      if test "x$HAVE_UNIX98" = "x"; then      if test "x$HAVE_UNIX98" = "x"; then
114          echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"          echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"
115          echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run          echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run
# Line 114  fi Line 122  fi
122  # check for <features.h>  # check for <features.h>
123  AC_CHECK_HEADERS(features.h)  AC_CHECK_HEADERS(features.h)
124    
125    # test for POSIX thread library
126    m4_ifdef([m4_include(m4/pthread.m4)],,
127                 [sinclude([m4/pthread.m4])])
128    ACX_PTHREAD
129    LIBS="$PTHREAD_LIBS $LIBS"
130    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
131    CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
132    CC="$PTHREAD_CC"
133    
134    # check for a bug in NPTL-enabled glibc
135    # (see Gentoo bug report #194076)
136    AC_ARG_ENABLE(nptl-bug-check,
137      [  --disable-nptl-bug-check
138                              Disable check for a bug in certain NPTL-enabled
139                              glibc versions that caused crashs.],
140      [config_check_nptl_bug="$enableval"],
141      [config_check_nptl_bug="yes"]
142    )
143    if test "$config_check_nptl_bug" = "yes"; then
144        m4_ifdef([m4_include(m4/nptl_bug.m4)],,
145                 [sinclude([m4/nptl_bug.m4])])
146        ACX_NPTL_GLIBC_BUG([
147            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
148            echo "You seem to have a buggy PTHREAD library! LinuxSampler would"
149            echo "probably crash due to this. Please report us the system you are"
150            echo "using and/or file a bug report to the bug tracking system of"
151            echo "your distribution."
152            echo "If you have a NPTL-enabled glibc AND it was compiled for TLS as"
153            echo "well, you can try to circumvent this problem for now by setting"
154            echo "the environment variable LD_ASSUME_KERNEL=\"2.4.1\" , which"
155            echo "should cause this test to pass."
156            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
157            AC_MSG_ERROR([possibly NPTL glibc bug detected])
158        ])
159    else
160        echo "NPTL glibc bug check disabled"
161    fi
162    
163    
164    
165  ###########################################################################  ###########################################################################
166  # Checks for available audio and MIDI systems / drivers  # Checks for available audio and MIDI systems / drivers
# Line 247  fi Line 294  fi
294  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
295  AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])  AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])
296    
297    # ASIO AUDIO (Win32)
298    AC_ARG_ENABLE(asiosdk-dir,
299      [  --enable-asiosdk-dir
300                              Directory where the ASIO SDK is located, this automatically
301                              enables the compilation of the ASIO audio output driver.],
302      [config_asiosdk_dir="${enableval}"],
303      [config_asiosdk_dir="."]
304    )
305    AC_SUBST(config_asiosdk_dir)
306    
307    AC_ARG_ENABLE(asio-driver,
308      [  --disable-asio-driver
309                              Disable support for the Windows ASIO driver.],
310      [config_asio_driver="$enableval"],
311      [config_asio_driver="yes"]
312    )
313    have_asio=0
314    ASIOSDK_BASEDIR=
315    if test "$config_asio_driver" = "yes"; then
316        asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h
317        echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...."
318        if test -e $asiosdk_headerfile ; then
319            echo yes
320            have_asio=1
321            ASIOSDK_BASEDIR="$config_asiosdk_dir"
322        else
323            echo no
324            have_asio=0
325        fi
326        if test "$have_asio" = "1"; then
327            have_audio_output_driver="true"
328        fi
329    else
330        echo "Windows ASIO support disabled by configure script parameter"
331    fi
332    AC_SUBST(ASIOSDK_BASEDIR)
333    AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1")
334    AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.])
335    
336  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
337  AC_ARG_ENABLE(midishare-driver,  AC_ARG_ENABLE(midishare-driver,
338    [  --disable-midishare-driver    [  --disable-midishare-driver
# Line 295  fi Line 381  fi
381  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
382  AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.])  AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.])
383    
384    # MME MIDI (Win32)
385    AC_ARG_ENABLE(mmemidi-driver,
386      [  --disable-mmemidi-driver
387                              Disable support for the Windows MME MIDI system.],
388      [config_mmemidi_driver="$enableval"],
389      [config_mmemidi_driver="yes"]
390    )
391    have_mmemidi=0
392    if test "$config_mmemidi_driver" = "yes"; then
393        AC_CHECK_HEADERS(mmsystem.h,
394            have_mmemidi=1,
395            have_mmemidi=0
396        )
397        if test "$have_mmemidi" = "1"; then
398            have_midi_input_driver="true"
399        fi
400    else
401        echo "MME MIDI support disabled by configure script parameter"
402    fi
403    AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")
404    AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.])
405    
406  # 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 ?
407  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
408      echo "No supported MIDI input system found!"      echo "No supported MIDI input system found!"
# Line 317  fi Line 425  fi
425  # Checks for various DLL libraries  # Checks for various DLL libraries
426    
427  # Check presence of libgig  # Check presence of libgig
428  libgig_version="3.2.0"  libgig_version="3.2.1"
429  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)
430  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
431      echo "Required libgig version not found!"      echo "Required libgig version not found!"

Legend:
Removed from v.1432  
changed lines
  Added in v.1560

  ViewVC Help
Powered by ViewVC