oweals/cde.git
4 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.

4 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

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

4 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

4 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

4 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.

4 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

4 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

4 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/

4 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.

4 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

4 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

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

4 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

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

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

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

4 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.

4 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

4 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...

4 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...

4 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.

4 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

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

4 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.

4 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.

4 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

4 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.

4 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...

4 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

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

4 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

4 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.

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

4 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

4 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.

4 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.

4 years agott: create Makefile.am for tt/util
Jon Trulson [Thu, 24 Oct 2019 20:04:25 +0000 (14:04 -0600)]
tt: create Makefile.am for tt/util

4 years agoconfigure: perhaps jumping the gun - set CSRG_BASED #define for the BSD's
Jon Trulson [Thu, 24 Oct 2019 19:02:38 +0000 (13:02 -0600)]
configure: perhaps jumping the gun - set CSRG_BASED #define for the BSD's

4 years agolib/tt: replace tooltalk.tmpl with tooltalk.inc in all Makefile.am files
Jon Trulson [Thu, 24 Oct 2019 18:43:02 +0000 (12:43 -0600)]
lib/tt: replace tooltalk.tmpl with tooltalk.inc in all Makefile.am files

This fixes the remaining warnings from autogen in lib/

4 years agogitignore: add more build artifacts
Jon Trulson [Thu, 24 Oct 2019 18:41:33 +0000 (12:41 -0600)]
gitignore: add more build artifacts

4 years agott shell: fix up build - use LDADD rather than AM_LDADD
Jon Trulson [Thu, 24 Oct 2019 18:40:57 +0000 (12:40 -0600)]
tt shell: fix up build - use LDADD rather than AM_LDADD

4 years agotooltalk.tmpl: restore to previous version for use with Imake
Jon Trulson [Thu, 24 Oct 2019 17:27:29 +0000 (11:27 -0600)]
tooltalk.tmpl: restore to previous version for use with Imake

For autotools we will include lib/tt/tooltalk.inc instead.

4 years agott: begin to get it building under autotools
Jon Trulson [Thu, 24 Oct 2019 04:07:26 +0000 (22:07 -0600)]
tt: begin to get it building under autotools

4 years agoFixup some more autogen wanrings. Only lib/tt/bin/shell remaining
Jon Trulson [Thu, 24 Oct 2019 03:49:34 +0000 (21:49 -0600)]
Fixup some more autogen wanrings.  Only lib/tt/bin/shell remaining

4 years agogitignore: add the generated utilities (config.guess, etc)
Jon Trulson [Thu, 24 Oct 2019 03:35:19 +0000 (21:35 -0600)]
gitignore: add the generated utilities (config.guess, etc)

4 years agoRename original Makefile to Makefile.imake
Jon Trulson [Thu, 24 Oct 2019 03:33:35 +0000 (21:33 -0600)]
Rename original Makefile to Makefile.imake

4 years agoconfigure: use a different method to detect tirpc
Jon Trulson [Thu, 24 Oct 2019 03:32:48 +0000 (21:32 -0600)]
configure: use a different method to detect tirpc

4 years agoRemove AUTOMAKE_OPTIONS and ACLOCAL_AMFLAGS from top level Makefile.am
Jon Trulson [Wed, 23 Oct 2019 23:55:50 +0000 (17:55 -0600)]
Remove AUTOMAKE_OPTIONS and ACLOCAL_AMFLAGS from top level Makefile.am

4 years agoautotools: use m4/ rather than existing admin/ for m4/autotools utils
Jon Trulson [Wed, 23 Oct 2019 23:44:11 +0000 (17:44 -0600)]
autotools: use m4/ rather than existing admin/ for m4/autotools utils

4 years agogitignore: add the various autotools generated stuff
Jon Trulson [Wed, 23 Oct 2019 23:43:13 +0000 (17:43 -0600)]
gitignore: add the various autotools generated stuff

4 years agoautotools: many fixups, SUN->SOLARIS, typos, etc
Jon Trulson [Wed, 23 Oct 2019 23:34:55 +0000 (17:34 -0600)]
autotools: many fixups, SUN->SOLARIS, typos, etc

This should allow an autoregen and ./confiure to work.  We only
generate Makefiles for lib/* and ./Makefile for now.  We'll ad more as
we go along.

Make still fails as we need to figure out TT - tirpc lib, rpcgen,
etc.  But it's a start!

4 years agoprograms/types: add automake file
Chase [Wed, 23 Oct 2019 20:40:45 +0000 (15:40 -0500)]
programs/types: add automake file

4 years agoprograms/tttypes: add automake file
Chase [Wed, 23 Oct 2019 20:40:22 +0000 (15:40 -0500)]
programs/tttypes: add automake file

4 years agoprograms/nsgmls/Makefile.am
Chase [Wed, 23 Oct 2019 20:39:08 +0000 (15:39 -0500)]
programs/nsgmls/Makefile.am

4 years agoprograms/icons: add automake file
Chase [Wed, 23 Oct 2019 20:38:18 +0000 (15:38 -0500)]
programs/icons: add automake file

4 years agoprograms/localized: add automake files
Chase [Wed, 23 Oct 2019 20:35:16 +0000 (15:35 -0500)]
programs/localized: add automake files

4 years agoprograms/fontaliases: add automake files
Chase [Wed, 23 Oct 2019 20:33:40 +0000 (15:33 -0500)]
programs/fontaliases: add automake files

4 years agoprograms/dtwm: add automake file
Chase [Wed, 23 Oct 2019 20:31:56 +0000 (15:31 -0500)]
programs/dtwm: add automake file

4 years agoprograms/dtudcexch: add automake file
Chase [Wed, 23 Oct 2019 20:31:15 +0000 (15:31 -0500)]
programs/dtudcexch: add automake file

4 years agoprograms/dtterm: add automake files
Chase [Wed, 23 Oct 2019 20:28:33 +0000 (15:28 -0500)]
programs/dtterm: add automake files

4 years agoprograms/dtstyle: add automake file
Chase [Wed, 23 Oct 2019 20:21:40 +0000 (15:21 -0500)]
programs/dtstyle: add automake file

4 years agoprograms/dtsr: add automake file
Chase [Wed, 23 Oct 2019 20:19:48 +0000 (15:19 -0500)]
programs/dtsr: add automake file

4 years agoprograms/dtspcd: add automake file
Chase [Wed, 23 Oct 2019 20:13:43 +0000 (15:13 -0500)]
programs/dtspcd: add automake file

4 years agoprograms/dtsearchpath: add automake files
Chase [Wed, 23 Oct 2019 20:01:48 +0000 (15:01 -0500)]
programs/dtsearchpath: add automake files

4 years agoprograms/dtscreen: add automake file
Chase [Wed, 23 Oct 2019 20:00:00 +0000 (15:00 -0500)]
programs/dtscreen: add automake file

4 years agoprograms/dtprintinfo: add automake files
Chase [Wed, 23 Oct 2019 19:52:33 +0000 (14:52 -0500)]
programs/dtprintinfo: add automake files

4 years agoprograms/dtprintegrate: add automake file
Chase [Wed, 23 Oct 2019 19:50:47 +0000 (14:50 -0500)]
programs/dtprintegrate: add automake file

4 years agoprograms/dtpdmd: add automake files
Chase [Wed, 23 Oct 2019 19:48:42 +0000 (14:48 -0500)]
programs/dtpdmd: add automake files

4 years agoprograms/dtpdm: add automake files
Chase [Wed, 23 Oct 2019 19:47:37 +0000 (14:47 -0500)]
programs/dtpdm: add automake files

4 years agoprograms/dtpad: add automake file
Chase [Wed, 23 Oct 2019 19:47:03 +0000 (14:47 -0500)]
programs/dtpad: add automake file

4 years agoprograms/dtopen: add automake files
Chase [Wed, 23 Oct 2019 19:45:20 +0000 (14:45 -0500)]
programs/dtopen: add automake files

4 years agoprograms/dtmail: add automake files
Chase [Wed, 23 Oct 2019 19:44:03 +0000 (14:44 -0500)]
programs/dtmail: add automake files

4 years agoprograms/dtlogin: add automake file
Chase [Wed, 23 Oct 2019 19:43:28 +0000 (14:43 -0500)]
programs/dtlogin: add automake file

4 years agoprograms/dtksh: add automake files
Chase [Wed, 23 Oct 2019 19:42:30 +0000 (14:42 -0500)]
programs/dtksh: add automake files

4 years agoprograms/dtimsstart: add automake file
Chase [Wed, 23 Oct 2019 19:34:06 +0000 (14:34 -0500)]
programs/dtimsstart: add automake file

4 years agoprograms/dticon: add automake file
Chase [Wed, 23 Oct 2019 19:33:21 +0000 (14:33 -0500)]
programs/dticon: add automake file

4 years agoprograms/dthelp: add automake files
Chase [Wed, 23 Oct 2019 19:31:08 +0000 (14:31 -0500)]
programs/dthelp: add automake files

4 years agoprograms/dtinfo: add automake files
Chase [Wed, 23 Oct 2019 19:26:33 +0000 (14:26 -0500)]
programs/dtinfo: add automake files

4 years agoprograms/dthello: add automake file
Chase [Wed, 23 Oct 2019 19:25:12 +0000 (14:25 -0500)]
programs/dthello: add automake file

4 years agoprograms/dtfile: add automake files
Chase [Wed, 23 Oct 2019 19:21:06 +0000 (14:21 -0500)]
programs/dtfile: add automake files

4 years agoprograms/dtexec: add automake files
Chase [Wed, 23 Oct 2019 19:20:22 +0000 (14:20 -0500)]
programs/dtexec: add automake files

4 years agoprograms/dtdspmsg: add automake file
Chase [Wed, 23 Oct 2019 18:53:39 +0000 (13:53 -0500)]
programs/dtdspmsg: add automake file

4 years agoprograms/dtdocbook: add automake files
Chase [Wed, 23 Oct 2019 03:10:10 +0000 (22:10 -0500)]
programs/dtdocbook: add automake files

4 years agoprograms/dtdbcache: add automake files
Chase [Wed, 23 Oct 2019 03:09:11 +0000 (22:09 -0500)]
programs/dtdbcache: add automake files

4 years agoprograms/dtcreate: add automake files
Chase [Wed, 23 Oct 2019 03:01:50 +0000 (22:01 -0500)]
programs/dtcreate: add automake files

4 years agoprograms/dtconfig: add automake files
Chase [Wed, 23 Oct 2019 03:00:59 +0000 (22:00 -0500)]
programs/dtconfig: add automake files

4 years agoprograms/dtcm: add automake files
Chase [Wed, 23 Oct 2019 02:55:04 +0000 (21:55 -0500)]
programs/dtcm: add automake files

4 years agoprograms/dtcalc: add automake files
Chase [Wed, 23 Oct 2019 02:53:03 +0000 (21:53 -0500)]
programs/dtcalc: add automake files

4 years agoprograms/dtappintegrate: add automake file
Chase [Wed, 23 Oct 2019 02:41:59 +0000 (21:41 -0500)]
programs/dtappintegrate: add automake file

4 years agoprograms/dtappbuilder: add automake files
Chase [Wed, 23 Oct 2019 02:40:40 +0000 (21:40 -0500)]
programs/dtappbuilder: add automake files

4 years agoprograms/dtaction: add automake file
Chase [Wed, 23 Oct 2019 02:34:58 +0000 (21:34 -0500)]
programs/dtaction: add automake file

4 years agoprograms/dsdm: add automake files
Chase [Wed, 23 Oct 2019 02:17:34 +0000 (21:17 -0500)]
programs/dsdm: add automake files

4 years agoprograms/backdrops: add automake files
Chase [Wed, 23 Oct 2019 02:16:33 +0000 (21:16 -0500)]
programs/backdrops: add automake files

4 years agoprograms: add automake file
Chase [Wed, 23 Oct 2019 01:16:09 +0000 (20:16 -0500)]
programs: add automake file

4 years agologs: add automake files
Chase [Wed, 23 Oct 2019 01:13:03 +0000 (20:13 -0500)]
logs: add automake files

4 years agolib/tt: add automake files
Chase [Wed, 23 Oct 2019 01:03:28 +0000 (20:03 -0500)]
lib/tt: add automake files

4 years agolib/pam: add automake files:
Chase [Wed, 23 Oct 2019 01:02:44 +0000 (20:02 -0500)]
lib/pam: add automake files:

4 years agolib/csa: add automake file
Chase [Wed, 23 Oct 2019 01:00:07 +0000 (20:00 -0500)]
lib/csa: add automake file

4 years agolib: add automake file
Chase [Tue, 22 Oct 2019 23:34:59 +0000 (18:34 -0500)]
lib: add automake file