Discussion:
[omniORB] IPv6 configuration option
Anthony Mallet
2006-10-23 02:37:00 UTC
Permalink
Hello list,

I found useful to have an option to *disable* ipv6 support, even if it's
available in the system, for two reasons:

First, ipv6 might me available in the headers but disabled in the os
configuration.
Second, omniORB may have to interopere with ORBs that are not IPv6 aware,
even on ipv6-aware system.

I attach two patches that implement a --with-ipv6 configure
option. Option defaults to 'yes'. Patches have been done against
4.1.0beta2 public release. They have been commited to pkgsrc-wip
(http://pkgsrc-wip.sf.net) but it would be great if they could be
integrated in official realeases.

Thanks,
-- Anthony Mallet

-------------- next part --------------
$NetBSD$
--- acinclude.m4~ 2006-10-22 19:15:40.000000000 +0200
+++ acinclude.m4 2006-10-22 19:16:06.000000000 +0200
@@ -336,6 +336,19 @@
AC_SUBST(ENABLE_STATIC, $omni_cv_enable_static)
])

+AC_DEFUN([OMNI_ENABLE_IPV6],
+[AC_CACHE_CHECK(omniORB IPV6 support,
+omni_cv_omni_ipv6,
+[AC_ARG_WITH(ipv6,
+ AC_HELP_STRING([--with-ipv6],
+ [compile IPV6 support if supported by the machine (default: yes)]),
+ omni_cv_omni_ipv6=$withval,
+ omni_cv_omni_ipv6="yes")
+])
+if test "$omni_cv_omni_ipv6" = "no"; then
+ AC_DEFINE([OMNI_DISABLE_IPV6], [], [omniORB IPV6 support])
+fi
+])

dnl This defaults to enabled, and is appropriate for development
dnl For the release, the obvious chunk below should be replaced with:
-------------- next part --------------
$NetBSD$
--- configure.ac~ 2006-03-25 19:54:04.000000000 +0100
+++ configure.ac 2006-10-22 19:18:02.000000000 +0200
@@ -113,6 +113,7 @@

OMNI_CONFIG_FILE
OMNI_OMNINAMES_LOGDIR
+OMNI_ENABLE_IPV6
OMNI_DISABLE_STATIC
OMNI_DISABLE_THREAD_TRACING
Duncan Grisby
2006-10-23 22:22:11 UTC
Permalink
On Sunday 22 October, Anthony Mallet wrote:

[...]
Post by Anthony Mallet
I attach two patches that implement a --with-ipv6 configure
option. Option defaults to 'yes'. Patches have been done against
4.1.0beta2 public release. They have been commited to pkgsrc-wip
(http://pkgsrc-wip.sf.net) but it would be great if they could be
integrated in official realeases.
Thanks for the patch. I got there first, though -- 4.1.0 RC 1 already
has an equivalent option, but it's on by default, so you use
--disable-ipv6 if you want to disable it.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Anthony Mallet
2006-10-23 23:53:08 UTC
Permalink
Duncan Grisby writes:
| Thanks for the patch. I got there first, though -- 4.1.0 RC 1 already
| has an equivalent option, but it's on by default, so you use
| --disable-ipv6 if you want to disable it.

Ok. Sorry, I wasn't aware of RC1 ...
Thanks,

-- Anthony

Continue reading on narkive:
Loading...