1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00
Commit graph

1852 commits

Author SHA1 Message Date
Jon Trulson
43387e7368 libDtSvc: get it to build 2019-10-25 18:33:06 -06:00
Jon Trulson
4320036bfa 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.
2019-10-25 18:33:06 -06:00
Jon Trulson
0d78e17036 DtSvc,DtXinerama: More include fixes to deal with new order. 2019-10-25 18:06:54 -06:00
Jon Trulson
647d0ae96a DtXinerama.h header file - moved to main include/ dir 2019-10-25 17:52:20 -06:00
Jon Trulson
31fec7edb5 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.
2019-10-25 17:37:58 -06:00
Jon Trulson
369308b737 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...
2019-10-25 17:01:34 -06:00
Jon Trulson
7c2983185d Re-fix tt_type_comp -- it doesn't actually need yacc/lex 2019-10-25 10:43:05 -06:00
Jon Trulson
9182ddfcc3 tt: fixup remaining build issues 2019-10-24 21:29:03 -06:00
Jon Trulson
e8f3c6eee2 tt: get tt_type_comp to build 2019-10-24 20:55:04 -06:00
Jon Trulson
bb4a2c7694 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.
2019-10-24 20:06:39 -06:00
Jon Trulson
f55e448fc7 tt/slib: include hack 2019-10-24 17:50:02 -06:00
Jon Trulson
2ebfcd0e8a configure: fix up some cut/paste errors regarding languages 2019-10-24 17:30:50 -06:00
Jon Trulson
a4ca695daf 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.
2019-10-24 17:10:53 -06:00
Jon Trulson
b4295847c6 tt/tttk: play symlink games so tttk can build
With this, we can now build the tooltalk library successfully.
2019-10-24 14:29:29 -06:00
Jon Trulson
ff2e991ce8 tt: create Makefile.am for tt/util 2019-10-24 14:05:03 -06:00
Jon Trulson
8ae0dace89 configure: perhaps jumping the gun - set CSRG_BASED #define for the BSD's 2019-10-24 13:02:38 -06:00
Jon Trulson
e3028d4eff lib/tt: replace tooltalk.tmpl with tooltalk.inc in all Makefile.am files
This fixes the remaining warnings from autogen in lib/
2019-10-24 12:43:02 -06:00
Jon Trulson
241c7dc257 gitignore: add more build artifacts 2019-10-24 12:41:33 -06:00
Jon Trulson
4186507c72 tt shell: fix up build - use LDADD rather than AM_LDADD 2019-10-24 12:40:57 -06:00
Jon Trulson
6996d53f91 tooltalk.tmpl: restore to previous version for use with Imake
For autotools we will include lib/tt/tooltalk.inc instead.
2019-10-24 11:27:39 -06:00
Jon Trulson
03544e68ad tt: begin to get it building under autotools 2019-10-23 22:07:26 -06:00
Jon Trulson
db16ffd968 Fixup some more autogen wanrings. Only lib/tt/bin/shell remaining 2019-10-23 21:49:34 -06:00
Jon Trulson
8d948c0da2 gitignore: add the generated utilities (config.guess, etc) 2019-10-23 21:35:19 -06:00
Jon Trulson
628ceb1560 Rename original Makefile to Makefile.imake 2019-10-23 21:33:35 -06:00
Jon Trulson
29c5f90139 configure: use a different method to detect tirpc 2019-10-23 21:32:48 -06:00
Jon Trulson
76f1605e5e Remove AUTOMAKE_OPTIONS and ACLOCAL_AMFLAGS from top level Makefile.am 2019-10-23 17:55:50 -06:00
Jon Trulson
4bda07b5ab autotools: use m4/ rather than existing admin/ for m4/autotools utils 2019-10-23 17:44:11 -06:00
Jon Trulson
a6c3aad21f gitignore: add the various autotools generated stuff 2019-10-23 17:43:13 -06:00
Jon Trulson
1d7ed3a17e 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!
2019-10-23 17:34:55 -06:00
Chase
8ed2ce2c26 programs/types: add automake file 2019-10-23 15:34:20 -06:00
Chase
3ab4c518d4 programs/tttypes: add automake file 2019-10-23 15:34:20 -06:00
Chase
fbfde13dbb programs/nsgmls/Makefile.am 2019-10-23 15:34:20 -06:00
Chase
1d0f90cff8 programs/icons: add automake file 2019-10-23 15:34:20 -06:00
Chase
29424f66cd programs/localized: add automake files 2019-10-23 15:34:20 -06:00
Chase
2f8484ae14 programs/fontaliases: add automake files 2019-10-23 15:34:20 -06:00
Chase
c76539517b programs/dtwm: add automake file 2019-10-23 15:34:20 -06:00
Chase
faf0f3b087 programs/dtudcexch: add automake file 2019-10-23 15:34:20 -06:00
Chase
3e21e982f3 programs/dtterm: add automake files 2019-10-23 15:34:20 -06:00
Chase
3737ce6f96 programs/dtstyle: add automake file 2019-10-23 15:34:20 -06:00
Chase
85aff9320f programs/dtsr: add automake file 2019-10-23 15:34:20 -06:00
Chase
f42b0ce115 programs/dtspcd: add automake file 2019-10-23 15:34:20 -06:00
Chase
c310f73661 programs/dtsearchpath: add automake files 2019-10-23 15:34:20 -06:00
Chase
9347d0b09c programs/dtscreen: add automake file 2019-10-23 15:34:20 -06:00
Chase
e79d944119 programs/dtprintinfo: add automake files 2019-10-23 15:34:20 -06:00
Chase
f2b13938e5 programs/dtprintegrate: add automake file 2019-10-23 15:34:20 -06:00
Chase
015b457916 programs/dtpdmd: add automake files 2019-10-23 15:34:20 -06:00
Chase
09bc04b088 programs/dtpdm: add automake files 2019-10-23 15:34:20 -06:00
Chase
b7c0788d95 programs/dtpad: add automake file 2019-10-23 15:34:20 -06:00
Chase
f04677726e programs/dtopen: add automake files 2019-10-23 15:34:20 -06:00
Chase
d08d22cb5d programs/dtmail: add automake files 2019-10-23 15:34:20 -06:00