aboutsummaryrefslogtreecommitdiff
path: root/m4
AgeCommit message (Collapse)Author
2022-11-07build: drop autotoolsAleksander Morgado
2021-07-27build: import used AX_ macros from autoconf-archiveAleksander Morgado
This allows us to build from git without build-depending on autoconf-archive, which is not always available as a package.
2021-07-27build: update introspection.m4Aleksander Morgado
In sync with gobject-introspection 1.68.0
2020-11-22build: fix build with single pluginsAleksander Morgado
We need to quote arguments with [] so that lists are not expanded as different arguments. Fixes 65560dd8854f01eec1b28587c37d544bfff360d3
2020-11-20build: qcom-soc plugin by default disabledAleksander Morgado
It will not be automatically enabled by the implicit --enable-all-plugins; instead, it must be explicitly enabled with --enable-plugin-qcom-soc. This plugin only makes sense under very specific SoC builds, so there is no point in always building it by default. It should be explicitly requested only in those SoC builds that are really going to make use of it (e.g. postmarketOS).
2020-11-08build: update builtin gtk-doc supportAleksander Morgado
From gtkdocize (gtk-doc) 1.33.0.
2020-01-30build: use AX_IS_RELEASE() and AX_COMPILER_FLAGS()Aleksander Morgado
The autoconf macros AX_COMPILER_FLAGS_{CFLAGS|GIR|LDFLAGS} test for compiler and linker support of various flags, and add the flags to the generated output. If the command-line option '--enable-compile-warnings' is specified to 'configure', a number of additional warning options is also added to the output. This is the default. This update requires the presence of the GNU autoconf-archive in the system.
2019-11-27build: setup plugin selection logicAleksander Morgado
2019-04-05build: make compiler warning options compatible with clangBen Chan
This patch updates m4/compiler-warnings.m4 as follows to make it more compatible with clang: * clang doesn't support -Wunused-but-set-variable, which can be replaced with -Wunused-variable as the latter covers unused variables with or without an assigned value and is supported by gcc and clang. * -Wno-unused-function is added to let clang ignore unused functions that are auto-generated.
2019-04-02build: fix -Wunused-but-set-variable support and handle clang betterDan Williams
By default the build used -Wno-unused-but-set-variable but that's clearly not what we want. Fix those problems. When using clang, the compiler doesn't error on unknown compile options, so let's add -Werror to the checking too. CC='clang' configure:3408: checking for gcc configure:3435: result: clang ... configure:17644: checking whether gcc understands -Wno-unused-but-set-variable configure:17657: clang -c -Wall -std=gnu89 -g -O2 -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wstrict-prototypes -Wno-unused-parameter -Wno-sign-compare -Wno-deprecated-declarations -Wno-unused-but-set-variable conftest.c >&5 warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option] 1 warning generated. configure:17657: $? = 0 configure:17666: result: yes Reported-by: Torsten Hilbrich <torsten.hilbrich@secunet.com>
2018-04-24m4/compiler_warnings.m4: Let -Werror be disabledIain Lane
It's annoying for distributors to build with -Werror, since it means that compiler upgrades can break the build. Let's let them disable it, but keep it enabled by default.
2017-09-07build: import gtk-doc supportAleksander Morgado
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.
2016-07-21build: don't disable the aliasing checksLubomir Rintel
We now don't break the strict aliasing rules. Also, having a compiler flag that disables a warning among the flags that are meant to add extra sanity checking is not correct either: --enable-extra-warnings=no would generate a bad aliasin warning while the --enable-extra-warnings=yes would not.
2015-01-11build: include ax_code_coverage.m4 serial 5Jakub Sitnicki
So that we don't require a fairly recent version of autoconf-archive (v2014.10.15 or newer) to build.
2013-08-15build: include vapigen.m4 and introspection.m4Aleksander Morgado
So that we don't require vala or g-i for building even when not wanting them.
2013-05-17build: use -Wformat-securityAleksander Morgado
2012-08-24build: warn about unused but set variablesAleksander Morgado
2012-03-15build: avoid using -Wfloat-equal compilation optionAleksander Morgado
In order to compile code generated by gdbus-codegen.
2012-03-15build: avoid using -Wshadow compilation optionAleksander Morgado
In order to compile code generated by gdbus-codegen.
2012-02-07build: do not warn about using deprecated methodsAleksander Morgado
GValueArray is deprecated since GLib 2.31.14, but we need to use it for dbus-glib based code. We should re-enable deprecation warnings once we switch to GDBus.
2010-01-27build: unify compiler warningsMichael Biebl