add configure option --enable-javaports to open ports of services with Java bindings...
authorChristian Grothoff <christian@grothoff.org>
Mon, 19 Mar 2012 14:53:13 +0000 (14:53 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 19 Mar 2012 14:53:13 +0000 (14:53 +0000)
configure.ac
src/core/core.conf.in
src/dht/dht.conf.in
src/nse/nse.conf.in
src/statistics/statistics.conf.in

index 825d8c7ffb72080a0daf2a8939f7ff62a1385c1f..3d549568b425e510f000e37de3a4705fda6d8ce3 100644 (file)
@@ -172,6 +172,7 @@ AC_SUBST(DEFAULT_INTERFACE)
 # sockets in default configuratin:
 AC_SUBST(UNIXONLY)
 
+
 AC_MSG_CHECKING([for build target])
 AM_CONDITIONAL(DARWIN,  test "$build_target" = "darwin")
 AM_CONDITIONAL(CYGWIN,  test "$build_target" = "cygwin")
@@ -777,12 +778,27 @@ AM_CONDITIONAL([ENABLE_TEST_RUN], [test "x$enable_tests_run" = "xyes"])
 # should expensive tests be run?
 AC_MSG_CHECKING(whether to run expensive tests)
 AC_ARG_ENABLE([expensivetests],
-   [AS_HELP_STRING([--enable-expensive-tests], [enable running expensive testcases])],
+   [AS_HELP_STRING([--enable-expensivetests], [enable running expensive testcases])],
    [enable_expensive=${enableval}],
    [enable_expensive=no])
 AC_MSG_RESULT($enable_expensive)
 AM_CONDITIONAL([HAVE_EXPENSIVE_TESTS], [test "x$enable_expensive" = "xyes"])
 
+# should ports be open for Java services?
+AC_MSG_CHECKING(whether to enable ports for gnunet-java)
+AC_ARG_ENABLE([javaports],
+   [AS_HELP_STRING([--enable-javaports], [use non-zero ports for services with Java bindings (default is NO)])],
+   [enable_java_ports=${enableval}],
+   [enable_java_ports=no])
+AC_MSG_RESULT($enable_java_ports)
+if test "x$enable_java_ports" = "xyes"
+then
+  JAVAPORT=""
+else
+  JAVAPORT="$UNIXONLY"
+fi
+AC_SUBST(JAVAPORT)
+
 # should benchmarks be run?
 AC_MSG_CHECKING(whether to run benchmarks during make check)
 AC_ARG_ENABLE([benchmarks],
@@ -930,6 +946,12 @@ then
   AC_MSG_NOTICE([NOTICE: sqlite not found.  sqLite support will not be compiled.])
 fi
 
+# java ports
+if test "x$enable_java_ports" = "xyes"
+then
+  AC_MSG_NOTICE([NOTICE: opening ports for gnunet-java bindings by default.])
+fi
+
 if test "x$lmhd" != "x1"
 then
  AC_MSG_NOTICE([NOTICE: libmicrohttpd not found, http transport will not be installed.])
index 84e2df9fb800d64831c6757bc690c7249f05b339..61ac84e6c95551d8d5b76005edbca20e94a1e369 100644 (file)
@@ -1,6 +1,6 @@
 [core]
 AUTOSTART = YES
-@UNIXONLY@ PORT = 2092
+@JAVAPORT@PORT = 2092
 HOSTNAME = localhost
 HOME = $SERVICEHOME
 CONFIG = $DEFAULTCONFIG
index 17c13e93e7af1fa83514f286a3fc33bc99522622..59581dc7bd5f2efe1b2ce98063c6f0b87c0aa9c9 100644 (file)
@@ -1,6 +1,6 @@
 [dht]
 AUTOSTART = YES
-@UNIXONLY@ PORT = 2095
+@JAVAPORT@PORT = 2095
 HOSTNAME = localhost
 HOME = $SERVICEHOME
 CONFIG = $DEFAULTCONFIG
index b04f5acfe9248ffc019e51dab0dfc909160c8afa..bc49e051dbd018cee546824cad6b8b0c1335b669 100644 (file)
@@ -1,6 +1,6 @@
 [nse]
 AUTOSTART = YES
-@UNIXONLY@ PORT = 2097
+@JAVAPORT@PORT = 2097
 HOSTNAME = localhost
 HOME = $SERVICEHOME
 CONFIG = $DEFAULTCONFIG
index 4482b0f112fadc9bc9fe22d0444019603f2c6df4..5de9dedeacd44684668a1a9f699f71cf27fa4032 100644 (file)
@@ -1,6 +1,6 @@
 [statistics]
 AUTOSTART = YES
-@UNIXONLY@ PORT = 2088
+@JAVAPORT@PORT = 2088
 HOSTNAME = localhost
 HOME = $SERVICEHOME
 CONFIG = $DEFAULTCONFIG