Added --enable-ipv6 option to configure to enable IPv6 networking.

It substitutes @NET_SOURCE@ for net_udp.c or net_udp6.c.
This commit is contained in:
Pontus Lidman 2000-02-08 21:23:06 +00:00
parent 7d5b301d80
commit d608249a38
4 changed files with 15 additions and 9 deletions

View File

@ -26,6 +26,9 @@
/* Define this if you are using Mesa */
#undef XMESA
/* Define this if you want IPv6 support */
#undef HAVE_IPV6
/* Define this if you have GL_COLOR_INDEX8_EXT in GL/gl.h */
#undef HAVE_GL_COLOR_INDEX8_EXT

View File

@ -69,7 +69,7 @@ AC_FUNC_MMAP
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(gethostname gethostbyname connect gettimeofday getwd mkdir \
ftime _ftime fcntl stat putenv select socket strerror strstr \
snprintf _snprintf vsnprintf _vsnprintf strsep dlopen)
snprintf _snprintf vsnprintf _vsnprintf strsep dlopen getaddrinfo getnameinfo)
AC_ARG_ENABLE(experimental,
[ --enable-experimental compile with experimental code. Use at your
@ -97,6 +97,14 @@ AC_ARG_ENABLE(release,
RELEASE=$enable_release
)
AC_ARG_ENABLE(ipv6,
[ --enable-ipv6 enable IPv6 support],
AC_DEFINE(HAVE_IPV6)
NET_SOURCE=net_udp6.c
,
NET_SOURCE=net_udp.c
)
AC_ARG_ENABLE(alsa,
[ --enable-alsa enable alsa support],
)
@ -785,6 +793,7 @@ AC_SUBST(QW_SRV_SYS_SRC)
AC_SUBST(X11_VID_SRC)
AC_SUBST(HAVE_WSOCK)
AC_SUBST(HAVE_UDP)
AC_SUBST(NET_SOURCE)
AC_SUBST(VERSION)
AC_SUBST(QF_VERSION)

View File

@ -137,11 +137,8 @@ CD_AUDIO_SRC = cd_wrapper.c
SYS_SRC = sys_common.c @QW_CL_SYS_SRC@
# Networking source files
#
# Uncomment the second line to add IPv6 support
QW_NET_SRC = net_udp.c net_com.c mdfour.c
#QW_NET_SRC = net_udp6.c net_com.c mdfour.c
QW_NET_SRC = @NET_SOURCE@ net_com.c mdfour.c
# Common source files

View File

@ -39,11 +39,8 @@ QW_SRV_SYS_SRC = sys_common.c @QW_SRV_SYS_SRC@
# Networking source files
# FIXME: Should not assume UNIX
#
# Uncomment the second line for IPv6 support
QW_NET_SRC = net_udp.c net_com.c mdfour.c
#QW_NET_SRC = net_udp6.c net_com.c mdfour.c
QW_NET_SRC = @NET_SOURCE@ net_com.c mdfour.c
# Server source files