summaryrefslogtreecommitdiff
path: root/x11-libs/fox/files/fox-1.7.85-tools.patch
blob: bd28a51ed328b4abea8877e3428a697950732da9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,10 @@
 # For non-gcc compilers, change the options to "no-dependencies"
 AUTOMAKE_OPTIONS = foreign dist-zip
 
-SUBDIRS    = utils include lib chart doc tests shutterbug adie pathfinder calculator controlpanel glviewer
+if COND_TOOLS
+  INC_TOOLS = adie calculator pathfinder shutterbug
+endif
+SUBDIRS    = utils include lib chart doc tests controlpanel glviewer $(INC_TOOLS)
 EXTRA_DIST = ADDITIONS AUTHORS INSTALL LICENSE LICENSE_ADDENDUM TRACING README fox.spec fox-config index.html aclocal.m4
 
 bin_SCRIPTS = fox-config
--- a/configure.ac
+++ b/configure.ac
@@ -51,6 +51,10 @@
 LT_AGE=`expr $FOX_INTERFACE_VERSION - $FOX_BINARY_VERSION`
 LT_INIT([win32-dll])
 
+AC_ARG_WITH(tools,[  --with-tools           choices are yes, no])
+AC_MSG_RESULT([$with_tools])
+AM_CONDITIONAL(COND_TOOLS, test "x$with_tools" != "xno")
+
 # Check win32 compile
 case "$host_os" in
 *mingw32*) OS_WINDOWS=1 ;;