From 1017e62f6f55d074d955e2920f9eded59b2211f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 26 Oct 2015 14:07:56 +0100 Subject: [PATCH] Make GTK tools optional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Petr Písař --- Makefile.am | 5 ++++- configure.in | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 81bb95a..9159666 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,9 @@ # -bin_PROGRAMS = xvattr gxvattr +bin_PROGRAMS = xvattr +if BUILD_GTK +bin_PROGRAMS += gxvattr +endif xvattr_SOURCES = xvattr.c xvattr_LDADD = $(X_LIBS) $(X_PRE_LIBS) $(X_EXTRA_LIBS) -lX11 -lXext @LIBOBJS@ diff --git a/configure.in b/configure.in index 8c2eeb9..bd735b9 100644 --- a/configure.in +++ b/configure.in @@ -16,8 +16,11 @@ dnl Checks for X11 dnl AC_PATH_XTRA -dnl check for gtk +dnl check for gtk. AM_PATH_GTK +AC_ARG_ENABLE(gtk, [AS_HELP_STRING([--disable-gtk], + [Do not build GTK interface])]) +AM_CONDITIONAL([BUILD_GTK], [test "$enable_gtk" != "no"]) dnl Checks for libraries. AC_ARG_WITH(xv-path,[ --with-xv-path=path Where libXv is installed], -- 2.4.3