Commit Graph

13 Commits

Author SHA1 Message Date
Aleksander Morgado
4ae623c37b build: disable gtkdocize in autoreconf
We have a custom modified gtk-doc.make file in our sources, which
disables the gtkdoc-rebase on local install step, so we don't want
autoreconf to copy a different one when we're bootstrapping.
2021-04-21 11:35:08 +02:00
Aleksander Morgado
87341acaa8 build: import gtk-doc support
Remove the need to run `gtkdocize' when building from git; this should
be an operation done by the maintainer when modernizing the gtk-doc
setup (think of e.g. gettextize), no need to do it unconditionally.

This makes it easier for platforms without gtk-doc to build from git.

When trying to build with documentation enabled and gtk-doc isn't
found, we get some nice warnings and errors in the configure report:

    checking for gtk-doc... no
    configure: WARNING:
      You will not be able to create source packages with 'make dist'
      because gtk-doc >= 1.0 is not found.
    checking for gtkdoc-check... no
    checking for gtkdoc-check... no
    checking for gtkdoc-rebase... no
    checking for gtkdoc-mkpdf... no
    checking whether to build gtk-doc documentation... yes
    configure: error:
      You must have gtk-doc >= 1.0 installed to build documentation for
      ModemManager. Please install gtk-doc or disable building the
      documentation by adding '--disable-gtk-doc' to './configure'.

Files generated with gtkdocize (gtk-doc) 1.25.1.
2017-09-07 13:45:57 +02:00
Aleksander Morgado
984625165e i18n: deprecate intltool and use only gettext 0.19.8
Instead of mixing both intltool and gettext, which not always work
correctly together, this patch obsoletes intltool and uses only
gettext, which includes support for translating XML files with ITS
rules.

See migration steps for GNOME projects here:
  https://wiki.gnome.org/MigratingFromIntltoolToGettext

The gettext ITS rules for polkit policy files are imported from the
upstream polkit repository. We don't use the polkit-installed rule
files yet because there is no tagged release that contains those files
yet, so we cannot build-depend on any specific polkit version.
  https://bugs.freedesktop.org/show_bug.cgi?id=96940
2017-09-07 13:04:34 +02:00
Aleksander Morgado
021e57a283 build: run configure script from builddir rather than srcdir
Based on an equivalent patch from Philip Withnall <philip@tecnocode.co.uk>
for libmbim; see:

    https://bugs.freedesktop.org/show_bug.cgi?id=94639
2016-03-21 10:45:25 +01:00
Evan Nemerson
add455c7e5 build: fix passing arguments to configure from autogen.sh (bgo #694157) 2013-02-19 09:19:11 -06:00
Aleksander Morgado
f42eb8684b build: look for src/main.c in autogen.sh 2012-03-16 14:53:16 +01:00
Aleksander Morgado
09f40c8369 docs: setup generation of gtk-doc based DBus API documentation
It includes gdbus-codegen generated API documentation, plus the common Enums,
Flags and Errors, which will also be used in libmm-glib.
2012-03-15 14:14:19 +01:00
Aleksander Morgado
bb7311f27c build: improve project bootstrapping
Align autogen.sh with the one in NM:
  * Just calling autoreconf once
  * Using autopoint from GNU gettext
  * Enabling the use of NOCONFIGURE
2012-03-15 14:14:18 +01:00
Dan Williams
c96db0c91b Revert "build: don't require intltool unless --with-polkit=yes"
This reverts commit 0299cf51c4.
2011-04-27 14:47:00 -05:00
Dan Williams
0299cf51c4 build: don't require intltool unless --with-polkit=yes 2011-04-27 13:00:51 -05:00
Dan Williams
9c958c99bc build: add intltool support for PolicyKit policy translations 2010-02-16 11:03:16 -08:00
Dan Williams
50105ae288 build: make distcheck actually work 2009-07-07 10:45:44 -04:00
Tambet Ingo
cc31458b18 Initial commit. 2008-07-31 09:43:00 +03:00