/[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 1375 by schoenebeck, Wed Oct 3 18:41:09 2007 UTC revision 1454 by schoenebeck, Fri Oct 19 17:52:15 2007 UTC
# Line 4  AC_INIT(configure.in) Line 4  AC_INIT(configure.in)
4  # LinuxSampler's / liblinuxsampler's "official" release version:  # LinuxSampler's / liblinuxsampler's "official" release version:
5    
6  LINUXSAMPLER_RELEASE_MAJOR=0  LINUXSAMPLER_RELEASE_MAJOR=0
7  LINUXSAMPLER_RELEASE_MINOR=4  LINUXSAMPLER_RELEASE_MINOR=5
8  LINUXSAMPLER_RELEASE_BUILD=0.7cvs  LINUXSAMPLER_RELEASE_BUILD=0
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.7cvs Line 24  LINUXSAMPLER_RELEASE_BUILD=0.7cvs
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=0  LIBLINUXSAMPLER_LT_CURRENT=1
28  LIBLINUXSAMPLER_LT_REVISION=0  LIBLINUXSAMPLER_LT_REVISION=0
29  LIBLINUXSAMPLER_LT_AGE=0  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"
# Line 114  fi Line 114  fi
114  # check for <features.h>  # check for <features.h>
115  AC_CHECK_HEADERS(features.h)  AC_CHECK_HEADERS(features.h)
116    
117    # test for POSIX thread library
118    m4_ifdef([m4_include(m4/pthread.m4)],,
119                 [sinclude([m4/pthread.m4])])
120    ACX_PTHREAD
121    LIBS="$PTHREAD_LIBS $LIBS"
122    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
123    CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
124    CC="$PTHREAD_CC"
125    
126    # check for a bug in NPTL-enabled glibc
127    # (see Gentoo bug report #194076)
128    AC_ARG_ENABLE(nptl-bug-check,
129      [  --disable-nptl-bug-check
130                              Disable check for a bug in certain NPTL-enabled
131                              glibc versions that caused crashs.],
132      [config_check_nptl_bug="$enableval"],
133      [config_check_nptl_bug="yes"]
134    )
135    if test "$config_check_nptl_bug" = "yes"; then
136        m4_ifdef([m4_include(m4/nptl_bug.m4)],,
137                 [sinclude([m4/nptl_bug.m4])])
138        ACX_NPTL_GLIBC_BUG([
139            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
140            echo "You seem to have a buggy PTHREAD library! LinuxSampler would"
141            echo "probably crash due to this. Please report us the system you are"
142            echo "using and/or file a bug report to the bug tracking system of"
143            echo "your distribution."
144            echo "If you have a NPTL-enabled glibc AND it was compiled for TLS as"
145            echo "well, you can try to circumvent this problem for now by setting"
146            echo "the environment variable LD_ASSUME_KERNEL=\"2.4.1\" , which"
147            echo "should cause this test to pass."
148            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
149            AC_MSG_ERROR([possibly NPTL glibc bug detected])
150        ])
151    else
152        echo "NPTL glibc bug check disabled"
153    fi
154    
155    
156    
157  ###########################################################################  ###########################################################################
158  # Checks for available audio and MIDI systems / drivers  # Checks for available audio and MIDI systems / drivers
# Line 317  fi Line 356  fi
356  # Checks for various DLL libraries  # Checks for various DLL libraries
357    
358  # Check presence of libgig  # Check presence of libgig
359  libgig_version="3.1.1"  libgig_version="3.2.0"
360  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)
361  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
362      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 384  if test "$config_asm" = "yes"; then Line 423  if test "$config_asm" = "yes"; then
423  fi  fi
424    
425  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
426    [  --disable-dev-mode    [  --enable-dev-mode
427                            Disable development mode (default=on). In that mode                            Enable development mode (default=off). In that mode
428                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
429                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
430                            efficiency a bit],                            efficiency a bit],
431    [config_dev_mode="$enableval"],    [config_dev_mode="$enableval"],
432    [config_dev_mode="yes"]    [config_dev_mode="no"]
433  )  )
434  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
435    AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.])    AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.])
# Line 875  AC_DEFINE_UNQUOTED( Line 914  AC_DEFINE_UNQUOTED(
914      "$config_default_instruments_db_file",      "$config_default_instruments_db_file",
915      [Only when instruments DB feature is enabled: default location of the DB file.]      [Only when instruments DB feature is enabled: default location of the DB file.]
916  )  )
917    AC_SUBST(config_default_instruments_db_file)
918    
919    
920  ###########################################################################  ###########################################################################

Legend:
Removed from v.1375  
changed lines
  Added in v.1454

  ViewVC Help
Powered by ViewVC