aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2020-05-07 06:06:19 -0500
committerBrent Cook <busterb@gmail.com>2020-05-07 06:06:19 -0500
commit049c874d76e2579e5b36d9700423ef18b8200348 (patch)
tree84a8d6fd8ebbc6a8239115ac2af7cbcfde78db1f
parent388676afe4b1a1155882dc5dd6c2cec221654e9e (diff)
parent1553d87c6cbdc01a1b3ae028492561af3ac2aa59 (diff)
downloadportable-049c874d76e2579e5b36d9700423ef18b8200348.tar.gz
portable-049c874d76e2579e5b36d9700423ef18b8200348.tar.bz2
portable-049c874d76e2579e5b36d9700423ef18b8200348.zip
Land #585, add option to disable tests to autoconf
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac9
2 files changed, 13 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 1cf0fc6..6499f07 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,7 @@
1SUBDIRS = crypto ssl tls include apps tests man 1SUBDIRS = crypto ssl tls include apps man
2if ENABLE_TESTS
3SUBDIRS += tests
4endif
2ACLOCAL_AMFLAGS = -I m4 5ACLOCAL_AMFLAGS = -I m4
3 6
4pkgconfigdir = $(libdir)/pkgconfig 7pkgconfigdir = $(libdir)/pkgconfig
diff --git a/configure.ac b/configure.ac
index e584113..888ca19 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,6 +66,15 @@ AC_ARG_ENABLE([extratests],
66 AS_HELP_STRING([--enable-extratests], [Enable extra tests that may be unreliable on some platforms])) 66 AS_HELP_STRING([--enable-extratests], [Enable extra tests that may be unreliable on some platforms]))
67AM_CONDITIONAL([ENABLE_EXTRATESTS], [test "x$enable_extratests" = xyes]) 67AM_CONDITIONAL([ENABLE_EXTRATESTS], [test "x$enable_extratests" = xyes])
68 68
69AC_ARG_ENABLE([tests],
70 [AS_HELP_STRING([--disable-tests], [Disable tests @<:@default=enabled@:>@])],
71 [
72 if ! test "x${enable_tests}" = "xyes"; then
73 enable_tests="no"
74 fi],
75 [enable_tests="yes"])
76AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes])
77
69# Add CPU-specific alignment flags 78# Add CPU-specific alignment flags
70old_cflags=$CFLAGS 79old_cflags=$CFLAGS
71CFLAGS="$CFLAGS -I$srcdir/include" 80CFLAGS="$CFLAGS -I$srcdir/include"