1 # Copyright © 2008 Cosimo Cecchi <cosimoc@gnome.org>
3 # This program is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU General Public License as published by the
5 # Free Software Foundation; either version 2 of the License, or (at your
6 # option) any later version.
8 # This program is distributed in the hope that it will be useful, but
9 # WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # General Public License for more details.
13 # You should have received a copy of the GNU General Public License along
14 # with this program; if not, write to the Free Software Foundation, Inc.,
15 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 dnl Process this file with autoconf to produce a configure script.
19 AC_INIT(mmediamanager, 0.1.0)
21 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
22 AM_CONFIG_HEADER(config.h)
33 dnl ***************************************************************************
34 dnl Internationalization
35 dnl ***************************************************************************
36 GETTEXT_PACKAGE=mmediamanager
37 AC_SUBST(GETTEXT_PACKAGE)
38 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
40 IT_PROG_INTLTOOL([0.35.0])
48 PKG_CHECK_MODULES(MMEDIAMANAGER, [glib-2.0
53 AC_SUBST(MMEDIAMANAGER_CFLAGS)
54 AC_SUBST(MMEDIAMANAGER_LIBS)
58 ##################################################
60 ##################################################
61 AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ])
62 if test "x$with_html_dir" = "x" ; then
63 HTML_DIR='${datadir}/gtk-doc/html'
65 HTML_DIR=$with_html_dir
69 gtk_doc_min_version=1.0
70 AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
71 if pkg-config --atleast-version=$gtk_doc_min_version gtk-doc; then
78 dnl Let people disable the gtk-doc stuff.
79 AC_ARG_ENABLE(gtk-doc,
80 [ --enable-gtk-doc Use gtk-doc to build documentation [default=auto]],
81 enable_gtk_doc="$enableval", enable_gtk_doc=auto)
82 if test x$enable_gtk_doc = xauto ; then
83 if test x$GTKDOC = xtrue ; then
89 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)