From a4ca695dafee32efc2b458ae00feb21c9737deeb Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Thu, 24 Oct 2019 17:10:53 -0600 Subject: [PATCH] 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. --- cde/configure.ac | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cde/configure.ac b/cde/configure.ac index d7861a07a..3e22c0a30 100644 --- a/cde/configure.ac +++ b/cde/configure.ac @@ -1,5 +1,5 @@ AC_INIT([cde-desktop], [2.3.1], [jon@radscan.com]) -AC_CONFIG_HEADERS([include/config.h]) +AC_CONFIG_HEADERS([include/autotools_config.h]) AC_CONFIG_MACRO_DIRS([m4]) AM_INIT_AUTOMAKE([foreign]) AC_PREFIX_DEFAULT(/usr/dt) @@ -71,10 +71,8 @@ AM_CONDITIONAL([HPUX], [test "$build_hpux" = "yes"]) dnl set CSRG_BASED define for the BSD's if test "$build_bsd" = "yes" then - oflags="$CFLAGS" - CFLAGS="$oflags -DCSRG_BASED" - oflags="$CXXFLAGS" - CXXFLAGS="$oflags -DCSRG_BASED" + oflags="$CPPFLAGS" + CPPFLAGS="$oflags -DCSRG_BASED" fi is_x86_64=no @@ -123,7 +121,8 @@ LIBMRM="$srcdir/lib/DtMrm/libDtMrm.so.2.1" LIBMMDB="$srcdir/lib/DtMmdb/libDtMmdb.so.2.1" LIBHELP="$srcdir/lib/DtHelp/libDtHelp.so.2.1" LIBCSA="$srcdir/lib/csa/libcsa.so.2.1" -XTOOLLIB=-lICE -lSM -lXt +dnl JET FIXME +XTOOLLIB="-lICE -lSM -lXt" AC_SUBST(LIBTT) AC_SUBST(LIBXIN)