summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-08-21 19:05:49 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2006-08-21 19:05:49 -0700
commit11391a1ffe4c633507406d2a1ed5abe57c8698db (patch)
treed5172b1f454a450a65011c1cba1b0bd48174a9cd
parentc0ebfcde0dd3f82c0e5712764e4403b2837e09b5 (diff)
Add --enable-local-transport and set it on by default on SVR4 OS'es
-rw-r--r--xtrans.m418
1 files changed, 16 insertions, 2 deletions
diff --git a/xtrans.m4 b/xtrans.m4
index 7da4f94..1d80595 100644
--- a/xtrans.m4
+++ b/xtrans.m4
@@ -58,8 +58,9 @@ AC_DEFUN([XTRANS_TCP_FLAGS],[
# -------------------------
# Standard checks for which Xtrans transports to use by the Xorg packages
# that use Xtrans functions
-AC_DEFUN([XTRANS_CONNECTION_FLAGS],
-[AC_REQUIRE([AC_TYPE_SIGNAL])
+AC_DEFUN([XTRANS_CONNECTION_FLAGS],[
+ AC_REQUIRE([AC_CANONICAL_HOST])
+ AC_REQUIRE([AC_TYPE_SIGNAL])
AC_ARG_ENABLE(unix-transport,
AC_HELP_STRING([--enable-unix-transport],[Enable UNIX domain socket transport]),
[UNIXCONN=$enableval], [UNIXCONN=yes])
@@ -77,6 +78,19 @@ AC_DEFUN([XTRANS_CONNECTION_FLAGS],
AC_DEFINE(TCPCONN,1,[Support TCP socket connections])
XTRANS_TCP_FLAGS
fi
+ [case $host_os in
+ solaris*|sco*|sysv4*) localdef="yes" ;;
+ *) localdef="no" ;;
+ esac]
+ AC_ARG_ENABLE(local-transport,
+ AC_HELP_STRING([--enable-local-transport],[Enable os-specific local transport]),
+ [LOCALCONN=$enableval], [LOCALCONN=$localdef])
+ AC_MSG_CHECKING([if Xtrans should support os-specific local connections])
+ AC_MSG_RESULT($LOCALCONN)
+ if test "$LOCALCONN" = "yes"; then
+ AC_DEFINE(LOCALCONN,1,[Support os-specific local connections])
+ fi
+
]) # XTRANS_CONNECTION_FLAGS