diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-10-25 20:02:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-10-25 20:02:28 +0300 |
commit | 7bbd39e0da04cee932f4afe6a4c85ebb78f39a81 (patch) | |
tree | 220a6f44ff80ed1d5242ab469d91ce4a28e03f72 /configure.ac | |
parent | 880fa28099e828821378a9c83a7218ae5bfa3110 (diff) | |
download | manaverse-7bbd39e0da04cee932f4afe6a4c85ebb78f39a81.tar.gz manaverse-7bbd39e0da04cee932f4afe6a4c85ebb78f39a81.tar.bz2 manaverse-7bbd39e0da04cee932f4afe6a4c85ebb78f39a81.tar.xz manaverse-7bbd39e0da04cee932f4afe6a4c85ebb78f39a81.zip |
Add configure options for build with system catch and doctest.
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a9ed26981..6ac21107e 100755 --- a/configure.ac +++ b/configure.ac @@ -619,18 +619,35 @@ AC_ARG_ENABLE(unittests, unittests_enabled=true unittests_catch=true unittests_doctest=false + unittests_embed=true ;; catch) unittests_enabled=true unittests_catch=true unittests_doctest=false + unittests_embed=true ;; doctest) unittests_enabled=true unittests_catch=false unittests_doctest=true + unittests_embed=true ;; - no) unittests_enabled=false + systemcatch) + unittests_enabled=true + unittests_catch=true + unittests_doctest=false + unittests_embed=false + ;; + systemdoctest) + unittests_enabled=true + unittests_catch=false + unittests_doctest=true + unittests_embed=false + ;; + no) + unittests_enabled=false + unittests_embed=true ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-unittests) ;; esac],[unittests_enabled=false]) @@ -638,6 +655,7 @@ esac],[unittests_enabled=false]) AM_CONDITIONAL(ENABLE_UNITTESTS, test x$unittests_enabled = xtrue) AM_CONDITIONAL(ENABLE_UNITTESTS_CATCH, test x$unittests_catch = xtrue) AM_CONDITIONAL(ENABLE_UNITTESTS_DOCTEST, test x$unittests_doctest = xtrue) +AM_CONDITIONAL(ENABLE_UNITTESTS_EMBED, test x$unittests_embed = xtrue) # Enable unit tests binaries only AC_ARG_ENABLE(unittestsbin, |