Autotools switch --with-dht-support was buggy. Replaced it with --with-dht

This commit is contained in:
peerkoel 2007-03-16 13:40:49 +00:00
parent 118e1cf00d
commit f89bcdd1de
1 changed files with 6 additions and 6 deletions

View File

@ -113,14 +113,14 @@ esac
dnl find out what kind of dht-support to use dnl find out what kind of dht-support to use
AC_ARG_WITH( AC_ARG_WITH(
[dhtsupport], [dht],
AS_HELP_STRING([--with-dht-support=on|off|logging],[Specify how to use DHT support. Option logging will add extra logging. Default is on.]), AS_HELP_STRING([--with-dht=on|off|logging],[Specify how to use DHT support. Option logging will add extra logging. Default is on.]),
[[dhtsupport=$withval]], [[dht=$withval]],
[[dhtsupport=on]] [[dht=on]]
) )
dnl Check the value for the --with-dht-support switch dnl Check the value for the --with-dht-support switch
AC_MSG_CHECKING([how to use DHT]) AC_MSG_CHECKING([how to use DHT])
case "$dhtsupport" in case "$dht" in
"on") "on")
AC_MSG_RESULT(on) AC_MSG_RESULT(on)
;; ;;
@ -134,7 +134,7 @@ case "$dhtsupport" in
;; ;;
*) *)
AC_MSG_RESULT() AC_MSG_RESULT()
AC_MSG_ERROR([Unknown dht-dupport option "$dhtsupport". Use either "on", "off" or "logging".]) AC_MSG_ERROR([Unknown dht-dupport option "$dht". Use either "on", "off" or "logging".])
;; ;;
esac esac