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

Diff of /gigedit/trunk/configure.ac

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

revision 1073 by persson, Mon Mar 5 20:48:23 2007 UTC revision 1236 by persson, Sat Jun 16 11:28:29 2007 UTC
# Line 1  Line 1 
1  dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
2  AC_INIT(gigedit,0.0.3)  AC_INIT(gigedit,0.0.3)
 AC_CONFIG_SRCDIR(src/main.cpp)  
3    
4  AC_CONFIG_HEADERS(config.h)  #------------------------------------------------------------------------------------
5    # The following is the libtool / shared library version. This doesn't have to
6    # do anything with the release version. It MUST conform to the following rules:
7    #
8    #  1. Start with version information of `0:0:0' for each libtool library.
9    #  2. Update the version information only immediately before a public release of
10    #     your software. More frequent updates are unnecessary, and only guarantee
11    #     that the current interface number gets larger faster.
12    #  3. If the library source code has changed at all since the last update, then
13    #     increment revision (`c:r:a' becomes `c:r+1:a').
14    #  4. If any interfaces have been added, removed, or changed since the last update,
15    #     increment current, and set revision to 0.
16    #  5. If any interfaces have been added since the last public release, then increment
17    #     age.
18    #  6. If any interfaces have been removed since the last public release, then set age
19    #     to 0.
20    
21    LIBGIGEDIT_LT_CURRENT=0
22    LIBGIGEDIT_LT_REVISION=0
23    LIBGIGEDIT_LT_AGE=0
24    SHARED_VERSION_INFO="$LIBGIGEDIT_LT_CURRENT:$LIBGIGEDIT_LT_REVISION:$LIBGIGEDIT_LT_AGE"
25    AC_PROG_LIBTOOL
26    AC_SUBST(SHLIB_VERSION_ARG)
27    AC_SUBST(SHARED_VERSION_INFO)
28    
29    # configure checks for the following file's existence to make sure that
30    # the directory that it is told contains the source code in fact does.
31    # Occasionally people accidentally specify the wrong directory with
32    # `--srcdir'; this is a safety check.
33    AC_CONFIG_SRCDIR(src/gigedit/main.cpp)
34    
35    AC_CONFIG_HEADERS(config.h)
36  AM_INIT_AUTOMAKE  AM_INIT_AUTOMAKE
37    
38  GETTEXT_PACKAGE=gigedit  GETTEXT_PACKAGE=gigedit
# Line 16  IT_PROG_INTLTOOL(0.35.0) Line 45  IT_PROG_INTLTOOL(0.35.0)
45  AM_GLIB_GNU_GETTEXT  AM_GLIB_GNU_GETTEXT
46    
47  PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.6.1 gthread-2.0)  PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.6.1 gthread-2.0)
48  PKG_CHECK_MODULES(GIG, gig >= 3.1.0)  PKG_CHECK_MODULES(GIG, gig >= 3.1.1)
49    
50    # check for presence of libsndfile
51    PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2)
52    AC_SUBST(SNDFILE_CFLAGS)
53    AC_SUBST(SNDFILE_LIBS)
54    
55    # check for (optional) presence of liblinuxsampler
56    liblinuxsampler_version="0.4.0.5cvs"
57    PKG_CHECK_MODULES(
58        LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version,
59        have_linuxsampler=1, have_linuxsampler=0
60    )
61    LINUXSAMPLER_PLUGIN_DIR=
62    if test "$have_linuxsampler" = "0"; then
63        echo "Required liblinuxsampler version not found!"
64        echo "You need to have liblinuxsampler version ${liblinuxsampler_version}"
65        echo "installed. Support for on-the-fly editing with LinuxSampler will"
66        echo "be disabled."
67    else
68        echo "Found linuxsampler $liblinuxsampler_version"
69        echo -n "Retrieving LinuxSampler's plugin dir... "
70        LINUXSAMPLER_PLUGIN_DIR=`pkg-config --variable plugindir linuxsampler`
71        if test "$LINUXSAMPLER_PLUGIN_DIR" = ""; then
72            have_linuxsampler=0
73            echo "Error"
74            echo "Could not retrieve LinuxSampler's plugin directory. Support"
75            echo "for on-the-fly editing with LinuxSampler will be disabled."
76        else
77            echo "${LINUXSAMPLER_PLUGIN_DIR} "
78        fi
79    fi
80    AC_SUBST(LINUXSAMPLER_CFLAGS)
81    AC_SUBST(LINUXSAMPLER_LIBS)
82    AC_SUBST(LINUXSAMPLER_PLUGIN_DIR)
83    AM_CONDITIONAL(HAVE_LINUXSAMPLER, test $have_linuxsampler = "1")
84    AC_DEFINE_UNQUOTED(
85        HAVE_LINUXSAMPLER, $have_linuxsampler,
86        [Define to 1 if you have LinuxSampler installed.]
87    )
88    
89  AC_CONFIG_FILES([  AC_CONFIG_FILES([
90  Makefile          Makefile
91  src/Makefile          src/Makefile
92  po/Makefile.in          src/gigedit/Makefile
93            src/plugin/Makefile
94            po/Makefile.in
95            debian/Makefile
96            doc/Makefile
97            doc/quickstart/Makefile
98  ])  ])
99  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.1073  
changed lines
  Added in v.1236

  ViewVC Help
Powered by ViewVC