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.
Jon Trulson [Wed, 30 Oct 2019 00:07:58 +0000 (18:07 -0600)]
DtXinerama: build as shared lib, all dep on libXinerama
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.
Jon Trulson [Tue, 29 Oct 2019 18:34:06 +0000 (12:34 -0600)]
dsdm: make it build
Jon Trulson [Tue, 29 Oct 2019 18:33:38 +0000 (12:33 -0600)]
configure: add icons and backdrops to AC_CONFIG_FILES
Jon Trulson [Tue, 29 Oct 2019 18:09:06 +0000 (12:09 -0600)]
programs: temporarily disable: dthelp dtksh dtappbuilder dtdocbook dtinfo nsgmls
Jon Trulson [Tue, 29 Oct 2019 02:05:04 +0000 (20:05 -0600)]
dtpad: fix Makefile.am to use proper XTOOLLIB
Jon Trulson [Tue, 29 Oct 2019 02:04:10 +0000 (20:04 -0600)]
configure: rework how $XTOOLLIB works
Jon Trulson [Tue, 29 Oct 2019 01:26:40 +0000 (19:26 -0600)]
dtpad: get it to build
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"
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.
Jon Trulson [Mon, 28 Oct 2019 23:17:38 +0000 (17:17 -0600)]
Get rid of ancient, useless logs/ subdir
Jon Trulson [Mon, 28 Oct 2019 23:11:45 +0000 (17:11 -0600)]
configure: enable C99
Jon Trulson [Mon, 28 Oct 2019 22:47:29 +0000 (16:47 -0600)]
configure/m4: add ax_pthread.m4 for pthread checks
Jon Trulson [Mon, 28 Oct 2019 21:01:02 +0000 (15:01 -0600)]
Protect inclusions of autotools_config.h with HAVE_CONFIG_H
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.
Jon Trulson [Mon, 28 Oct 2019 19:27:47 +0000 (13:27 -0600)]
DtSvc/DtUtil2: fix implicit function declarations
Jon Trulson [Mon, 28 Oct 2019 19:22:09 +0000 (13:22 -0600)]
DtSvc/DtUtil1: fix implicit function declarations
Jon Trulson [Sat, 26 Oct 2019 23:39:48 +0000 (17:39 -0600)]
gitignore: add a few more files from csa/
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.
Jon Trulson [Sat, 26 Oct 2019 23:17:55 +0000 (17:17 -0600)]
configure: only build lib/* for now
Jon Trulson [Sat, 26 Oct 2019 23:10:39 +0000 (17:10 -0600)]
gitignore: add a few more files
Jon Trulson [Sat, 26 Oct 2019 23:08:41 +0000 (17:08 -0600)]
csa: make it build
Jon Trulson [Sat, 26 Oct 2019 23:08:20 +0000 (17:08 -0600)]
configure: check for rpcgen, add new CSA_INCDIR and SPC_INCDIR
Jon Trulson [Sat, 26 Oct 2019 22:36:37 +0000 (16:36 -0600)]
DtMrm: make it build
Jon Trulson [Sat, 26 Oct 2019 22:34:29 +0000 (16:34 -0600)]
DtTerm: make it build
Jon Trulson [Sat, 26 Oct 2019 22:09:18 +0000 (16:09 -0600)]
DtPrint: 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.
Jon Trulson [Sat, 26 Oct 2019 22:04:27 +0000 (16:04 -0600)]
configure: add compiler checks, determine endianess, look for locale.h
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...
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...
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.
Jon Trulson [Sat, 26 Oct 2019 00:32:53 +0000 (18:32 -0600)]
gitignore: update for autotools_config.h/.h.in
Jon Trulson [Sat, 26 Oct 2019 00:29:27 +0000 (18:29 -0600)]
libDtSvc: get it to build
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.
Jon Trulson [Sat, 26 Oct 2019 00:06:54 +0000 (18:06 -0600)]
DtSvc,DtXinerama: More include fixes to deal with new order.
Jon Trulson [Fri, 25 Oct 2019 23:52:20 +0000 (17:52 -0600)]
DtXinerama.h header file - moved to main include/ dir
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.
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...
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
Jon Trulson [Fri, 25 Oct 2019 03:29:03 +0000 (21:29 -0600)]
tt: fixup remaining build issues
Jon Trulson [Fri, 25 Oct 2019 02:55:04 +0000 (20:55 -0600)]
tt: get tt_type_comp to build
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.
Jon Trulson [Thu, 24 Oct 2019 23:50:02 +0000 (17:50 -0600)]
tt/slib: include hack
Jon Trulson [Thu, 24 Oct 2019 23:30:50 +0000 (17:30 -0600)]
configure: fix up some cut/paste errors regarding languages
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.
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.
Jon Trulson [Thu, 24 Oct 2019 20:04:25 +0000 (14:04 -0600)]
tt: create Makefile.am for tt/util
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
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/
Jon Trulson [Thu, 24 Oct 2019 18:41:33 +0000 (12:41 -0600)]
gitignore: add more build artifacts
Jon Trulson [Thu, 24 Oct 2019 18:40:57 +0000 (12:40 -0600)]
tt shell: fix up build - use LDADD rather than AM_LDADD
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.
Jon Trulson [Thu, 24 Oct 2019 04:07:26 +0000 (22:07 -0600)]
tt: begin to get it building under autotools
Jon Trulson [Thu, 24 Oct 2019 03:49:34 +0000 (21:49 -0600)]
Fixup some more autogen wanrings. Only lib/tt/bin/shell remaining
Jon Trulson [Thu, 24 Oct 2019 03:35:19 +0000 (21:35 -0600)]
gitignore: add the generated utilities (config.guess, etc)
Jon Trulson [Thu, 24 Oct 2019 03:33:35 +0000 (21:33 -0600)]
Rename original Makefile to Makefile.imake
Jon Trulson [Thu, 24 Oct 2019 03:32:48 +0000 (21:32 -0600)]
configure: use a different method to detect tirpc
Jon Trulson [Wed, 23 Oct 2019 23:55:50 +0000 (17:55 -0600)]
Remove AUTOMAKE_OPTIONS and ACLOCAL_AMFLAGS from top level Makefile.am
Jon Trulson [Wed, 23 Oct 2019 23:44:11 +0000 (17:44 -0600)]
autotools: use m4/ rather than existing admin/ for m4/autotools utils
Jon Trulson [Wed, 23 Oct 2019 23:43:13 +0000 (17:43 -0600)]
gitignore: add the various autotools generated stuff
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!
Chase [Wed, 23 Oct 2019 20:40:45 +0000 (15:40 -0500)]
programs/types: add automake file
Chase [Wed, 23 Oct 2019 20:40:22 +0000 (15:40 -0500)]
programs/tttypes: add automake file
Chase [Wed, 23 Oct 2019 20:39:08 +0000 (15:39 -0500)]
programs/nsgmls/Makefile.am
Chase [Wed, 23 Oct 2019 20:38:18 +0000 (15:38 -0500)]
programs/icons: add automake file
Chase [Wed, 23 Oct 2019 20:35:16 +0000 (15:35 -0500)]
programs/localized: add automake files
Chase [Wed, 23 Oct 2019 20:33:40 +0000 (15:33 -0500)]
programs/fontaliases: add automake files
Chase [Wed, 23 Oct 2019 20:31:56 +0000 (15:31 -0500)]
programs/dtwm: add automake file
Chase [Wed, 23 Oct 2019 20:31:15 +0000 (15:31 -0500)]
programs/dtudcexch: add automake file
Chase [Wed, 23 Oct 2019 20:28:33 +0000 (15:28 -0500)]
programs/dtterm: add automake files
Chase [Wed, 23 Oct 2019 20:21:40 +0000 (15:21 -0500)]
programs/dtstyle: add automake file
Chase [Wed, 23 Oct 2019 20:19:48 +0000 (15:19 -0500)]
programs/dtsr: add automake file
Chase [Wed, 23 Oct 2019 20:13:43 +0000 (15:13 -0500)]
programs/dtspcd: add automake file
Chase [Wed, 23 Oct 2019 20:01:48 +0000 (15:01 -0500)]
programs/dtsearchpath: add automake files
Chase [Wed, 23 Oct 2019 20:00:00 +0000 (15:00 -0500)]
programs/dtscreen: add automake file
Chase [Wed, 23 Oct 2019 19:52:33 +0000 (14:52 -0500)]
programs/dtprintinfo: add automake files
Chase [Wed, 23 Oct 2019 19:50:47 +0000 (14:50 -0500)]
programs/dtprintegrate: add automake file
Chase [Wed, 23 Oct 2019 19:48:42 +0000 (14:48 -0500)]
programs/dtpdmd: add automake files
Chase [Wed, 23 Oct 2019 19:47:37 +0000 (14:47 -0500)]
programs/dtpdm: add automake files
Chase [Wed, 23 Oct 2019 19:47:03 +0000 (14:47 -0500)]
programs/dtpad: add automake file
Chase [Wed, 23 Oct 2019 19:45:20 +0000 (14:45 -0500)]
programs/dtopen: add automake files
Chase [Wed, 23 Oct 2019 19:44:03 +0000 (14:44 -0500)]
programs/dtmail: add automake files
Chase [Wed, 23 Oct 2019 19:43:28 +0000 (14:43 -0500)]
programs/dtlogin: add automake file
Chase [Wed, 23 Oct 2019 19:42:30 +0000 (14:42 -0500)]
programs/dtksh: add automake files
Chase [Wed, 23 Oct 2019 19:34:06 +0000 (14:34 -0500)]
programs/dtimsstart: add automake file
Chase [Wed, 23 Oct 2019 19:33:21 +0000 (14:33 -0500)]
programs/dticon: add automake file
Chase [Wed, 23 Oct 2019 19:31:08 +0000 (14:31 -0500)]
programs/dthelp: add automake files
Chase [Wed, 23 Oct 2019 19:26:33 +0000 (14:26 -0500)]
programs/dtinfo: add automake files
Chase [Wed, 23 Oct 2019 19:25:12 +0000 (14:25 -0500)]
programs/dthello: add automake file
Chase [Wed, 23 Oct 2019 19:21:06 +0000 (14:21 -0500)]
programs/dtfile: add automake files
Chase [Wed, 23 Oct 2019 19:20:22 +0000 (14:20 -0500)]
programs/dtexec: add automake files
Chase [Wed, 23 Oct 2019 18:53:39 +0000 (13:53 -0500)]
programs/dtdspmsg: add automake file
Chase [Wed, 23 Oct 2019 03:10:10 +0000 (22:10 -0500)]
programs/dtdocbook: add automake files
Chase [Wed, 23 Oct 2019 03:09:11 +0000 (22:09 -0500)]
programs/dtdbcache: add automake files
Chase [Wed, 23 Oct 2019 03:01:50 +0000 (22:01 -0500)]
programs/dtcreate: add automake files
Chase [Wed, 23 Oct 2019 03:00:59 +0000 (22:00 -0500)]
programs/dtconfig: add automake files
Chase [Wed, 23 Oct 2019 02:55:04 +0000 (21:55 -0500)]
programs/dtcm: add automake files
Chase [Wed, 23 Oct 2019 02:53:03 +0000 (21:53 -0500)]
programs/dtcalc: add automake files
Chase [Wed, 23 Oct 2019 02:41:59 +0000 (21:41 -0500)]
programs/dtappintegrate: add automake file