diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-01-28 12:01:08 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-01-28 12:01:08 +0100 |
commit | 927e3cab48e79bbde0e3926497e67188ac9935ce (patch) | |
tree | 94be4e2ec17f77ef11771209ec12133a4a9649f1 /configure.ac | |
parent | 77ae6b1df03b899c9ba215d41f751b777c7d42ab (diff) | |
download | xdg-app-927e3cab48e79bbde0e3926497e67188ac9935ce.tar.gz |
Make xauth use optional
This is not needed on some Xservers, and not if you're only building stuff.
So, lets make it optional.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 62c9293..854fa96 100644 --- a/configure.ac +++ b/configure.ac @@ -82,9 +82,19 @@ AC_SUBST(BASE_LIBS) PKG_CHECK_MODULES(SOUP, [libsoup-2.4]) AC_SUBST(SOUP_CFLAGS) AC_SUBST(SOUP_LIBS) -PKG_CHECK_MODULES(XAUTH, [xau]) -AC_SUBST(XAUTH_CFLAGS) -AC_SUBST(XAUTH_LIBS) + +AC_ARG_ENABLE([xauth], + AC_HELP_STRING([--disable-xauth], + [Disable Xauth use]), + [], + [enable_xauth=yes]) +if test "x$enable_xauth" = "xyes"; then + PKG_CHECK_MODULES(XAUTH, [xau]) + AC_SUBST(XAUTH_CFLAGS) + AC_SUBST(XAUTH_LIBS) + AC_DEFINE([ENABLE_XAUTH], [1], + [Define if using xauth]) +fi PKG_CHECK_MODULES(OSTREE, [libgsystem >= 2015.1 ostree-1 >= 2015.3]) AC_SUBST(OSTREE_CFLAGS) |