File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,8 @@ CLEANFILES += libmodbus.pc
9
9
10
10
dist_doc_DATA = MIGRATION README.md
11
11
12
- SUBDIRS = src tests doc
12
+ SUBDIRS = src doc
13
+
14
+ if BUILD_TESTS
15
+ SUBDIRS += tests
16
+ endif
Original file line number Diff line number Diff line change @@ -141,6 +141,13 @@ my_CFLAGS="-Wall \
141
141
-Wformat-security"
142
142
AC_SUBST ( [ my_CFLAGS] )
143
143
144
+ # Build options
145
+ AC_ARG_ENABLE ( tests ,
146
+ AS_HELP_STRING ( [ --disable-tests] ,
147
+ [ Build tests (default: yes)] ) ,,
148
+ [ enable_tests=yes] )
149
+ AM_CONDITIONAL(BUILD_TESTS, [ test $enable_tests != no] )
150
+
144
151
AC_CONFIG_HEADERS ( [ config.h tests/unit-test.h] )
145
152
AC_CONFIG_FILES ( [
146
153
Makefile
@@ -167,4 +174,5 @@ AC_MSG_RESULT([
167
174
ldflags: ${LDFLAGS}
168
175
169
176
documentation: ${ac_libmodbus_build_doc}
177
+ tests: ${enable_tests}
170
178
] )
You can’t perform that action at this time.
0 commit comments