~rfc1149/adasockets

9e87aea3ec33887cef5997275042d463254b246b — Samuel Tardieu 10 months ago a317b31
Add the --disable-tests option to configure
2 files changed, 21 insertions(+), 5 deletions(-)

M Makefile.am
M configure.ac
M Makefile.am => Makefile.am +10 -5
@@ 2,16 2,21 @@ AUTOMAKE_OPTIONS = foreign no-dependencies
ACLOCAL_AMFLAGS = -I support
AUTOHEADER_AMFLAGS = -l support

SUBDIRS = src man tests $(SUBDIRS_DOC) $(SUBDIRS_EXAMPLES)
SUBDIRS = src man $(SUBDIR_DOC) $(SUBDIR_EXAMPLES) $(SUBDIR_TESTS)
if BUILD_DOC
SUBDIRS_DOC = doc
SUBDIR_DOC = doc
else
SUBDIRS_DOC =
SUBDIR_DOC =
endif
if BUILD_EXAMPLES
SUBDIRS_EXAMPLES = examples
SUBDIR_EXAMPLES = examples
else
SUBDIRS_EXAMPLES =
SUBDIR_EXAMPLES =
endif
if BUILD_TESTS
SUBDIR_TESTS = tests
else
SUBDIR_TESTS =
endif

EXTRA_DIST = AUTHORS.md COPYING GMGPL README.md README-RTEMS.md INSTALL.md \

M configure.ac => configure.ac +11 -0
@@ 69,6 69,17 @@ AS_HELP_STRING(--disable-examples,do not build and install examples),
esac],[examples=true])
AM_CONDITIONAL(BUILD_EXAMPLES, test x$examples = xtrue)
#
# Check for tests build
#
AC_ARG_ENABLE(tests,
AS_HELP_STRING(--disable-tests,do not build tests),
[case "${enableval}" in
  yes) tests=true ;;
  no)  tests=false ;;
  *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;;
esac],[tests=true])
AM_CONDITIONAL(BUILD_TESTS, test x$tests = xtrue)
#
# Check for documentation software
#
AC_CHECK_PROG(GETDEFS, getdefs, getdefs)