Bring back --with-sys-screenrc configure flag.master
authorSadrul Habib Chowdhury <[email protected]>
Tue, 22 Jun 2010 02:26:54 +0000 (21 22:26 -0400)
committerSadrul Habib Chowdhury <[email protected]>
Tue, 22 Jun 2010 02:26:54 +0000 (21 22:26 -0400)
src/Makefile.in
src/configure.in

index 2ae57d0..d087311 100644 (file)
@@ -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@
index 448bafd..4184947 100644 (file)
@@ -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