Commit Graph
100 Commits
Author SHA1 Message Date
Jon Trulson e7d657c376 libtt: remove hardcoded -lstdc++ used to build TT library
Hardcoding a -lstdc++ is wrong, since not all OSs are likely to handle
C++ in the same way.

The issue is that libtt needs to be built as a C++ library, so we use
a fake dummy.cxx file to convince libtool to do so instead, rather
than trying to force the issue by linking a (possibly missing)
libstdc++.
2021-12-13 16:44:01 -07:00
Jon Trulson a5a2d937cb Automate versioning for CDE, set current version to 2.4.0b
Previously in the imake world, changing the CDE version required hand
editing a handful of files.

This commit makes these files into ".in" files.  configure.ac now
holds CDE version information -- both in the AC_INIT() call and in the
CDE_VERSION_* variables a few lines down.

Changing the CDE version now involves editing those two locations in
configure.ac only.

Thereafter, a configure run will replace version information in the
following files with the current CDE version:

copyright
doc/common/help/HELPEnt.sgm
include/Dt/Dt.h
lib/tt/bin/ttauth/ttauth.man

This also causes a catch-22 problem with ToolTalk.  So the
tooltalk.inc file is gone and the relevant TT Makefiles have been
modified to set and define the TT version in those Makefiles that
actually use it.
2021-12-13 16:43:42 -07:00
Jon Trulson a2d3491150 dtmailpr/Makefile.am: remove unsupported defines 2021-12-12 16:45:48 -07:00
Jon Trulson 4a0f9701ab DtHelp: remove unused forced bit order depending on OS type 2021-12-12 15:23:28 -07:00
Jon Trulson a77253f9ce Fix a Wself-assign-field clang warning
The arg that should be on the rhs seems to be commented out for some
reason, and assigning a variable to itself is pointless, so just
comment it out with a comment explaining why.
2021-12-12 13:43:44 -07:00
Jon Trulson ab409095d6 Fix a couple of unused-comparison clang warnings 2021-12-12 12:52:14 -07:00
Jon Trulson 75ea7be520 DtSearch/raima: use autodetected byte endianness rather than forcing based on OS 2021-12-12 12:29:48 -07:00
Jon Trulson c479fe7b9e Fix some logical-not-parentheses warnings 2021-12-11 17:39:35 -07:00
Jon Trulson 24a2f05138 Fix some shift-op-parentheses warnings 2021-12-11 17:39:35 -07:00
Jon Trulson d470302354 Fix several pointer-bool-conversion warnings that could cause cores 2021-12-11 17:39:35 -07:00
Jon Trulson adc056eb83 MIMEBodyPart.C: fix a couple sizeof-pointer-memaccess warnings 2021-12-11 17:39:35 -07:00
Jon Trulson dda11f0e38 Fix a bunch of -Wempty-body warnings reported by clang
Many of these were real bugs, like:

if (cond);
   do_something

etc...

Others were just cosmetic - like placing the ';' on a separate line to
make the intention clear.
2021-12-11 13:10:24 -07:00
Jon Trulson 18e25ce273 dtsession/SmUI.c: fix a build issue on OpenBSD 7 2021-12-10 17:24:40 -07:00
Jon Trulson b900f8a36d DtPamSvc: move PamSvc.h to include/Dt/ 2021-12-10 14:08:02 -07:00
Jon Trulson f8877e8e24 dtinfo: fix some installation issues 2021-12-10 12:52:07 -07:00
Jon Trulson 383f0cf4a0 C/guides: install them 2021-12-10 12:01:48 -07:00
Jon Trulson 30e65c6b14 doc/common/guides/guides_env.am: use HELP_LANG 2021-12-10 09:47:31 -07:00
Jon Trulson b29bd77a2f m4/compiler_flag_chk.m4: fix bug related to not testing the actual flag 2021-12-09 15:48:20 -07:00
Jon Trulson a9e028f7c6 doc/C: get m-guides setup 2021-12-09 15:00:00 -07:00
Jon Trulson eebb078c19 doc/C/guides: build the infolib and search DB 2021-12-09 13:50:21 -07:00
Jon Trulson e26c8fb9a4 doc/C/guides: build the TOCs 2021-12-08 16:58:05 -07:00
Jon Trulson e437a02e0b dtinfo/dtinfogen: make it build
Now, as to whether it all actually works, I guess we will see.
2021-12-06 17:47:00 -07:00
Jon Trulson 93a3d73ef7 dtinfo: install required stuff, also in localized/ 2021-12-06 11:59:00 -07:00
Jon Trulson b6c938fb47 dtinfo: move the dtinfo_dfiles_hfiles.mk makefile include into dtinfo/src/ 2021-12-05 19:48:48 -07:00
Jon Trulson 89cdc161d0 dtinfo: move the dtinfo_env.mk makefile include to programs/dtinfo/ 2021-12-05 19:15:05 -07:00
Jon Trulson b9dbea9d3a dtinfo/dtinfo: get it to build
After fixing up some problems with the dtinfo/mmdb library, dtinfo now
links.
2021-12-05 11:57:50 -07:00
Jon Trulson 7540b13e2b dtinfo/dtinfo/src: more changes to the way the libs are made 2021-12-05 11:57:50 -07:00
Jon Trulson 12c82495fd configure: fix a typo in LIBSEARCH and LIBMMDB 2021-12-05 11:57:50 -07:00
Jon Trulson 10c77328fa dtinfo/DtMmdb: Fix up another build issue 2021-12-05 11:57:50 -07:00
Jon Trulson 97b2f86eba dtinfo/mmdb: redo the way this library is built
Specifically:

- use libtool so that the top level library contains the actual
  objects, and not just the sub-archives, which the linker will just
  ignore.
- create the source files via symlinks rather than referencing them
  with relative paths.  Doing it that way causes a 'make clean' to
  delete objects in DtMmdb/ which is wrong.
- fix up utility/ - it seemed to be building more source files than
  the original Imakefile listed.  Other changes may need to be done
  here if similar mistakes were made in other subdirs.
2021-12-05 11:57:50 -07:00
Jon Trulson b24fd04619 dtinfo: get src/UAS building, finish msg and res building
Also, rework the way we build convenience libs for the classes to use
libtool.  This fixes some potential linking issues and dependency
checking.

Next up will be to see if we can link and install it, along with it's
message catalogs, resources, etc.
2021-12-05 11:57:50 -07:00
Jon Trulson bdf9256ab2 dtinfo/dtinfo: initial stab at making it build 2021-12-05 11:57:50 -07:00
Jon Trulson 41dbfddc10 dtsession/Makefile.am: add config to SUBDIR so PAM config is built/installed
Also, update .gitignore due to some renaming of the PAM config files.
2021-11-22 13:18:17 -07:00
Jon Trulson cf7e51ccb5 dthelp: fix implicit-function-declaration warnings (the rest)
... at least with regard to the non-generated code.
2021-11-16 18:28:23 -07:00
Jon Trulson 4f16e12ed8 dthelp: fix implicit-function-declaration warnings (mostly) 2021-11-16 16:24:58 -07:00
Jon Trulson cc422524f7 dtsr: fix implicit-function-declaration warnings 2021-11-16 15:42:09 -07:00
Jon Trulson e8af2b9ac8 dtpdm: fix implicit-function-declaration warnings 2021-11-16 15:24:09 -07:00
Jon Trulson fd53532bcf dtappbuilder: fix implicit-function-declaration warnings
With the exception of the yy* issues.  Can resolve those at a later
time.
2021-11-16 15:21:44 -07:00
Jon Trulson 0ee97b3645 dtcm: fix implicit-function-declaration warnings 2021-11-16 14:46:48 -07:00
Jon Trulson f6c0a00a7a dtksh: fix implicit-function-declaration warnings
Tis does not fix those warnings in ksh93 itself, only the stuff we are
responsible for.
2021-11-16 12:39:18 -07:00
Jon Trulson 3021e01559 configure.ac: add m4 macros that can check for compiler option support
We now use this to set certain options, if supported by the compilers
(C/C++).  Currently we enable various options, like
-Wno-format-truncation.  We use this to ignore complaints about
possibly truncations due to the use of the snprintf() family of
functions - where forced truncation is the whole point.
2021-11-16 12:27:48 -07:00
Jon Trulson 4b3901f63b dtspcd: fix implicit-function-declaration warnings 2021-11-16 11:45:11 -07:00
Jon Trulson 36c9476a74 dtcalc: fix implicit-function-declaration warnings 2021-11-16 11:42:21 -07:00
Jon Trulson 5a0e223ea1 dtterm: fix implicit-function-declaration warnings 2021-11-16 10:40:44 -07:00
Jon Trulson 3fe7bbeca5 dtsession/SmSave: fix format pointer confusion warnings 2021-11-16 09:57:20 -07:00
Jon Trulson 3f1f2ea0f6 dticon: fix implicit-function-declaration warnings 2021-11-15 16:07:28 -07:00
Jon Trulson 6f553130a3 dtstyle: fix implicit-function-declaration warnings 2021-11-15 16:07:28 -07:00
Jon Trulson 086002c372 dthello: fix implicit-function-declaration warnings 2021-11-15 16:07:28 -07:00
Jon Trulson bbabcfd5f0 dtsession: fix implicit-function-declaration warnings 2021-11-15 16:07:28 -07:00
Jon Trulson 47348e59de dtlogin: fix implicit-function-declaration warnings 2021-11-15 16:07:28 -07:00
Jon Trulson abb408b24f dtwm: fix implicit-function-declaration warnings 2021-11-15 16:07:28 -07:00
Jon Trulson 3e7a921af2 dthelp/parser: disable parallel building for eltdef and util 2021-11-12 17:30:44 -07:00
Jon Trulson 6e4b443309 dtpad: fix implicit-function-declaration warnings 2021-11-12 16:37:02 -07:00
Jon Trulson 23b3b76c1d lib/csa: fix implicit-function-declaration warnings 2021-11-12 16:21:34 -07:00
Jon Trulson 5223d0408e lib/DtTerm: fix implicit-function-declaration warnings 2021-11-12 16:14:18 -07:00
Jon Trulson fd3be337fa lib/DtWidgets: fix implicit-function-declaration warnings 2021-11-12 15:05:56 -07:00
Jon Trulson 36ff45cc17 Revert "fontaliases: revise fonts.alias for UTF-8 to display"
This reverts commit a976460e59.

This just does not look as good, and the fonts appear too tiny.  It
needs more work, andshould support all OS's since they pretty much (at
least with the linuxen and bsd's) all use the same fonts and X servers.
2021-11-11 16:48:52 -07:00
Jon Trulson 20ef417e20 doc: get man pages building 2021-11-11 16:27:10 -07:00
Jon Trulson 5ef6e32a41 dbtoman: remove uneeded Imakefile 2021-11-11 10:32:07 -07:00
Jon Trulson cd66617653 dbtoman/instant: fix some implicit-function-declaration warnings 2021-11-11 10:11:38 -07:00
Jon Trulson bfd694e8c7 doc: fix dtdocbook so it can handle parallel builds
Enable parallel building of the help files.
2021-11-11 10:03:50 -07:00
Jon Trulson 1bb5a9f030 doc: remove some no longer needed Imakefiles 2021-11-10 18:45:50 -07:00
Jon Trulson ca57b78396 doc/help: install all of the graphics and help assets
Also, some Makefile cleanups and a new sdl-data.am include.
2021-11-10 17:11:14 -07:00
Jon Trulson 66c887ad21 doc/help: install help files in correct place, setup C->en_US.UTF-8 symlink 2021-11-10 12:19:11 -07:00
Jon Trulson d340e07794 Setup some missing files needed for help to build correctly 2021-11-10 11:04:10 -07:00
Jon Trulson 30bae57043 doc: get the German, Spanish, French, and Italian SDL help files building 2021-11-09 20:50:47 -07:00
Jon Trulson b3309f59d3 doc: get the C SDL help files building 2021-11-09 19:46:17 -07:00
Jon Trulson 5f7eda2b33 doc: get utils to build 2021-11-09 15:39:49 -07:00
Jon Trulson f4bd53c82e Re-add doc2sdl/SGML directory so dtdocbook can work 2021-11-08 20:28:12 -07:00
Jon Trulson 924b2910cd gitignore: add some stuff for the new way fonts.aliases is done on linux/en_US 2021-11-05 13:45:18 -06:00
Jon Trulson 9ca0cf7545 configure: fix timezone/tm checks to work on Linux (time.h is needed) 2021-10-24 12:01:45 -06:00
Jon Trulson 18e6813b3c configure: add a check for AC_STRUCT_TIMEZONE 2021-10-23 22:10:56 -06:00
Jon Trulson c12e6fea5b dtinfo: remove endian checks from Makefile, handled by autotools now 2021-10-23 22:08:48 -06:00
Jon Trulson 9369d1d5b9 dtcm: timeops.c/getdate.y: fix fbsd build errors
Commit e0508b31 introduced build errors on FreeBSD.  This corrects
them.

HAVE_DECL_TIMEZONE should only be used to determine whether or not the
'timezone' variable is defined in a header file or whether it must be
specifically 'extern'ed.

On fbsd, a definition exists, but it is a function in libc and not an
integer timezone value that can be mutliplied or divided.
2021-10-23 21:59:33 -06:00
Jon Trulson 5754d65248 ttsnoop/DtTt.C: fix -Wreturn-type warnings 2021-10-23 16:44:48 -06:00
Jon Trulson 6d50de9448 DialogBox.c: fix ptr<->int conversion 2021-10-23 16:40:22 -06:00
Jon Trulson 237a3a4d94 DtSetPref.C: fix some pointer<->int conversions 2021-10-23 15:47:21 -06:00
Jon Trulson d7223930d4 dtkcmds.c: fix some pointer<->int conversions 2021-10-23 15:47:09 -06:00
Jon Trulson efa6b6eadc dtksh: move fsym() into widget.c where it belongs
This function is only used in one place, so move it there and delete
findsym.c
2021-10-23 15:05:56 -06:00
Jon Trulson f61316c4f4 tt_ldpath: fix broken logic in find_lib 2021-10-23 14:50:40 -06:00
Jon Trulson 03c71dd23e xdmauth.c: fix some implicit-int warnings 2021-10-23 14:24:23 -06:00
Jon Trulson d880853113 tptregexp/regsub.c: use string.h 2021-10-23 14:13:33 -06:00
Jon Trulson 566afbd071 FreeBSD: use the LIBICONV_PLUG define to prevent link errors
This define should be used so that the libc implementation can work
(as opposed to using the libiconv library)
2021-09-26 15:28:56 -06:00
Jon Trulson be6bc0aa54 Remove some unused imake *.tmpl files
We still keep some of them for doc/ and dtinfo until those are
building properly.
2021-09-19 14:42:11 -06:00
Jon Trulson 3e81d4c4de csa: specify correct time_t type in _DtCm_print_tick() prototype 2021-08-07 18:32:33 -06:00
Jon Trulson b876ab3932 dtinfo: use autotools endian detection instead of cpu-specific checks
This affects the definitions of OLIAS_BIG_ENDIAN and
OLIAS_LITTLE_ENDIAN when building mmdb.
2021-08-07 18:25:36 -06:00
Jon Trulson b0af0a49aa dtterm: fix problem introduced with 0e9b1140ea, preventing install of dtterm
The tic command needs to be under the 'install-exec-hook:' target, not
the 'install:' target.  Specifying the 'install:' target overrides
everything else, causing the dtterm binary to not be installed on a
'make install'
2021-08-07 17:31:27 -06:00
Jon Trulson 93e280b05b dtcm: install-exec-hook needs $(DESTDIR) 2021-07-22 19:50:18 -06:00
Jon Trulson 1f59b5150a includes: install them
This commit installs the required include files needed for CDE
development.  In pre-autotools CDE, these were installed in
/usr/dt/share/include/ and a symlink was created in /usr/dt/include to
point toward them.

This is no longer done, and all include files are just installed in
${prefix}/include/ like the rest of the planet.
2021-07-17 17:07:56 -06:00
Jon Trulson 31c2e82eea include: move dtinfo/DtMmdb/oliasdb/Mmdb.h -> include/Dt/Mmdb.h 2021-07-17 16:52:33 -06:00
Jon Trulson cc60fb8241 configure: remove freetype checks, we do not need freetype anymore 2021-07-08 16:35:51 -06:00
Jon Trulson 10eb1ef8e0 autogen.sh: remove the bogus "-I admin" option to aclocal
In addition, remove some code we do not use or need.
2021-07-04 19:23:08 -06:00
Jon Trulson 1fda5afcc2 dtappbuilder: try to fix a dep error causeing every make to rebuild
With the addition of dtappbuilder to autotools, every make run
(including make install) causes src/ab to regenerate files that cause
the whole directory to be recompiled, even on a 'make install'.

This seems to be primarily caused by dtbuilder.msg (and possibly
dtbuilder.c) being modified after it is generated, which is apparently
normal behavior for dtcodegen.

This fix sets both dtbuilder.msg and dtbuilder.c as "order-dependant
prequisites" so that they are always generated first (there are
already rules to do generate them) and then subsequently the only
thing required is that they exist since we don't care if they are
modified after that point.  If you need to make changes to them, edit
their respective .src files instead.

This seems to resolve the issue, but perhaps at the expense of adding
another requirement to use gmake.

We also need to disable parallel building in this module :(
2021-07-04 18:49:57 -06:00
Jon Trulson 72e6e90706 dtappbuilder: use /bin/sh rather than /bin/csh as default shell 2021-07-04 18:04:32 -06:00
Jon Trulson fbf58acca7 appbuilder/ab: fix a typo on CLEANFILES line 2021-07-04 17:26:40 -06:00
Jon Trulson 2730367844 utempter: complete the implementation
Liang Chang added utempter support to the dtterm widget in
pre-autoconf CDE.  While the code itself was merged, it was still not
"turned on" for autoconf builds.

This commit completes the implementation allowing dtterm on Linux and
the BSDs to be installed without having to be setuid root -- as long
as the libutempter headers and libraries are installed.
2021-07-04 16:45:57 -06:00
Jon Trulson ac8bd41373 Revert "Convert uses of XKeycodeToKeysym (deprecated) to XkbKeycodeToKeysym"
This reverts commit 15a2032626.

This is wrong - it is missing the proper include file, and the
new function takes 4 arguments not 3.
2021-07-04 13:00:51 -06:00
Jon Trulson 3bc4132f9a dthelp: parser/canon1/eltdef - disable parallel builds 2021-07-03 22:32:11 -06:00
Jon Trulson 2bc3052313 README.md: update and rename top level README to README.md 2021-07-03 20:36:36 -06:00
Jon Trulson 39d3a67701 Create a toplevel delete-later dir and put databases/ and admin/ into it 2021-07-03 19:30:22 -06:00