2 AM_INIT_AUTOMAKE(hildon-libs, 0.9.6)
3 AM_CONFIG_HEADER(config.h)
14 PKG_CHECK_MODULES(OUTO, outo >= 0.1.1)
17 # -pedantic removed due to D-BUS; should be replaced after D-BUS is no
18 # longer broken in this regard...
20 CFLAGS="$CFLAGS -Wall -ansi -Wmissing-prototypes -Wmissing-declarations -Werror"
24 PKG_CHECK_MODULES(GTK, hildon-lgpl >= 0.9.1 hildon-fm >= 0.8.6)
29 # The hildon-note uses D-BUS directly as an interim solution for sound
30 # playback - remove these after this is no longer the case!
32 PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.20)
36 # Related to the previous entry, check if we have ESD headers available.
37 # If yes, Hildon-note will build sound support with it; we're phasing
38 # away from OSSO Multimedia... Clean this up after ESD is the
41 PKG_CHECK_MODULES(ESD, esound, esd_found=1, esd_found=0)
42 if test "x$esd_found" = "x1"; then
46 AH_TEMPLATE([USE_ESD], [1 if ESD is available])
49 AC_DEFINE_UNQUOTED([USE_ESD], ["1"])
53 echo "No ESD found, so falling back to OSSO Multimedia support"
56 # Needed to demonstrate how mime-types can be handled with gnome-vfs
57 PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6)
58 AC_SUBST(GNOME_VFS_CFLAGS)
59 AC_SUBST(GNOME_VFS_LIBS)
61 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.6)
62 AC_SUBST(GCONF_CFLAGS)
69 ##################################################
71 ##################################################
73 AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ])
75 if test "x$with_html_dir" = "x" ; then
76 HTML_DIR='${datadir}/gtk-doc/html'
78 HTML_DIR=$with_html_dir
81 AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
83 gtk_doc_min_version=0.10
85 gtk_doc_version=`gtkdoc-mkdb --version`
86 AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version]
89 exit (("$gtk_doc_version" =~ /^[[0-9]]+\.[[0-9]]+$/) &&
90 ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1);
99 # Let people disable the gtk-doc stuff.
100 AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc use gtk-doc to build documenta
101 tion [default=yes]], enable_gtk_doc="$enableval", enable_gtk_doc=yes)
103 if test x$enable_gtk_doc = xauto ; then
104 if test x$GTKDOC = xtrue ; then
111 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
113 AC_CHECK_PROG(DOXYGEN_FOUND, doxygen, yes, no)
114 AM_CONDITIONAL(HAVE_DOXYGEN, [test "$DOXYGEN_FOUND" = "yes"])
116 localedir=${datadir}/locale
117 outomoduledir=${libdir}/outo
119 AC_ARG_ENABLE(doc-dir, [ --with-doc-dir=PATH path to installed docs ])
120 if test "x$with_doc_dir" = "x" ; then
121 docdir='${datadir}/doc'
126 HTML_DIR=${docdir}/html
130 AC_SUBST(outomoduledir)
134 hildon-widgets/Makefile \