diff options
author | Ben Pfaff <blp@nicira.com> | 2012-07-27 15:52:21 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-08-01 10:55:57 -0700 |
commit | f973f2af2fd4452c8e182caf6a4346cf2a2a394e (patch) | |
tree | eb0a4ac92b8457ef682dfa89447342b209bf0f88 /m4 | |
parent | 01ca539f5c89fab1ea9a355d4cb75383dfb25da5 (diff) | |
download | openvswitch-f973f2af2fd4452c8e182caf6a4346cf2a2a394e.tar.gz |
Make the location of the database separately configurable.
The default is unchanged, /etc/openvswitch/conf.db.
This makes it possible to transition each Open vSwitch packaging from
/etc/openvswitch/conf.db to /var/lib/openvswitch/conf.db independently.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/openvswitch.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index eca6010f5..939f29617 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -132,6 +132,16 @@ AC_DEFUN([OVS_CHECK_LOGDIR], [LOGDIR='${localstatedir}/log/${PACKAGE}']) AC_SUBST([LOGDIR])]) +dnl Checks for the directory in which to store the Open vSwitch database. +AC_DEFUN([OVS_CHECK_DBDIR], + [AC_ARG_WITH( + [dbdir], + AC_HELP_STRING([--with-dbdir=DIR], + [directory used for conf.db [[SYSCONFDIR/PACKAGE]]]), + [DBDIR=$withval], + [DBDIR='${sysconfdir}/${PACKAGE}']) + AC_SUBST([DBDIR])]) + dnl Defines HAVE_BACKTRACE if backtrace() is declared in <execinfo.h> dnl and exists in libc. AC_DEFUN([OVS_CHECK_BACKTRACE], |