forked from Mirror/frr
*: Allow configure to control VTYSH_PAGER used
Signed-off-by: Donald Sharp
This commit is contained in:
parent
0896b75508
commit
08c369bda9
|
@ -228,6 +228,9 @@ AC_ARG_WITH(pkg-extra-version,
|
|||
AC_ARG_WITH(pkg-git-version,
|
||||
AS_HELP_STRING([--with-pkg-git-version], [add git information to MOTD and build version string]),
|
||||
[ test "x$withval" != "xno" && with_pkg_git_version="yes" ])
|
||||
AC_ARG_WITH(vtysh_pager,
|
||||
AS_HELP_STRING([--with-vtysh-pager=PAGER], [control what pager is compiled in as default]),
|
||||
VTYSH_PAGER=$withval, VTYSH_PAGER="more")
|
||||
AC_ARG_ENABLE(vtysh,
|
||||
AS_HELP_STRING([--disable-vtysh], [do not build integrated vty shell for Quagga]))
|
||||
AC_ARG_ENABLE(doc,
|
||||
|
@ -532,6 +535,8 @@ esac
|
|||
|
||||
AC_DEFINE_UNQUOTED(MULTIPATH_NUM, $MPATH_NUM, Maximum number of paths for a route)
|
||||
|
||||
AC_DEFINE_UNQUOTED(VTYSH_PAGER, "$VTYSH_PAGER", [What pager to use])
|
||||
|
||||
dnl -----------------------------------
|
||||
dnl Add extra version string to package
|
||||
dnl name, string and version fields.
|
||||
|
|
|
@ -264,7 +264,7 @@ vtysh_pager_init (void)
|
|||
if (pager_defined)
|
||||
vtysh_pager_name = strdup (pager_defined);
|
||||
else
|
||||
vtysh_pager_name = strdup ("more");
|
||||
vtysh_pager_name = strdup (VTYSH_PAGER);
|
||||
}
|
||||
|
||||
/* Command execution over the vty interface. */
|
||||
|
|
Loading…
Reference in a new issue