/[svn]/qsampler/trunk/configure.ac
ViewVC logotype

Diff of /qsampler/trunk/configure.ac

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

revision 1166 by capela, Sat May 5 11:57:28 2007 UTC revision 1461 by schoenebeck, Sun Oct 28 23:30:36 2007 UTC
# Line 1  Line 1 
1  # Process this file with autoconf to produce a configure script.  # Process this file with autoconf to produce a configure script.
2  AC_INIT(Qsampler, 0.1.4, rncbc@rncbc.org, qsampler)  AC_INIT(Qsampler, 0.1.5.1, rncbc@rncbc.org, qsampler)
3  AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui.h)  AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui.h)
4  AC_CONFIG_HEADERS(config.h)  AC_CONFIG_HEADERS(config.h)
5  AC_CONFIG_FILES(Makefile qsampler.pro qsampler.spec)  AC_CONFIG_FILES(Makefile qsampler.pro qsampler.spec qsampler.desktop)
6    
7  # Set default installation prefix.  # Set default installation prefix.
8  AC_PREFIX_DEFAULT(/usr/local)  AC_PREFIX_DEFAULT(/usr/local)
# Line 37  ac_with_paths="/usr /usr/local" Line 37  ac_with_paths="/usr /usr/local"
37    
38  # Some a-la-debian alternatives...  # Some a-la-debian alternatives...
39  for X in /usr/lib /usr/share; do  for X in /usr/lib /usr/share; do
40    for Y in qt qt3; do    for Y in qt qt4; do
41      if test -d $X/$Y/bin; then      if test -d $X/$Y/bin; then
42        ac_with_paths="$ac_with_paths $X/$Y"        ac_with_paths="$ac_with_paths $X/$Y"
43      fi      fi
# Line 81  for X in $ac_with_paths; do Line 81  for X in $ac_with_paths; do
81      ac_path="$X/bin:$ac_path"      ac_path="$X/bin:$ac_path"
82    fi    fi
83    if test -d $X/include; then    if test -d $X/include; then
84      for Y in qt qt3; do      for Y in qt qt4; do
85        if test -d $X/include/$Y; then        if test -d $X/include/$Y; then
86          CFLAGS="-I$X/include/$Y $CFLAGS"          CFLAGS="-I$X/include/$Y $CFLAGS"
87          CPPFLAGS="-I$X/include/$Y $CPPFLAGS"          CPPFLAGS="-I$X/include/$Y $CPPFLAGS"
# Line 119  if test "x$ac_qtlib" = "xqt-mt"; then Line 119  if test "x$ac_qtlib" = "xqt-mt"; then
119  fi  fi
120  AC_SUBST(ac_thread)  AC_SUBST(ac_thread)
121    
122  AC_CACHE_CHECK([for Qt library version >= 3.1.1],  AC_CACHE_CHECK([for Qt library version >= 4.0.0],
123    ac_qtlib_version, [    ac_qtlib_version, [
124    AC_TRY_LINK([#include "qglobal.h"], [    AC_TRY_LINK([#include <Qt/qglobal.h>], [
125  #if QT_VERSION < 0x030101  #ifndef QT_VERSION
126  #error Qt library 3.1.1 or greater required.  #error QT_VERSION macro not defined!
127    #endif
128    #if QT_VERSION < 0x040000
129    #error Qt library 4.0.0 or greater required.
130  #endif  #endif
131      ],      ],
132      ac_qtlib_version="yes", [      ac_qtlib_version="yes", [
133        echo "no; Qt 3.1.1 or greater is required"        echo "no; Qt 4.0.0 or greater is required"
134        exit        exit
135      ])      ])
136  ])  ])
137    
138  # A common error message:  # A common error message:
139  ac_qtdir_errmsg="not found in current PATH. Maybe QT development environment isn't available (qt3-devel)."  ac_qtdir_errmsg="not found in current PATH. Maybe QT development environment isn't available (qt4-devel)."
140    
141  # Check for Qt qmake utility.  # Check for Qt qmake utility.
142  AC_PATH_PROG(ac_qmake, qmake, [no], $ac_path)  AC_PATH_PROG(ac_qmake, qmake, [no], $ac_path)
# Line 240  if test "x$ac_volume" = "xyes"; then Line 243  if test "x$ac_volume" = "xyes"; then
243    AC_DEFINE(CONFIG_VOLUME, 1, [Define if global volume is available.])    AC_DEFINE(CONFIG_VOLUME, 1, [Define if global volume is available.])
244  fi  fi
245    
246    AC_CHECK_LIB(lscp, lscp_edit_channel_instrument, [ac_edit_instrument="yes"], [ac_edit_instrument="no"])
247    if test "x$ac_edit_instrument" = "xyes"; then
248      AC_DEFINE(CONFIG_EDIT_INSTRUMENT, 1, [Define if instrument editing is available.])
249    fi
250    
251  # Check for optional libraries.  # Check for optional libraries.
252  if test "x$ac_libgig" = "xyes"; then  if test "x$ac_libgig" = "xyes"; then
253     AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"])     AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"])

Legend:
Removed from v.1166  
changed lines
  Added in v.1461

  ViewVC Help
Powered by ViewVC