configure: add ENABLE_OPER_CHGHOST flag

This commit is contained in:
Elizabeth Myers 2016-03-18 14:57:08 -05:00
parent f79f3e6a95
commit 0e99e13a71
4 changed files with 15 additions and 10 deletions

View file

@ -497,6 +497,18 @@ if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
AC_DEFINE(CUSTOM_BRANDING, 1, [Define if custom branding is enabled.]) AC_DEFINE(CUSTOM_BRANDING, 1, [Define if custom branding is enabled.])
fi fi
dnl **********************************************************************
dnl Enable oper chghost
dnl **********************************************************************
AC_ARG_ENABLE(oper-chghost,
AC_HELP_STRING([--enable-oper-chghost],[Allow opers to use the CHGHOST command]),
[operchghost=$enableval],[operchghost=no])
if test "$operchghost" = yes; then
AC_DEFINE(ENABLE_OPER_CHGHOST, 1, [Define this to enable opers to use the CHGHOST command.])
fi
dnl Debug-related options dnl Debug-related options
dnl ===================== dnl =====================

View file

@ -72,11 +72,6 @@
*/ */
#undef IGNORE_BOGUS_TS #undef IGNORE_BOGUS_TS
/* ENABLE_OPER_CHGHOST
* Allow opers to use the CHGHOST command. Potentially abusive.
*/
#undef ENABLE_OPER_CHGHOST
/* HANGONGOODLINK and HANGONRETRYDELAY /* HANGONGOODLINK and HANGONRETRYDELAY
* Often net breaks for a short time and it's useful to try to * Often net breaks for a short time and it's useful to try to
* establishing the same connection again faster than CONNECTFREQUENCY * establishing the same connection again faster than CONNECTFREQUENCY

View file

@ -72,11 +72,6 @@
*/ */
#undef IGNORE_BOGUS_TS #undef IGNORE_BOGUS_TS
/* ENABLE_OPER_CHGHOST
* Allow opers to use the CHGHOST command. Potentially abusive.
*/
#undef ENABLE_OPER_CHGHOST
/* HANGONGOODLINK and HANGONRETRYDELAY /* HANGONGOODLINK and HANGONRETRYDELAY
* Often net breaks for a short time and it's useful to try to * Often net breaks for a short time and it's useful to try to
* establishing the same connection again faster than CONNECTFREQUENCY * establishing the same connection again faster than CONNECTFREQUENCY

View file

@ -41,6 +41,9 @@
/* Size of the dlink_node heap. */ /* Size of the dlink_node heap. */
#undef DNODE_HEAP_SIZE #undef DNODE_HEAP_SIZE
/* Define this to enable opers to use the CHGHOST command. */
#undef ENABLE_OPER_CHGHOST
/* Prefix where config files are installed. */ /* Prefix where config files are installed. */
#undef ETC_DIR #undef ETC_DIR