From xemacs-m  Thu Jun  5 08:06:56 1997
Received: from ns.jsys.co.jp (ns.jsys.co.jp [202.33.240.82])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id IAA08359
	for <xemacs-beta@xemacs.org>; Thu, 5 Jun 1997 08:06:54 -0500 (CDT)
Received: from cosmos.jsys.co.jp (cosmos.jsys.co.jp [172.31.80.5])
	by ns.jsys.co.jp (8.8.5/8.8.5) with ESMTP id WAA24180
	for <xemacs-beta@xemacs.org>; Thu, 5 Jun 1997 22:06:51 +0900 (JST)
Received: from skywalk.jsys.co.jp (j-04110.jsys.co.jp [172.31.49.72])
	by cosmos.jsys.co.jp (8.8.5/8.8.5/NOTES) with ESMTP id WAA00962
	for <xemacs-beta@xemacs.org>; Thu, 5 Jun 1997 22:06:50 +0900 (JST)
Received: (from ienaga@localhost) by skywalk.jsys.co.jp (8.8.5/3.5Wpl2) id WAA08145; Thu, 5 Jun 1997 22:06:46 +0900 (JST)
To: xemacs-beta@xemacs.org
Subject: 20.3-b3's configure has a problem with detecting Canna
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: multipart/mixed;
 boundary="Multipart_Thu_Jun__5_22:06:45_1997-1"
Content-Transfer-Encoding: 7bit
From: Kazuyuki IENAGA <ienaga@jsys.co.jp>
Date: 05 Jun 1997 22:06:45 +0900
Message-ID: <rys206hjj16.fsf@skywalk.jsys.co.jp>
Lines: 97
X-Mailer: Gnus v5.4.52/XEmacs 20.2
X-Face:  czfHfB+cCdftWr4Fwe9^^-!_PKouj^vkcIk4Hg_xxx<~JF.4vv)^7jM;w_w'(UZ#{K&xpz:
 [v3`j%a.u`CP*Tbsm[N0PYlk&+xt3Vd1KZL%'I+v,:*0\(akF?Vf>l_VeOHH]2.Z6^e_O;zDZJW.


--Multipart_Thu_Jun__5_22:06:45_1997-1
Content-Type: text/plain; charset=US-ASCII

Canna and X11(<R6) specific problem.

With Solaris 2.5, OpenWindows(ProjectX == 5 in Project.tmpl),
both Canna 3.2 and 3.5b2 won't install libRKC.* except if you didn't
specify "engineSwitch" in Canna.conf at the top level directory in
Canna source distribution.
Then, the 20.3-b3's configure could not detect OS functions properly.

The problem may occur in the following situation:

    +  using X11(<= R5).
    +  not using both Wnn and Canna, but just Canna,
	(Canna can switch its conversion engine to Wnn)
      and donot specified "#define engineSwitch" in Canna.conf.

In fact, I'm running SPARC/Solaris2.5 and its stock OpenWindows, then
got *NO* libRKC.{a|so} for installing both version of Canna, while the
`make canna' made lib/RKC/libRKC.a, but...

Again, when the new configure add "-lcanna -lRKC" to libs_x, then all
tests remaining will be failed as it uses $lib_x at compile time for
checking system functions and calls.

So the configure should check if there's libRKC.{a|so} exists.

Look,

--Multipart_Thu_Jun__5_22:06:45_1997-1
Content-Type: text/plain; charset=US-ASCII

configure:6462: checking for gethostname 
configure:6488: gcc -o conftest -g -O   -I/usr/local/include -I/usr/local/canna/
include    -I/usr/dt/include  -I/usr/openwin/include  -L/usr/local/lib -L/usr/cc
s/lib -fno-gnu-linker   -L/usr/dt/lib -L/usr/openwin/lib -R/usr/local/lib:/usr/d
t/lib:/usr/openwin/lib conftest.c   -lXm -lcanna -lRKC -lcompface -lXpm -ltt  -l
Xau -lXmu -lXt -lXext -lX11  -lintl -lkvm -lkstat -lm   -lsocket -lnsl -lelf -lg
en -ldl  1>&5
ld: fatal: library -lRKC: not found
ld: fatal: File processing errors.  No output written to conftest
configure: failed program was:



--Multipart_Thu_Jun__5_22:06:45_1997-1
Content-Type: text/plain; charset=US-ASCII

Here's what in lib/RKC/Imakefile.

#if ProjectX > 5
#define LibName RKC
#define SoRev           cannaDsoRev
#define SHLIBDIR        libCannaDir
#define USRLIBDIR       libCannaDir
#define LibHeaders 0

#include <Library.tmpl>

#else /* ProjectX */

#include <Library.tmpl>

LibraryObjectRule()

#ifdef engineSwitch
#if DoSharedLib
#if DoNormalLib
SharedLibraryTarget(RKC,$(cannaDsoRev),$(OBJS),shared,..)
#else   
SharedLibraryTarget(RKC,$(cannaDsoRev),$(OBJS),.,.)
#endif   
InstallSharedLibrary(RKC,$(cannaDsoRev),$(libCannaDir))

install::
        $(RM) $(libCannaDir)/libRKC.so
        ln $(libCannaDir)/libRKC.so.$(cannaDsoRev) $(libCannaDir)/libRKC.so

AllTarget(libRKC.so)

libRKC.so: libRKC.so.$(cannaDsoRev)
        $(RM) $@
        ln $? $@

#endif /* DoSharedLib */
#else /* !engineSwitch */
NormalLibraryTarget(RKC,$(OBJS))
#endif /* !engineSwitch */

NormalLintTarget($(SRCS))

LintLibraryTarget(RKC,$(SRCS))

#endif /* X11R6 */

--Multipart_Thu_Jun__5_22:06:45_1997-1--

