Konrad, 2026-11-14: "was soll dtksh ueberhaupt sein... einfach ne shell von
CDE? fuck it. schmeiss das komplett raus aus MCDE." dtksh is CDE's ksh93
with Motif bindings for scripting dialogs; its bundled ksh93 (AT&T ast's
bin/package) compiles and RUNS test programs while it builds, which a cross
build for NetBSD on a Linux host cannot do -- the reason wm/mcde did not
build for days ("cc: not found", userland-2026-11-14g.log).
- programs/dtksh removed (1204 files); not in programs/Makefile.am,
configure.ac, the recipe (REPLACE_INTERPRETER dtksh, KSH_CC), PLIST (bin,
lib, man page, six catalogues), msg.C.am (dtksh.cat), AGENTS.md.
- What used dtksh:
* dterror.src, dtfile_error.cpp, types/error.ds.src: an error dialog with a
message. New programs/dterror/dterror.c (about 70 lines of Motif), built
as dterror.ds: dterror.ds MESSAGE [TITLE [OK-LABEL]], the convention of
every caller (the data types, dtopen, dtfile ModAttr.c). dtfile_error
was only the 'test' entry of dtfile.config and ModAttr.c's fallback; the
entry is gone and ModAttr.c calls dterror.ds.
* dthelpgen.dtsh: the "building help" dialog helpgen.c forked; it runs
silently now (childPid stays -1).
* dtprintegrate/dtlp.src: the print dialog (1711 lines of dtksh); printing
is to come back through CUPS (tasksd t0177, t0193). dtlp's man page is
out of the doc build and PLIST with it.
* The data types DTKSH_SCRIPT (*.ds) and DTKSH_CONV (*.dtsh) in dt.dt.src:
they would have classed dterror.ds as a script.
- dtterm needs no change: lib/DtTerm/TermPrim/TermPrimSubproc.c takes /usr/bin/zsh,
then the shell of the passwd entry, then /bin/sh, and never started dtksh.
- ksh93 stays as the NetBSD binary for the scripts that say ksh (Xsession).
Measured: make mcde-linux exit=0 (build/logs/mcde-linux-nodtksh-2026-11-14.log),
autogen picked up programs/dterror; dterror.ds under Xvfb shows the error
icon, a two-line message and one button "Understood", and exits 0 on Return.
Not in this commit: the other agents' pending dtfile edits (Search.c,
Navigation.c) and the regenerated distinfo files.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1119 lines
35 KiB
Plaintext
1119 lines
35 KiB
Plaintext
dnl When changing the version below, also change the CDE_VERSION_* macros
|
|
dnl to match further below
|
|
dnl MCDE: the tarname stays "cde" for now -- pkgdatadir (share/cde) and
|
|
dnl sysconfdir/cde come from it, and the install paths move together with the
|
|
dnl dt/ prefix in a later step, not in the rename.
|
|
AC_INIT([Makronix Common Desktop Environment],
|
|
[0.1.0],
|
|
[https://sourceforge.net/projects/cdesktopenv],
|
|
[cde],
|
|
[https://sourceforge.net/projects/cdesktopenv])
|
|
AC_CONFIG_HEADERS([include/cde_config.h])
|
|
AC_CONFIG_MACRO_DIRS([m4])
|
|
AM_INIT_AUTOMAKE([foreign subdir-objects no-define])
|
|
|
|
dnl global CDE versioning
|
|
|
|
CDE_VERSION_MAJOR=2
|
|
CDE_VERSION_MINOR=5
|
|
CDE_VERSION_MICRO=3
|
|
dnl this is blank for a release, or contains an alpha character to indicate a
|
|
dnl dev release.
|
|
CDE_VERSION_DEV=
|
|
|
|
AC_SUBST(CDE_VERSION_MAJOR)
|
|
AC_SUBST(CDE_VERSION_MINOR)
|
|
AC_SUBST(CDE_VERSION_MICRO)
|
|
AC_SUBST(CDE_VERSION_DEV)
|
|
|
|
dnl MCDE: its own version; the CDE_VERSION_* above stay the API level of the
|
|
dnl CDE it is forked from (DtVERSION in Dt.h), which programs test against.
|
|
MCDE_VERSION=0.1.0
|
|
AC_SUBST(MCDE_VERSION)
|
|
|
|
dnl released in 2012, this should be sufficient
|
|
AC_PREREQ([2.69])
|
|
|
|
AC_CANONICAL_HOST
|
|
AC_CANONICAL_BUILD
|
|
|
|
dnl These must be up here for the compiler search list to actually work
|
|
AC_PROG_CC([cc gcc clang])
|
|
AC_PROG_CXX([c++ g++ clang++])
|
|
|
|
dnl MCDE: the C dialect. CDE declares functions K&R style (`int f();`), which
|
|
dnl C23 reads as `int f(void)`; GCC 15 defaults to C23. gnu11 is the dialect
|
|
dnl NetBSD builds its own tree with (share/mk/bsd.sys.mk). GCC 14 also made
|
|
dnl five old diagnostics errors that CDE trips; they stay warnings here. New
|
|
dnl MCDE code must be valid C99 and POSIX on its own (AGENTS.md).
|
|
dnl MCDE_DIALECT_CFLAGS: the accepted flags, for builds that ignore CFLAGS.
|
|
MCDE_DIALECT_CFLAGS=
|
|
for mcde_flag in -std=gnu11 -Wno-error=implicit-function-declaration \
|
|
-Wno-error=implicit-int -Wno-error=int-conversion \
|
|
-Wno-error=incompatible-pointer-types -Wno-error=return-mismatch; do
|
|
mcde_save_CFLAGS=$CFLAGS
|
|
CFLAGS="$CFLAGS $mcde_flag"
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])], [MCDE_DIALECT_CFLAGS="$MCDE_DIALECT_CFLAGS $mcde_flag"],
|
|
[CFLAGS=$mcde_save_CFLAGS])
|
|
done
|
|
AC_SUBST(MCDE_DIALECT_CFLAGS)
|
|
|
|
LT_INIT
|
|
dnl MCDE: Xft (from MakroDE): anti-aliased fonts in dtterm through fontconfig.
|
|
dnl On by default -- the desktop draws Hack (fonts/) -- and --disable-xft keeps
|
|
dnl the classic fontset renderer for machines without freetype.
|
|
AC_ARG_ENABLE([xft],
|
|
AS_HELP_STRING([--disable-xft], [no Xft text renderer in dtterm (default: enabled)]),
|
|
[enable_xft="$enableval"], [enable_xft=yes])
|
|
XFTLIB=""
|
|
XFT_CFLAGS=""
|
|
if test "$enable_xft" = yes; then
|
|
PKG_CHECK_MODULES([XFT], [xft fontconfig])
|
|
XFTLIB="$XFT_LIBS"
|
|
AC_DEFINE([HAVE_XFT], [1], [dtterm can draw through Xft])
|
|
fi
|
|
AC_SUBST(XFTLIB)
|
|
AC_SUBST(XFT_CFLAGS)
|
|
AC_PREFIX_DEFAULT(/usr/dt)
|
|
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
dnl SOURCE_DEFINES - start with CDE project default
|
|
SOURCE_CPP_DEFINES="-DANSICPP -DMULTIBYTE -DNLS16"
|
|
|
|
dnl CPP_COMPILER_FLAGS - CPP/C/C++ compiler flags
|
|
CPP_COMPILER_FLAGS=""
|
|
|
|
dnl CXX_COMPILER_FLAGS - C++ compiler flags
|
|
CXX_COMPILER_FLAGS=""
|
|
|
|
dnl C_COMPILER_FLAGS - C compiler flags
|
|
C_COMPILER_FLAGS=""
|
|
|
|
|
|
dnl These OS version checks are deprecated and should be replaced with
|
|
dnl feature checks where appropriate
|
|
|
|
build_linux=no
|
|
bsd=no
|
|
build_freebsd=no
|
|
build_openbsd=no
|
|
build_netbsd=no
|
|
build_solaris=no
|
|
build_aix=no
|
|
|
|
dnl locations of libs/includes if not in 'standard' places like on
|
|
dnl linux (/usr/...). We build these up based on where X11 is, and
|
|
dnl other things as we go along.
|
|
EXTRA_LIBS=""
|
|
EXTRA_INCS=""
|
|
|
|
# pam currently only works on netbsd (9.2 tested) and linux
|
|
supports_pam=no
|
|
|
|
# The OS decides the TARGET's feature-test macros and which sources are built,
|
|
# so it must be the host's (--host) OS, not the OS of the machine running
|
|
# configure. In a cross build from Linux for NetBSD the two differ: build_os
|
|
# was linux-gnu, the Linux branch added -D_POSIX_SOURCE, which hides NetBSD's
|
|
# u_short, and the build stopped in lib/tt/mini_isam ("unknown type name
|
|
# 'u_short'", build/logs/userland-2026-11-14g.log:7124ff). In a native build
|
|
# host_os is build_os, so nothing changes there.
|
|
case "${host_os}" in
|
|
linux*)
|
|
build_linux=yes
|
|
SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -D_POSIX_SOURCE \
|
|
-D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE"
|
|
supports_pam=yes
|
|
;;
|
|
freebsd*)
|
|
build_freebsd=yes
|
|
bsd=yes
|
|
# fbsd needs the iconv plug to avoid conflict with libiconv
|
|
# and libc implementations. We prefer the libc impl.
|
|
SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DLIBICONV_PLUG"
|
|
;;
|
|
openbsd*)
|
|
build_openbsd=yes
|
|
bsd=yes
|
|
;;
|
|
netbsd*)
|
|
build_netbsd=yes
|
|
bsd=yes
|
|
supports_pam=yes
|
|
;;
|
|
solaris*|sun*)
|
|
build_solaris=yes
|
|
;;
|
|
aix*)
|
|
build_aix=yes
|
|
;;
|
|
esac
|
|
|
|
AM_CONDITIONAL([LINUX], [test "$build_linux" = "yes"])
|
|
AM_CONDITIONAL([BSD], [test "$bsd" = "yes"])
|
|
AM_CONDITIONAL([FREEBSD], [test "$build_freebsd" = "yes"])
|
|
AM_CONDITIONAL([OPENBSD], [test "$build_openbsd" = "yes"])
|
|
AM_CONDITIONAL([NETBSD], [test "$build_netbsd" = "yes"])
|
|
AM_CONDITIONAL([SOLARIS], [test "$build_solaris" = "yes"])
|
|
AM_CONDITIONAL([AIX], [test "$build_aix" = "yes"])
|
|
|
|
dnl set CSRG_BASED define for the BSD's.
|
|
if test "$bsd" = "yes"
|
|
then
|
|
SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DCSRG_BASED"
|
|
fi
|
|
|
|
is_x86_64=no
|
|
is_i386=no
|
|
is_sparc=no
|
|
is_mips=no
|
|
is_arm=no
|
|
is_ppc=no
|
|
is_riscv=no
|
|
is_aarch64=no
|
|
|
|
case "${host_cpu}" in
|
|
i[3456]86*)
|
|
is_i386=yes
|
|
;;
|
|
x86_64* | amd64*)
|
|
is_x86_64=yes
|
|
;;
|
|
arm*)
|
|
is_arm=yes
|
|
;;
|
|
mips*)
|
|
is_mips=yes
|
|
;;
|
|
sparc*)
|
|
is_sparc=yes
|
|
;;
|
|
ppc* | powerpc*)
|
|
is_ppc=yes
|
|
;;
|
|
riscv*)
|
|
is_riscv=yes
|
|
;;
|
|
aarch64*)
|
|
is_aarch64=yes
|
|
;;
|
|
esac
|
|
|
|
AM_CONDITIONAL([I386], [test "$is_i386" = yes])
|
|
AM_CONDITIONAL([X86_64], [test "$is_x86_64" = yes])
|
|
AM_CONDITIONAL([ARM], [test "$is_arm" = yes])
|
|
AM_CONDITIONAL([SPARC], [test "$is_sparc" = yes])
|
|
AM_CONDITIONAL([MIPS], [test "is_mips" = yes])
|
|
AM_CONDITIONAL([PPC], [test "is_ppc" = yes])
|
|
AM_CONDITIONAL([RISCV], [test "is_riscv" = yes])
|
|
AM_CONDITIONAL([AARCH64], [test "is_aarch64" = yes])
|
|
|
|
dnl our main libraries
|
|
dnl we use single quotes so that $top_buildir is evaluated in the makefiles,
|
|
dnl not here.
|
|
AC_SUBST(LIBTT, '$(top_builddir)/lib/tt/lib/libtt.la')
|
|
AC_SUBST(LIBXIN, '$(top_builddir)/lib/DtXinerama/libDtXinerama.la')
|
|
AC_SUBST(LIBWIDGET, '$(top_builddir)/lib/DtWidget/libDtWidget.la')
|
|
dnl MCDE: libDtTerm and libMcdeSound need the libraries below them named
|
|
dnl to every program that links them: a libtool that does not hand on
|
|
dnl indirect libraries (Debian's) let the linker take an older installed
|
|
dnl libMcdeSys through the RUNPATH (dtterm, 2026-11-13)
|
|
AC_SUBST(LIBTERM, '$(top_builddir)/lib/DtTerm/libDtTerm.la $(LIBMCDESOUND)')
|
|
AC_SUBST(LIBMCDESOUND, '$(top_builddir)/lib/McdeSound/libMcdeSound.la $(LIBMCDESYS)')
|
|
AC_SUBST(LIBSVC, '$(top_builddir)/lib/DtSvc/libDtSvc.la')
|
|
AC_SUBST(LIBMCDESYS, '$(top_builddir)/lib/McdeSys/libMcdeSys.la')
|
|
AC_SUBST(LIBSEARCH, '$(top_builddir)/lib/DtSearch/libDtSearch.la')
|
|
AC_SUBST(LIBPRINT, '$(top_builddir)/lib/DtPrint/libDtPrint.la')
|
|
AC_SUBST(LIBMRM, '$(top_builddir)/lib/DtMrm/libDtMrm.la')
|
|
AC_SUBST(LIBMMDB, '$(top_builddir)/lib/DtMmdb/libDtMmdb.la')
|
|
AC_SUBST(LIBHELP, '$(top_builddir)/lib/DtHelp/libDtHelp.la')
|
|
AC_SUBST(LIBCSA, '$(top_builddir)/lib/csa/libcsa.la')
|
|
|
|
AC_SUBST(DTCLIENTLIBS, '$(LIBPRINT) $(LIBHELP) $(LIBWIDGET) $(LIBSVC) \
|
|
$(LIBTT) $(LIBXIN)')
|
|
|
|
dnl set up come convenience replacements for global include dirs
|
|
AC_SUBST(DT_INCDIR, '-I$(top_builddir)/include/Dt')
|
|
AC_SUBST(DTI_INCDIR, '-I$(top_builddir)/include/DtI')
|
|
AC_SUBST(TT_INCDIR, '-I$(top_builddir)/include/Tt')
|
|
AC_SUBST(XM_INCDIR, '-I$(top_builddir)/include/Xm')
|
|
AC_SUBST(CSA_INCDIR, '-I$(top_builddir)/include/csa')
|
|
AC_SUBST(SPC_INCDIR, '-I$(top_builddir)/include/SPC')
|
|
|
|
dnl language enables
|
|
|
|
AC_ARG_ENABLE([german],
|
|
AS_HELP_STRING([--enable-german], [Build German locale (default=no)]),
|
|
[enable_de="yes"], [enable_de=""]
|
|
)
|
|
AM_CONDITIONAL([GERMAN], [test -n "$enable_de"])
|
|
|
|
AC_ARG_ENABLE([italian],
|
|
AS_HELP_STRING([--enable-italian], [Build Italian locale (default=no)]),
|
|
[enable_it="yes"], [enable_it=""]
|
|
)
|
|
AM_CONDITIONAL([ITALIAN], [test -n "$enable_it"])
|
|
|
|
AC_ARG_ENABLE([french],
|
|
AS_HELP_STRING([--enable-french], [Build French locale (default=no)]),
|
|
[enable_fr="yes"], [enable_fr=""]
|
|
)
|
|
AM_CONDITIONAL([FRENCH], [test -n "$enable_fr"])
|
|
|
|
AC_ARG_ENABLE([spanish],
|
|
AS_HELP_STRING([--enable-spanish], [Build Spanish locale (default=no)]),
|
|
[enable_es="yes"], [enable_es=""]
|
|
)
|
|
AM_CONDITIONAL([SPANISH], [test -n "$enable_es"])
|
|
|
|
AC_ARG_ENABLE([japanese],
|
|
AS_HELP_STRING([--enable-japanese], [Build Japanese locale (default=no)]),
|
|
[enable_ja="yes"], [enable_ja=""]
|
|
)
|
|
AM_CONDITIONAL([JAPANESE], [test -n "$enable_ja"])
|
|
|
|
dnl interface font
|
|
AC_ARG_ENABLE([misc-fixed],
|
|
AS_HELP_STRING([--enable-misc-fixed], [Set interface font to misc-fixed (default=no)]),
|
|
[enable_misc_fixed="yes"], [enable_misc_fixed=""]
|
|
)
|
|
AM_CONDITIONAL([MISC_FIXED], [test -n "$enable_misc_fixed"])
|
|
|
|
dnl Build the help and dtinfo docs?
|
|
AC_ARG_ENABLE([docs],
|
|
AS_HELP_STRING([--disable-docs], [Disable building help/dtinfo docs (default=no)]),
|
|
[disable_docs="yes"], [disable_docs=""]
|
|
)
|
|
AM_CONDITIONAL([BUILD_DOCS], [test -z "$disable_docs"])
|
|
|
|
dnl Xrender usage
|
|
AC_ARG_ENABLE([xrender],
|
|
AS_HELP_STRING([--disable-xrender], [Disable use of the Xrender extension (default=auto)]),
|
|
[disable_xrender="yes"], [disable_xrender=""]
|
|
)
|
|
|
|
dnl copied from xdm...
|
|
|
|
AC_ARG_WITH(utmp_file,
|
|
AS_HELP_STRING([--with-utmp-file=<pathname>],
|
|
[specify file to pass to sessreg -u for current logins])
|
|
AS_HELP_STRING([--without-utmp-file],
|
|
[specify passing "none" to sessreg -u to not record logins in utmp]),
|
|
[UTMP_FILE="$withval"])
|
|
if test "x$UTMP_FILE" = "xyes" ; then
|
|
UTMP_FILE=""
|
|
elif test "x$UTMP_FILE" = "xno" ; then
|
|
UTMP_FILE="none"
|
|
fi
|
|
AC_MSG_CHECKING([for path to file listing current logins for sessreg])
|
|
if test "x$UTMP_FILE" = "x" ; then
|
|
AC_MSG_RESULT([use sessreg default])
|
|
else
|
|
AC_MSG_RESULT([$UTMP_FILE])
|
|
fi
|
|
AM_CONDITIONAL(SET_UTMP_FILE, test x$UTMP_FILE != x)
|
|
AC_SUBST(UTMP_FILE)
|
|
|
|
AC_ARG_WITH(wtmp_file,
|
|
AS_HELP_STRING([--with-wtmp-file=<pathname>],
|
|
[specify file to pass to sessreg -w for login history])
|
|
AS_HELP_STRING([--without-wtmp-file],
|
|
[specify passing "none" to sessreg -w to not record logins in wtmp]),
|
|
[WTMP_FILE="$withval"])
|
|
if test "x$WTMP_FILE" = "xyes" ; then
|
|
WTMP_FILE=""
|
|
elif test "x$WTMP_FILE" = "xno" ; then
|
|
WTMP_FILE="none"
|
|
fi
|
|
AC_MSG_CHECKING([for path to file listing login history for sessreg])
|
|
if test "x$WTMP_FILE" = "x" ; then
|
|
AC_MSG_RESULT([use sessreg default])
|
|
else
|
|
AC_MSG_RESULT([$WTMP_FILE])
|
|
fi
|
|
AM_CONDITIONAL(SET_WTMP_FILE, test x$WTMP_FILE != x)
|
|
AC_SUBST(WTMP_FILE)
|
|
|
|
dnl hmmm...
|
|
RM="rm -f"
|
|
AC_SUBST(RM)
|
|
CP="cp -f"
|
|
AC_SUBST(CP)
|
|
|
|
dnl these should be configurable someday...
|
|
dnl MCDE: where CDE keeps its files, as configure options (pkgsrc used to
|
|
dnl patch placeholders into this file). The installation top is --prefix.
|
|
CDE_INSTALLATION_TOP="$prefix"
|
|
test "x$CDE_INSTALLATION_TOP" = xNONE && CDE_INSTALLATION_TOP="$ac_default_prefix"
|
|
AC_ARG_WITH([logfiles-dir],
|
|
[AS_HELP_STRING([--with-logfiles-dir=DIR], [dtlogin logs and state (default /var/dt)])],
|
|
[CDE_LOGFILES_TOP=$withval], [CDE_LOGFILES_TOP=/var/dt])
|
|
AC_ARG_WITH([config-dir],
|
|
[AS_HELP_STRING([--with-config-dir=DIR], [site configuration (default /etc/dt)])],
|
|
[CDE_CONFIGURATION_TOP=$withval], [CDE_CONFIGURATION_TOP=/etc/dt])
|
|
AC_ARG_WITH([local-bindir],
|
|
[AS_HELP_STRING([--with-local-bindir=DIR], [added to the PATH of a dtlogin session (default /usr/local/bin)])],
|
|
[MCDE_LOCAL_BINDIR=$withval], [MCDE_LOCAL_BINDIR=/usr/local/bin])
|
|
AC_SUBST(MCDE_LOCAL_BINDIR)
|
|
dnl where dtlogin's PAM file goes; the defaults are what the Makefile.am had
|
|
AC_ARG_WITH([pamdir],
|
|
[AS_HELP_STRING([--with-pamdir=DIR], [PAM configuration (default /etc/pam.d; /usr/local/etc/pam.d on FreeBSD)])],
|
|
[MCDE_PAMDIR=$withval],
|
|
[case "$host_os" in
|
|
freebsd*) MCDE_PAMDIR=/usr/local/etc/pam.d ;;
|
|
*) MCDE_PAMDIR=/etc/pam.d ;;
|
|
esac])
|
|
AC_SUBST(MCDE_PAMDIR)
|
|
dnl the calendar server's spool (rpc.cmsd, programs/dtcm/server/log.h)
|
|
AC_ARG_WITH([calendar-dir],
|
|
[AS_HELP_STRING([--with-calendar-dir=DIR], [calendar spool of rpc.cmsd (default /var/spool/calendar)])],
|
|
[MCDE_CALENDAR_DIR=$withval], [MCDE_CALENDAR_DIR=/var/spool/calendar])
|
|
AC_SUBST(MCDE_CALENDAR_DIR)
|
|
dnl the system's fontconfig, which config/fonts.conf includes before adding the
|
|
dnl MCDE fonts (fonts/Makefile.am)
|
|
MCDE_FC_CONFDIR=`$PKG_CONFIG --variable=confdir fontconfig 2>/dev/null`
|
|
test -n "$MCDE_FC_CONFDIR" || MCDE_FC_CONFDIR=/etc/fonts
|
|
AC_SUBST(MCDE_FC_CONFDIR)
|
|
CDE_USER_TOP=.dt
|
|
|
|
AC_SUBST(CDE_INSTALLATION_TOP)
|
|
AC_SUBST(CDE_CONFIGURATION_TOP)
|
|
AC_SUBST(CDE_LOGFILES_TOP)
|
|
AC_SUBST(CDE_USER_TOP)
|
|
|
|
dnl This variable will contain a list of programs that were not found,
|
|
dnl but are required to build CDE. At the end, if the variable is
|
|
dnl non-empty, an error message will be printed, listing the missing
|
|
dnl programs. We don't bother with the simple expected commands like
|
|
dnl ln, cp, etc...
|
|
|
|
MISSING_PROGS=""
|
|
|
|
AC_PROG_CPP
|
|
|
|
dnl we need a real preprocessor, not gcc -E. We will call it GENCPP.
|
|
dnl We will go with BSD's tradcpp here... This is used for
|
|
dnl pre-processing during building of CDE - in the way imake used to
|
|
dnl do. This is not a replacement for cpp, used at runtime by
|
|
dnl software such as tt_type_comp.
|
|
AC_SUBST(GENCPP, '$(top_builddir)/util/tradcpp/tradcpp')
|
|
|
|
LT_INIT
|
|
|
|
dnl make sure it's installed
|
|
AC_PROG_YACC
|
|
if test -z "$ac_cv_prog_YACC"; then
|
|
MISSING_PROGS="[bison or byacc] ${MISSING_PROGS}"
|
|
fi
|
|
|
|
AC_PROG_LEX(noyywrap)
|
|
if test -z "$ac_cv_prog_LEX"; then
|
|
MISSING_PROGS="[flex or lex] ${MISSING_PROGS}"
|
|
fi
|
|
|
|
AC_PROG_INSTALL
|
|
AC_PROG_LN_S
|
|
AC_PROG_MAKE_SET
|
|
AC_PROG_SED
|
|
AC_PROG_AWK
|
|
AC_PROG_GREP
|
|
|
|
dnl AC_PROG_AR
|
|
AC_PROG_RANLIB
|
|
|
|
AC_C_CONST
|
|
AC_C_BIGENDIAN
|
|
AC_C_INLINE
|
|
AC_C_CHAR_UNSIGNED
|
|
AC_C_FLEXIBLE_ARRAY_MEMBER
|
|
AC_SYS_POSIX_TERMIOS
|
|
|
|
AX_PTHREAD
|
|
|
|
AC_PATH_X
|
|
AC_PATH_XTRA
|
|
|
|
dnl check some compiler flags
|
|
C_FLAG_CHECK([-Wno-format-truncation])
|
|
CXX_FLAG_CHECK([-Wno-format-truncation])
|
|
|
|
C_FLAG_CHECK([-fno-strict-aliasing])
|
|
CXX_FLAG_CHECK([-fno-strict-aliasing])
|
|
|
|
C_FLAG_CHECK([-Wno-write-strings])
|
|
CXX_FLAG_CHECK([-Wno-write-strings])
|
|
|
|
C_FLAG_CHECK([-Wno-unused-result])
|
|
CXX_FLAG_CHECK([-Wno-unused-result])
|
|
|
|
|
|
dnl Add X11 goodies here
|
|
EXTRA_LIBS="${X_LIBS} ${EXTRA_LIBS}"
|
|
EXTRA_INCS="${X_CFLAGS} ${EXTRA_INCS}"
|
|
|
|
AC_FUNC_FORK
|
|
|
|
dnl programs with full paths
|
|
|
|
dnl - KSH, some systems call it as ksh93
|
|
AC_PATH_PROG(KSH, ksh)
|
|
if test -z "$ac_cv_path_KSH"; then
|
|
AC_PATH_PROG(KSH, ksh93)
|
|
if test -z "$ac_cv_path_KSH"; then
|
|
AC_PATH_PROG(KSH, mksh)
|
|
if test -z "$ac_cv_path_KSH"; then
|
|
MISSING_PROGS="[ksh or ksh93] ${MISSING_PROGS}"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
AC_PATH_PROG(XRDB, xrdb)
|
|
if test -z "$ac_cv_path_XRDB"; then
|
|
MISSING_PROGS="xrdb ${MISSING_PROGS}"
|
|
fi
|
|
|
|
AC_PATH_PROG(PERL, perl)
|
|
if test -z "$ac_cv_path_PERL"; then
|
|
MISSING_PROGS="perl ${MISSING_PROGS}"
|
|
fi
|
|
|
|
|
|
dnl we need to use cpp for some things, like tooltalk and other
|
|
dnl runtime uses. So look for the system's cpp. NOTE: this is NOT
|
|
dnl the CPP (gcc -E) set by AC_PROG_CPP. At this point I don't know
|
|
dnl if we should even bother looking for that as we can't really use
|
|
dnl it.
|
|
AC_PATH_PROG(CPP_PROGRAM, cpp, ,
|
|
[/lib:/usr/bin:/usr/ccs/lib/:/usr/lib:/usr/libexec:/opt/langtools/lbin:$PATH])
|
|
if test -z "$ac_cv_path_CPP_PROGRAM"; then
|
|
MISSING_PROGS="cpp ${MISSING_PROGS}"
|
|
fi
|
|
|
|
dnl major external program dependencies
|
|
AC_CHECK_PROGS(BDFTOPCF, bdftopcf)
|
|
if test -z "$ac_cv_prog_BDFTOPCF"; then
|
|
MISSING_PROGS="bdftopcf ${MISSING_PROGS}"
|
|
fi
|
|
AC_CHECK_PROGS(MKFONTDIR, mkfontdir)
|
|
if test -z "$ac_cv_prog_MKFONTDIR"; then
|
|
MISSING_PROGS="mkfontdir ${MISSING_PROGS}"
|
|
fi
|
|
AC_CHECK_PROGS(GZIP, gzip)
|
|
if test -z "$ac_cv_prog_GZIP"; then
|
|
MISSING_PROGS="gzip ${MISSING_PROGS}"
|
|
fi
|
|
AC_CHECK_PROGS(M4, m4)
|
|
if test -z "$ac_cv_prog_M4"; then
|
|
MISSING_PROGS="m4 ${MISSING_PROGS}"
|
|
fi
|
|
AC_CHECK_PROGS(RPCGEN, rpcgen)
|
|
if test -z "$ac_cv_prog_RPCGEN"; then
|
|
MISSING_PROGS="rpcgen ${MISSING_PROGS}"
|
|
fi
|
|
AC_CHECK_PROGS(GENCAT, gencat)
|
|
if test -z "$ac_cv_prog_GENCAT"; then
|
|
MISSING_PROGS="gencat ${MISSING_PROGS}"
|
|
fi
|
|
AC_CHECK_PROGS(ONSGMLS, onsgmls)
|
|
if test -z "$ac_cv_prog_ONSGMLS"; then
|
|
MISSING_PROGS="ONSGMLS ${MISSING_PROGS}"
|
|
fi
|
|
AC_CHECK_PROGS(SESSREG, sessreg)
|
|
if test -z "$ac_cv_prog_SESSREG"; then
|
|
MISSING_PROGS="SESSREG ${MISSING_PROGS}"
|
|
fi
|
|
|
|
dnl Used to check if program 'tic' is available to install terminfo files
|
|
AC_CHECK_PROGS(TIC, tic, :)
|
|
|
|
dnl headers
|
|
AC_CHECK_HEADERS([locale.h security/pam_appl.h utempter.h])
|
|
|
|
dnl Xrender header
|
|
AC_CHECK_HEADERS([X11/extensions/Xrender.h], [],
|
|
[ disable_xrender="yes"], [#include <X11/Xlib.h>])
|
|
|
|
dnl libraries
|
|
AC_CHECK_LIB(m, cosf)
|
|
AC_SEARCH_LIBS(dlopen, [dl dld], [], [])
|
|
|
|
AC_CHECK_LIB(crypt, crypt)
|
|
dnl this should be configurable, for now it is required
|
|
AC_CHECK_LIB(Xinerama, XineramaQueryScreens,
|
|
[SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DUSE_XINERAMA"],
|
|
[AC_MSG_ERROR([libXinerama not found])], $X_LIBS)
|
|
|
|
dnl MCDE: RandR 1.3 for the Displays pane of dtsystemsettings; without it
|
|
dnl the pane says so and the rest builds
|
|
XRANDRLIB=""
|
|
AC_CHECK_LIB(Xrandr, XRRGetScreenResourcesCurrent,
|
|
[XRANDRLIB="-lXrandr"
|
|
AC_DEFINE(HAVE_XRANDR, 1, [libXrandr 1.3 is there])], [],
|
|
$X_LIBS)
|
|
AC_SUBST(XRANDRLIB)
|
|
|
|
dnl Special check for tirpc...
|
|
AC_CHECK_LIB(tirpc, svc_register,
|
|
[CFLAGS="${CFLAGS} -DOPT_TIRPC -I/usr/include/tirpc";
|
|
CXXFLAGS="${CXXFLAGS} -DOPT_TIRPC -I/usr/include/tirpc";
|
|
TIRPCLIB=-ltirpc])
|
|
AC_SUBST(TIRPCLIB)
|
|
|
|
dnl see if the rpc_inline_t type exists
|
|
AC_CHECK_TYPE(rpc_inline_t, [],
|
|
[AC_DEFINE_UNQUOTED([rpc_inline_t], [int32_t],
|
|
[Define to int32_t if not defined by including rpc/rpc.h])],
|
|
[
|
|
AC_INCLUDES_DEFAULT
|
|
#include <rpc/rpc.h>
|
|
])
|
|
|
|
dnl check sizeof time_t for RPC
|
|
AC_CHECK_SIZEOF([int])
|
|
AC_CHECK_SIZEOF([long])
|
|
AC_CHECK_SIZEOF([long long])
|
|
AC_CHECK_SIZEOF([time_t])
|
|
|
|
AC_STRUCT_TIMEZONE
|
|
AC_CHECK_DECLS([timezone],,,
|
|
[#include <time.h>])
|
|
AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,
|
|
[#include <time.h>])
|
|
|
|
dnl MCDE: libpng reads PNG pictures (lib/DtSvc/DtUtil2/McdeImage.c); Motif
|
|
dnl 2.3.8's own reader loses red and green of a PNG without alpha
|
|
PKG_CHECK_MODULES([PNG], [libpng >= 1.6])
|
|
AC_SUBST(PNG_CFLAGS)
|
|
AC_SUBST(PNG_LIBS)
|
|
|
|
dnl jpeg
|
|
AC_CHECK_LIB(jpeg, jpeg_read_header, [JPEGLIB="-ljpeg"],
|
|
[AC_MSG_ERROR([libjpeg not found, please install it])],
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
AC_SUBST(JPEGLIB)
|
|
|
|
dnl lmdb
|
|
AC_CHECK_LIB(lmdb, mdb_version, [LMDBLIB="-llmdb"],
|
|
[AC_MSG_ERROR([liblmdb not found, please install it])],
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
AC_SUBST(LMDBLIB)
|
|
|
|
dnl Setup XTOOLLIB - we do it in this specific order to avoid ordering
|
|
dnl issues
|
|
XTOOLLIB=""
|
|
AC_CHECK_LIB(X11, XOpenDisplay, [XTOOLLIB="-lX11"], ,
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
AC_CHECK_LIB(Xext, XextFindDisplay, [XTOOLLIB="-lXext ${XTOOLLIB}"], ,
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
if test "x$disable_xrender" != "xyes" ; then
|
|
AC_CHECK_LIB(Xrender, XRenderComposite,
|
|
[XTOOLLIB="-lXrender ${XTOOLLIB}";
|
|
SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DUSE_XRENDER"], ,
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
fi
|
|
AC_CHECK_LIB(Xau, XauReadAuth, [XTOOLLIB="-lXau ${XTOOLLIB}"], ,
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
AC_CHECK_LIB(Xpm, XpmLibraryVersion, [XTOOLLIB="-lXpm ${XTOOLLIB}"], ,
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
AC_CHECK_LIB(Xt, XtInitialize, [XTOOLLIB="-lXt ${XTOOLLIB}"], ,
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
AC_CHECK_LIB(Xmu, XmuMakeAtom, [XTOOLLIB="-lXmu ${XTOOLLIB}"], ,
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
AC_CHECK_LIB(ICE, IceCloseConnection, [XTOOLLIB="-lICE ${XTOOLLIB}"], ,
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
AC_CHECK_LIB(SM, SmcOpenConnection, [XTOOLLIB="-lSM ${XTOOLLIB}"], ,
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
dnl MCDE: Motif is MCDE's toolkit and comes from this tree (motif/, IMPORT).
|
|
dnl On Makronix it is the system's Motif, the package x11/motif built from
|
|
dnl motif/, and MCDE links it like any program (--without-private-motif, the
|
|
dnl pkgsrc recipe). Anywhere else MCDE builds motif/ itself and installs it
|
|
dnl in ${prefix}/lib, for its own programs only: the system's Motif stays as
|
|
dnl it is (Konrad, 2026-11-11).
|
|
AC_ARG_WITH([private-motif],
|
|
[AS_HELP_STRING([--without-private-motif],
|
|
[link the system's Motif (on Makronix x11/motif, built from motif/) instead of building motif/ into ${prefix}/lib (default: build it)])],
|
|
[], [with_private_motif=yes])
|
|
AM_CONDITIONAL([PRIVATE_MOTIF], [test "x$with_private_motif" != xno])
|
|
dnl Programs that MCDE builds and then RUNS while it builds (util/tradcpp for
|
|
dnl the *.cpp.in templates, Motif's makestrs/wml when Motif is built in-tree):
|
|
dnl they belong to the build machine, so they are compiled with its tools.
|
|
dnl These have to be substituted whether or not Motif is built here -- without
|
|
dnl them AM_MAKEFLAGS in Makefile.am expands them empty and a cross build hands
|
|
dnl the target compiler to those programs (measured 2026-11-14: util/tradcpp
|
|
dnl became a NetBSD binary, "not found" when the build ran it,
|
|
dnl build/logs/userland-2026-11-14j.log:7715ff).
|
|
: ${CC_FOR_BUILD:=$CC}
|
|
: ${CFLAGS_FOR_BUILD:="$CFLAGS $MCDE_DIALECT_CFLAGS"}
|
|
: ${CPPFLAGS_FOR_BUILD:="$CPPFLAGS $X_CFLAGS -DHAVE_FCNTL_H"}
|
|
: ${LDFLAGS_FOR_BUILD:="$LDFLAGS $X_LIBS"}
|
|
: ${AR_FOR_BUILD:=ar}
|
|
: ${RANLIB_FOR_BUILD:=ranlib}
|
|
AC_SUBST(CC_FOR_BUILD)
|
|
AC_SUBST(CFLAGS_FOR_BUILD)
|
|
AC_SUBST(CPPFLAGS_FOR_BUILD)
|
|
AC_SUBST(LDFLAGS_FOR_BUILD)
|
|
AC_SUBST(AR_FOR_BUILD)
|
|
AC_SUBST(RANLIB_FOR_BUILD)
|
|
|
|
if test "x$with_private_motif" != xno; then
|
|
dnl what Motif reads pictures with; never a Motif without them
|
|
AC_CHECK_LIB(jpeg, jpeg_read_header, [:],
|
|
[AC_MSG_ERROR([libjpeg not found: Motif needs it for JPEG pictures])])
|
|
XTOOLLIB='$(top_builddir)/motif/lib/Xm/libXm.la '"${XTOOLLIB}"
|
|
MOTIF_UIL_LIBS='$(top_builddir)/motif/clients/uil/libUil.la $(top_builddir)/motif/lib/Mrm/libMrm.la'
|
|
else
|
|
AC_CHECK_LIB(Xm, XmTextSetString, [XTOOLLIB="-lXm ${XTOOLLIB}"],
|
|
[AC_MSG_ERROR([no Motif (libXm) to link with])],
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
MOTIF_UIL_LIBS='-lUil -lMrm'
|
|
fi
|
|
AC_SUBST(MOTIF_UIL_LIBS)
|
|
XTOOLLIB="${EXTRA_INCS} ${EXTRA_LIBS} ${X_EXTRA_LIBS} ${XTOOLLIB}"
|
|
AC_SUBST([XTOOLLIB])
|
|
|
|
dnl only needed by dtlogin
|
|
AC_CHECK_LIB(Xdmcp, XdmcpFlush, [XDMCPLIB="-lXdmcp"], [XDMCPLIB=""],
|
|
[${EXTRA_INCS} ${EXTRA_LIBS}])
|
|
AC_SUBST(XDMCPLIB)
|
|
|
|
dnl iconv
|
|
AM_ICONV
|
|
|
|
dnl figure out pam support
|
|
dnl Right now this only works on linux and netbsd (9.2 tested)
|
|
if test "$supports_pam" = "yes"
|
|
then
|
|
AC_CHECK_LIB(pam, pam_start,
|
|
[SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DHAS_PAM_LIBRARY";
|
|
PAMLIB="-lpam"])
|
|
AC_SUBST(PAMLIB)
|
|
else
|
|
AC_CHECK_LIB(pam, NOTSUPPORTED)
|
|
fi
|
|
|
|
AM_CONDITIONAL([HAS_PAM_LIBRARY], [test "x$ac_cv_lib_pam_pam_start" = "xyes"])
|
|
|
|
dnl figure out utempter support
|
|
|
|
AC_CHECK_LIB(utempter, utempter_add_record,
|
|
[SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DHAS_UTEMPTER_LIBRARY"])
|
|
|
|
AM_CONDITIONAL([HAS_UTEMPTER_LIBRARY], [test "x$ac_cv_lib_utempter_utempter_add_record" = "xyes"])
|
|
|
|
dnl Figure out TCL
|
|
|
|
SC_PATH_TCLCONFIG
|
|
SC_LOAD_TCLCONFIG
|
|
|
|
dnl check MISSING_PROGS - error out here if there's stuff in it.
|
|
|
|
if test -n "$MISSING_PROGS"; then
|
|
AC_MSG_ERROR([Please install the following REQUIRED programs: ${MISSING_PROGS}])
|
|
fi
|
|
|
|
dnl set CPPFLAGS, CFLAGS, and CXXFLAGS.
|
|
dnl The Autoconf manual says that these are user variables and
|
|
dnl shouldn't be modified. It suggests that you create a special
|
|
dnl variable and presumably add those to your Makefile.am files. We
|
|
dnl have 192 of these currently, so... The user will just have to
|
|
dnl deal, or modify them here directly.
|
|
CPPFLAGS="${CPPFLAGS} ${SOURCE_CPP_DEFINES} ${CPP_COMPILER_FLAGS}"
|
|
CFLAGS="${CFLAGS} ${C_COMPILER_FLAGS} ${EXTRA_INCS} ${PTHREAD_CFLAGS}"
|
|
CXXFLAGS="${CXXFLAGS} ${CXX_COMPILER_FLAGS} ${EXTRA_INCS} ${PTHREAD_CFLAGS}"
|
|
LIBS="${EXTRA_LIBS} ${LIBS} ${PTHREAD_LIBS}"
|
|
|
|
dnl All of the makefiles we need to generate go here...
|
|
AC_CONFIG_FILES([
|
|
Makefile
|
|
fonts/Makefile
|
|
|
|
util/Makefile
|
|
util/tradcpp/Makefile
|
|
|
|
lib/Makefile
|
|
lib/McdeSys/Makefile
|
|
lib/McdeSound/Makefile
|
|
|
|
lib/DtXinerama/Makefile
|
|
|
|
lib/tt/Makefile
|
|
lib/tt/mini_isam/Makefile
|
|
lib/tt/slib/Makefile
|
|
lib/tt/lib/Makefile
|
|
lib/tt/lib/api/Makefile
|
|
lib/tt/lib/api/dnd/Makefile
|
|
lib/tt/lib/api/c/Makefile
|
|
lib/tt/lib/tttk/Makefile
|
|
lib/tt/lib/db/Makefile
|
|
lib/tt/lib/mp/Makefile
|
|
lib/tt/lib/util/Makefile
|
|
lib/tt/bin/Makefile
|
|
lib/tt/bin/shell/Makefile
|
|
lib/tt/bin/ttauth/Makefile
|
|
lib/tt/bin/scripts/Makefile
|
|
lib/tt/bin/tttar/Makefile
|
|
lib/tt/bin/tt_type_comp/Makefile
|
|
lib/tt/bin/tttrace/Makefile
|
|
lib/tt/bin/dbck/Makefile
|
|
lib/tt/bin/ttdbserverd/Makefile
|
|
lib/tt/bin/ttsession/Makefile
|
|
|
|
lib/DtSvc/Makefile
|
|
|
|
lib/DtSearch/Makefile
|
|
lib/DtSearch/raima/Makefile
|
|
|
|
lib/DtWidget/Makefile
|
|
|
|
lib/DtHelp/Makefile
|
|
lib/DtHelp/il/Makefile
|
|
|
|
lib/DtPrint/Makefile
|
|
|
|
lib/DtTerm/Term/Makefile
|
|
lib/DtTerm/Makefile
|
|
lib/DtTerm/TermView/Makefile
|
|
lib/DtTerm/util/Makefile
|
|
lib/DtTerm/TermPrim/Makefile
|
|
|
|
lib/DtMrm/Makefile
|
|
|
|
lib/csa/Makefile
|
|
|
|
lib/DtMmdb/Makefile
|
|
lib/DtMmdb/HardCopy/Makefile
|
|
lib/DtMmdb/StyleSheet/Makefile
|
|
lib/DtMmdb/api/Makefile
|
|
lib/DtMmdb/btree/Makefile
|
|
lib/DtMmdb/compression/Makefile
|
|
lib/DtMmdb/diskhash/Makefile
|
|
lib/DtMmdb/dstr/Makefile
|
|
lib/DtMmdb/dti_cc/Makefile
|
|
lib/DtMmdb/dti_excs/Makefile
|
|
lib/DtMmdb/dynhash/Makefile
|
|
lib/DtMmdb/hmphf/Makefile
|
|
lib/DtMmdb/index/Makefile
|
|
lib/DtMmdb/mgrs/Makefile
|
|
lib/DtMmdb/misc/Makefile
|
|
lib/DtMmdb/object/Makefile
|
|
lib/DtMmdb/oliasdb/Makefile
|
|
lib/DtMmdb/schema/Makefile
|
|
lib/DtMmdb/storage/Makefile
|
|
lib/DtMmdb/utility/Makefile
|
|
|
|
programs/Makefile
|
|
|
|
programs/backdrops/Makefile
|
|
|
|
programs/palettes/Makefile
|
|
|
|
programs/icons/Makefile
|
|
|
|
programs/dsdm/Makefile
|
|
|
|
programs/dthelp/Makefile
|
|
programs/dthelp/dthelpview/Makefile
|
|
programs/dthelp/dthelpgen/Makefile
|
|
programs/dthelp/dthelpprint/Makefile
|
|
programs/dthelp/parser/Makefile
|
|
programs/dthelp/parser/pass1/Makefile
|
|
programs/dthelp/parser/pass1/util/Makefile
|
|
programs/dthelp/parser/pass1/build/Makefile
|
|
programs/dthelp/parser/pass1/eltdef/Makefile
|
|
programs/dthelp/parser/pass1/helptag/Makefile
|
|
programs/dthelp/parser/pass1/parser/Makefile
|
|
programs/dthelp/parser/canon1/Makefile
|
|
programs/dthelp/parser/canon1/util/Makefile
|
|
programs/dthelp/parser/canon1/build/Makefile
|
|
programs/dthelp/parser/canon1/eltdef/Makefile
|
|
programs/dthelp/parser/canon1/helptag/Makefile
|
|
programs/dthelp/parser/canon1/parser/Makefile
|
|
programs/dthelp/parser/pass2/Makefile
|
|
programs/dthelp/parser/pass2/util/Makefile
|
|
programs/dthelp/parser/pass2/build/Makefile
|
|
programs/dthelp/parser/pass2/eltdef/Makefile
|
|
programs/dthelp/parser/pass2/htag2/Makefile
|
|
programs/dthelp/parser/pass2/parser/Makefile
|
|
programs/dthelp/parser/helptag/Makefile
|
|
|
|
programs/dtmail/Makefile
|
|
programs/dtmail/dtmail/Makefile
|
|
programs/dtmail/MotifApp/Makefile
|
|
programs/dtmail/dtmailpr/Makefile
|
|
programs/dtmail/libDtMail/Makefile
|
|
programs/dtmail/libDtMail/RFC/Makefile
|
|
programs/dtmail/libDtMail/Common/Makefile
|
|
|
|
programs/dtpad/Makefile
|
|
|
|
programs/dtfile/Makefile
|
|
programs/dtfile/dtcopy/Makefile
|
|
|
|
programs/dtwm/Makefile
|
|
|
|
programs/dtlogin/Makefile
|
|
programs/dtlogin/config/Makefile
|
|
|
|
programs/dtsession/Makefile
|
|
programs/dtsession/config/Makefile
|
|
|
|
programs/dthello/Makefile
|
|
|
|
programs/dtstyle/Makefile
|
|
|
|
programs/dtexec/Makefile
|
|
|
|
programs/dtdbcache/Makefile
|
|
|
|
programs/dticon/Makefile
|
|
|
|
programs/dtterm/Makefile
|
|
|
|
programs/dtcalc/Makefile
|
|
programs/dtlaunch/Makefile
|
|
programs/dtbar/Makefile
|
|
programs/dtsystemsettings/Makefile
|
|
programs/dtdiskutility/Makefile
|
|
programs/dtbackup/Makefile
|
|
programs/dtphoto/Makefile
|
|
programs/dtpaint/Makefile
|
|
programs/dttoolbox/Makefile
|
|
programs/mcdesoundd/Makefile
|
|
programs/dtappscan/Makefile
|
|
programs/dtkeys/Makefile
|
|
programs/dtthemesync/Makefile
|
|
|
|
programs/dtaction/Makefile
|
|
|
|
programs/dtspcd/Makefile
|
|
|
|
programs/dtscreen/Makefile
|
|
|
|
programs/dterror/Makefile
|
|
|
|
programs/dtcm/Makefile
|
|
programs/dtcm/libDtCmP/Makefile
|
|
programs/dtcm/server/Makefile
|
|
programs/dtcm/dtcm/Makefile
|
|
|
|
programs/dtsearchpath/Makefile
|
|
programs/dtsearchpath/libCliSrv/Makefile
|
|
programs/dtsearchpath/dtsp/Makefile
|
|
programs/dtsearchpath/dtappg/Makefile
|
|
|
|
programs/dtappbuilder/Makefile
|
|
programs/dtappbuilder/src/Makefile
|
|
programs/dtappbuilder/src/libAButil/Makefile
|
|
programs/dtappbuilder/src/libABobj/Makefile
|
|
programs/dtappbuilder/src/libABobjXm/Makefile
|
|
programs/dtappbuilder/src/libABil/Makefile
|
|
programs/dtappbuilder/src/abmf/Makefile
|
|
programs/dtappbuilder/src/ab/Makefile
|
|
|
|
programs/dtappintegrate/Makefile
|
|
|
|
programs/dtprintegrate/Makefile
|
|
|
|
programs/dtconfig/Makefile
|
|
programs/dtconfig/sun/Makefile
|
|
|
|
programs/dtcreate/Makefile
|
|
|
|
programs/dtprintinfo/Makefile
|
|
|
|
programs/fontaliases/Makefile
|
|
|
|
programs/dtdspmsg/Makefile
|
|
|
|
programs/ttsnoop/Makefile
|
|
|
|
programs/dtimsstart/Makefile
|
|
|
|
programs/dtpdm/Makefile
|
|
|
|
programs/dtsr/Makefile
|
|
|
|
programs/dtpdmd/Makefile
|
|
|
|
programs/dtinfo/Makefile
|
|
programs/dtinfo/tools/Makefile
|
|
programs/dtinfo/tools/misc/Makefile
|
|
programs/dtinfo/clients/Makefile
|
|
programs/dtinfo/clients/dtinfo_start/Makefile
|
|
|
|
programs/dtinfo/dtinfo/Makefile
|
|
programs/dtinfo/dtinfo/wwl/Makefile
|
|
programs/dtinfo/dtinfo/wwl/src/Makefile
|
|
programs/dtinfo/dtinfo/src/Makefile
|
|
programs/dtinfo/dtinfo/src/Widgets/Makefile
|
|
programs/dtinfo/dtinfo/src/Support/Makefile
|
|
programs/dtinfo/dtinfo/src/UAS/Makefile
|
|
programs/dtinfo/dtinfo/src/UAS/Base/Makefile
|
|
programs/dtinfo/dtinfo/src/UAS/MMDB/Makefile
|
|
programs/dtinfo/dtinfo/src/UAS/DtSR/Makefile
|
|
programs/dtinfo/dtinfo/src/Basic/Makefile
|
|
programs/dtinfo/dtinfo/src/OliasSearch/Makefile
|
|
programs/dtinfo/dtinfo/src/Marks/Makefile
|
|
programs/dtinfo/dtinfo/src/Graphics/Makefile
|
|
programs/dtinfo/dtinfo/src/Preferences/Makefile
|
|
programs/dtinfo/dtinfo/src/Managers/Makefile
|
|
programs/dtinfo/dtinfo/src/Other/Makefile
|
|
programs/dtinfo/dtinfo/src/Query/Makefile
|
|
programs/dtinfo/dtinfo/src/Agents/Makefile
|
|
programs/dtinfo/dtinfo/src/OnlineRender/Makefile
|
|
programs/dtinfo/dtinfo/src/Messages/Makefile
|
|
programs/dtinfo/dtinfo/src/cgm/Makefile
|
|
programs/dtinfo/dtinfo/install/Makefile
|
|
programs/dtinfo/dtinfo/install/lib/Makefile
|
|
programs/dtinfo/dtinfo/install/lib/bitmaps/Makefile
|
|
|
|
programs/types/Makefile
|
|
|
|
programs/tttypes/Makefile
|
|
|
|
programs/util/Makefile
|
|
programs/util/dttypes/Makefile
|
|
|
|
programs/dtopen/Makefile
|
|
|
|
programs/dtdocbook/Makefile
|
|
programs/dtdocbook/dtdocbook2man
|
|
programs/dtdocbook/dtdocbook2sdl
|
|
programs/dtdocbook/doc_utils/Makefile
|
|
programs/dtdocbook/dtsr/Makefile
|
|
programs/dtdocbook/infolib/Makefile
|
|
programs/dtdocbook/instant/Makefile
|
|
programs/dtdocbook/locales/Makefile
|
|
programs/dtdocbook/locales/de_DE.UTF-8/Makefile
|
|
programs/dtdocbook/locales/el_GR.UTF-8/Makefile
|
|
programs/dtdocbook/locales/en_US.UTF-8/Makefile
|
|
programs/dtdocbook/locales/es_ES.UTF-8/Makefile
|
|
programs/dtdocbook/locales/fr_FR.UTF-8/Makefile
|
|
programs/dtdocbook/locales/it_IT.UTF-8/Makefile
|
|
programs/dtdocbook/locales/ja_JP.UTF-8/Makefile
|
|
programs/dtdocbook/sgml/Makefile
|
|
programs/dtdocbook/spec/Makefile
|
|
programs/dtdocbook/tcl/Makefile
|
|
programs/dtdocbook/tpt/Makefile
|
|
|
|
programs/localized/Makefile
|
|
programs/localized/util/Makefile
|
|
programs/localized/C/Makefile
|
|
programs/localized/C/app-defaults/Makefile
|
|
programs/localized/C/config/Makefile
|
|
programs/localized/C/backdrops/Makefile
|
|
programs/localized/C/types/Makefile
|
|
programs/localized/C/palettes/Makefile
|
|
programs/localized/C/msg/Makefile
|
|
programs/localized/C/appmanager/Makefile
|
|
programs/localized/de_DE.UTF-8/Makefile
|
|
programs/localized/de_DE.UTF-8/app-defaults/Makefile
|
|
programs/localized/de_DE.UTF-8/config/Makefile
|
|
programs/localized/de_DE.UTF-8/backdrops/Makefile
|
|
programs/localized/de_DE.UTF-8/types/Makefile
|
|
programs/localized/de_DE.UTF-8/palettes/Makefile
|
|
programs/localized/de_DE.UTF-8/msg/Makefile
|
|
programs/localized/de_DE.UTF-8/appmanager/Makefile
|
|
programs/localized/fr_FR.UTF-8/Makefile
|
|
programs/localized/fr_FR.UTF-8/app-defaults/Makefile
|
|
programs/localized/fr_FR.UTF-8/config/Makefile
|
|
programs/localized/fr_FR.UTF-8/backdrops/Makefile
|
|
programs/localized/fr_FR.UTF-8/types/Makefile
|
|
programs/localized/fr_FR.UTF-8/palettes/Makefile
|
|
programs/localized/fr_FR.UTF-8/msg/Makefile
|
|
programs/localized/fr_FR.UTF-8/appmanager/Makefile
|
|
programs/localized/it_IT.UTF-8/Makefile
|
|
programs/localized/it_IT.UTF-8/app-defaults/Makefile
|
|
programs/localized/it_IT.UTF-8/config/Makefile
|
|
programs/localized/it_IT.UTF-8/backdrops/Makefile
|
|
programs/localized/it_IT.UTF-8/types/Makefile
|
|
programs/localized/it_IT.UTF-8/palettes/Makefile
|
|
programs/localized/it_IT.UTF-8/msg/Makefile
|
|
programs/localized/it_IT.UTF-8/appmanager/Makefile
|
|
programs/localized/es_ES.UTF-8/Makefile
|
|
programs/localized/es_ES.UTF-8/app-defaults/Makefile
|
|
programs/localized/es_ES.UTF-8/config/Makefile
|
|
programs/localized/es_ES.UTF-8/backdrops/Makefile
|
|
programs/localized/es_ES.UTF-8/types/Makefile
|
|
programs/localized/es_ES.UTF-8/palettes/Makefile
|
|
programs/localized/es_ES.UTF-8/msg/Makefile
|
|
programs/localized/es_ES.UTF-8/appmanager/Makefile
|
|
programs/localized/ja_JP.UTF-8/Makefile
|
|
programs/localized/ja_JP.UTF-8/app-defaults/Makefile
|
|
programs/localized/ja_JP.UTF-8/config/Makefile
|
|
programs/localized/ja_JP.UTF-8/backdrops/Makefile
|
|
programs/localized/ja_JP.UTF-8/types/Makefile
|
|
programs/localized/ja_JP.UTF-8/palettes/Makefile
|
|
programs/localized/ja_JP.UTF-8/msg/Makefile
|
|
programs/localized/ja_JP.UTF-8/appmanager/Makefile
|
|
|
|
doc/Makefile
|
|
|
|
doc/en_US.UTF-8/Makefile
|
|
doc/en_US.UTF-8/help/Makefile
|
|
doc/en_US.UTF-8/help/common/Desktop.hf
|
|
doc/en_US.UTF-8/help/common/DesktopIntro.hf
|
|
doc/en_US.UTF-8/man/Makefile
|
|
doc/en_US.UTF-8/guides/Makefile
|
|
doc/en_US.UTF-8/m-guides/Makefile
|
|
|
|
doc/de_DE.UTF-8/Makefile
|
|
doc/de_DE.UTF-8/guides/Makefile
|
|
doc/de_DE.UTF-8/help/Makefile
|
|
doc/de_DE.UTF-8/help/common/Desktop.hf
|
|
doc/de_DE.UTF-8/help/common/DesktopIntro.hf
|
|
|
|
doc/es_ES.UTF-8/Makefile
|
|
doc/es_ES.UTF-8/guides/Makefile
|
|
doc/es_ES.UTF-8/help/Makefile
|
|
doc/es_ES.UTF-8/help/common/Desktop.hf
|
|
doc/es_ES.UTF-8/help/common/DesktopIntro.hf
|
|
|
|
doc/fr_FR.UTF-8/Makefile
|
|
doc/fr_FR.UTF-8/guides/Makefile
|
|
doc/fr_FR.UTF-8/help/Makefile
|
|
doc/fr_FR.UTF-8/help/common/Desktop.hf
|
|
doc/fr_FR.UTF-8/help/common/DesktopIntro.hf
|
|
|
|
doc/it_IT.UTF-8/Makefile
|
|
doc/it_IT.UTF-8/guides/Makefile
|
|
doc/it_IT.UTF-8/help/Makefile
|
|
doc/it_IT.UTF-8/help/common/Desktop.hf
|
|
doc/it_IT.UTF-8/help/common/DesktopIntro.hf
|
|
|
|
doc/ja_JP.UTF-8/Makefile
|
|
doc/ja_JP.UTF-8/guides/Makefile
|
|
doc/ja_JP.UTF-8/help/Makefile
|
|
doc/ja_JP.UTF-8/help/common/Desktop.hf
|
|
doc/ja_JP.UTF-8/help/common/DesktopIntro.hf
|
|
|
|
include/Makefile
|
|
|
|
copyright
|
|
doc/common/help/HELPEnt.sgm
|
|
include/Dt/Dt.h
|
|
lib/tt/bin/ttauth/ttauth.man
|
|
])
|
|
|
|
if test "x$with_private_motif" != xno; then
|
|
dnl MCDE: Motif (motif/) is configured as a package of its own, with the
|
|
dnl options of pkgsrc x11/motif, and built by our Makefile.am in the parts
|
|
dnl MCDE uses (libXm, libMrm, libUil and uil; not mwm, xmbind, the demos).
|
|
dnl Motif's sources are C of the 1990s (int f(); declarations): the dialect
|
|
dnl MCDE is built with (MCDE_DIALECT_CFLAGS, above), not the compiler's C23.
|
|
ac_configure_args="$ac_configure_args --enable-xft --enable-png --enable-jpeg --disable-printing 'CFLAGS=$CFLAGS $MCDE_DIALECT_CFLAGS'"
|
|
AC_CONFIG_SUBDIRS([motif])
|
|
dnl Motif builds programs it runs during the build (makestrs, wml): with the
|
|
dnl build machine's compiler. pkgsrc's patches to its Makefile.in use these
|
|
dnl and x11/motif passes them as MAKE_FLAGS; Makefile.am passes them on in
|
|
dnl AM_MAKEFLAGS. A cross build sets them to the build machine's tools.
|
|
: ${LIBS_FOR_BUILD:=-lXt}
|
|
AC_SUBST(LIBS_FOR_BUILD)
|
|
dnl its headers before any other Motif's (after every test: make expands
|
|
dnl these, the shell would not)
|
|
CPPFLAGS='-I$(top_builddir)/motif/lib -I$(top_srcdir)/motif/lib '"$CPPFLAGS"
|
|
fi
|
|
|
|
AC_OUTPUT
|