]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
configure: Check optional py.test availability when building with python eggs
authorMartin Willi <martin@revosec.ch>
Wed, 11 Mar 2015 09:01:40 +0000 (10:01 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 18 Mar 2015 12:59:15 +0000 (13:59 +0100)
configure.ac

index 95362ebd6956df2b6148fc7931f08fa791ae7376..11d4f49d69dbd4096da7d6183823c5730b72188c 100644 (file)
@@ -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