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

1830 commits

Author SHA1 Message Date
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
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