129
by Rodney Dawes
[release] 0.9.1 libubuntuone |
1 |
AC_INIT([libubuntuone], [0.9.1], [], [libubuntuone]) |
1.1.1
by Rodrigo Moya
Setup auto* environment |
2 |
|
3 |
AC_PREREQ([2.59]) |
|
4 |
||
5 |
AC_CONFIG_SRCDIR([Makefile.am]) |
|
6 |
||
7 |
AM_CONFIG_HEADER([config.h]) |
|
8 |
||
9 |
AM_INIT_AUTOMAKE([1.6.3 foreign]) |
|
10 |
||
106.2.1
by Rodrigo Moya
Use silent building if available |
11 |
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) |
12 |
||
1.1.1
by Rodrigo Moya
Setup auto* environment |
13 |
AC_GNU_SOURCE
|
14 |
AC_ENABLE_SHARED
|
|
15 |
AC_DISABLE_STATIC
|
|
16 |
||
17 |
AC_PROG_CC
|
|
18 |
AC_PROG_LIBTOOL
|
|
19 |
||
27.1.1
by Rodrigo Moya
Added gettext support |
20 |
dnl i18n |
21 |
IT_PROG_INTLTOOL([0.35.5]) |
|
22 |
AM_GLIB_GNU_GETTEXT
|
|
23 |
||
24 |
GETTEXT_PACKAGE=libubuntuone |
|
25 |
AC_SUBST(GETTEXT_PACKAGE) |
|
26 |
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Ubuntu One Widget library]) |
|
27 |
||
28 |
localedir='$(prefix)/$(DATADIRNAME)/locale' |
|
29 |
AC_SUBST(localedir) |
|
30 |
||
5.2.1
by Rodrigo Moya
Use now live music store as default location and add signal for previewing MP3 |
31 |
dnl glib-genmarshal |
32 |
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal) |
|
33 |
||
1.1.1
by Rodrigo Moya
Setup auto* environment |
34 |
dnl Look for needed modules |
129.1.1
by Rodney Dawes
Check for MP3 support when store is initialized |
35 |
PKG_CHECK_MODULES(LIBUBUNTUONE, gdk-pixbuf-2.0 webkit-1.0 >= 1.1.15 libxml-2.0 libsoup-2.4 >= 2.33.1 libsoup-gnome-2.4 libsyncdaemon-1.0 >= 1.4.2 gstreamer-0.10 gstreamer-pbutils-0.10) |
1.1.1
by Rodrigo Moya
Setup auto* environment |
36 |
AC_SUBST(LIBUBUNTUONE_CFLAGS) |
37 |
AC_SUBST(LIBUBUNTUONE_LIBS) |
|
38 |
||
39 |
LIBUBUNTUONE_CURRENT=1 |
|
40 |
LIBUBUNTUONE_REVISION=0 |
|
41 |
LIBUBUNTUONE_AGE=0 |
|
42 |
AC_SUBST(LIBUBUNTUONE_CURRENT) |
|
43 |
AC_SUBST(LIBUBUNTUONE_REVISION) |
|
44 |
AC_SUBST(LIBUBUNTUONE_AGE) |
|
45 |
||
108.1.1
by Rodney Dawes
Add --enable-debug option and enabale -Wall and -Werror with it |
46 |
AC_MSG_CHECKING([development series build]) |
47 |
DEVVERSION="`echo $PACKAGE_VERSION|cut -d. -f2`" |
|
48 |
if expr $DEVVERSION % 2 > /dev/null != "0"; then |
|
49 |
debugging=yes |
|
50 |
AC_MSG_RESULT([yes]) |
|
51 |
else
|
|
52 |
debugging=no |
|
53 |
AC_MSG_RESULT([no]) |
|
54 |
fi
|
|
55 |
||
56 |
AC_ARG_ENABLE([debug], |
|
57 |
AC_HELP_STRING([--enable-debug], |
|
58 |
[Enable debugging build [default=auto]]), |
|
59 |
enable_debug=$enableval, |
|
60 |
enable_debug=$debugging) |
|
61 |
if test "x$enable_debug" != "xno"; then |
|
62 |
CFLAGS="${CFLAGS} -Wno-strict-prototypes -Wall -Werror" |
|
63 |
AC_SUBST(CFLAGS) |
|
64 |
fi
|
|
65 |
||
10.2.3
by Rodrigo Moya
Added OAuth signing and library override script |
66 |
dnl Check for OAuth dependencies |
67 |
AC_CHECK_HEADERS(unistd.h time.h string.h alloca.h stdio.h stdarg.h math.h openssl/hmac.h, have_oauth_headers="yes", have_oauth_headers="no") |
|
68 |
AC_CHECK_LIB(crypto, CRYPTO_free, have_oauth_libs="yes", have_oauth_libs="no") |
|
69 |
if test "x$have_oauth_headers" = "xyes" -a "x$have_oauth_libs" = "xyes"; then |
|
70 |
AC_DEFINE(HAVE_OAUTH, 1, [Define to build OAUTH signing code]) |
|
71 |
have_oauth="yes" |
|
72 |
OAUTH_LIBS="-lm -lcrypto" |
|
73 |
AC_SUBST(OAUTH_LIBS) |
|
25.1.1
by Rodrigo Moya
Really depend on openssl for building oauth support for the music store |
74 |
else
|
75 |
AC_MSG_ERROR(You need openssl to build OAuth support) |
|
10.2.3
by Rodrigo Moya
Added OAuth signing and library override script |
76 |
fi
|
77 |
||
78 |
LIBUBUNTUONE_CURRENT=1 |
|
79 |
LIBUBUNTUONE_REVISION=0 |
|
80 |
LIBUBUNTUONE_AGE=0 |
|
81 |
AC_SUBST(LIBUBUNTUONE_CURRENT) |
|
82 |
AC_SUBST(LIBUBUNTUONE_REVISION) |
|
83 |
AC_SUBST(LIBUBUNTUONE_AGE) |
|
84 |
||
1.1.1
by Rodrigo Moya
Setup auto* environment |
85 |
##################################################
|
86 |
# Check for gtk-doc. |
|
87 |
##################################################
|
|
88 |
GTK_DOC_CHECK(1.0) |
|
108.1.1
by Rodney Dawes
Add --enable-debug option and enabale -Wall and -Werror with it |
89 |
DISTCHECK_CONFIGURE_FLAGS="--enable-gtk-doc --enable-debug" |
1.1.1
by Rodrigo Moya
Setup auto* environment |
90 |
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS) |
91 |
||
50.2.1
by Jo Shields
Mono bindings |
92 |
dnl Checks for Mono bindings |
93 |
AC_PATH_PROG(MONO_GAPI_PARSER, gapi2-parser, no) |
|
94 |
if test "x$MONO_GAPI_PARSER" = "xno"; then |
|
95 |
AC_MSG_ERROR(could not find gapi2-parser) |
|
96 |
fi
|
|
97 |
||
98 |
AC_PATH_PROG(MONO_GAPI_CODEGEN, gapi2-codegen, no) |
|
99 |
if test "x$MONO_GAPI_CODEGEN" = "xno"; then |
|
100 |
AC_MSG_ERROR(could not find gapi2-codegen) |
|
101 |
fi
|
|
102 |
||
50.2.3
by Jo Shields
Fix Mono binding build to deal with changes to the C api. |
103 |
AC_PATH_PROG(MONO_GAPI_FIXUP, gapi2-fixup, no) |
104 |
if test "x$MONO_GAPI_FIXUP" = "xno"; then |
|
105 |
AC_MSG_ERROR(could not find gapi2-fixup) |
|
106 |
fi
|
|
107 |
||
50.2.1
by Jo Shields
Mono bindings |
108 |
AC_PATH_PROG(MONO_CSC, gmcs, no) |
109 |
if test "x$MONO_CSC" = "xno"; then |
|
110 |
AC_MSG_ERROR(could not find gmcs compiler) |
|
111 |
fi
|
|
112 |
||
110.2.1
by Rodney Dawes
Generate the AssemblyInfo.cs file by replacing @ASSEMBLY_KEYFILE@ |
113 |
AC_PATH_PROG([MONO_SN], [sn], [no]) |
114 |
if test "x$MONO_SN" = "xno"; then |
|
115 |
AC_MSG_ERROR([could not find sn]) |
|
116 |
fi
|
|
50.2.1
by Jo Shields
Mono bindings |
117 |
|
5.1.1
by Rodrigo Moya
Added generation of .defs files and code for Python module |
118 |
dnl Checks for Python bindings |
5.1.3
by Rodrigo Moya
Added checking of python-config |
119 |
AM_PATH_PYTHON(2.5) |
120 |
AC_PATH_PROG(PYTHON_CONFIG, python-config, no) |
|
121 |
if test "x$PYTHON_CONFIG" = "xno"; then |
|
122 |
AC_MSG_ERROR(could not find python-config script) |
|
123 |
else
|
|
124 |
PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags` |
|
125 |
PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags` |
|
126 |
AC_SUBST(PYTHON_CFLAGS) |
|
127 |
AC_SUBST(PYTHON_LDFLAGS) |
|
128 |
fi
|
|
129 |
||
5.1.4
by Rodrigo Moya
Don't generate .defs, include it in the source tree |
130 |
PKG_CHECK_MODULES(PYGTK, pygtk-2.0) |
50.2.1
by Jo Shields
Mono bindings |
131 |
PKG_CHECK_MODULES(GTKSHARP, gtk-sharp-2.0) |
5.1.4
by Rodrigo Moya
Don't generate .defs, include it in the source tree |
132 |
AC_SUBST(PYGTK_CFLAGS) |
133 |
AC_SUBST(PYGTK_LIBS) |
|
50.2.1
by Jo Shields
Mono bindings |
134 |
AC_SUBST(GTKSHARP_CFLAGS) |
135 |
AC_SUBST(GTKSHARP_LIBS) |
|
5.1.4
by Rodrigo Moya
Don't generate .defs, include it in the source tree |
136 |
|
5.1.3
by Rodrigo Moya
Added checking of python-config |
137 |
dnl Check for .defs pygtk dir |
138 |
AC_MSG_CHECKING(for pygtk defs) |
|
139 |
PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0` |
|
140 |
AC_SUBST(PYGTK_DEFSDIR) |
|
141 |
AC_MSG_RESULT($PYGTK_DEFSDIR) |
|
142 |
||
143 |
dnl check for codegen script |
|
144 |
AC_PATH_PROG(PYGOBJECT_CODEGEN, pygobject-codegen-2.0, no) |
|
145 |
if test "x$PYGOBJECT_CODEGEN" = xno; then |
|
146 |
dnl This is for compat with older releases when codegen was shipped |
|
147 |
dnl in pygtk. It should be removed in future releases. |
|
148 |
AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no) |
|
149 |
if test "x$PYGTK_CODEGEN" = xno; then |
|
150 |
AC_MSG_ERROR(could not find pygobject-codegen-2.0 script) |
|
151 |
else |
|
152 |
AC_SUBST(PYGNOME_CODEGEN, $PYGTK_CODEGEN) |
|
153 |
fi |
|
154 |
else
|
|
155 |
AC_SUBST(PYGNOME_CODEGEN, $PYGOBJECT_CODEGEN) |
|
156 |
fi
|
|
157 |
||
19.1.1
by Rodrigo Moya
Move JS code out of the C source code |
158 |
dnl JavaScript scripts location |
36.2.3
by Ken VanDine
install the javascript files in a versioned directory |
159 |
U1_JAVASCRIPT_DIR=$datadir/libubuntuone/$LIBUBUNTUONE_CURRENT/javascript |
19.1.1
by Rodrigo Moya
Move JS code out of the C source code |
160 |
AC_SUBST(U1_JAVASCRIPT_DIR) |
161 |
||
88.2.1
by Rodrigo Moya
Add introspection support for new generation bindings |
162 |
##################################################
|
163 |
# Check for introspection |
|
164 |
##################################################
|
|
165 |
GOBJECT_INTROSPECTION_CHECK([0.6.4]) |
|
109.1.1
by Rodrigo Moya
Make introspection work on Natty |
166 |
AC_MSG_CHECKING([if gobject-introspection requires new options]) |
167 |
$PKG_CONFIG --atleast-version=0.9.4 gobject-introspection-1.0 |
|
168 |
new_introspection=$? |
|
169 |
if test "x$new_introspection" = "x0"; then |
|
170 |
AC_MSG_RESULT([yes]) |
|
171 |
else
|
|
172 |
AC_MSG_RESULT([no]) |
|
173 |
fi
|
|
174 |
AM_CONDITIONAL([HAVE_NEW_INTROSPECTION], [test "x$new_introspection" = "x0"]) |
|
88.2.1
by Rodrigo Moya
Add introspection support for new generation bindings |
175 |
|
95.1.1
by Rodney Dawes
Install the py module as _gtkwidgets.so like other GTK+ modules do |
176 |
AC_CONFIG_FILES([ |
1.1.1
by Rodrigo Moya
Setup auto* environment |
177 |
Makefile
|
19.1.1
by Rodrigo Moya
Move JS code out of the C source code |
178 |
data/Makefile
|
1.1.1
by Rodrigo Moya
Setup auto* environment |
179 |
libubuntuone.pc
|
50.2.1
by Jo Shields
Mono bindings |
180 |
ubuntuone-sharp.pc
|
1.1.1
by Rodrigo Moya
Setup auto* environment |
181 |
libubuntuone/Makefile
|
2.1.1
by Rodrigo Moya
Basic structure of the music store widget |
182 |
tests/Makefile
|
5.1.1
by Rodrigo Moya
Added generation of .defs files and code for Python module |
183 |
bindings/Makefile
|
184 |
bindings/python/Makefile
|
|
50.2.1
by Jo Shields
Mono bindings |
185 |
bindings/mono/Makefile
|
186 |
bindings/mono/ubuntuone-sharp.dll.config
|
|
27.1.1
by Rodrigo Moya
Added gettext support |
187 |
po/Makefile.in
|
1.1.1
by Rodrigo Moya
Setup auto* environment |
188 |
]) |
189 |
||
95.1.1
by Rodney Dawes
Install the py module as _gtkwidgets.so like other GTK+ modules do |
190 |
AC_OUTPUT
|
191 |
||
1.1.1
by Rodrigo Moya
Setup auto* environment |
192 |
AC_MSG_NOTICE([ |
193 |
||
194 |
libubuntuone configured:
|
|
195 |
------------------------
|
|
196 |
||
88.2.1
by Rodrigo Moya
Add introspection support for new generation bindings |
197 |
version: $VERSION
|
198 |
introspection: ${found_introspection}
|
|
1.1.1
by Rodrigo Moya
Setup auto* environment |
199 |
|
200 |
]) |