aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-12-03 17:06:29 -0800
committerBen Pfaff <blp@nicira.com>2009-12-03 17:06:46 -0800
commit195b5c3563ed4ab580eed37ee2fd6a10d210012b (patch)
treec22e7ca84d1f52d1c724b1909dfcc373809d7a63 /m4
parent99331c0a3364e1c71b7d8ae1359b593ec17fd11e (diff)
Distribute ovsdb-idlc built sources, so Python is not required for build.
The Xen DDK VM does not include Python, so it's best if we don't have to require it for the build. The built sources are still regenerated if necessary.
Diffstat (limited to 'm4')
-rw-r--r--m4/openvswitch.m48
1 files changed, 5 insertions, 3 deletions
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])