From: Martin Willi Date: Wed, 11 Mar 2015 09:01:40 +0000 (+0100) Subject: configure: Check optional py.test availability when building with python eggs X-Git-Tag: 5.3.0rc1~28^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07302b2f7c15fa9938223254c76d8802054bd511;p=thirdparty%2Fstrongswan.git configure: Check optional py.test availability when building with python eggs --- diff --git a/configure.ac b/configure.ac index 95362ebd69..11d4f49d69 100644 --- a/configure.ac +++ b/configure.ac @@ -1198,6 +1198,7 @@ if test x$python_eggs = xtrue; then else AC_SUBST(PYTHONEGGINSTALLDIR, "--install-dir $pythoneggdir") fi + AC_PATH_PROG([PY_TEST], [py.test], [], [$PATH:/bin:/usr/bin:/usr/local/bin]) fi # =============================================== @@ -1567,6 +1568,7 @@ AM_CONDITIONAL(USE_SYSTEMD, test x$systemd = xtrue) AM_CONDITIONAL(USE_LEGACY_SYSTEMD, test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno) AM_CONDITIONAL(USE_RUBY_GEMS, test x$ruby_gems = xtrue) AM_CONDITIONAL(USE_PYTHON_EGGS, test x$python_eggs = xtrue) +AM_CONDITIONAL(USE_PY_TEST, test "x$PY_TEST" != x) # ======================== # set global definitions