From 0e9b1140eac2b0f9ded3391afdf2803fc32d1d39 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Thu, 15 Jul 2021 22:31:54 +0100 Subject: [PATCH] dtterm: on install use 'tic' to install the terminfo definition for dtterm --- cde/configure.ac | 3 +++ cde/programs/dtterm/Makefile.am | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/cde/configure.ac b/cde/configure.ac index e351a6517..fded46249 100644 --- a/cde/configure.ac +++ b/cde/configure.ac @@ -375,6 +375,9 @@ if test -z "$ac_cv_prog_PATCH"; then MISSING_PROGS="patch ${MISSING_PROGS}" fi +dnl Used to check if program 'tic' is available to install terminfo files +AC_CHECK_PROGS(TIC, tic, :) + dnl headers AC_HEADER_STDC AC_CHECK_HEADERS([locale.h security/pam_appl.h utempter.h]) diff --git a/cde/programs/dtterm/Makefile.am b/cde/programs/dtterm/Makefile.am index 79ce5bf33..b996c6e80 100644 --- a/cde/programs/dtterm/Makefile.am +++ b/cde/programs/dtterm/Makefile.am @@ -47,6 +47,10 @@ dtterm.ti: terminfoChecklist $(RM) $@ CPP="$(GENCPP)" $(SHELL) terminfoCreate < terminfoChecklist > $@ + +install: + @TIC@ dtterm.ti + install-exec-hook: chown root $(DESTDIR)$(bindir)/dtterm if !HAS_UTEMPTER_LIBRARY