summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.in5
-rw-r--r--src/configure.in5
2 files changed, 9 insertions, 1 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 2ae57d0..d087311 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -25,7 +25,10 @@ SCREEN = screen-$(VERSION)
GIT_REV = "`git describe --always 2>/dev/null`"
DEFS = @DEFS@ -DGIT_REV=\"$(GIT_REV)\"
-ETCSCREENRC = $(prefix)/etc/screenrc
+ETCSCREENRC = @ETCSCREENRC@
+ifeq (${ETCSCREENRC}, )
+ETCSCREENRC=$(prefix)/etc/screenrc
+endif
SCREENENCODINGS = $(datadir)/screen/utf8encodings
CC = @CC@
diff --git a/src/configure.in b/src/configure.in
index 448bafd..4184947 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1294,6 +1294,11 @@ test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.))
+ETCSCREENRC=
+AC_MSG_CHECKING(for the global screenrc file)
+AC_ARG_WITH(sys-screenrc, [ --with-sys-screenrc=path to the global screenrc file], [ ETCSCREENRC="${withval}" ])
+AC_SUBST(ETCSCREENRC)
+
AC_OUTPUT(Makefile doc/Makefile, [[
# a hook for preserving undef directive in config.h
mv config.h conftest