summaryrefslogtreecommitdiff
path: root/autogen.sh
AgeCommit message (Collapse)Author
2015-06-03remove gudev and gtk-docKay Sievers
The library moved to: https://git.gnome.org/browse/libgudev/
2014-11-24build-sys: support local ./configure argumentsDavid Herrmann
I often want to use the awesome "./autogen.sh [cmd]" arguments, but have to append some custom ./configure options. For now, I always had to edit autogen.sh manually, or copy the full commands out of it and run it myself. As I think this is super annoying, this commit adds support for ".config.args" files in $topdir. If it exists, any content is just appended to $args, thus to any ./configure invokation of autogen.sh. Maybe autotools provide something similar out-of-the-box. In that case, feel free to revert this and lemme know!
2014-11-15autogen: drop unnecessary -Wno-gnu for the clang shortcutThomas Hindoe Paaboel Andersen
It is no longer necessary after 65e3a2cf7c3b399853dd309f702ca5078b7d16ea where -Wno-gnu-variable-sized-type-not-at-end is added if we detect that the compiler is clang.
2014-07-18autogen: add "t" switch with --enable-terminalDavid Herrmann
Just temporarily add a "t" switch to "./autogen t" runs with --enable-terminal. Once it's compile-tested enough, we can add it to the default flags.
2014-04-01build-sys: no use for compat libs in the static analysisThomas Hindoe Paaboel Andersen
2014-04-01build-sys: workaround scan-build bug to fix ./autogen.sh sDaniel Buch
It seems to be a clang-analyzer problem since it don't behave like clang-compiler regarding -std={c99,gnu99}
2014-02-27autogen: Allow running autogen from a builddir != srcdirStef Walter
While the configure correctly supports being run outside of the top source directory by default, it's nice if autogen.sh does too: $ git clone git://anongit.freedesktop.org/systemd/systemd $ cd systemd $ mkdir $(uname -m) $ cd $(uname -m) $ ../autogen.sh a $ make
2014-02-21build-sys: don't use -Wcast-align anymoreLennart Poettering
We do a lot of these casts, and they are all OK, so let's get rid of the warning, to make things quieter. http://lists.freedesktop.org/archives/systemd-devel/2014-February/017174.html
2014-02-07build-sys: autogen - enable compat libs by defaultTom Gundersen
2013-12-28autogen: add shortcut for running scan-buildThomas Hindoe Paaboel Andersen
scan-build is a static analyzer in llvm. As ususal static analyzers tend to mostly find theoretical bugs in software that has been in production for a while. For in-development code it can be useful to check if new issues is added as there is a chance to spot real problems before release. For systemd we are now down to 297 issues - the vast majority are false positives because the tool does not understand the cleanup attribute. Running clang's static analyzer scan-build is a bit messy. You have to run both configure and make "inside" the build-scan tool. To have an easy shortcut from autogen.sh I thus call both directly from it. This makes it different from the other options in autogen.sh. I chose 's' for static analysis. scan-build is in the package clang-analyzer on fedora.
2013-12-28autogen: add shortcut for building with clangThomas Hindoe Paaboel Andersen
For a while I have been cleaning up warnings when building with clang. There are currently only two sources of warnings left: Wcast-align and Wgnu. I am not convinced that fixing up those up is feasible so I run with them disabled to spot regressions. E.g. clang is a bit more strict wrt to unused variables with the cleanup attribute and I have fixed a number of those since. Like the other options in autogen.sh I have a shortcut for clang as well. I use 'l' for llvm.
2013-12-25build-sys: the pure/const warning options are probably too much as default, ↵Lennart Poettering
but let's make it available via "autogen.sh a"
2013-12-14build: use -ftrapv for developmentShawn Landden
We want to find these bugs if they exist.
2013-11-30bus: do kdbus only if this is enabled on the configure switchLennart Poettering
Since we want to retain the ability to break kernel ←→ userspace ABI after the next release, let's not make use by default of kdbus, so that people with future kernels will not suddenly break with current systemd versions. kdbus support is left in all builds but must now be explicitly requested at runtime (for example via setting $DBUS_SESSION_BUS). Via a configure switch the old behaviour can be restored. In fact, we change autogen.sh to do this, so that git builds (which run autogen.sh) get kdbus by default, but tarball builds (which ue the configure defaults) do not get it, and hence this stays out of the distros by default.
2013-10-30autogen: use -O0 for "autogen.sh c" after allLennart Poettering
-Og actually breaks gdb still, so let's stick to -O0 for now, but introduce "autogen.sh g" for those who don't need gdb.
2013-10-21build-sys: sync printed defaults with "c" optionKay Sievers
2013-10-21build-sys: use -Og instead of -O0 to catch warningsKay Sievers
$ touch src/core/dbus.c; make CFLAGS=-O0 make --no-print-directory all-recursive Making all in . CC src/core/libsystemd_core_la-dbus.lo CCLD libsystemd-core.la $ touch src/core/dbus.c; make CFLAGS=-Og make --no-print-directory all-recursive Making all in . CC src/core/libsystemd_core_la-dbus.lo src/core/dbus.c: In function 'init_registered_system_bus': src/core/dbus.c:798:18: warning: 'id' may be used uninitialized in this function [-Wmaybe-uninitialized] dbus_free(id); ^ CCLD libsystemd-core.la -Og Optimize debugging experience. -Og enables optimizations that do not interfere with debugging. It should be the optimization level of choice for the standard edit-compile-debug cycle, offering a reasonable level of optimization while maintaining fast compilation and a good debugging experience.
2013-08-19build-sys: use no-tmpl flavour of gtkdocizationZbigniew Jędrzejewski-Szmek
"tmpl" flavour is deprecated. Also this way we avoid a warning during installation with older gtkdoc. https://bugzilla.gnome.org/show_bug.cgi?id=701259
2013-01-11build-sys: use _FORTIFY_SOURCE only if optimizingZbigniew Jędrzejewski-Szmek
Rather then force the user to undefine _FORTIFY_SOURCE, don't define it in the first place if it cannot be used. I'm assuming that -O* can only be sensibly specified in $CFLAGS.
2012-08-08autogen.sh: disable _FORTIFY_SOURCE, we want -O0, which is incompatibleKay Sievers
2012-08-08build-sys: enable a couple of security featuresLennart Poettering
Most distributions enable these downstream anyway, but it probably makes sense to enable them unconditionally upstream too.
2012-07-25build-sys: really make gtk-doc optional & some portability fixesMantas Mikulėnas
The failing check caused autogen.sh to die mysteriously due to `set -e` and the unquoted `test -z $VAR`. Also, some syntax fixes to make it work with /bin/sh, which most other autogen.sh's use. [zj: implemented simplification suggested by Peters Simon and fixed the case where gtkdocize was available but is not anymore.]
2012-07-21build-sys: fail early in autogen.shZbyszek Jędrzejewski-Szmek
When intltoolize is not installed, autogen.sh runs without error, but configure.ac is borked. ./configure: line 12001: syntax error near unexpected token `0.40.0' ./configure: line 12001: `IT_PROG_INTLTOOL(0.40.0)'
2012-06-10udev: always use $(rootprefix)/lib/udev for libexecdirKay Sievers
On Sat, Jun 9, 2012 at 12:46 AM, Malte Starostik <lists@malte.homeip.net> wrote: > From: Malte Starostik <m-starostik@versanet.de> > > Rules get installed in $(libexecdir)/udev/, so are keymaps. Helper > binaries go to $(rootprefix)/lib/udev though. Problem is, in the code, > both are referenced via UDEVLIBEXECDIR which is defined to the former > location. Result: systemd-udev can't find e.g. the keymap binary to > apply keymaps.
2012-05-15build-sys: fix build for folks without gtk-doc installedLennart Poettering
2012-05-15build-sys: move gtk-doc stuff into its own subdir and reindent autogen.shLennart Poettering
We moved most other build noise files into their own subdirs, so let's do this for gtk-doc too
2012-05-08autogen.sh: undef _FORTIFY_SOURCE, which now logs warnings when used with -O0Kay Sievers
2012-04-17build-sys: silence gtk-doc check, remove gtk-doc options from configure and ↵Kay Sievers
distcheck
2012-04-17build-sys: make gtk-doc dependency optionalJavier Jardón
2012-04-12relicense to LGPLv2.1 (with exceptions)Lennart Poettering
We finally got the OK from all contributors with non-trivial commits to relicense systemd from GPL2+ to LGPL2.1+. Some udev bits continue to be GPL2+ for now, but we are looking into relicensing them too, to allow free copy/paste of all code within systemd. The bits that used to be MIT continue to be MIT. The big benefit of the relicensing is that closed source code may now link against libsystemd-login.so and friends.
2012-04-04move imported udev into placeKay Sievers
2012-02-07autogen.sh: detect historic split-system-directories and add root optionsKay Sievers
2012-01-09autogen.sh: diet and sync with udev and kmodKay Sievers
2012-01-05autogen: add --with-rootlibdir= and switch /usr/local to /usrKay Sievers
2012-01-05build-sys: drop colorgccLennart Poettering
2012-01-05build-sys: rename 'rootdir' to 'rootprefix' like udev and kmod usesKay Sievers
2011-07-15libsystemd-daemon: support installation in --with-rootlibdirKay Sievers
2011-07-11build-sys: Add i18n support through intltoolBastien Nocera
And put the PolicyKit policy files up for translation.
2011-04-05build-sys: always place user units in /usr/lib/systemdKay Sievers
./configure --libexecdir=/usr/lib
2010-10-07use common names: fixme -> TODO, bootstrap.sh -> autogen.shKay Sievers