2019-10-20 01:31:18 +00:00
|
|
|
AC_INIT([cde-desktop], [2.3.1], [jon@radscan.com])
|
2019-10-24 23:10:53 +00:00
|
|
|
AC_CONFIG_HEADERS([include/autotools_config.h])
|
2019-10-24 03:32:48 +00:00
|
|
|
AC_CONFIG_MACRO_DIRS([m4])
|
2019-10-29 00:39:21 +00:00
|
|
|
AM_INIT_AUTOMAKE([foreign subdir-objects])
|
2019-10-30 16:59:22 +00:00
|
|
|
LT_INIT
|
2019-10-20 01:31:18 +00:00
|
|
|
AC_PREFIX_DEFAULT(/usr/dt)
|
|
|
|
|
2019-10-30 00:02:29 +00:00
|
|
|
AC_ENABLE_STATIC([no])
|
2019-10-23 23:34:55 +00:00
|
|
|
|
2019-10-30 16:59:22 +00:00
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2019-10-20 01:31:18 +00:00
|
|
|
dnl todo: determine what version of autoconf we depend on
|
|
|
|
dnl AC_PREREQ()
|
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
2019-11-22 20:01:36 +00:00
|
|
|
AC_CANONICAL_BUILD
|
2019-10-20 01:31:18 +00:00
|
|
|
|
|
|
|
dnl global CDE versioning
|
|
|
|
|
2019-10-30 00:02:29 +00:00
|
|
|
CDE_VERSION_MAJOR=2
|
|
|
|
CDE_VERSION_MINOR=3
|
|
|
|
CDE_VERSION_MICRO=0
|
2019-10-20 01:31:18 +00:00
|
|
|
|
2019-10-30 00:02:29 +00:00
|
|
|
AC_SUBST(CDE_VERSION_MAJOR)
|
|
|
|
AC_SUBST(CDE_VERSION_MINOR)
|
|
|
|
AC_SUBST(CDE_VERSION_MICRO)
|
2019-10-20 01:31:18 +00:00
|
|
|
|
2019-10-30 16:59:22 +00:00
|
|
|
dnl SOURCE_DEFINES - start with CDE project default
|
|
|
|
SOURCE_CPP_DEFINES="-DANSICPP -DMULTIBYTE -DNLS16"
|
2019-10-28 20:26:41 +00:00
|
|
|
|
|
|
|
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
|
2019-10-20 01:31:18 +00:00
|
|
|
|
|
|
|
build_linux=no
|
|
|
|
bsd=no
|
|
|
|
build_freebsd=no
|
|
|
|
build_openbsd=no
|
|
|
|
build_netbsd=no
|
|
|
|
build_solaris=no
|
|
|
|
build_hpux=no
|
|
|
|
build_aix=no
|
|
|
|
|
2019-10-26 00:25:06 +00:00
|
|
|
dnl For now, we need to fake the OSMAJORVERSION, OSMINORVERSION. In Linux
|
|
|
|
dnl this never mattered anyway as it was always the kernel version. We will
|
|
|
|
dnl choose defaults here. These need to be removed in the code in favor
|
|
|
|
dnl of actual checks for functionality. So this should be considered
|
|
|
|
dnl temporary.
|
|
|
|
|
2019-10-28 20:26:41 +00:00
|
|
|
OSMAJORVERSION=4
|
|
|
|
OSMINORVERSION=15
|
2019-10-26 00:25:06 +00:00
|
|
|
|
2019-10-20 01:31:18 +00:00
|
|
|
case "${host_os}" in
|
|
|
|
linux*)
|
|
|
|
build_linux=yes
|
2019-10-28 20:26:41 +00:00
|
|
|
OSMAJORVERSION=4
|
|
|
|
OSMINORVERSION=15
|
2019-10-30 16:59:22 +00:00
|
|
|
SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -D_POSIX_SOURCE \
|
|
|
|
-D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE"
|
2019-10-28 20:26:41 +00:00
|
|
|
CPP_COMPILER_FLAGS="-fno-strict-aliasing -Wno-write-strings \
|
|
|
|
-Wno-unused-result"
|
|
|
|
;;
|
2019-10-20 01:31:18 +00:00
|
|
|
freebsd*)
|
|
|
|
build_freebsd=yes
|
|
|
|
bsd=yes
|
2019-10-28 20:26:41 +00:00
|
|
|
OSMAJORVERSION=10
|
|
|
|
OSMINORVERSION=0
|
2019-10-20 01:31:18 +00:00
|
|
|
;;
|
|
|
|
openbsd*)
|
|
|
|
build_openbsd=yes
|
|
|
|
bsd=yes
|
2019-10-28 20:26:41 +00:00
|
|
|
OSMAJORVERSION=6
|
|
|
|
OSMINORVERSION=2
|
2019-10-20 01:31:18 +00:00
|
|
|
;;
|
|
|
|
netbsd*)
|
|
|
|
build_netbsd=yes
|
|
|
|
bsd=yes
|
2019-10-28 20:26:41 +00:00
|
|
|
OSMAJORVERSION=8
|
|
|
|
OSMINORVERSION=0
|
2019-10-20 01:31:18 +00:00
|
|
|
;;
|
|
|
|
solaris*|sun*)
|
|
|
|
build_solaris=yes
|
2019-10-28 20:26:41 +00:00
|
|
|
OSMAJORVERSION=5
|
|
|
|
OSMINORVERSION=10
|
2019-10-20 01:31:18 +00:00
|
|
|
;;
|
|
|
|
aix*)
|
|
|
|
build_aix=yes
|
|
|
|
;;
|
|
|
|
hpux*)
|
|
|
|
build_hpux=yes
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AM_CONDITIONAL([LINUX], [test "$build_linux" = "yes"])
|
|
|
|
AM_CONDITIONAL([BSD], [test "$build_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"])
|
|
|
|
AM_CONDITIONAL([HPUX], [test "$build_hpux" = "yes"])
|
|
|
|
|
2019-10-26 00:25:06 +00:00
|
|
|
dnl Add osmajor/minor version to cppflags.
|
2019-10-28 20:26:41 +00:00
|
|
|
OSVERSION="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION"
|
2019-10-26 00:25:06 +00:00
|
|
|
|
2019-10-24 19:02:38 +00:00
|
|
|
dnl set CSRG_BASED define for the BSD's
|
|
|
|
if test "$build_bsd" = "yes"
|
|
|
|
then
|
2019-10-28 20:26:41 +00:00
|
|
|
SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DCSRG_BASED"
|
2019-10-24 19:02:38 +00:00
|
|
|
fi
|
|
|
|
|
2019-10-20 01:31:18 +00:00
|
|
|
is_x86_64=no
|
|
|
|
is_i386=no
|
|
|
|
is_sparc=no
|
|
|
|
is_mips=no
|
|
|
|
is_arm=no
|
|
|
|
is_ppc=no
|
|
|
|
|
2019-11-22 20:01:36 +00:00
|
|
|
case "${host_cpu}" in
|
|
|
|
i[3456]86*)
|
2019-10-20 01:31:18 +00:00
|
|
|
is_i386=yes
|
|
|
|
;;
|
2019-11-22 20:01:36 +00:00
|
|
|
x86_64* | amd64*)
|
2019-10-20 01:31:18 +00:00
|
|
|
is_x86_64=yes
|
|
|
|
;;
|
2019-11-22 20:01:36 +00:00
|
|
|
arm*)
|
2019-10-20 01:31:18 +00:00
|
|
|
is_arm=yes
|
|
|
|
;;
|
2019-11-22 20:01:36 +00:00
|
|
|
mips*)
|
2019-10-20 01:31:18 +00:00
|
|
|
is_mips=yes
|
|
|
|
;;
|
2019-11-22 20:01:36 +00:00
|
|
|
sparc*)
|
2019-10-20 01:31:18 +00:00
|
|
|
is_sparc=yes
|
|
|
|
;;
|
2019-11-22 20:01:36 +00:00
|
|
|
ppc* | powerpc*)
|
2019-10-20 01:31:18 +00:00
|
|
|
is_ppc=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])
|
|
|
|
|
2019-10-25 02:01:32 +00:00
|
|
|
dnl our main libraries
|
2019-11-20 00:18:04 +00:00
|
|
|
dnl we use single quotes so that $top_buildir is evaluated in the makefiles,
|
2019-10-26 20:30:36 +00:00
|
|
|
dnl not here.
|
2019-10-25 02:01:32 +00:00
|
|
|
AC_SUBST(LIBTT, '$(top_builddir)/lib/tt/lib/libtt.la')
|
2019-10-30 00:02:29 +00:00
|
|
|
AC_SUBST(LIBXIN, '$(top_builddir)/lib/DtXinerama/libDtXinerama.la')
|
2019-10-25 02:01:32 +00:00
|
|
|
AC_SUBST(LIBWIDGET, '$(top_builddir)/lib/DtWidget/libDtWidget.la')
|
|
|
|
AC_SUBST(LIBTERM, '$(top_builddir)/lib/DtTerm/libDtTerm.la')
|
|
|
|
AC_SUBST(LIBSVC, '$(top_builddir)/lib/DtSvc/libDtSvc.la')
|
|
|
|
AC_SUBST(LIBSEARCH, '$(top_builddir)/lib/DtSearch/lbiDtSearch.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')
|
|
|
|
|
2019-10-30 00:35:54 +00:00
|
|
|
AC_SUBST(DTCLIENTLIBS, '$(LIBPRINT) $(LIBHELP) $(LIBWIDGET) $(LIBSVC) \
|
|
|
|
$(LIBTT) $(LIBXIN)')
|
2019-10-30 00:02:29 +00:00
|
|
|
|
2019-10-26 20:30:36 +00:00
|
|
|
dnl set up come convenience replacements for global include dirs
|
|
|
|
AC_SUBST(DT_INCDIR, '-I$(top_builddir)/include/Dt')
|
2019-10-26 22:04:27 +00:00
|
|
|
AC_SUBST(DTI_INCDIR, '-I$(top_builddir)/include/DtI')
|
2019-10-26 20:30:36 +00:00
|
|
|
AC_SUBST(TT_INCDIR, '-I$(top_builddir)/include/Tt')
|
|
|
|
AC_SUBST(XM_INCDIR, '-I$(top_builddir)/include/Xm')
|
2019-10-26 23:08:20 +00:00
|
|
|
AC_SUBST(CSA_INCDIR, '-I$(top_builddir)/include/csa')
|
|
|
|
AC_SUBST(SPC_INCDIR, '-I$(top_builddir)/include/SPC')
|
2019-10-26 20:30:36 +00:00
|
|
|
|
2019-10-20 01:31:18 +00:00
|
|
|
AC_ARG_ENABLE(japanese, [--build-japanese Build Japanese (default=no)])
|
|
|
|
AM_CONDITIONAL([JAPANESE], [test "build_japanese" = "yes"])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(german, [--build-german Build German (default=no)])
|
2019-10-24 23:30:50 +00:00
|
|
|
AM_CONDITIONAL([GERMAN], [test "build_german" = "yes"])
|
2019-10-20 01:31:18 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(italian, [--build-italian Build Italian (default=no)])
|
|
|
|
AM_CONDITIONAL([ITALIAN], [test "build_italian" = "yes"])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(french, [--build-french Build French (default=no)])
|
|
|
|
AM_CONDITIONAL([FRENCH], [test "build_french" = "yes"])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(spanish, --build-spanish Build Spanish (default=no)])
|
2019-10-24 23:30:50 +00:00
|
|
|
AM_CONDITIONAL([SPANISH], [test "build_spanish" = "yes"])
|
2019-10-20 01:31:18 +00:00
|
|
|
|
2019-11-22 02:47:38 +00:00
|
|
|
dnl hmmm...
|
2019-10-20 01:31:18 +00:00
|
|
|
RM="rm -f"
|
|
|
|
AC_SUBST(RM)
|
2019-11-22 02:47:38 +00:00
|
|
|
CP="cp -f"
|
|
|
|
AC_SUBST(CP)
|
2019-10-20 01:31:18 +00:00
|
|
|
|
2019-11-20 00:18:04 +00:00
|
|
|
dnl these should be configurable someday...
|
|
|
|
CDE_INSTALLATION_TOP="$ac_default_prefix"
|
2019-10-20 01:31:18 +00:00
|
|
|
CDE_LOGFILES_TOP=/var/dt
|
|
|
|
CDE_CONFIGURATION_TOP=/etc/dt
|
|
|
|
CDE_USER_TOP=.dt
|
|
|
|
|
2019-11-20 00:18:04 +00:00
|
|
|
AC_SUBST(CDE_INSTALLATION_TOP)
|
2019-10-20 01:31:18 +00:00
|
|
|
AC_SUBST(CDE_CONFIGURATION_TOP)
|
|
|
|
AC_SUBST(CDE_LOGFILES_TOP)
|
|
|
|
AC_SUBST(CDE_USER_TOP)
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
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 23:42:31 +00:00
|
|
|
|
2019-10-20 01:31:18 +00:00
|
|
|
AC_PROG_CPP
|
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 23:42:31 +00:00
|
|
|
|
2019-10-31 01:19:49 +00:00
|
|
|
dnl we need a real preprocessor, not gcc -E. We will call it GENCPP. We will
|
|
|
|
dnl go with BSD's tradcpp here...
|
|
|
|
AC_SUBST(GENCPP, '$(top_builddir)/util/tradcpp/tradcpp')
|
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 23:42:31 +00:00
|
|
|
|
2019-10-20 01:31:18 +00:00
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
AC_PROG_YACC
|
|
|
|
AM_PROG_LEX
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_SED
|
|
|
|
AC_PROG_AWK
|
|
|
|
AC_PROG_GREP
|
|
|
|
|
2019-10-30 00:02:29 +00:00
|
|
|
dnl AC_PROG_AR
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
2019-10-20 01:31:18 +00:00
|
|
|
AC_C_CONST
|
2019-10-26 22:04:27 +00:00
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_C_CHAR_UNSIGNED
|
|
|
|
AC_C_STRINGIZE
|
|
|
|
AC_C_FLEXIBLE_ARRAY_MEMBER
|
2019-10-25 02:01:32 +00:00
|
|
|
AC_SYS_POSIX_TERMIOS
|
2019-10-20 01:31:18 +00:00
|
|
|
|
2019-10-28 22:47:29 +00:00
|
|
|
AX_PTHREAD
|
|
|
|
|
2019-10-28 23:11:45 +00:00
|
|
|
AC_PROG_CC_C99
|
2019-10-26 22:04:27 +00:00
|
|
|
|
2019-10-20 01:31:18 +00:00
|
|
|
AC_PATH_X
|
|
|
|
AC_PATH_XTRA
|
|
|
|
|
2019-10-30 18:10:30 +00:00
|
|
|
AC_FUNC_FORK
|
|
|
|
|
2019-11-20 00:18:04 +00:00
|
|
|
dnl programs with full paths
|
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 23:42:31 +00:00
|
|
|
|
2019-10-31 00:53:16 +00:00
|
|
|
AC_PATH_PROG(KSH, ksh)
|
2019-11-20 00:18:04 +00:00
|
|
|
AC_PATH_PROG(XRDB, xrdb)
|
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 23:42:31 +00:00
|
|
|
|
2019-11-20 00:18:04 +00:00
|
|
|
dnl programs
|
2019-10-24 03:32:48 +00:00
|
|
|
AC_CHECK_PROGS(BDFTOPCF, bdftopcf)
|
2019-11-22 02:47:38 +00:00
|
|
|
AC_CHECK_PROGS(MKFONTDIR, mkfontdir)
|
2019-10-24 03:32:48 +00:00
|
|
|
AC_CHECK_PROGS(GZIP, gzip)
|
|
|
|
AC_CHECK_PROGS(M4, m4)
|
2019-10-26 23:08:20 +00:00
|
|
|
AC_CHECK_PROGS(RPCGEN, rpcgen)
|
2019-10-24 03:32:48 +00:00
|
|
|
|
|
|
|
dnl headers
|
|
|
|
AC_HEADER_STDC
|
2019-10-26 22:04:27 +00:00
|
|
|
AC_CHECK_HEADERS([locale.h])
|
2019-10-24 03:32:48 +00:00
|
|
|
|
|
|
|
dnl libraries
|
2019-10-30 18:10:30 +00:00
|
|
|
AC_CHECK_LIB(m, cosf)
|
2019-10-30 19:28:14 +00:00
|
|
|
AC_CHECK_LIB(crypt, crypt)
|
2019-11-21 21:14:59 +00:00
|
|
|
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])])
|
2019-11-21 01:26:59 +00:00
|
|
|
|
|
|
|
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])
|
2019-10-24 03:32:48 +00:00
|
|
|
AC_SUBST(TIRPCLIB)
|
|
|
|
|
2019-11-20 01:17:34 +00:00
|
|
|
dnl Setup XTOOLLIB - we do it in this specific order to avoid ordering
|
|
|
|
dnl issues
|
|
|
|
XTOOLLIB="$X_LIBS"
|
2019-10-29 02:04:10 +00:00
|
|
|
AC_CHECK_LIB(X11, XOpenDisplay, [XTOOLLIB="-lX11"])
|
2019-11-22 20:13:41 +00:00
|
|
|
AC_CHECK_LIB(Xau, XauReadAuth, [XTOOLLIB="-lXau ${XTOOLLIB}"])
|
2019-10-29 02:04:10 +00:00
|
|
|
AC_CHECK_LIB(Xt, XtInitialize, [XTOOLLIB="-lXt ${XTOOLLIB}"])
|
|
|
|
AC_CHECK_LIB(ICE, IceCloseConnection, [XTOOLLIB="-lICE ${XTOOLLIB}"])
|
|
|
|
AC_CHECK_LIB(SM, SmcOpenConnection, [XTOOLLIB="-lSM ${XTOOLLIB}"])
|
2019-11-20 01:17:34 +00:00
|
|
|
AC_CHECK_LIB(Xm, XmTextSetString, [XTOOLLIB="-lXm ${XTOOLLIB}"])
|
2019-10-29 02:04:10 +00:00
|
|
|
AC_SUBST([XTOOLLIB])
|
2019-10-28 20:26:41 +00:00
|
|
|
|
2019-10-28 22:47:29 +00:00
|
|
|
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.
|
2019-10-28 20:26:41 +00:00
|
|
|
CPPFLAGS="${CPPFLAGS} ${SOURCE_CPP_DEFINES} ${CPP_COMPILER_FLAGS} ${OSVERSION}"
|
2019-10-28 22:47:29 +00:00
|
|
|
CFLAGS="${CFLAGS} ${C_COMPILER_FLAGS} ${PTHREAD_CFLAGS}"
|
|
|
|
CXXFLAGS="${CXXFLAGS} ${CXX_COMPILER_FLAGS} ${PTHREAD_CFLAGS}"
|
|
|
|
LIBS="${LIBS} ${PTHREAD_LIBS}"
|
2019-10-28 20:26:41 +00:00
|
|
|
|
2019-10-24 03:32:48 +00:00
|
|
|
dnl All of the makefiles we need to generate go here...
|
2019-10-23 23:34:55 +00:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
|
2019-10-31 01:19:49 +00:00
|
|
|
util/Makefile
|
|
|
|
util/tradcpp/Makefile
|
|
|
|
|
2019-10-23 23:34:55 +00:00
|
|
|
lib/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
|
2019-10-24 20:04:25 +00:00
|
|
|
lib/tt/lib/util/Makefile
|
2019-10-23 23:34:55 +00:00
|
|
|
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
|
|
|
|
|
2019-10-29 00:39:21 +00:00
|
|
|
programs/Makefile
|
2019-10-29 18:33:38 +00:00
|
|
|
|
|
|
|
programs/backdrops/Makefile
|
|
|
|
|
|
|
|
programs/icons/Makefile
|
|
|
|
|
2019-10-29 00:39:21 +00:00
|
|
|
programs/dthelp/Makefile
|
|
|
|
programs/dthelp/dthelpgen/Makefile
|
|
|
|
programs/dthelp/dthelpprint/Makefile
|
|
|
|
programs/dthelp/parser/pass1/helptag/Makefile
|
|
|
|
programs/dthelp/parser/pass1/Makefile
|
|
|
|
programs/dthelp/parser/pass1/eltdef/Makefile
|
|
|
|
programs/dthelp/parser/pass1/build/Makefile
|
|
|
|
programs/dthelp/parser/Makefile
|
|
|
|
programs/dthelp/parser/canon1/Makefile
|
|
|
|
programs/dthelp/parser/pass2/Makefile
|
|
|
|
programs/dthelp/dthelpview/Makefile
|
|
|
|
|
|
|
|
programs/dsdm/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
|
|
|
|
|
2019-10-30 18:10:30 +00:00
|
|
|
programs/dtwm/Makefile
|
2019-10-30 19:28:14 +00:00
|
|
|
|
|
|
|
programs/dtlogin/Makefile
|
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 23:42:31 +00:00
|
|
|
programs/dtlogin/config/Makefile
|
2019-10-30 19:28:14 +00:00
|
|
|
|
2019-11-20 00:18:04 +00:00
|
|
|
programs/dtsession/Makefile
|
|
|
|
|
2019-11-20 00:30:27 +00:00
|
|
|
programs/dthello/Makefile
|
|
|
|
|
2019-11-20 01:17:34 +00:00
|
|
|
programs/dtstyle/Makefile
|
|
|
|
|
2019-11-20 01:26:55 +00:00
|
|
|
programs/dtexec/Makefile
|
|
|
|
|
2019-11-20 01:31:36 +00:00
|
|
|
programs/dtdbcache/Makefile
|
|
|
|
|
2019-11-20 01:38:51 +00:00
|
|
|
programs/dticon/Makefile
|
|
|
|
|
2019-11-20 02:14:38 +00:00
|
|
|
programs/dtterm/Makefile
|
|
|
|
|
2019-11-20 02:27:47 +00:00
|
|
|
programs/dtcalc/Makefile
|
|
|
|
|
2019-11-20 02:30:20 +00:00
|
|
|
programs/dtaction/Makefile
|
|
|
|
|
2019-11-20 02:43:34 +00:00
|
|
|
programs/dtspcd/Makefile
|
|
|
|
|
2019-11-20 02:59:20 +00:00
|
|
|
programs/dtscreen/Makefile
|
|
|
|
|
2019-11-20 22:33:17 +00:00
|
|
|
programs/dtcm/Makefile
|
|
|
|
programs/dtcm/libDtCmP/Makefile
|
|
|
|
programs/dtcm/server/Makefile
|
|
|
|
programs/dtcm/dtcm/Makefile
|
|
|
|
|
2019-11-20 23:09:46 +00:00
|
|
|
programs/dtsearchpath/Makefile
|
|
|
|
programs/dtsearchpath/libCliSrv/Makefile
|
|
|
|
programs/dtsearchpath/dtsp/Makefile
|
|
|
|
programs/dtsearchpath/dtappg/Makefile
|
2019-11-20 22:33:17 +00:00
|
|
|
|
2019-11-20 23:32:42 +00:00
|
|
|
programs/dtappintegrate/Makefile
|
|
|
|
|
2019-11-21 00:09:46 +00:00
|
|
|
programs/dtprintegrate/Makefile
|
|
|
|
|
2019-11-21 00:46:20 +00:00
|
|
|
programs/dtconfig/Makefile
|
|
|
|
programs/dtconfig/sun/Makefile
|
|
|
|
|
2019-11-21 00:54:12 +00:00
|
|
|
programs/dtcreate/Makefile
|
|
|
|
|
2019-11-22 00:43:27 +00:00
|
|
|
programs/dtprintinfo/Makefile
|
|
|
|
|
2019-11-22 02:47:38 +00:00
|
|
|
programs/fontaliases/Makefile
|
|
|
|
programs/fontaliases/bdf/Makefile
|
|
|
|
programs/fontaliases/linux/Makefile
|
|
|
|
programs/fontaliases/linux/C/Makefile
|
|
|
|
programs/fontaliases/linux/en_US.UTF-8/Makefile
|
|
|
|
programs/fontaliases/sun/Makefile
|
|
|
|
programs/fontaliases/sun/C/Makefile
|
|
|
|
programs/fontaliases/netbsd/Makefile
|
|
|
|
programs/fontaliases/netbsd/C/Makefile
|
|
|
|
programs/fontaliases/openbsd/Makefile
|
|
|
|
programs/fontaliases/openbsd/C/Makefile
|
|
|
|
programs/fontaliases/freebsd/Makefile
|
|
|
|
programs/fontaliases/freebsd/C/Makefile
|
|
|
|
|
2019-11-22 02:53:30 +00:00
|
|
|
programs/dtdspmsg/Makefile
|
|
|
|
|
2019-11-22 03:06:29 +00:00
|
|
|
programs/dtimsstart/Makefile
|
|
|
|
|
2019-11-22 19:09:55 +00:00
|
|
|
programs/dtpdm/Makefile
|
|
|
|
|
2019-11-22 20:01:36 +00:00
|
|
|
programs/dtsr/Makefile
|
|
|
|
|
2019-11-22 20:13:41 +00:00
|
|
|
programs/dtpdmd/Makefile
|
|
|
|
|
2019-10-23 23:34:55 +00:00
|
|
|
])
|
|
|
|
|
2019-10-20 01:31:18 +00:00
|
|
|
AC_OUTPUT
|
2019-10-23 23:34:55 +00:00
|
|
|
|