diff options
author | Ben Pfaff <blp@nicira.com> | 2010-06-23 09:41:09 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-06-24 13:18:43 -0700 |
commit | f8d739a9fa1c1223f0b2c88fd3f0ed47be69bf65 (patch) | |
tree | 3fc475516a0a02fd7a406a1f3e43bcc311c23c90 /m4 | |
parent | cfcef6b2463a9cf207fdc12953c51043a3a687e8 (diff) | |
download | openvswitch-f8d739a9fa1c1223f0b2c88fd3f0ed47be69bf65.tar.gz |
vswitchd: Add entity-relationship diagram to ovs-vswitchd.conf.db.5.
I've updated http://openvswitch.org/ovs-vswitchd.conf.db.5.pdf with
example output.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/openvswitch.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index 2206aff1b..0b22f64eb 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -265,6 +265,32 @@ else: fi AM_CONDITIONAL([HAVE_PYTHON], [test "$HAVE_PYTHON" = yes])]) +dnl Checks for dot. +AC_DEFUN([OVS_CHECK_DOT], + [AC_CACHE_CHECK( + [for dot], + [ovs_cv_dot], + [dnl "dot" writes -V output to stderr: + if (dot -V) 2>&1 | grep '^dot - [gG]raphviz version' >/dev/null 2>&1; then + ovs_cv_dot=yes + else + ovs_cv_dot=no + fi])]) + +dnl Check whether to build E-R diagrams. +AC_DEFUN([OVS_CHECK_ER_DIAGRAMS], + [AC_REQUIRE([OVS_CHECK_DOT]) + AC_REQUIRE([OVS_CHECK_PYTHON]) + AC_CACHE_CHECK( + [whether to build E-R diagrams for database], + [ovs_cv_er_diagrams], + [if test $ovs_cv_dot != no && test $ovs_cv_python != no; then + ovs_cv_er_diagrams=yes + else + ovs_cv_er_diagrams=no + fi]) + AM_CONDITIONAL([BUILD_ER_DIAGRAMS], [test $ovs_cv_er_diagrams = yes])]) + dnl Checks for pyuic4. AC_DEFUN([OVS_CHECK_PYUIC4], [AC_CACHE_CHECK( |