Move channel buffers from stack to structs so theyt can be reused when mixing with...
[jack_mixer.git] / configure.ac
blob255d1a70f39628e0d5982d8eb152793cbec4d72c
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 # This file is part of jack_mixer
6 # Copyright (C) 2007 Nedko Arnaudov <nedko@arnaudov.name>
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; version 2 of the License
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 AC_PREREQ(2.61)
23 AC_INIT(jack_mixer, dev)
24 AC_CONFIG_AUX_DIR(config)
25 AM_INIT_AUTOMAKE
26 AC_CONFIG_HEADER([config.h])
28 AC_SUBST(DATADIR)
30 # Checks for programs.
31 AC_PROG_CC
32 AC_DISABLE_STATIC
33 AC_PROG_LIBTOOL
35 # Checks for libraries.
37 PKG_CHECK_MODULES(JACK, jack)
39 # JACK MIDI
40 have_jackmidi="unknown"
41 AC_ARG_ENABLE(jackmidi, [AS_HELP_STRING(--disable-jackmidi, [Force disable JACK MIDI support [default=no]])], [ have_jackmidi="no" ])
42 if test "$have_jackmidi" = "unknown"
43 then
44   PKG_CHECK_MODULES(JACK_MIDI, jack >= 0.102.0, AC_DEFINE([HAVE_JACK_MIDI], [], [Defined if we have JACK MIDI support.]) have_jackmidi="yes")
45   if test "$have_jackmidi" = "yes"
46   then
47     PKG_CHECK_MODULES(OLD_JACK_MIDI, jack < 0.102.27, have_jackmidi="yes (old one)" AC_DEFINE(HAVE_OLD_JACK_MIDI, 1, [whether or not we building against old JACK MIDI (0.102.20)]), echo no)
48   fi
51 AM_CONDITIONAL(HAVE_JACK_MIDI, test "$have_jackmidi" = "yes" -o "$have_jackmidi" = "yes (old one)")
53 if test "$have_jackmidi" != "yes"
54 then
55   AC_MSG_ERROR([You need JACK version with MIDI support.])
56 else
57   AC_JACK_MIDI_NFRAMES_CHECK()
58   if test "$jackmidi_nframes" = "yes"
59   then
60     AC_DEFINE([JACK_MIDI_NEEDS_NFRAMES], 1, [Defined if we JACK MIDI functions need nframes parameter.])
61   fi
64 # Python checking
65 AM_PATH_PYTHON(2.4)
66 AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(Could not find Python headers)])
67 #AS_AC_EXPAND(PYTHONDIR, $pythondir)
68 #AC_SUBST(PYTHONDIR)
70 AC_ARG_ENABLE(pymod-checks, [AS_HELP_STRING(--disable-pymod-checks, [Force disable checks for Python modules required at run time])], [ disable_pymod_checks="yes" ], [ disable_pymod_checks="no" ])
72 if test "$disable_pymod_checks" != "yes"
73 then
74   AM_CHECK_PYMOD(gtk,,,[AC_MSG_ERROR(Could not find PyGTK)])
75   AM_CHECK_PYMOD(cairo,,,[AC_MSG_ERROR(Could not find Pycairo)])
76   AM_CHECK_PYMOD(fpconst,,,[AC_MSG_ERROR(Could not find fpconst Python module)])
77 else
78   AC_MSG_WARN([Checks for python modules required runtime have been force disabled])
81 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
82 AM_GCONF_SOURCE_2
84 AC_CONFIG_FILES([Makefile])
85 AC_OUTPUT
87 AC_MSG_RESULT([])
88 AC_MSG_RESULT([**********************************************************************])
89 AC_MSG_RESULT([])
90 AC_MSG_RESULT([Prefix:            $prefix])
91 AC_MSG_RESULT([Python dir:        $PYTHON_INCLUDES])
92 #AC_MSG_RESULT([GConf schema dir:  $GCONF_SCHEMA_FILE_DIR])
93 AC_MSG_RESULT([])
94 AC_MSG_RESULT([MIDI support:      $have_jackmidi])
95 AC_MSG_RESULT([])
96 AC_MSG_RESULT([**********************************************************************])
97 AC_MSG_RESULT([])