Commit Graph

1882 Commits

Author SHA1 Message Date
Jon Trulson e577e8102c tt_type_comp: incorporate master CPP_PROGRAM fix into Makefile.am 2019-12-01 13:44:02 -07:00
Jon Trulson e481f4cb93 Merge branch 'master' into autotools-conversion 2019-12-01 13:31:21 -07:00
Jon Trulson 081b6c8765 programs/dtimsstart/Makefile.am: fix typo 2019-11-30 22:21:48 -07:00
Jon Trulson ab393fbef1 localization: disable parallel builds for app-defaults, types, and config
These use the 'merge' utility which hardcodes temp files and the like
- it cannot be run with other instances without generating bogus
errors and occasionally coredumping. :(
2019-11-30 20:49:10 -07:00
Jon Trulson d8e218c865 localization: finish up with getting message catalogs building
There are still some issues here - specifically with the C
dtbuilder/dtcodegen catalogs.  They may be broken due to dtbuilder not
being built yet.

Also, once dtinfo can be built, the msgs and app-defaults for it
should be re-enabled.

I also see gencat coredumping in localization/ while doing a multicore
(-jX) make.  Regular single core builds seem to work fine.
2019-11-30 20:26:59 -07:00
Jon Trulson 52cc31b203 root Makefile.am: disable doc/ for now 2019-11-30 20:07:03 -07:00
Jon Trulson d9749f5c9c localized: temporarily disable dtinfo appdefaults 2019-11-30 20:04:06 -07:00
Jon Trulson 805d22c5a8 localized: make palettes build 2019-11-30 17:12:15 -07:00
Jon Trulson bfc5b2eef1 localized: make types build 2019-11-30 17:00:34 -07:00
Jon Trulson d89d47bded localized: make backdrops build 2019-11-30 17:00:00 -07:00
Jon Trulson 376f1e15ee localized: make configs build 2019-11-30 16:59:14 -07:00
Marcin Cieślak 5cebd7c4da dtdocbook/instant: fix buffer overlow on German umlaut in latin-1
One-off error:

Old buffer length was 6 for one character (3 * 1 + 3)
We need one more byte par character in the buffer for
the hex representation of it.

+0 '"'
+1 '\\'
+2 'x'
+3 'f'
+4 'c'
+5 '"'
+6 0x0 << overflow

tcl combined with RCHECK will abort because memory blocks
are allocated contiguously and we overwrite the magic marker
of the next block.
2019-11-30 10:13:43 -07:00
Nina Didenko 9221c55a5f tt_type_comp: use CppCmd definition
Hi.

This patch makes tt_type_comp respect CppCmd

Thanks!
2019-11-29 18:12:20 -07:00
Jon Trulson e42c0cc1be localization: make FR, DE, IT, and ES app-defaults/ build 2019-11-24 18:55:11 -07:00
Jon Trulson 3ee747ac6b localized/C/app-defaults: make it build 2019-11-24 17:54:52 -07:00
Jon Trulson 0aec3c159f merge, mkcatdefs: add missing includes, clean up trailing whitespace 2019-11-24 17:50:18 -07:00
Jon Trulson 0a62def9bd dthello: build the resource file Dthello 2019-11-24 17:01:57 -07:00
Jon Trulson a5a5d83cbd dtprintinfo: fix a mulit-core build race, for realz this time 2019-11-22 17:35:29 -07:00
Jon Trulson 56fb574793 dtopen: make it build
Also, move localized subdir to last in current list of programs/ SUBDIRS
2019-11-22 17:18:51 -07:00
Jon Trulson aa0bfe0471 dttypes: make it build 2019-11-22 17:07:34 -07:00
Jon Trulson ad2ad2b66b tttypes: make it build 2019-11-22 16:58:58 -07:00
Jon Trulson c8c1f986f8 types: make it build 2019-11-22 16:57:47 -07:00
Jon Trulson 264871cefb Fix up a couple issues with multi-core builds and 2 race conditions 2019-11-22 13:42:02 -07:00
Jon Trulson 89f91f0091 dtpdmd: make it build 2019-11-22 13:13:41 -07:00
Jon Trulson a63016758e dtsr: make it build; configure: fix cpu detection 2019-11-22 13:01:36 -07:00
Jon Trulson 53d3304ebe dtpdm: make it build 2019-11-22 12:12:23 -07:00
Jon Trulson bcc1ca537e dtimsstart: make it build 2019-11-21 20:06:29 -07:00
Jon Trulson 97b14a9efc programs: disable ttsnoop for now 2019-11-21 19:54:09 -07:00
Jon Trulson 2832a1eb6d dtdspmsg: make it build 2019-11-21 19:53:30 -07:00
Jon Trulson 70c07a7b68 fontaliases: make it build, and rework somewhat 2019-11-21 19:47:38 -07:00
Jon Trulson 5bb7b74efd dtprintinfo: make it build
Also, it was easier just to use a single Makefile.am rather than one for
every subdir, so thats what we did here.
2019-11-21 17:51:35 -07:00
Jon Trulson afabfd8bd7 configure: rework libXinerama detection a bit, remove hardcoded -lXinerama's
Make -lXinerama a dep on libDtXinerama so it doen't need to be
specified in Makefile.am files or in LIBS as it was being done
previously.

This still needs a little work, ideally Xinerama should be completely
optional and only enabled if present.  But we can save that for
later.
2019-11-21 14:14:59 -07:00
Jon Trulson b71a319133 dtmailpr: fix vla warning 2019-11-21 14:13:48 -07:00
Nina Didenko 8db8a22906 installCDE: don't hardcode path to whoami
Hi.

Patch removes hardcoded paths to echo and whoami in installation scripts.

Thanks.
2019-11-20 19:08:22 -07:00
Jon Trulson c329d5cfd7 Remove $(TIRPCINC) from all Makefile.am files - it no longer exists
Also, restructure some of the dependencies in the lib/tt binaries.  We
will link with libtt (which will include libtirpc as a dependency),
and XTOOLLIB - all the right X11 stuff without needing to add it to
every OS.  Removed several uneeded OS specializations ("if LINUX",
etc) as a result.
2019-11-20 18:52:29 -07:00
Jon Trulson 0f1223a07e configure: rework the way TIRPC is detected and handled
Previously we would detect whether TIRPC is installed or not, and set
TIRPCINC to the include directory with the -DOPT_TIRPC macro defined.
Then, pretty much every Makefile.am needs to be sure that $(TIRPCINC) is
specified in the cpp/c/cxx flags.

Since we can never be sure that an RPC header file might be indirectly
included, a better approach is to simply add TIRPCINC to the global
list of CXXFLAGS and CFLAGS in configure.ac for everybody.  This way,
it is always specified properly on tirpc systems, and we don't need to
always add it to every individual Makefile.am since everyone will get
it by default.

TIRPCLIB is still marked as a dep in libtt, so as long as libtt is
linked, you should automatically get the tirpc library too.  This is
still unchanged.
2019-11-20 18:26:59 -07:00
Jon Trulson 10eb9a6975 dtcreate: make it build 2019-11-20 17:54:12 -07:00
Jon Trulson 58505b904d dtconfig: make it build 2019-11-20 17:46:20 -07:00
Jon Trulson 660be1c5cc dtconfig: get rid of obsolete imb/ and hp/ configs 2019-11-20 17:37:34 -07:00
Jon Trulson 9c70437ee7 dtprintegrate: make it build 2019-11-20 17:31:53 -07:00
Jon Trulson a2c18db66b dtappintegrate: make it build 2019-11-20 17:31:53 -07:00
Jon Trulson e831b06896 dtsearchpath: make it build 2019-11-20 17:31:53 -07:00
Jon Trulson 444aa700c0 dtcm: make it build 2019-11-20 17:31:53 -07:00
Jon Trulson 763cac54e4 dtspcd/dtterm: use proper DT_INCDIR rather than hardcoding the location 2019-11-20 17:31:53 -07:00
Jon Trulson 427a0611cd dtscreen: make it build 2019-11-19 19:59:20 -07:00
Jon Trulson 9d6dbad63f dtscreen/Dtscreen.src: remove __hpux specialization 2019-11-19 19:58:55 -07:00
Jon Trulson e675e06dd1 dtspcd: make it build 2019-11-19 19:43:34 -07:00
Jon Trulson a8085dca9b dtaction: make it build 2019-11-19 19:30:20 -07:00
Jon Trulson 61506685a4 dtcalc: make it build 2019-11-19 19:27:47 -07:00
Jon Trulson 0e2dc55e9e dtterm/util: delete this non-used stuff 2019-11-19 19:15:17 -07:00
Jon Trulson c8329a4ead dtterm: make it build 2019-11-19 19:14:38 -07:00
Jon Trulson 427e455321 dticon: make it build 2019-11-19 18:38:51 -07:00
Jon Trulson a36ab9e796 dtdbcache: make it build 2019-11-19 18:31:36 -07:00
Jon Trulson 8684607c8c dtexec: make it build 2019-11-19 18:26:55 -07:00
Jon Trulson 1b8ef6a6c1 dtstyle: make it build 2019-11-19 18:17:34 -07:00
Jon Trulson af20bc2b57 changing_version_number.txt: change tooltalk.tmpl to tooltalk.inc 2019-11-19 18:15:26 -07:00
Jon Trulson 31e69340ce 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.
2019-11-19 18:09:21 -07:00
Jon Trulson a77d9259f9 dthello: make it build 2019-11-19 17:30:27 -07:00
Jon Trulson 11eafe767b dtsession: make it build, add check for the full path to xrdb 2019-11-19 17:19:14 -07:00
Jon Trulson 152f5c9a88 Merge branch 'master' into autotools-conversion after utf8-conversion 2019-11-19 11:44:33 -07:00
Jon Trulson 0d70d8b120 Set version to 2.3.1a (devel) for current master 2019-11-18 13:03:52 -07:00
Jon Trulson 372e74a524 gitignore: add infolib/etc UTF-8 locales 2019-11-18 12:52:17 -07:00
Jon Trulson a719c004b2 site.def: add define guards around DtLocalesToBuild 2019-11-17 15:08:20 -07:00
Jon Trulson de9d913b77 dtinfo: link proper localized (utf8) dirs 2019-11-17 15:07:14 -07:00
Jon Trulson e363fee432 autogen.sh: make it executable 2019-11-16 16:40:58 -07:00
Jon Trulson 82059bf240 Merge branch 'master' into autotools-conversion after 2.3.1 release 2019-11-16 16:35:56 -07:00
Jon Trulson ba68ff0a17 Merge branch 'master' into utf8-conversion after 2.3.1 release 2019-11-16 16:34:48 -07:00
Jon Trulson 9753b63dab HISTORY: update for 2.3.1 release 2019-11-15 19:06:11 -07:00
Jon Trulson 5fe7ee5b67 Change CDE version info for 2.3.1 release 2019-11-15 18:04:01 -07:00
Nina Didenko f75ee32e72 sym2num: don't hardcode path to cpp 2019-11-05 18:49:17 -07:00
Nina Didenko de7fe55d6a merge: don't hardcode path to gencat 2019-11-05 18:49:10 -07:00
Nina Didenko 52caa8b8e6 udbToAny.ksh: don't hardcode path to awk 2019-11-05 18:49:02 -07:00
Nina Didenko b3f3997bd1 dtinfogen: don't override PATH 2019-11-05 18:48:00 -07:00
Chase 88b46c6a28 il: remove various deprecated files 2019-11-01 17:23:48 -06:00
Chase 0f36a57eff remove more internal jpeg headers 2019-11-01 17:23:24 -06:00
Jon Trulson 371bc9aa07 tradcpp: remove test makefiles 2019-10-30 22:14:04 -06:00
Jon Trulson eb1ded1dc6 dtfile: GENCPP, be consistent with SCRIPTFLAGS 2019-10-30 20:52:34 -06:00
Jon Trulson ae98872405 dtwm: fix quoting for SCRIPTFLAGS 2019-10-30 20:46:53 -06:00
Jon Trulson 6debd5996e Delete cppfile.inc, don't need it anymore 2019-10-30 19:48:04 -06:00
Jon Trulson 1fc3284829 libtt, DtWidget: use new GENCPP 2019-10-30 19:48:04 -06:00
Jon Trulson fb93f405c1 dtwm: use new GENCPP 2019-10-30 19:48:04 -06:00
Jon Trulson 3f5d7027f2 gitignore: ignore built tradcpp binary 2019-10-30 19:48:04 -06:00
Jon Trulson 67ee2216f5 configure: use tradcpp as GENCPP 2019-10-30 19:19:49 -06:00
Jon Trulson 215be15f16 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.
2019-10-30 19:19:21 -06:00
Jon Trulson 25e98da92e dtfile: still working on cpp issues, a better solution is needed
I think it's time to try tradcpp.
2019-10-30 18:59:25 -06:00
Jon Trulson 8b065d9110 configure: use AC_PATH_PROG to find ksh 2019-10-30 18:53:16 -06:00
Jon Trulson 3f8c84b752 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/
2019-10-30 17:53:37 -06:00
Jon Trulson 2b8803a8fb 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.
2019-10-30 17:42:31 -06:00
Jon Trulson e16ad8120f dtlogin:Makefile.am: fix autogen warnings. This one still needs work. 2019-10-30 13:28:55 -06:00
Jon Trulson 47d691e8ca configure: check for -lcrypt, add dtlogin/Makefile.am 2019-10-30 13:28:14 -06:00
Jon Trulson 619402b739 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.
2019-10-30 12:17:32 -06:00
Jon Trulson 9bc595a0a6 configure: Add -lm and vfork checks. Add dtwm to AC_OUTPUT. 2019-10-30 12:10:30 -06:00
Jon Trulson 62e6e5c58c dtfile: make it build 2019-10-30 10:59:45 -06:00
Jon Trulson 89914f6168 configure: Add -DANSICPP -DMULTIBYTE -DNLS16 to SOURCE_CPP_DEFINES 2019-10-30 10:59:22 -06:00
Jon Trulson c33e516445 dtpad: builds again using @DTCLIENTLIBS@ 2019-10-29 19:23:23 -06:00
Jon Trulson c7a5f55d8a gitignore: add .dirstamp 2019-10-29 19:18:47 -06:00
Jon Trulson 3ce0527e52 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.
2019-10-29 19:17:52 -06:00
Jon Trulson 4f8a2e34e5 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.
2019-10-29 18:43:10 -06:00
Jon Trulson 77dfe92b3c 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.
2019-10-29 18:34:05 -06:00
Jon Trulson d183ade8b3 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.
2019-10-29 18:11:42 -06:00
Jon Trulson d99b3eb895 DtXinerama: build as shared lib, all dep on libXinerama 2019-10-29 18:07:58 -06:00
Jon Trulson 022709f6e2 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.
2019-10-29 18:02:29 -06:00
Jon Trulson 6660a892c1 dsdm: make it build 2019-10-29 12:34:06 -06:00
Jon Trulson becacdba4a configure: add icons and backdrops to AC_CONFIG_FILES 2019-10-29 12:33:38 -06:00
Jon Trulson c33872257d programs: temporarily disable: dthelp dtksh dtappbuilder dtdocbook dtinfo nsgmls 2019-10-29 12:09:06 -06:00
Jon Trulson 8f40c924a5 dtpad: fix Makefile.am to use proper XTOOLLIB 2019-10-28 20:05:04 -06:00
Jon Trulson c44d4f24c8 configure: rework how $XTOOLLIB works 2019-10-28 20:04:10 -06:00
Jon Trulson d674597f41 dtpad: get it to build 2019-10-28 19:26:40 -06:00
Jon Trulson 730da7747c Change "if SUN" conditionals in remaining Makefile.am files to "if SOLARIS" 2019-10-28 18:54:17 -06:00
Jon Trulson 24171c3194 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.
2019-10-28 18:54:17 -06:00
Jon Trulson 4b8a65e884 Get rid of ancient, useless logs/ subdir 2019-10-28 17:17:38 -06:00
Jon Trulson 001bde0008 configure: enable C99 2019-10-28 17:11:45 -06:00
Jon Trulson 98b815be8e configure/m4: add ax_pthread.m4 for pthread checks 2019-10-28 17:05:13 -06:00
Jon Trulson 86bae29d78 Protect inclusions of autotools_config.h with HAVE_CONFIG_H 2019-10-28 15:01:02 -06:00
Jon Trulson 9eee455580 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.
2019-10-28 14:44:58 -06:00
Jon Trulson d7e5206d6b DtSvc/DtUtil2: fix implicit function declarations 2019-10-28 14:30:43 -06:00
Jon Trulson dbce2e4337 DtSvc/DtUtil1: fix implicit function declarations 2019-10-28 14:30:36 -06:00
Jon Trulson c0e3f08c9f DtSvc/DtUtil2: fix implicit function declarations 2019-10-28 13:27:47 -06:00
Jon Trulson 951ae0d327 DtSvc/DtUtil1: fix implicit function declarations 2019-10-28 13:22:09 -06:00
Jon Trulson f2caa218b2 gitignore: add a few more files from csa/ 2019-10-26 17:39:48 -06:00
Jon Trulson 7bd6429b8a 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.
2019-10-26 17:31:59 -06:00
Jon Trulson 01167185ed configure: only build lib/* for now 2019-10-26 17:17:55 -06:00
Jon Trulson 34ff9da4b3 gitignore: add a few more files 2019-10-26 17:10:39 -06:00
Jon Trulson c15237ddac csa: make it build 2019-10-26 17:08:41 -06:00
Jon Trulson c282f38d16 configure: check for rpcgen, add new CSA_INCDIR and SPC_INCDIR 2019-10-26 17:08:20 -06:00
Jon Trulson 6186a4c631 DtMrm: make it build 2019-10-26 16:36:37 -06:00
Jon Trulson c3d7858424 DtTerm: make it build 2019-10-26 16:34:29 -06:00
Jon Trulson 7ff1995da0 DtPrint: make it build 2019-10-26 16:09:18 -06:00
Jon Trulson b0cc0c8747 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.
2019-10-26 16:05:48 -06:00
Jon Trulson 63ba9bac39 configure: add compiler checks, determine endianess, look for locale.h 2019-10-26 16:04:27 -06:00
Jon Trulson 61ab4a5b95 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...
2019-10-26 15:05:52 -06:00
Jon Trulson 1079ffa240 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...
2019-10-26 14:30:36 -06:00
Jon Trulson 056144488a 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.
2019-10-26 14:13:19 -06:00
Jon Trulson a048cea50f gitignore: update for autotools_config.h/.h.in 2019-10-25 18:33:06 -06:00
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