Skip to content

Commit ba1cfbb

Browse files
committed
Merge branch 'KangLin-master' (#227)
2 parents daeb71d + 8e4bd31 commit ba1cfbb

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

expat/Changes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ Release x.x.x XXX XXXXXX XX XXXX
88
exporting non-API symbols
99
#212 CMake: Make libdir of pkgconfig expat.pc support multilib
1010
#219 Remove fallback to bcopy, assume that memmove(3) exists
11+
#227 Autotools: Add --without-examples and --without-tests
1112
#228 Autotools: Modernize configure.ac
1213

1314
Special thanks to:
1415
Benjamin Peterson
16+
@KangLin
1517
Marco Maggi
1618
@userwithuid
1719
Yury Gribov

expat/Makefile.am

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ AUTOMAKE_OPTIONS = \
3737
ACLOCAL_AMFLAGS = -I m4
3838
LIBTOOLFLAGS = --verbose
3939

40-
SUBDIRS = lib examples tests # lib goes first to build first
40+
SUBDIRS = lib # lib goes first to build first
41+
if WITH_EXAMPLES
42+
SUBDIRS += examples
43+
endif
44+
if WITH_TESTS
45+
SUBDIRS += tests
46+
endif
4147
if WITH_XMLWF
4248
SUBDIRS += xmlwf doc
4349
endif

expat/configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ AC_ARG_WITH([xmlwf],
122122
[with_xmlwf=yes])
123123
AM_CONDITIONAL([WITH_XMLWF], [test x${with_xmlwf} = xyes])
124124

125+
AC_ARG_WITH([examples], [
126+
AS_HELP_STRING([--without-examples], [do not build examples @<:@default=included@:>@])], [], [with_examples=yes])
127+
AM_CONDITIONAL([WITH_EXAMPLES], [test x${with_examples} = xyes])
128+
129+
AC_ARG_WITH([tests], [
130+
AS_HELP_STRING([--without-tests], [do not build tests @<:@default=included@:>@])], [], [with_tests=yes])
131+
AM_CONDITIONAL([WITH_TESTS], [test x${with_tests} = xyes])
132+
125133
AM_CONDITIONAL([MINGW], [echo -- "${host}" | ${FGREP} mingw >/dev/null])
126134
AM_CONDITIONAL([UNICODE], [echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null])
127135

0 commit comments

Comments
 (0)