Add --enable-tcp option.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 1 Jul 2003 15:47:56 +0000 (15:47 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 1 Jul 2003 15:47:56 +0000 (15:47 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@611 cb58f699-b61c-0410-a6fe-9272a202ed29

configure.ac

index 897d9e5..80b9968 100644 (file)
@@ -48,6 +48,19 @@ fi
 # Test RPC now -- deal with it later
 ACX_RPCTEST([rpctest="yes"],[rpctest="no"])
 
+# Determine whether to use TCP for the shar socket
+AC_ARG_ENABLE([tcp],
+       AC_HELP_STRING([--enable-tcp], [enable the SHAR to use a TCP socket on Unix]),
+       [tcp_enabled=$enableval], [tcp_enabled=default])
+
+if test "x$tcp_enabled" = "x" ; then
+   tcp_enabled=yes
+fi
+
+if test "$tcp_enabled" = "yes" ; then
+       CFLAGS="$CFLAGS -DWANT_TCP_SHAR"
+fi
+
 AC_ARG_WITH(dmalloc,
             AC_HELP_STRING([--with-dmalloc=PATH], [where dmalloc is installed]),
             [if test x_$with_dmalloc != x_/usr; then