oweals/cde.git
4 years agodtcalc: make it build
Jon Trulson [Wed, 20 Nov 2019 02:27:47 +0000 (19:27 -0700)]
dtcalc: make it build

4 years agodtterm/util: delete this non-used stuff
Jon Trulson [Wed, 20 Nov 2019 02:15:17 +0000 (19:15 -0700)]
dtterm/util: delete this non-used stuff

4 years agodtterm: make it build
Jon Trulson [Wed, 20 Nov 2019 02:14:38 +0000 (19:14 -0700)]
dtterm: make it build

4 years agodticon: make it build
Jon Trulson [Wed, 20 Nov 2019 01:38:51 +0000 (18:38 -0700)]
dticon: make it build

4 years agodtdbcache: make it build
Jon Trulson [Wed, 20 Nov 2019 01:31:36 +0000 (18:31 -0700)]
dtdbcache: make it build

4 years agodtexec: make it build
Jon Trulson [Wed, 20 Nov 2019 01:26:55 +0000 (18:26 -0700)]
dtexec: make it build

4 years agodtstyle: make it build
Jon Trulson [Wed, 20 Nov 2019 01:17:34 +0000 (18:17 -0700)]
dtstyle: make it build

4 years agochanging_version_number.txt: change tooltalk.tmpl to tooltalk.inc
Jon Trulson [Wed, 20 Nov 2019 01:15:26 +0000 (18:15 -0700)]
changing_version_number.txt: change tooltalk.tmpl to tooltalk.inc

4 years agolibtt: add -ltirpc as a dependency if we are using it
Jon Trulson [Wed, 20 Nov 2019 01:09:14 +0000 (18:09 -0700)]
libtt: add -ltirpc as a dependency if we are using it

This means that when linking against libtt, libtirpc should also
automatically be linked in if we determined that we are using tirpc.

This avoids having to link every program that uses libtt (almost all
of them) from having to have a $(TIRPCLIB) added to their link
commands.

4 years agodthello: make it build
Jon Trulson [Wed, 20 Nov 2019 00:30:27 +0000 (17:30 -0700)]
dthello: make it build

4 years agodtsession: make it build, add check for the full path to xrdb
Jon Trulson [Wed, 20 Nov 2019 00:18:04 +0000 (17:18 -0700)]
dtsession: make it build, add check for the full path to xrdb

4 years agoMerge branch 'master' into autotools-conversion after utf8-conversion
Jon Trulson [Tue, 19 Nov 2019 18:44:33 +0000 (11:44 -0700)]
Merge branch 'master' into autotools-conversion after utf8-conversion

4 years agoSet version to 2.3.1a (devel) for current master
Jon Trulson [Mon, 18 Nov 2019 20:03:52 +0000 (13:03 -0700)]
Set version to 2.3.1a (devel) for current master

4 years agogitignore: add infolib/etc UTF-8 locales
Jon Trulson [Mon, 18 Nov 2019 19:52:17 +0000 (12:52 -0700)]
gitignore: add infolib/etc UTF-8 locales

4 years agosite.def: add define guards around DtLocalesToBuild
Jon Trulson [Sun, 17 Nov 2019 22:08:20 +0000 (15:08 -0700)]
site.def: add define guards around DtLocalesToBuild

4 years agodtinfo: link proper localized (utf8) dirs
Jon Trulson [Sun, 17 Nov 2019 22:07:14 +0000 (15:07 -0700)]
dtinfo: link proper localized (utf8) dirs

4 years agoautogen.sh: make it executable
Jon Trulson [Sat, 16 Nov 2019 23:40:58 +0000 (16:40 -0700)]
autogen.sh: make it executable

4 years agoMerge branch 'master' into autotools-conversion after 2.3.1 release
Jon Trulson [Sat, 16 Nov 2019 23:35:56 +0000 (16:35 -0700)]
Merge branch 'master' into autotools-conversion after 2.3.1 release

4 years agoMerge branch 'master' into utf8-conversion after 2.3.1 release
Jon Trulson [Sat, 16 Nov 2019 23:34:48 +0000 (16:34 -0700)]
Merge branch 'master' into utf8-conversion after 2.3.1 release

4 years agoHISTORY: update for 2.3.1 release 2.3.1
Jon Trulson [Sat, 16 Nov 2019 02:06:01 +0000 (19:06 -0700)]
HISTORY: update for 2.3.1 release

4 years agoChange CDE version info for 2.3.1 release
Jon Trulson [Sat, 16 Nov 2019 01:04:01 +0000 (18:04 -0700)]
Change CDE version info for 2.3.1 release

5 years agosym2num: don't hardcode path to cpp
Nina Didenko [Tue, 5 Nov 2019 17:45:44 +0000 (20:45 +0300)]
sym2num: don't hardcode path to cpp

5 years agomerge: don't hardcode path to gencat
Nina Didenko [Tue, 5 Nov 2019 17:45:43 +0000 (20:45 +0300)]
merge: don't hardcode path to gencat

5 years agoudbToAny.ksh: don't hardcode path to awk
Nina Didenko [Tue, 5 Nov 2019 17:45:42 +0000 (20:45 +0300)]
udbToAny.ksh: don't hardcode path to awk

5 years agodtinfogen: don't override PATH
Nina Didenko [Tue, 5 Nov 2019 17:45:41 +0000 (20:45 +0300)]
dtinfogen: don't override PATH

5 years agoil: remove various deprecated files
Chase [Tue, 29 Oct 2019 02:23:47 +0000 (21:23 -0500)]
il: remove various deprecated files

5 years agoremove more internal jpeg headers
Chase [Tue, 29 Oct 2019 01:27:35 +0000 (20:27 -0500)]
remove more internal jpeg headers

5 years agotradcpp: remove test makefiles
Jon Trulson [Thu, 31 Oct 2019 04:14:04 +0000 (22:14 -0600)]
tradcpp: remove test makefiles

5 years agodtfile: GENCPP, be consistent with SCRIPTFLAGS
Jon Trulson [Thu, 31 Oct 2019 02:52:34 +0000 (20:52 -0600)]
dtfile: GENCPP, be consistent with SCRIPTFLAGS

5 years agodtwm: fix quoting for SCRIPTFLAGS
Jon Trulson [Thu, 31 Oct 2019 02:46:53 +0000 (20:46 -0600)]
dtwm: fix quoting for SCRIPTFLAGS

5 years agoDelete cppfile.inc, don't need it anymore
Jon Trulson [Thu, 31 Oct 2019 01:39:27 +0000 (19:39 -0600)]
Delete cppfile.inc, don't need it anymore

5 years agolibtt, DtWidget: use new GENCPP
Jon Trulson [Thu, 31 Oct 2019 01:38:20 +0000 (19:38 -0600)]
libtt, DtWidget: use new GENCPP

5 years agodtwm: use new GENCPP
Jon Trulson [Thu, 31 Oct 2019 01:33:01 +0000 (19:33 -0600)]
dtwm: use new GENCPP

5 years agogitignore: ignore built tradcpp binary
Jon Trulson [Thu, 31 Oct 2019 01:24:39 +0000 (19:24 -0600)]
gitignore: ignore built tradcpp binary

5 years agoconfigure: use tradcpp as GENCPP
Jon Trulson [Thu, 31 Oct 2019 01:19:49 +0000 (19:19 -0600)]
configure: use tradcpp as GENCPP

5 years agoAdd tradcpp to the repository, and use it as GENCPP (generic preprocessor)
Jon Trulson [Thu, 31 Oct 2019 01:17:24 +0000 (19:17 -0600)]
Add tradcpp to the repository, and use it as GENCPP (generic preprocessor)

With lots of experimenting, tradcpp (0.4) seems to work way better
than gcc, and it's output is actually valid. We'll go with that for
now.

5 years agodtfile: still working on cpp issues, a better solution is needed
Jon Trulson [Thu, 31 Oct 2019 00:59:25 +0000 (18:59 -0600)]
dtfile: still working on cpp issues, a better solution is needed

I think it's time to try tradcpp.

5 years agoconfigure: use AC_PATH_PROG to find ksh
Jon Trulson [Thu, 31 Oct 2019 00:53:16 +0000 (18:53 -0600)]
configure: use AC_PATH_PROG to find ksh

5 years agodtlogin/dtgreet/dtchooser: get them to build
Jon Trulson [Wed, 30 Oct 2019 23:53:37 +0000 (17:53 -0600)]
dtlogin/dtgreet/dtchooser: get them to build

That was not fun.  There were a variety of issues.  It's needs
testing.

We use the new GENCPP for preprocessing the various scripts and config
files in config/

5 years agoconfigure: Several changes related to locating cpp and ksh
Jon Trulson [Wed, 30 Oct 2019 23:42:31 +0000 (17:42 -0600)]
configure: Several changes related to locating cpp and ksh

For ksh, we need a full pathname.  AC_CHECK_PROGS only sets the name,
so we can't use that (think of a "#!" in a shell script.

We use some shell scripting to locate the ksh pathname.

While on that subject, the current use of CPP (gcc -E) as a general
preprocessor does not work very well.  I messes up whitespace,
adds/translates random whitespace, and complains bitterly about single
quotes (') in various places like comments.  It's not usable for what
CDE needs.

So, now we use GENCPP.  Using shell scripting like that used for ksh,
we locate the cpp program, and set GENCPP to "/full/path/to/cpp
-traditional -nostdinc".  This is what Linux uses now in an Imake
build, and it works fine.  We'll have to see what the BSD/Solari do.

We might need to just include BSD's "tradcpp" into the build and use
that.  It too works well in limited testing, but eats blank lines.  We
can live with that if we have to.

5 years agodtlogin:Makefile.am: fix autogen warnings. This one still needs work.
Jon Trulson [Wed, 30 Oct 2019 19:28:55 +0000 (13:28 -0600)]
dtlogin:Makefile.am: fix autogen warnings.  This one still needs work.

5 years agoconfigure: check for -lcrypt, add dtlogin/Makefile.am
Jon Trulson [Wed, 30 Oct 2019 19:28:14 +0000 (13:28 -0600)]
configure: check for -lcrypt, add dtlogin/Makefile.am

5 years agodtwm: fixes to make it build
Jon Trulson [Wed, 30 Oct 2019 18:17:32 +0000 (12:17 -0600)]
dtwm: fixes to make it build

Removed PORT_NOFORK define in favor of autotools vfork availablility
checking. Use vfork if present.

Got rid of getenv/putenv definitions in favor of including correct
system headers.

Use FD_CLOEXEC in fcntl() call rather than hardcoded '1'.

Added -lm check to configure so dtwm will build.

Renamed internal round() function to wmround() to fix warning about
redefinition of builtin.

Fixed missing backslash in Makefile.am that prevented half the sources
from building.

5 years agoconfigure: Add -lm and vfork checks. Add dtwm to AC_OUTPUT.
Jon Trulson [Wed, 30 Oct 2019 18:10:30 +0000 (12:10 -0600)]
configure: Add -lm and vfork checks. Add dtwm to AC_OUTPUT.

5 years agodtfile: make it build
Jon Trulson [Wed, 30 Oct 2019 16:59:45 +0000 (10:59 -0600)]
dtfile: make it build

5 years agoconfigure: Add -DANSICPP -DMULTIBYTE -DNLS16 to SOURCE_CPP_DEFINES
Jon Trulson [Wed, 30 Oct 2019 16:59:22 +0000 (10:59 -0600)]
configure: Add -DANSICPP -DMULTIBYTE -DNLS16 to SOURCE_CPP_DEFINES

5 years agodtpad: builds again using @DTCLIENTLIBS@
Jon Trulson [Wed, 30 Oct 2019 01:23:23 +0000 (19:23 -0600)]
dtpad: builds again using @DTCLIENTLIBS@

5 years agogitignore: add .dirstamp
Jon Trulson [Wed, 30 Oct 2019 01:18:47 +0000 (19:18 -0600)]
gitignore: add .dirstamp

5 years agoDtSvc: vastly simplify building this library
Jon Trulson [Wed, 30 Oct 2019 01:14:17 +0000 (19:14 -0600)]
DtSvc: vastly simplify building this library

We take advantage of subdir-object and just build the subdir source
files directly as normal dependencies of libDtSvc in the top level
Makefile.am.

This means the intevening subdirectory Makefiles are no longer needed,
and no need to replicate flags and the like between the
subdirectory Makefile.am files.

Also, no need to build fake .a libs we can't really use.

configure: remove AC_OUTPUT_FILES related the the lib/DtSvc/*
subdirectories.  They are no longer needed.

5 years agoconfigure: Add -lDtXinerama to DTCLIENTLIBS and set USE_XINERAMA in CFLAGS
Jon Trulson [Wed, 30 Oct 2019 00:35:54 +0000 (18:35 -0600)]
configure: Add -lDtXinerama to DTCLIENTLIBS and set USE_XINERAMA in CFLAGS

So that means Xinerama support is required now, but then it always has
been anyway.

In time, this can be made configurable if needed.

5 years agodtmail: Make it build. There is more work to be done here.
Jon Trulson [Wed, 30 Oct 2019 00:30:19 +0000 (18:30 -0600)]
dtmail: Make it build.  There is more work to be done here.

Specifically, we should be able to have libDtMail subdir build all of
it's objects directly w/o intervening Makefile.am's and archive .a
libs.

5 years agoDtSvc: we can't use archive .a libs in building libDtSvc.so
Jon Trulson [Wed, 30 Oct 2019 00:11:42 +0000 (18:11 -0600)]
DtSvc: we can't use archive .a libs in building libDtSvc.so

We were building subsets of this library as archive.a objects, then
trying to combine them into a shared object.  This warnings, and link
failures due to the lack of 0fPIC when building the archive libraries.

Now, we do not buld archive libraries, and the main libDtSvc.so
library is build by adding all of the .lo file in the component
subdirectories.

In a future commit, we could just remove the SUBDIR builds (DtUtil1,
etc) and build the sub objects directly.

5 years agoDtXinerama: build as shared lib, all dep on libXinerama
Jon Trulson [Wed, 30 Oct 2019 00:07:58 +0000 (18:07 -0600)]
DtXinerama: build as shared lib, all dep on libXinerama

5 years agoconfigure: Several changes, disable static builds, etc
Jon Trulson [Wed, 30 Oct 2019 00:02:29 +0000 (18:02 -0600)]
configure: Several changes, disable static builds, etc

Static builds are disabled - there is no reason to build both shared
and static versions of everything.

MAJOR/MINOR/MICRO variables changed to CDE_VERSION_MAJOR/MINOR/MICRO.

Make DtXinerama a shared (la) library.

Add DTCLIENTLIBS SUBST to replace the role of Imake DtClientLibs, DT
libs needed to link most CDE programs.

Add AC_PROG_RANDLIB.

5 years agodsdm: make it build
Jon Trulson [Tue, 29 Oct 2019 18:34:06 +0000 (12:34 -0600)]
dsdm: make it build

5 years agoconfigure: add icons and backdrops to AC_CONFIG_FILES
Jon Trulson [Tue, 29 Oct 2019 18:33:38 +0000 (12:33 -0600)]
configure: add icons and backdrops to AC_CONFIG_FILES

5 years agoprograms: temporarily disable: dthelp dtksh dtappbuilder dtdocbook dtinfo nsgmls
Jon Trulson [Tue, 29 Oct 2019 18:09:06 +0000 (12:09 -0600)]
programs: temporarily disable: dthelp dtksh dtappbuilder dtdocbook dtinfo nsgmls

5 years agodtpad: fix Makefile.am to use proper XTOOLLIB
Jon Trulson [Tue, 29 Oct 2019 02:05:04 +0000 (20:05 -0600)]
dtpad: fix Makefile.am to use proper XTOOLLIB

5 years agoconfigure: rework how $XTOOLLIB works
Jon Trulson [Tue, 29 Oct 2019 02:04:10 +0000 (20:04 -0600)]
configure: rework how $XTOOLLIB works

5 years agodtpad: get it to build
Jon Trulson [Tue, 29 Oct 2019 01:26:40 +0000 (19:26 -0600)]
dtpad: get it to build

5 years agoChange "if SUN" conditionals in remaining Makefile.am files to "if SOLARIS"
Jon Trulson [Tue, 29 Oct 2019 00:53:22 +0000 (18:53 -0600)]
Change "if SUN" conditionals in remaining Makefile.am files to "if SOLARIS"

5 years agoconfigure: add programs/ dthelp, dsdm, dtmail, dtpad, and dtfile
Jon Trulson [Tue, 29 Oct 2019 00:39:21 +0000 (18:39 -0600)]
configure: add programs/ dthelp, dsdm, dtmail, dtpad, and dtfile

At this stage, these certainly won't actually build yet.

Just fix up the relevent Makefile.am files so that autogen does not
emit errors and warnings for them.

Removed AIX/HPUX support in Makefile.am files.  No point in
propogating that stuff when we've already removed much of that
unmaintained code from the codebase.

Commented out all of the Sun Pro stuff.  Someone whos using that will
need to go through and fix it.  This is mostly in dtmail and dthelp.

In fact, someone who does Solaris in general will need to go through
this stuff.

Next up, we'll replace any remaining 'if SUN' conditionals with 'if
SOLARIS' which is a more appropriate name and was already defined in
configure.ac.

Then we'll see about getting these new directories building.

5 years agoGet rid of ancient, useless logs/ subdir
Jon Trulson [Mon, 28 Oct 2019 23:17:38 +0000 (17:17 -0600)]
Get rid of ancient, useless logs/ subdir

5 years agoconfigure: enable C99
Jon Trulson [Mon, 28 Oct 2019 23:11:45 +0000 (17:11 -0600)]
configure: enable C99

5 years agoconfigure/m4: add ax_pthread.m4 for pthread checks
Jon Trulson [Mon, 28 Oct 2019 22:47:29 +0000 (16:47 -0600)]
configure/m4: add ax_pthread.m4 for pthread checks

5 years agoProtect inclusions of autotools_config.h with HAVE_CONFIG_H
Jon Trulson [Mon, 28 Oct 2019 21:01:02 +0000 (15:01 -0600)]
Protect inclusions of autotools_config.h with HAVE_CONFIG_H

5 years agoconfigure: various fixes regarding compiler flags
Jon Trulson [Mon, 28 Oct 2019 20:26:41 +0000 (14:26 -0600)]
configure: various fixes regarding compiler flags

First attempt at setting certain -Defines and compiler flags (like
-fno-strict-aliasing).  Only linux for now.

Add CSRG_BASED to CPP_SOURCE_FLAGS rather than directly at CFLAGS.
This will be added to CFLAGS later on in the script along with other
gathered flags and options.

Set CFLAGS, CXXFLAGS, and CPPFLAGS at the end, composed of other env
variables we set earlier on.

5 years agoDtSvc/DtUtil2: fix implicit function declarations
Jon Trulson [Mon, 28 Oct 2019 19:27:47 +0000 (13:27 -0600)]
DtSvc/DtUtil2: fix implicit function declarations

5 years agoDtSvc/DtUtil1: fix implicit function declarations
Jon Trulson [Mon, 28 Oct 2019 19:22:09 +0000 (13:22 -0600)]
DtSvc/DtUtil1: fix implicit function declarations

5 years agoDtSvc/DtUtil2: fix implicit function declarations
Jon Trulson [Mon, 28 Oct 2019 19:27:47 +0000 (13:27 -0600)]
DtSvc/DtUtil2: fix implicit function declarations

5 years agoDtSvc/DtUtil1: fix implicit function declarations
Jon Trulson [Mon, 28 Oct 2019 19:22:09 +0000 (13:22 -0600)]
DtSvc/DtUtil1: fix implicit function declarations

5 years agogitignore: add a few more files from csa/
Jon Trulson [Sat, 26 Oct 2019 23:39:48 +0000 (17:39 -0600)]
gitignore: add a few more files from csa/

5 years agocsa: add dep for reparser.h to fix multicore build
Jon Trulson [Sat, 26 Oct 2019 23:18:30 +0000 (17:18 -0600)]
csa: add dep for reparser.h to fix multicore build

Also rework a bit to make sure reparser.o is actually linked into the
lib.  Ahem.

5 years agoconfigure: only build lib/* for now
Jon Trulson [Sat, 26 Oct 2019 23:17:55 +0000 (17:17 -0600)]
configure: only build lib/* for now

5 years agogitignore: add a few more files
Jon Trulson [Sat, 26 Oct 2019 23:10:39 +0000 (17:10 -0600)]
gitignore: add a few more files

5 years agocsa: make it build
Jon Trulson [Sat, 26 Oct 2019 23:08:41 +0000 (17:08 -0600)]
csa: make it build

5 years agoconfigure: check for rpcgen, add new CSA_INCDIR and SPC_INCDIR
Jon Trulson [Sat, 26 Oct 2019 23:08:20 +0000 (17:08 -0600)]
configure: check for rpcgen, add new CSA_INCDIR and SPC_INCDIR

5 years agoDtMrm: make it build
Jon Trulson [Sat, 26 Oct 2019 22:36:37 +0000 (16:36 -0600)]
DtMrm: make it build

5 years agoDtTerm: make it build
Jon Trulson [Sat, 26 Oct 2019 22:34:29 +0000 (16:34 -0600)]
DtTerm: make it build

5 years agoDtPrint: make it build
Jon Trulson [Sat, 26 Oct 2019 22:09:18 +0000 (16:09 -0600)]
DtPrint: make it build

5 years agoDtHelp: make it build
Jon Trulson [Sat, 26 Oct 2019 22:05:48 +0000 (16:05 -0600)]
DtHelp: make it build

Use configure's endian checks to determine whether to set LSB in il/.

Add locale.h check, include to Helpos.c

Both via including autotools_config.h.

5 years agoconfigure: add compiler checks, determine endianess, look for locale.h
Jon Trulson [Sat, 26 Oct 2019 22:04:27 +0000 (16:04 -0600)]
configure: add compiler checks, determine endianess, look for locale.h

5 years agoDtWidget: make it build, change include/cppfile.inc a bit
Jon Trulson [Sat, 26 Oct 2019 20:41:09 +0000 (14:41 -0600)]
DtWidget: make it build, change include/cppfile.inc a bit

cppfile.inc - don't set BUIT_SOURCES or CLEANFILES here as they
overwrite (or in case of the CLEANFILES +=...) ignore the settings.
Do those in the Makefile.am always.

We still need a better way to preprocess generic files.  cppfile.inc
will only work for one file per Makefile...

5 years agoconfigure: create some convenience AC_SUBST's for the global includes
Jon Trulson [Sat, 26 Oct 2019 20:30:36 +0000 (14:30 -0600)]
configure: create some convenience AC_SUBST's for the global includes

Modify the various makefiles that were doing $(top_builddir)/include/Dt
to use them like @DT_INCDIR@, @TT_INCDIR@, etc...

5 years agoDtSearch: get it to build, fix up some confusion
Jon Trulson [Sat, 26 Oct 2019 20:13:19 +0000 (14:13 -0600)]
DtSearch: get it to build, fix up some confusion

There are/were two dproto.h files, one in DtSearch, one in raima.  The
one in raima is the one we want, so replace the global Dt/dproto.h
with it.  Also correct a prototype declaration error in that file.

Delete the dproto.h file in DtSearch, it's garbage and unused.

Next, redo the way yacc is used.  Autotools does "the right thing" by
simply including the .y file in *_SOURCES and using
BUILT_SOURCES/CLEANFILES to manage it.  No need for special rules to
handle yacc and lex.

5 years agogitignore: update for autotools_config.h/.h.in
Jon Trulson [Sat, 26 Oct 2019 00:32:53 +0000 (18:32 -0600)]
gitignore: update for autotools_config.h/.h.in

5 years agolibDtSvc: get it to build
Jon Trulson [Sat, 26 Oct 2019 00:29:27 +0000 (18:29 -0600)]
libDtSvc: get it to build

5 years agoAdd fake OSMAJORVERSION/OSMINORVERSION CPP flags
Jon Trulson [Sat, 26 Oct 2019 00:25:06 +0000 (18:25 -0600)]
Add fake OSMAJORVERSION/OSMINORVERSION CPP flags

These really need to go away and are primarily used by older
unsupported platforms.

Here we fake these for Linux (4.15), freebsd (10.0), openbsd (6.2),
netbsd (8.0), and solaris (5.10).

I'm not sure about the Solaris one as I don't have any of them.
Basically, anything after Solaris 5.10, which is pretty ancient.

These should be considered temporary - all uses of these macros in the
code should be removed in favor of functionality-specific checks in
configure.

5 years agoDtSvc,DtXinerama: More include fixes to deal with new order.
Jon Trulson [Sat, 26 Oct 2019 00:06:54 +0000 (18:06 -0600)]
DtSvc,DtXinerama: More include fixes to deal with new order.

5 years agoDtXinerama.h header file - moved to main include/ dir
Jon Trulson [Fri, 25 Oct 2019 23:52:20 +0000 (17:52 -0600)]
DtXinerama.h header file - moved to main include/ dir

5 years agott: Fixup tt build for new includes locations
Jon Trulson [Fri, 25 Oct 2019 23:37:58 +0000 (17:37 -0600)]
tt: Fixup tt build for new includes locations

Some files were trying to access the global includes directy in the
build area with things like #include <api/c/tt_c.h>, which is now
wrong.  Se we fix all of those up.  tt_c.h and tttk.h are now global,
so we no longer need to root around various build dirs to find them.

TT builds again.

5 years agoThe great includes migration of 2019 (autotools)
Jon Trulson [Fri, 25 Oct 2019 23:01:34 +0000 (17:01 -0600)]
The great includes migration of 2019 (autotools)

Ok - so one of the steps in building CDE is an early phase called the
includes phase (make includes).  At this point, all of the public
header files are exported to exports/include/Dt, DtI, ...

Then, the software is built using that include dir.

This of course does not work in autotools.  Much of the software does
things like #include <Dt/something.h>, so in order for the build to
succeed, this behavior must be represented/replicated in some way.

It seems the usual way of dealing with this is to place all public
headers (and in some projects, ALL headers) into a toplevel include
directory.

We now do this for all public headers - they have been moved from
wherever they were and placed in the appropriate spot in includes/

This will break the Imake 'make includes' phase unless the Imakefiles
are fixed (remove the HEADERS = stuff, and the incdir defines).  This
has not been done at this point since in reality, once autotools works
properly, there will be no need for the Imake stuff anymore, and I
intend to get rid of it.

This is just a warning for now - Imake builds in this tree will now
fail at the 'includes' stage.

This commit is only the migration.  In upcoming commits, libtt will be
fixed so that the hack being used before to get around this problem is
removed as there will no longer be any need.

And then the autotools work continues...

5 years agoRe-fix tt_type_comp -- it doesn't actually need yacc/lex
Jon Trulson [Fri, 25 Oct 2019 16:43:05 +0000 (10:43 -0600)]
Re-fix tt_type_comp -- it doesn't actually need yacc/lex

5 years agott: fixup remaining build issues
Jon Trulson [Fri, 25 Oct 2019 03:29:03 +0000 (21:29 -0600)]
tt: fixup remaining build issues

5 years agott: get tt_type_comp to build
Jon Trulson [Fri, 25 Oct 2019 02:55:04 +0000 (20:55 -0600)]
tt: get tt_type_comp to build

5 years agoconfigure/Makefiles for TT: many fixups
Jon Trulson [Fri, 25 Oct 2019 02:01:32 +0000 (20:01 -0600)]
configure/Makefiles for TT: many fixups

Redo the way the main CDE libs are specified in configure.ac... The
current way could not work due to evaluation issues, and the fact that
variables like $srcdir and the like are only valid in Makefiles, not
configure.

Use @LIBNAME@ rather then $(LIBNAME) in Makefile.am files - this way
the location is always evaluated when it's run, not in configure -
which can't work for a variety of reasons.

Got some of the TT binaries to build.

Made a new include/cppfile.inc file that can be used to pre-process
files.  The downside is that currently you can only pre-process one
file at a time per Makefile.  Something more robust is needed, but at
least tt/bin/shell now builds.  Will need to come up with a better way.

5 years agott/slib: include hack
Jon Trulson [Thu, 24 Oct 2019 23:50:02 +0000 (17:50 -0600)]
tt/slib: include hack

5 years agoconfigure: fix up some cut/paste errors regarding languages
Jon Trulson [Thu, 24 Oct 2019 23:30:50 +0000 (17:30 -0600)]
configure: fix up some cut/paste errors regarding languages

5 years agoconfigure: some changes to config.h, CSRG, and XTOOLLIB impl
Jon Trulson [Thu, 24 Oct 2019 23:10:53 +0000 (17:10 -0600)]
configure: some changes to config.h, CSRG, and XTOOLLIB impl

We create autotools_config.h instead of config.h to make it clear  and
avoid collisions.

We use a different method to define CSRG_BASED on BSD systems, and fix
a bug in definition of XTOOLLIB.

XTOOLLIB should probably be checked out - we should get some info from
AC_PATH_X and AC_PATH_XTRA instead of hardcoding it.  To be looked at
later.

5 years agott/tttk: play symlink games so tttk can build
Jon Trulson [Thu, 24 Oct 2019 20:06:29 +0000 (14:06 -0600)]
tt/tttk: play symlink games so tttk can build

With this, we can now build the tooltalk library successfully.