Add --with-socket-path to configure. GitHub issue 5635 from Alexandre Fiori.

This commit is contained in:
Nicholas Marriott
2026-09-25 10:07:39 +01:00
parent 545ba99f8c
commit ef881f318c
2 changed files with 14 additions and 0 deletions

View File

@@ -15,6 +15,9 @@ AM_CPPFLAGS += @XOPEN_DEFINES@ \
-DTMUX_LOCK_CMD='"@DEFAULT_LOCK_CMD@"' \ -DTMUX_LOCK_CMD='"@DEFAULT_LOCK_CMD@"' \
-DTMUX_TERM='"@DEFAULT_TERM@"' \ -DTMUX_TERM='"@DEFAULT_TERM@"' \
-DTMUX_MOUSE=1 -DTMUX_MOUSE=1
if HAVE_TMUX_SOCK
AM_CPPFLAGS += -DTMUX_SOCK='"@TMUX_SOCK@"'
endif
# Additional object files. # Additional object files.
LDADD = $(LIBOBJS) LDADD = $(LIBOBJS)

View File

@@ -111,6 +111,17 @@ case "x$DEFAULT_TERM" in
;; ;;
esac esac
# Allow the socket directory list to be set. It is a colon-separated list of
# directories, tried in order; a leading $ is an environment variable.
AC_ARG_WITH(
socket-path,
AS_HELP_STRING(--with-socket-path=PATHS, set socket directory list),
[TMUX_SOCK=`echo "$withval" | sed 's/[[$]]/$$/g'`],
[TMUX_SOCK=]
)
AM_CONDITIONAL(HAVE_TMUX_SOCK, [test "x$TMUX_SOCK" != x])
AC_SUBST(TMUX_SOCK)
# Do we need fuzzers? # Do we need fuzzers?
AM_CONDITIONAL(NEED_FUZZING, test "x$enable_fuzzing" = xyes) AM_CONDITIONAL(NEED_FUZZING, test "x$enable_fuzzing" = xyes)