aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2020-05-01 13:07:11 +0200
committerVincent Torri <vincent.torri@gmail.com>2020-05-01 13:07:11 +0200
commit65d07eece1daee6460bd2d4fcb85253ce9b05ea5 (patch)
tree8ae946cacd5b000a066d60f72bac747779d9dd9f
parentceeb3bb4f423db4fc29704aa5a4c577f08103194 (diff)
downloadportable-65d07eece1daee6460bd2d4fcb85253ce9b05ea5.tar.gz
portable-65d07eece1daee6460bd2d4fcb85253ce9b05ea5.tar.bz2
portable-65d07eece1daee6460bd2d4fcb85253ce9b05ea5.zip
Add configure option to disable tests
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac4
2 files changed, 8 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..7b16ac5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,6 +66,10 @@ 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([--enable-tests], [Enable tests]))
71AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes])
72
69# Add CPU-specific alignment flags 73# Add CPU-specific alignment flags
70old_cflags=$CFLAGS 74old_cflags=$CFLAGS
71CFLAGS="$CFLAGS -I$srcdir/include" 75CFLAGS="$CFLAGS -I$srcdir/include"