mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2025-12-25 22:20:06 +01:00
Bug 22591 - configure does not obey the --enable-*-transport options
https://bugs.freedesktop.org/show_bug.cgi?id=22591 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
d7f35946d6
commit
6bb7d2d21d
1 changed files with 48 additions and 6 deletions
54
configure.ac
54
configure.ac
|
|
@ -134,22 +134,64 @@ XTRANS_SECURE_RPC_FLAGS
|
|||
|
||||
# Preferred order to try transports for local connections
|
||||
AC_MSG_CHECKING([what order to try transports in for local connections])
|
||||
DEFAULT_LOCAL_TRANS=""
|
||||
case $host_os in
|
||||
solaris*)
|
||||
# On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were
|
||||
# faster than Unix domain sockets, but on Solaris 10 & later,
|
||||
# Unix domain sockets are faster now.
|
||||
DEFAULT_LOCAL_TRANS="UNIX_TRANS,LOCAL_TRANS,TCP_TRANS"
|
||||
if test "$UNIXCONN" = "yes" ; then
|
||||
if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
|
||||
fi
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS"
|
||||
fi
|
||||
if test "$LOCALCONN" = "yes" ; then
|
||||
if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
|
||||
fi
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS"
|
||||
fi
|
||||
if test "$TCPCONN" = "yes" ; then
|
||||
if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
|
||||
fi
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
|
||||
fi
|
||||
;;
|
||||
linux*)
|
||||
# LOCAL_TRANS is used for abstract sockets.
|
||||
DEFAULT_LOCAL_TRANS="LOCAL_TRANS,UNIX_TRANS,TCP_TRANS"
|
||||
if test "$UNIXCONN" = "yes" ; then
|
||||
if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
|
||||
fi
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS,UNIX_TRANS"
|
||||
fi
|
||||
if test "$TCPCONN" = "yes" ; then
|
||||
if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
|
||||
fi
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
if test "$LOCALCONN" = "yes"; then
|
||||
DEFAULT_LOCAL_TRANS="LOCAL_TRANS,UNIX_TRANS,TCP_TRANS"
|
||||
else
|
||||
DEFAULT_LOCAL_TRANS="UNIX_TRANS,TCP_TRANS"
|
||||
if test "$LOCALCONN" = "yes" ; then
|
||||
if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
|
||||
fi
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS"
|
||||
fi
|
||||
if test "$UNIXCONN" = "yes" ; then
|
||||
if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
|
||||
fi
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS"
|
||||
fi
|
||||
if test "$TCPCONN" = "yes" ; then
|
||||
if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS},"
|
||||
fi
|
||||
DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue