Mercurial > audlegacy
annotate configure.ac @ 2875:4e39304e238b trunk
Backed out changeset 7a0ca380c8438a5646d50a16367e6d300d7da32b
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sun, 24 Jun 2007 05:29:25 -0500 |
parents | 5aa0045e787a |
children | 2897d744d87a |
rev | line source |
---|---|
0 | 1 dnl Process this file with autoconf to produce a configure script. |
2619 | 2 AC_INIT([audacious], [1.4.0], [bugs+audacious@atheme.org]) |
1420 | 3 AC_PREREQ([2.59]) |
0 | 4 |
5 AC_CANONICAL_HOST | |
6 AC_CANONICAL_TARGET | |
7 | |
8 AC_CONFIG_HEADERS([config.h]) | |
9 | |
10 dnl libbeep | |
11 LIBBEEP_MAJOR_VERSION=2 | |
12 LIBBEEP_MINOR_VERSION=0 | |
13 LIBBEEP_MICRO_VERSION=0 | |
14 LIBBEEP_VERSION=$LIBBEEP_MAJOR_VERSION.$LIBBEEP_MINOR_VERSION.$LIBBEEP_MICRO_VERSION | |
15 AC_SUBST(LIBBEEP_MAJOR_VERSION) | |
16 AC_SUBST(LIBBEEP_MINOR_VERSION) | |
17 AC_SUBST(LIBBEEP_MICRO_VERSION) | |
18 | |
38 | 19 dnl XXX kludge for FreeBSD |
20 if test -d "/usr/X11R6/include"; then | |
21 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" | |
22 fi | |
0 | 23 |
2324
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
24 dnl OMK bootstrap |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
25 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME]) |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
26 AC_SUBST([VERSION], [AC_PACKAGE_VERSION]) |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
27 |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
28 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
2ab9ef1e9544
[svn] - remove leftover remnants of automake from buildsystem
nenolod
parents:
2323
diff
changeset
|
29 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]) |
756 | 30 |
0 | 31 dnl GNU gettext |
32 | |
33 AM_GNU_GETTEXT | |
34 AM_GNU_GETTEXT_VERSION([0.12.1]) | |
35 | |
36 dnl Check for C compiler | |
37 | |
1353
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
38 AC_PROG_CC |
35ef03569852
[svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents:
1317
diff
changeset
|
39 AC_PROG_CXX |
0 | 40 AC_ISC_POSIX |
41 AC_C_BIGENDIAN | |
42 | |
2316 | 43 test x"$GCC" = x"yes" && CFLAGS="$CFLAGS -Wall -pipe" |
2315 | 44 |
0 | 45 dnl Check for assembler |
46 | |
47 AM_PROG_AS | |
48 | |
49 dnl Checks for various programs | |
50 | |
51 AC_PROG_INSTALL | |
52 AC_PROG_LN_S | |
53 AC_PROG_MAKE_SET | |
54 | |
750 | 55 AC_PATH_PROG(RM, rm) |
56 AC_PATH_PROG(MV, mv) | |
57 AC_PATH_PROG(CP, cp) | |
58 AC_PATH_PROG(AR, ar) | |
59 AC_PATH_PROG(RANLIB, ranlib) | |
60 | |
0 | 61 dnl Path settings |
62 | |
63 AC_PATH_PROG(BEEP_PATH, audacious, no) | |
64 | |
65 AC_ARG_WITH(rc-path, | |
2318 | 66 [ --with-rc-path=path Resource and configuration path for audacious relative to $HOME. (deprecated, use XDG)], |
0 | 67 [rc_path=$withval], |
2302
a73097e58abb
[svn] Revert stupid commit by js, because that does not make us XDG basedir compliant.
kiyoshi
parents:
2301
diff
changeset
|
68 [rc_path=.audacious] |
0 | 69 ) |
70 AC_DEFINE_UNQUOTED(BMP_RCPATH, "$rc_path", | |
535 | 71 [Resource and configuration path for audacious relative to $HOME.] |
0 | 72 ) |
2325
63c9a2724e73
[svn] - revert r3646 because it is not a user-friendly method of transitioning.
nenolod
parents:
2324
diff
changeset
|
73 AC_DEFINE(DOTAUDACIOUS_COMPAT, 1, [Enable compatibility for $HOME/.audacious]) |
0 | 74 AC_SUBST(BMP_RCPATH) |
75 | |
76 AC_ARG_ENABLE(one-plugin-dir, | |
77 [ --enable-one-plugin-dir Use a single plugin dir [default=no]], | |
78 [enable_one_plugin_dir=$enableval], | |
79 [enable_one_plugin_dir=no] | |
80 ) | |
81 | |
82 AC_ARG_ENABLE(user-plugin-dir, | |
83 [ --disable-user-plugin-dir disable per-user plugin dir], | |
84 [enable_user_plugin_dir=$enableval], | |
85 [enable_user_plugin_dir=yes] | |
86 ) | |
87 | |
88 dnl Check for GTK/GLib/GThread/Pango | |
89 | |
535 | 90 PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango], |
91 [ADD_PC_REQUIRES([glib-2.0 >= 2.6.0, gtk+-2.0 >= 2.6.0])], | |
0 | 92 [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])] |
93 ) | |
94 | |
2631
a2afa6ca7294
[svn] - integrate libmowgli requirement into buildsystem
nenolod
parents:
2619
diff
changeset
|
95 dnl Check for GLib. |
2503
10692383c103
[svn] first try for libid3tag integration. this improved libid3tag supports vfs operations and is capable of adding id3v2 tag to files which doesn't have id3v2 tag ever.
yaz
parents:
2359
diff
changeset
|
96 |
10692383c103
[svn] first try for libid3tag integration. this improved libid3tag supports vfs operations and is capable of adding id3v2 tag to files which doesn't have id3v2 tag ever.
yaz
parents:
2359
diff
changeset
|
97 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6.0], |
10692383c103
[svn] first try for libid3tag integration. this improved libid3tag supports vfs operations and is capable of adding id3v2 tag to files which doesn't have id3v2 tag ever.
yaz
parents:
2359
diff
changeset
|
98 [ADD_PC_REQUIRES([glib-2.0 >= 2.6.0])], |
10692383c103
[svn] first try for libid3tag integration. this improved libid3tag supports vfs operations and is capable of adding id3v2 tag to files which doesn't have id3v2 tag ever.
yaz
parents:
2359
diff
changeset
|
99 [AC_MSG_ERROR([Cannot find glib2])] |
10692383c103
[svn] first try for libid3tag integration. this improved libid3tag supports vfs operations and is capable of adding id3v2 tag to files which doesn't have id3v2 tag ever.
yaz
parents:
2359
diff
changeset
|
100 ) |
10692383c103
[svn] first try for libid3tag integration. this improved libid3tag supports vfs operations and is capable of adding id3v2 tag to files which doesn't have id3v2 tag ever.
yaz
parents:
2359
diff
changeset
|
101 |
2631
a2afa6ca7294
[svn] - integrate libmowgli requirement into buildsystem
nenolod
parents:
2619
diff
changeset
|
102 dnl Check for libmowgli. |
a2afa6ca7294
[svn] - integrate libmowgli requirement into buildsystem
nenolod
parents:
2619
diff
changeset
|
103 |
2632 | 104 PKG_CHECK_MODULES(MOWGLI, [libmowgli >= 0.1], |
105 [ADD_PC_REQUIRES([libmowgli >= 0.1])], | |
2631
a2afa6ca7294
[svn] - integrate libmowgli requirement into buildsystem
nenolod
parents:
2619
diff
changeset
|
106 [AC_MSG_ERROR([Cannot find libmowgli: try http://sacredspiral.co.uk/~nenolod/mowgli])] |
a2afa6ca7294
[svn] - integrate libmowgli requirement into buildsystem
nenolod
parents:
2619
diff
changeset
|
107 ) |
a2afa6ca7294
[svn] - integrate libmowgli requirement into buildsystem
nenolod
parents:
2619
diff
changeset
|
108 |
0 | 109 dnl Check for libglade |
110 | |
111 PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= 2.3.1], | |
112 [], | |
113 [AC_MSG_ERROR([Cannot find libglade])] | |
114 ) | |
115 | |
116 # Check if socklen_t is defined | |
117 | |
118 AC_CACHE_CHECK(for socklen_t, beep_cv_type_socklen_t, | |
119 [AC_TRY_COMPILE( | |
120 [#include <sys/types.h> | |
121 #include <sys/socket.h>], | |
122 [socklen_t s;], | |
123 [beep_cv_type_socklen_t=yes], | |
124 [beep_cv_type_socklen_t=no] | |
125 ) | |
126 ] | |
127 ) | |
128 | |
129 if test "$beep_cv_type_socklen_t" = "no"; then | |
130 AC_DEFINE(socklen_t, int, [Define to int if the socklen_t type is missing]) | |
131 fi | |
132 | |
978 | 133 dnl IPv6 support |
134 dnl ======================== | |
135 AC_ARG_ENABLE(ipv6, | |
136 [ --enable-ipv6 enable IPv6 support (default=no)], | |
137 enable_ipv6=$enableval, enable_ipv6=no) | |
138 if test "x$enable_ipv6" = xyes; then | |
139 AC_DEFINE(USE_IPV6,, [Define if building with IPv6 support] ) | |
140 fi | |
141 AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = xyes) | |
142 AC_SUBST(USE_IPV6) | |
143 | |
1892
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
144 dnl rpath stuff |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
145 dnl ======================== |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
146 AC_ARG_ENABLE(rpath, |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
147 [ --disable-rpath disable hardcoded rpath (default=enabled)], |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
148 enable_rpath=$enableval, enable_rpath=yes) |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
149 |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
150 if test "x$enable_rpath" = xyes; then |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
151 RPATH_VAL="-Wl,-rpath=\${libdir}" |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
152 fi |
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
153 |
1622 | 154 dnl plugin stuff |
155 dnl ======================== | |
156 | |
157 dnl Ok, first we find out what flags we need to use. | |
158 AC_MSG_CHECKING([for what extension and flags to use for plugin compilation]) | |
159 case "$target" in | |
160 *-apple-*) | |
1657
81e057e03c1f
[svn] - ensure that the module symtable is consistantly unique on Mach-O bundles
nenolod
parents:
1656
diff
changeset
|
161 AC_MSG_RESULT([Mac OS X: -fPIC -bundle -fno-common -flat_namespace -undefined suppress, .dylib]) |
1624
d863bca9b6d7
[svn] - PICFLAGS should not call -shared/-bundle as some versions of GCC will misinterpret that. Only PICLDFLAGS should.
nenolod
parents:
1622
diff
changeset
|
162 PICFLAGS="-fPIC -DPIC" |
1657
81e057e03c1f
[svn] - ensure that the module symtable is consistantly unique on Mach-O bundles
nenolod
parents:
1656
diff
changeset
|
163 PICLDFLAGS="-fPIC -DPIC -bundle -fno-common -flat_namespace -undefined suppress" |
1630 | 164 LIBLDFLAGS="-dynamiclib" |
165 AUDLDFLAGS="" | |
1622 | 166 SHARED_SUFFIX=".dylib" |
167 ;; | |
168 *) | |
169 AC_MSG_RESULT([libdl-compatible: -fPIC -DPIC -shared, .so]) | |
1624
d863bca9b6d7
[svn] - PICFLAGS should not call -shared/-bundle as some versions of GCC will misinterpret that. Only PICLDFLAGS should.
nenolod
parents:
1622
diff
changeset
|
170 PICFLAGS="-fPIC -DPIC" |
1622 | 171 PICLDFLAGS="-fPIC -DPIC -shared" |
1630 | 172 LIBLDFLAGS="-fPIC -DPIC -shared" |
1892
9d53c0faac1b
[svn] - add --disable-rpath option to disable hardbinding an rpath to the audacious binaries
nenolod
parents:
1879
diff
changeset
|
173 AUDLDFLAGS="-Wl,-export-dynamic $RPATH_VAL" |
1622 | 174 SHARED_SUFFIX=".so" |
175 ;; | |
176 esac | |
177 AC_SUBST(PICFLAGS) | |
1626 | 178 AC_SUBST(PICLDFLAGS) |
1630 | 179 AC_SUBST(LIBLDFLAGS) |
180 AC_SUBST(AUDLDFLAGS) | |
1622 | 181 AC_SUBST(SHARED_SUFFIX) |
1632 | 182 AC_DEFINE_UNQUOTED(SHARED_SUFFIX, "${SHARED_SUFFIX}", |
1631 | 183 [Define the shared module suffix extension on your platform.]) |
1622 | 184 |
185 AC_MSG_CHECKING([if you are running Apple-GCC]) | |
186 case "$target" in | |
187 *-apple-*) | |
188 AC_MSG_RESULT([yes, sorry you poor bastard]) | |
189 LDFLAGS="$LDFLAGS -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" | |
190 ;; | |
191 *) | |
192 AC_MSG_RESULT([no]) | |
193 ;; | |
194 esac | |
195 | |
2559 | 196 dnl libguess always compiled in |
197 dnl ======================== | |
198 SUBDIR_GUESS="libguess librcd" | |
199 CHARDET_LIBS="../libguess/libguess.a ../librcd/librcd.a" | |
200 | |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
201 dnl chardet support |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
202 dnl ======================== |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
203 AC_ARG_ENABLE(chardet, |
2692 | 204 [ --enable-chardet enable character set detection support (default=yes)], |
205 enable_chardet=$enableval, enable_chardet=yes) | |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
206 if test "x$enable_chardet" = xyes; then |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
207 AC_DEFINE(USE_CHARDET, 1, [Define if character set detection enabled] ) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
208 AC_CHECK_LIB(udet_c, detectCharset, [AC_DEFINE(HAVE_UDET, 1,[Define if the system has Mozilla universal character detector library]) CHARDET_LIBS=["$CHARDET_LIBS -ludet -ludet_c"]]) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
209 fi |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
210 AM_CONDITIONAL(USE_CHARDET,test "x$enable_chardet" = xyes) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
211 AC_SUBST(USE_CHARDET) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
212 AC_SUBST(CHARDET_LIBS) |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1029
diff
changeset
|
213 AC_SUBST(SUBDIR_GUESS) |
0 | 214 |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
215 dnl D-Bus support |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
216 dnl ======================== |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
217 AC_ARG_ENABLE(dbus, |
2726 | 218 [ --enable-dbus enable D-Bus support (default=yes)], |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
219 [enable_dbus=$enableval], |
2726 | 220 [enable_dbus="yes"] |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
221 ) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
222 |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
223 AM_CONDITIONAL(USE_DBUS, test "x$enable_dbus" = "xyes") |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
224 if test "x$enable_dbus" = "xyes"; then |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
225 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60 gthread-2.0], |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
226 enable_dbus="yes", [ |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
227 AC_MSG_RESULT(no) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
228 enable_dbus="no" |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
229 ]) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
230 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool, no) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
231 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal, no) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
232 if test "x$DBUS_BINDING_TOOL" = "xno" || test "x$GLIB_GENMARSHAL" = "xno" || test "x$enable_dbus" = "xno" ; then |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
233 enable_dbus="no" |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
234 else |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
235 AC_DEFINE(USE_DBUS, 1, [Define if D-Bus support enabled]) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
236 AC_DEFINE(DBUS_SERVICES_DIR, "$datadir/dbus-1/services", |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
237 [Location of D-Bus services directory]) |
2771
4585019eb82e
[svn] -Renamed MPRIS /TrackList Shuffle method to Random
magma
parents:
2770
diff
changeset
|
238 USE_DBUS=1 |
2770
e21a9128e683
[svn] - remove -laudacious from audacious.pc.in. -laudclient will be put into audacious.pc if --enable-dbus is specified.
yaz
parents:
2732
diff
changeset
|
239 LIBAUDCLIENT_LDFLAGS="-laudclient" |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
240 AC_SUBST(USE_DBUS) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
241 AC_SUBST(DBUS_CFLAGS) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
242 AC_SUBST(DBUS_LIBS) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
243 AC_SUBST(DBUS_SERVICES_DIR) |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
244 AC_SUBST(DBUS_BINDING_TOOL) |
2770
e21a9128e683
[svn] - remove -laudacious from audacious.pc.in. -laudclient will be put into audacious.pc if --enable-dbus is specified.
yaz
parents:
2732
diff
changeset
|
245 AC_SUBST(LIBAUDCLIENT_LDFLAGS) |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
246 fi |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
247 fi |
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
248 |
2538
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
249 dnl libsamplerate support |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
250 dnl ======================== |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
251 AC_ARG_ENABLE(samplerate, |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
252 [ --enable-samplerate enable libsamplerate support (default=no)], |
2543
535bc24a9eb1
[svn] - make configure script show the configuration status of sampling rate conversion.
yaz
parents:
2540
diff
changeset
|
253 [enable_samplerate=$enableval], [enable_samplerate=no]) |
535bc24a9eb1
[svn] - make configure script show the configuration status of sampling rate conversion.
yaz
parents:
2540
diff
changeset
|
254 if test "x$enable_samplerate" = "xyes"; then |
2538
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
255 AC_DEFINE(USE_SRC, 1, [Define if libsamplerate enabled] ) |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
256 PKG_CHECK_MODULES(samplerate, samplerate) |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
257 AC_SUBST(USE_SRC) |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
258 AC_SUBST(samplerate_CFLAGS) |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
259 AC_SUBST(samplerate_LIBS) |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
260 AC_CHECK_LIB(samplerate, src_process,,AC_MSG_ERROR([*** Unable to find libsamplerate library!])) |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
261 fi |
719e0898ff3c
[svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents:
2535
diff
changeset
|
262 |
2168
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
263 dnl regex support (gnu/oniguruma/pcre) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
264 dnl ======================== |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
265 REGEX_LIBS= |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
266 REGEX_CFLAGS= |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
267 AC_ARG_WITH(regexlib, |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
268 [ |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
269 --with-regexlib[[=gnu/oniguruma/pcre]] use the chosen regex library (default: gnu) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
270 ], |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
271 [case "${withval}" in |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
272 gnu) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
273 AC_DEFINE(USE_REGEX_GNU,[1],[If this macro is defined, use GNU regex library.]) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
274 ;; |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
275 pcre) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
276 PKG_CHECK_MODULES(LIBPCRE, [libpcre >= 6.7], |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
277 [ |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
278 AC_DEFINE(USE_REGEX_PCRE,[1],[If this macro is defined, use PCRE regex library.]) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
279 REGEX_LIBS="-lpcreposix $LIBPCRE_LIBS" |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
280 REGEX_CFLAGS=$LIBPCRE_CFLAGS |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
281 ], |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
282 [AC_MSG_ERROR([Cannot find PCRE])] |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
283 ) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
284 ;; |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
285 oniguruma) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
286 AC_CHECK_LIB( onig , onig_new , |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
287 [ |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
288 AC_DEFINE(USE_REGEX_ONIGURUMA,[1],[If this macro is defined, use Oniguruma regex library.]) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
289 REGEX_LIBS=['-lonig'] |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
290 ], |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
291 [AC_MSG_ERROR([Cannot find Oniguruma])] |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
292 ) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
293 ;; |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
294 *) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
295 AC_DEFINE(USE_REGEX_GNU,[1],[If this macro is defined, use GNU regex library.]) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
296 ;; |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
297 esac],AC_DEFINE(USE_REGEX_GNU,[1],[If this macro is defined, use GNU regex library.])) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
298 |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
299 AC_SUBST(REGEX_LIBS) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
300 AC_SUBST(REGEX_CFLAGS) |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
301 |
caaf4b1a8487
[svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents:
2106
diff
changeset
|
302 |
0 | 303 dnl GConf support |
304 | |
2535 | 305 PKG_CHECK_MODULES(LIBMCS, [libmcs >= 0.1], |
306 [ | |
307 AC_DEFINE(HAVE_MCS, , [Define if building with libmcs support]) | |
308 ADD_PC_REQUIRES([libmcs >= 0.1]) | |
309 ], | |
310 [AC_MSG_ERROR([Cannot find libmcs])] | |
311 ) | |
0 | 312 |
313 AC_CHECK_HEADERS(unistd.h) | |
314 AC_CHECK_HEADERS(fcntl.h) | |
315 AC_CHECK_HEADERS(sys/ioctl.h) | |
316 AC_CHECK_HEADERS(fnmatch.h) | |
317 AC_CHECK_HEADERS(limits.h) | |
318 AC_CHECK_HEADERS(wchar.h) | |
319 AC_CHECK_HEADERS(fts.h) | |
2661
f6c7271df7de
[svn] - use execinfo.h to provide more useful information about crashes
nenolod
parents:
2632
diff
changeset
|
320 AC_CHECK_HEADERS(execinfo.h) |
0 | 321 |
1675
cc5952675fca
[svn] Fixes for NetBSD by Jonathan Schleifer <js@h3c.de>
chainsaw
parents:
1671
diff
changeset
|
322 AC_CHECK_FUNCS([mkdtemp getmntinfo statvfs strtoul lrintf]) |
0 | 323 |
324 AC_MSG_CHECKING(if __ELF__ is defined) | |
325 AC_EGREP_CPP(yes, | |
326 [#ifdef __ELF__ | |
327 yes | |
328 #endif | |
329 ], | |
330 [is_elf=yes], | |
331 [is_elf=no] | |
332 ) | |
333 AC_MSG_RESULT([${is_elf}]) | |
334 | |
335 have_solaris=no | |
336 have_sun=no | |
337 ARCH_DEFINES="" | |
338 case "$host" in | |
2018
58ea18909fe7
[svn] - MirBSD support from <bsiegert -at- gmx.de>
nenolod
parents:
2005
diff
changeset
|
339 *-*-openbsd* | *-*-netbsd* | *-*-mirbsd*) |
0 | 340 have_sun=yes |
341 if test "${is_elf}" = "no" | |
342 then | |
343 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any]) | |
344 fi | |
345 ;; | |
346 *-*-darwin*) | |
347 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any]) | |
348 ;; | |
349 *-hpux-*) | |
350 ARCH_DEFINES="-DHPUX" | |
351 ;; | |
352 *-*-solaris* | *-*-sunos*) | |
353 have_solaris=yes | |
354 ;; | |
355 esac | |
356 | |
357 arch_type=other | |
358 x86_asm=no | |
359 case "$host" in | |
360 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*) | |
361 arch_type=ix86 | |
362 case "$host" in | |
363 *-*-netbsd* | *-*openbsd*) | |
364 ;; | |
365 *) | |
366 ARCH_DEFINES="-DI386_ASSEM" | |
367 x86_asm=yes | |
368 ;; | |
369 esac | |
370 ;; | |
371 esac | |
372 | |
373 AC_SUBST(ARCH_DEFINES) | |
1518
0c5dc8ffcc42
[svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents:
1503
diff
changeset
|
374 |
0c5dc8ffcc42
[svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents:
1503
diff
changeset
|
375 dnl XXX delete ASAP -nenolod |
0 | 376 AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86") |
377 AM_CONDITIONAL(USE_X86ASM, test "x$x86_asm" = xyes) | |
378 AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = xyes) | |
379 AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = xyes) | |
380 | |
1425 | 381 plugindir="$libdir/audacious" |
0 | 382 AC_SUBST(plugindir) |
383 | |
384 if test "x$enable_one_plugin_dir" = "xyes"; then | |
385 pluginsubs="\\\"Plugins\\\"" | |
386 INPUT_PLUGIN_DIR=Plugins | |
387 OUTPUT_PLUGIN_DIR=Plugins | |
388 EFFECT_PLUGIN_DIR=Plugins | |
389 GENERAL_PLUGIN_DIR=Plugins | |
390 VISUALIZATION_PLUGIN_DIR=Plugins | |
1561 | 391 CONTAINER_PLUGIN_DIR=Plugins |
2830
5aa0045e787a
[svn] - load transport plugins from Transport subdirectory.
yaz
parents:
2771
diff
changeset
|
392 TRANSPORTR_PLUGIN_DIR=Plugins |
0 | 393 else |
2830
5aa0045e787a
[svn] - load transport plugins from Transport subdirectory.
yaz
parents:
2771
diff
changeset
|
394 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\",\\\"Container\\\",\\\"Transport\\\"" |
0 | 395 INPUT_PLUGIN_DIR=Input |
396 OUTPUT_PLUGIN_DIR=Output | |
397 EFFECT_PLUGIN_DIR=Effect | |
398 GENERAL_PLUGIN_DIR=General | |
399 VISUALIZATION_PLUGIN_DIR=Visualization | |
1561 | 400 CONTAINER_PLUGIN_DIR=Container |
2830
5aa0045e787a
[svn] - load transport plugins from Transport subdirectory.
yaz
parents:
2771
diff
changeset
|
401 TRANSPORT_PLUGIN_DIR=Transport |
0 | 402 fi |
403 | |
404 AC_SUBST(INPUT_PLUGIN_DIR) | |
405 AC_SUBST(OUTPUT_PLUGIN_DIR) | |
406 AC_SUBST(EFFECT_PLUGIN_DIR) | |
407 AC_SUBST(GENERAL_PLUGIN_DIR) | |
408 AC_SUBST(VISUALIZATION_PLUGIN_DIR) | |
1561 | 409 AC_SUBST(CONTAINER_PLUGIN_DIR) |
2830
5aa0045e787a
[svn] - load transport plugins from Transport subdirectory.
yaz
parents:
2771
diff
changeset
|
410 AC_SUBST(TRANSPORT_PLUGIN_DIR) |
0 | 411 AC_SUBST(pluginsubs) |
412 | |
1421 | 413 dnl XXX Work around some autoconf bugs. |
1422 | 414 if test "$prefix" = "NONE"; then |
1421 | 415 prefix="${ac_default_prefix}" |
416 fi | |
417 | |
1425 | 418 if test -z "$datadir"; then |
419 datadir="${prefix}/share" | |
1418
0d6d938bc936
[svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents:
1408
diff
changeset
|
420 fi |
0d6d938bc936
[svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents:
1408
diff
changeset
|
421 |
1425 | 422 localedir="$datadir/locale" |
0 | 423 AC_SUBST(localedir) |
424 | |
425 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\"" | |
426 CFLAGS="$CFLAGS $EXTRA_CFLAGS" | |
427 | |
428 if test "$enable_user_plugin_dir" = "no"; then | |
429 AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory]) | |
430 fi | |
431 | |
432 AC_SUBST(BEEP_DEFINES) | |
433 | |
1747
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
434 AC_ARG_ENABLE(xspf, |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
435 [ --disable-xspf disable XSPF support. (default=enabled)], |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
436 [have_xspf=$enableval], [have_xspf=yes]) |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
437 |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
438 AM_PATH_XML2(2.0.0, , [ |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
439 AC_MSG_WARN([*** libxml2 is not installed. Paranormal nor XSPF support will not be built. ***]) |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
440 have_xspf="no" |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
441 ]) |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
442 |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
443 if test "$have_xspf" = "yes"; then |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
444 AC_DEFINE(HAVE_XSPF_PLAYLIST, 1, [Define if XSPF playlists are available.]) |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
445 fi |
44ed31f63ee4
[svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents:
1746
diff
changeset
|
446 |
0 | 447 AC_SUBST(beepdir) |
448 AC_SUBST(plugindir) | |
449 | |
450 AC_CONFIG_FILES([ | |
1656
d05836d18d42
[svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents:
1632
diff
changeset
|
451 audacious.pc |
2323 | 452 mk/rules.mk |
453 man/audtool.1 | |
454 man/audacious.1 | |
2313 | 455 src/audacious/audacious.desktop |
1656
d05836d18d42
[svn] Hook PulseAudio into the build system and clean it up a little.
chainsaw
parents:
1632
diff
changeset
|
456 po/Makefile.in |
0 | 457 ]) |
458 | |
459 AC_OUTPUT | |
460 | |
461 | |
462 echo | |
463 echo "Configuration:" | |
464 echo | |
465 echo " Install path: ${prefix}" | |
466 | |
467 if test "$BEEP_PATH" != "no"; then | |
38 | 468 echo " Current Audacious executable: $BEEP_PATH" |
0 | 469 fi |
470 | |
2359
75598f596c92
[svn] - support for libmcs (pass --enable-mcs to configure)
nenolod
parents:
2325
diff
changeset
|
471 echo " Legacy configuration path: \$HOME/$rc_path" |
0 | 472 echo |
473 echo " Use one plugin dir: $enable_one_plugin_dir" | |
474 echo " Allow user plugin dir: $enable_user_plugin_dir" | |
2540 | 475 echo |
2692 | 476 echo " Automatic character code detection: $enable_chardet" |
2540 | 477 echo " Sample rate upconversion: $enable_samplerate" |
2694
c2b82432c1b6
[svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
2692
diff
changeset
|
478 echo " D-Bus support: $enable_dbus" |
0 | 479 echo |
480 | |
481 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then | |
32 | 482 echo "Note: You need to have thread-safe xlibs to use Audacious." |
0 | 483 echo "If you are using libc5 thread aware Xlibs just skip this." |
484 echo "" | |
485 echo "If you don't have those libs and you are on a libc5 system get them at:" | |
486 echo "ftp://ftp.dent.med.uni-muenchen.de/pub/wmglo/" | |
487 fi | |
488 | |
489 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then | |
490 echo "" | |
491 echo "Note: Configure has discovered that you already have Audacious installed" | |
492 echo "and it does not match with the given --prefix. You have Audacious installed " | |
493 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin." | |
494 echo | |
495 echo "If you don't want two copies of Audacious installed, rerun configure with" | |
496 echo "the --prefix option set to the location of the old Audacious, or uninstall" | |
497 echo "the old Audacious." | |
498 fi |