configure: some changes to config.h, CSRG, and XTOOLLIB impl
authorJon Trulson <jon@radscan.com>
Thu, 24 Oct 2019 23:10:53 +0000 (17:10 -0600)
committerJon Trulson <jon@radscan.com>
Thu, 24 Oct 2019 23:10:53 +0000 (17:10 -0600)
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

index d7861a07a215d521f68d00efdbc527b51791df05..3e22c0a30f82af8d55b412b3fbc78f56f563a26a 100644 (file)
@@ -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)