utempter: complete the implementation
Liang Chang added utempter support to the dtterm widget in pre-autoconf CDE. While the code itself was merged, it was still not "turned on" for autoconf builds. This commit completes the implementation allowing dtterm on Linux and the BSDs to be installed without having to be setuid root -- as long as the libutempter headers and libraries are installed.
This commit is contained in:
@@ -8,6 +8,10 @@ if BSD
|
||||
dtterm_LDADD += -lutil
|
||||
endif
|
||||
|
||||
if HAS_UTEMPTER_LIBRARY
|
||||
dtterm_LDADD += -lutempter
|
||||
endif
|
||||
|
||||
dtterm_CFLAGS = -I$(top_builddir)/lib/DtTerm/TermPrim \
|
||||
-I$(top_builddir)/lib/DtTerm/Term \
|
||||
-I$(top_builddir)/lib/DtTerm/TermView \
|
||||
@@ -45,5 +49,7 @@ dtterm.ti: terminfoChecklist
|
||||
|
||||
install-exec-hook:
|
||||
chown root $(DESTDIR)$(bindir)/dtterm
|
||||
if !HAS_UTEMPTER_LIBRARY
|
||||
chmod 4755 $(DESTDIR)$(bindir)/dtterm
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user