• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gettext/gettext-03-option-to-disable-tools.patch
Thomas PetazzoniThomas Petazzoni committed 0d4133edfed27 May 2013
Raw file
Source viewDiff to previous
 
1
Add a --disable-tools option
2
​
3
This patch adds a --disable-tools option that allows to disable the
4
compilation of the gettext tools, which may not be necessary on a
5
small embedded Linux system.
6
​
7
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8
​
9
Index: b/configure.ac
10
===================================================================
11
--- a/configure.ac
12
+++ b/configure.ac
13
@@ -37,6 +37,10 @@
14
 
15
 dnl Checks for library functions.
16
 
17
+AC_ARG_ENABLE([tools], [--disable-tools  do not build tools],
18
+              [enable_tools=$enableval], [enable_tools=yes])
19
+AM_CONDITIONAL([ENABLE_TOOLS], [test "$enable_tools" = "yes"])
20
+
21
 AC_CONFIG_SUBDIRS([gettext-runtime gettext-tools])
22
 
23
 dnl Ensure that "configure --help" lists all the command line options that
24
Index: b/Makefile.am
25
===================================================================
26
--- a/Makefile.am
27
+++ b/Makefile.am
28
@@ -20,7 +20,13 @@
29
 ACLOCAL = build-aux/fixaclocal @ACLOCAL@
30
 ACLOCAL_AMFLAGS = -I m4
31
 
32
-SUBDIRS = gnulib-local gettext-runtime gettext-tools
33
+if ENABLE_TOOLS
34
+TOOLS_SUBDIR = gettext-tools
35
+else
36
+TOOLS_SUBDIR =
37
+endif
38
+
39
+SUBDIRS = gnulib-local gettext-runtime $(TOOLS_SUBDIR)
40
 
41
 EXTRA_DIST = \
42
   version.sh DEPENDENCIES PACKAGING HACKING ChangeLog.0 autogen.sh \
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.