X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=m4%2Fopenvswitch.m4;h=ceb10732cfff22f1d0d118ed5c4cf150b9933a56;hb=2280e7223cc5d014fe60ad3be45b8e4d9d401997;hp=b7267438c97127448cea3506ff7505003fea5fd1;hpb=d65349ea28bb67a0062a9b4b60ff97538206373b;p=openvswitch diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index b7267438..ceb10732 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -236,8 +236,7 @@ AC_DEFUN([OVS_CHECK_PCRE], dnl Checks for Python 2.x, x >= 4. AC_DEFUN([OVS_CHECK_PYTHON], - [AC_ARG_VAR([PYTHON], [path to Python 2.x]) - AC_CACHE_CHECK( + [AC_CACHE_CHECK( [for Python 2.x for x >= 4], [ovs_cv_python], [if test -n "$PYTHON"; then @@ -260,4 +259,7 @@ else: done done fi]) - PYTHON=$ovs_cv_python]) + AM_MISSING_PROG([PYTHON], [python]) + if test $ovs_cv_python != no; then + PYTHON=$ovs_cv_python + fi])