cpp revisited: look for a cpp binary in various locations for use at runtime

Certain programs like dtlogin and tt_type_comp need access to the
system's cpp command to process certain files at runtime.  tradcpp is
not installed on most systems, and is intended for use as a imake-cpp
replacement which is all we are using it for.  We still need an
honest cpp for the CDE components to use.

Now, we look in various places for a 'cpp' command and set CPP_COMMAND
to it's value.  This way tt_type_comp and other CDE programs can do
required processing at runtime.
This commit is contained in:
Jon Trulson
2019-12-04 14:28:44 -07:00
parent 65ce14c419
commit 25035724af
3 changed files with 18 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ mp_types_gram.h:
bin_PROGRAMS = tt_type_comp
tt_type_comp_CXXFLAGS = -I../../lib -I../../slib \
$(TT_VERSION_DEFINE) -DCPP_PROGRAM="\"$(GENCPP)\""
$(TT_VERSION_DEFINE) -DCPP_PROGRAM="\"$(CPP_PROGRAM)\""
tt_type_comp_SOURCES = mp_type_comp.C mp_types_table.C \
frozen.mp_types_lex.C frozen.mp_types_gram.C