1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 06:43:12 +02:00

added IPv6 support to ./Config

This commit is contained in:
codemastr
2001-06-27 00:35:42 +00:00
parent 16e06cb6a0
commit d276e9a197
5 changed files with 231 additions and 182 deletions
+2
View File
@@ -612,3 +612,5 @@ seen. gmtime warning still there
- Removed some remnants of umode +b
- Added configure check for glob.h
- Added the ability to use file globs in loadmodule and include (only if your system has glob)
- Added ./Config option to enable IPv6 (and made a configure check to make sure we can)
+34 -1
View File
@@ -40,6 +40,9 @@ fi
if [ "$CRYPT_ILINE_PASSWORD" = "1" ] ; then
ARG="$ARG--with-crypt-iline "
fi
if [ "$INET6" = "1" ] ; then
ARG="$ARG--enable-inet6 "
fi
ARG="$ARG--with-listen=$LISTEN_SIZE "
ARG="$ARG--with-dpath=$DPATH "
ARG="$ARG--with-spath=$SPATH "
@@ -83,7 +86,7 @@ NICKNAMEHISTORYLENGTH="2000"
MAXSENDQLENGTH="3000000"
BUFFERPOOL="9"
MAXCONNECTIONS="1024"
INET6=""
if [ "`eval echo -n 'a'`" = "-n a" ] ; then
c="\c"
else
@@ -410,6 +413,35 @@ fi
esac
done
TEST=""
while [ -z "$TEST" ] ; do
if [ "$INET6" = "1" ] ; then
TEST="Yes"
else
TEST="No"
fi
echo ""
echo "Do you want to enable IPv6 support?"
echo $n "[$TEST] -> $c"
read cc
if [ -z "$cc" ] ; then
cc=$TEST
fi
case "$cc" in
[Yy]*)
INET6="1"
;;
[Nn]*)
INET6=""
;;
*)
echo ""
echo "You must enter either Yes or No"
TEST=""
;;
esac
done
TEST=""
while [ -z "$TEST" ] ; do
TEST="$LISTEN_SIZE"
@@ -538,6 +570,7 @@ CRYPT_OPER_PASSWORD="$CRYPT_OPER_PASSWORD"
CRYPT_LINK_PASSWORD="$CRYPT_LINK_PASSWORD"
CRYPT_ILINE_PASSWORD="$CRYPT_ILINE_PASSWORD"
CRYPT_XLINE_PASSWORD="$CRYPT_XLINE_PASSWORD"
INET6="$INET6"
LISTEN_SIZE="$LISTEN_SIZE"
MAXSENDQLENGTH="$MAXSENDQLENGTH"
BUFFERPOOL="$BUFFERPOOL"
+5 -1
View File
@@ -72,7 +72,11 @@ exit(0);
])
])
if test "$ac_cv_ip6" = "no"; then
AC_MSG_WARN(Your system does not support IPv6 so it will not be enabled)
else
AC_DEFINE(INET6)
fi
AC_CHECK_HEADER(sys/param.h,AC_DEFINE(PARAMH))
AC_CHECK_HEADER(stdlib.h,AC_DEFINE(STDLIBH))
AC_CHECK_HEADER(stddef.h,AC_DEFINE(STDDEFH))
Vendored
+187 -180
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -206,3 +206,6 @@
/* Set to the max connections you want */
#undef MAXCONNECTIONS
/* Define if you want IPv6 enabled */
#undef INET6