X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fatlocal.in;h=1d37b59a74aa18096cd461bdf54f4ad88a552aee;hb=03e7973c8bac680c113cbdc64266e7b19b9cf464;hp=d0ca70486ae58dcf76e66b4a1b9b726937f0624f;hpb=f1acd62b54376a425a975f9af501c4c8c5689b39;p=sliver-openvswitch.git diff --git a/tests/atlocal.in b/tests/atlocal.in index d0ca70486..1d37b59a7 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -1,3 +1,23 @@ # -*- shell-script -*- +HAVE_OPENSSL='@HAVE_OPENSSL@' +HAVE_PYTHON='@HAVE_PYTHON@' PERL='@PERL@' -LCOV='@LCOV@' + +if test x"$PYTHON" = x; then + PYTHON='@PYTHON@' +fi + +PYTHONPATH=$abs_top_srcdir/python:$abs_top_builddir/tests:$PYTHONPATH +export PYTHONPATH + +PYTHONIOENCODING=utf_8 +export PYTHONIOENCODING + +if test $HAVE_PYTHON = yes; then + if python -m argparse 2>/dev/null; then + : + else + PYTHONPATH=$PYTHONPATH:$abs_top_srcdir/python/compat + export PYTHONPATH + fi +fi