diff options
| author | Derek Foreman <derekf@osg.samsung.com> | 2015-06-17 15:13:50 -0500 |
|---|---|---|
| committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2015-06-18 14:06:16 +0300 |
| commit | 5cfdbef3d29919ef37cfe309ff907763d849febf (patch) | |
| tree | 996c560ba3ea2ed657a51bd0c058cac1fd950f1d /configure.ac | |
| parent | build: Stop putting FFI_CFLAGS in AM_CFLAGS (diff) | |
| download | wayland-5cfdbef3d29919ef37cfe309ff907763d849febf.tar wayland-5cfdbef3d29919ef37cfe309ff907763d849febf.tar.gz wayland-5cfdbef3d29919ef37cfe309ff907763d849febf.tar.bz2 wayland-5cfdbef3d29919ef37cfe309ff907763d849febf.tar.lz wayland-5cfdbef3d29919ef37cfe309ff907763d849febf.tar.xz wayland-5cfdbef3d29919ef37cfe309ff907763d849febf.tar.zst wayland-5cfdbef3d29919ef37cfe309ff907763d849febf.zip | |
build: Allow disabling building of wayland libraries
When cross-compiling it may be useful to build only the wayland-scanner
natively. This patch makes it possible to disable build of the libraries.
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac index 952f231..39e3107 100644 --- a/configure.ac +++ b/configure.ac @@ -54,16 +54,11 @@ AC_SUBST(GCC_CFLAGS) AC_CHECK_FUNCS([accept4 mkostemp posix_fallocate]) -AC_CHECK_DECL(SFD_CLOEXEC,[], - [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile wayland")], - [[#include <sys/signalfd.h>]]) -AC_CHECK_DECL(TFD_CLOEXEC,[], - [AC_MSG_ERROR("TFD_CLOEXEC is needed to compile wayland")], - [[#include <sys/timerfd.h>]]) -AC_CHECK_DECL(CLOCK_MONOTONIC,[], - [AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile wayland")], - [[#include <time.h>]]) -AC_CHECK_HEADERS([execinfo.h]) +AC_ARG_ENABLE([libraries], + [AC_HELP_STRING([--disable-libraries], + [Disable compilation of wayland libraries])], + [], + [enable_libraries=yes]) AC_ARG_ENABLE([scanner], [AC_HELP_STRING([--disable-scanner], @@ -79,11 +74,26 @@ AC_ARG_ENABLE([documentation], AM_CONDITIONAL(ENABLE_SCANNER, test "x$enable_scanner" = xyes) +AM_CONDITIONAL(ENABLE_LIBRARIES, test "x$enable_libraries" = xyes) + AC_ARG_WITH(icondir, [ --with-icondir=<dir> Look for cursor icons here], [ ICONDIR=$withval], [ ICONDIR=${datadir}/icons]) AC_SUBST([ICONDIR]) +if test "x$enable_libraries" = "xyes"; then + AC_CHECK_DECL(SFD_CLOEXEC,[], + [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile wayland libraries")], + [[#include <sys/signalfd.h>]]) + AC_CHECK_DECL(TFD_CLOEXEC,[], + [AC_MSG_ERROR("TFD_CLOEXEC is needed to compile wayland libraries")], + [[#include <sys/timerfd.h>]]) + AC_CHECK_DECL(CLOCK_MONOTONIC,[], + [AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile wayland libraries")], + [[#include <time.h>]]) + AC_CHECK_HEADERS([execinfo.h]) +fi + if test "x$enable_scanner" = "xyes"; then PKG_CHECK_MODULES(EXPAT, [expat], [], [AC_CHECK_HEADERS(expat.h, [], |
