configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS
authorDaniel Stone <daniel@fooishbar.org>
Wed, 22 May 2013 15:03:19 +0000 (18:03 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 5 Jun 2013 05:16:34 +0000 (01:16 -0400)
commitc228e23b055f54d29f2df839cf76a2660917b9f6
tree6f810a3fd6061b2dadb8cc654a795530654debf1
parent5238b683e20e619cca92eea2691ba7ca947ead84
configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS

AC_USE_SYSTEM_EXTENSIONS enables _XOPEN_SOURCE, _GNU_SOURCE and similar
macros to expose the largest extent of functionality supported by the
underlying system.  This is required since these macros are often
limiting rather than merely additive, e.g. _XOPEN_SOURCE will actually
on some systems hide declarations which are not part of the X/Open spec.

Since this goes into config.h rather than the command line, ensure all
source is consistently including config.h before anything else,
including system libraries.  This doesn't need to be guarded by a
HAVE_CONFIG_H ifdef, which was only ever a hangover from the X.Org
modular transition.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
[pq: rebased and converted more files]
43 files changed:
clients/window.c
configure.ac
shared/cairo-util.c
shared/config-parser.c
shared/image-loader.c
shared/matrix.c
shared/option-parser.c
shared/os-compatibility.c
src/animation.c
src/bindings.c
src/clipboard.c
src/cms-helper.c
src/cms-static.c
src/compositor-drm.c
src/compositor-fbdev.c
src/compositor-headless.c
src/compositor-rdp.c
src/compositor-rpi.c
src/compositor-wayland.c
src/compositor-x11.c
src/compositor.c
src/evdev-touchpad.c
src/evdev.c
src/filter.c
src/gl-renderer.c
src/gl-renderer.h
src/launcher-util.c
src/libbacklight.c
src/log.c
src/noop-renderer.c
src/pixman-renderer.c
src/rpi-renderer.c
src/screenshooter.c
src/shell.c
src/tablet-shell.c
src/text-backend.c
src/tty.c
src/udev-seat.c
src/weston-launch.c
src/xwayland/launcher.c
src/xwayland/selection.c
src/xwayland/window-manager.c
src/zoom.c