From 27a3406336522ba6d968ef0ee2c615000348d2d0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 9 Oct 2017 21:13:40 +0300 Subject: Fix configure option --with-unittestsdir. --- configure.ac | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index ecc6ee35a..9b309ed9e 100755 --- a/configure.ac +++ b/configure.ac @@ -668,13 +668,14 @@ AM_CONDITIONAL(ENABLE_UNITTESTSBIN_CATCH, test x$unittestsbin_catch = xtrue) AM_CONDITIONAL(ENABLE_UNITTESTSBIN_DOCTEST, test x$unittestsbin_doctest = xtrue) # Override home directory for unit tests -AC_ARG_WITH(unittestsdir,[ --with-unittestsdir override home directory for unit tests ] ) -if test "x$with_unittestsdir" == "xno"; then - with_unittestsdir=no -else - with_unittestsdir=yes - CPPFLAGS="$CPPFLAGS -DUNITESTSDIR=$withval" -fi +AC_ARG_WITH(unittestsdir, +[ --with-unittestsdir override home directory for unit tests ], +[ + if test "x$withval" != "xno"; then + with_unittestsdir=$withval + CXXFLAGS="$CXXFLAGS -DUNITESTSDIR=\\\"$withval\\\"" + fi +]) # Enable tcmalloc AC_ARG_ENABLE(tcmalloc, -- cgit v1.2.3-60-g2f50