From xemacs-m  Thu May 29 19:55:07 1997
Received: from fw.omronsoft.co.jp (firewall-user@fw.omronsoft.co.jp [202.32.116.2])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id TAA04498
	for <xemacs-beta@xemacs.org>; Thu, 29 May 1997 19:54:56 -0500 (CDT)
From: tsutomu@rs.kyoto.omronsoft.co.jp
Received: by fw.omronsoft.co.jp; id JAA11974; Fri, 30 May 1997 09:54:46 +0900 (JST)
Received: from gw.omronsoft.co.jp(133.122.28.11) by fw.omronsoft.co.jp via smap (V3.1)
	id xma011963; Fri, 30 May 97 09:54:33 +0900
Received: by gw.omronsoft.co.jp (8.6.12+2.4W/3.3W-gw2.960424) id JAA02756; Fri, 30 May 1997 09:54:32 +0900
Received: from osk_mail.hon.kyoto.omronsoft by gw.omronsoft.co.jp (8.6.12+2.4W/3.3W-gw.960928) id JAA02396; Fri, 30 May 1997 09:49:00 +0900
Received: by osk_mail.hon.kyoto.omronsoft.co.jp (5.65/6.4J.6-OMRONSOFT-Ver1.31-Hat)
	id AA29885; Fri, 30 May 97 09:46:45 +0900
Received: by hrs_mail.rs.kyoto.omronsoft.co.jp (5.65/6.4J.6-OMRONSOFT-Ver1.3)
	id AA05500; Fri, 30 May 97 09:49:30 +0900
Received: by hrs102.rs.kyoto.omronsoft.co.jp (5.65/6.4J.6-OMRONSOFT-Ver1.3)
	id AA00534; Fri, 30 May 97 09:48:27 +0900
Message-Id: <9705300048.AA00534@hrs102.rs.kyoto.omronsoft.co.jp>
To: Martin Buchholz <mrb@Eng.Sun.COM>
Cc: tsutomu@rs.kyoto.omronsoft.co.jp, xemacs-beta@xemacs.org
Subject: Re: Improvement for Wnn4 auto detection 
In-Reply-To: Your message of "Thu, 29 May 1997 04:24:52 MST."
             <199705291124.EAA18171@xemacs.eng.sun.com> 
Date: Fri, 30 May 1997 09:41:00 +0900


In message <199705291124.EAA18171@xemacs.eng.sun.com> 
	Martin Buchholz <mrb@Eng.Sun.COM> wrote:

> > --- configure.in.orig	Mon May 26 19:24:32 1997
> > +++ configure.in	Mon May 26 19:34:22 1997
> > @@ -2419,7 +2419,7 @@
> >    dnl Autodetect WNN
> >    test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
> >    test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/jllib.h, ,with_wnn=no) }
> > -  test -z "$with_wnn" && { AC_CHECK_LIB(wnn,jl_dic_list,[:],with_wnn=no) }
> > +  test -z "$with_wnn" && { AC_CHECK_LIB(wnn,jl_dic_list_e, ,with_wnn=no) }
> >    test -z "$with_wnn" && with_wnn=yes
> >    if test "$with_wnn" = "yes"; then
> >      AC_DEFINE(HAVE_WNN)
> 
> 
> I don't understand.  XEmacs calls jl_dic_list, not jl_dic_list_e, so
> we should check for the first symbol.
> 
> Here's some code from mule-wnnfns.c, that I used to create my configure test:
> 
> #ifdef	WNN6
>   if((cnt = jl_fi_dic_list (wnnfns_buf[snum], 0x3f, &dicinfo)) < 0)
>     return Qnil;
> #else
>   if((cnt = jl_dic_list (wnnfns_buf[snum], &dicinfo)) < 0) return Qnil;
> #endif


 OK. I cheched Wnn4,6 libraries with nm command.

                 jl_dic_list      jl_dic_list_e
Wnn4 libwnn.a       no               yes
Wnn6 libwnn.a       yes              yes


 Wnn4 jllib.h .

jllib.h:#define jl_dic_list(buf, dip)	jl_dic_list_e(jl_env(buf), dip)
jllib.h:extern int jl_dic_list_e();

 Wnn6 jllib.h .

jllib.h:extern int jl_dic_list_e();
jllib.h:extern int jl_dic_list();


 So I suggested.

--
     |       |     |     __/_ ----
 +---+---+ --+-- --+--    (/   \/
 |   |   |  /|\    |      /\   /\      -=- TSUTOMU NAKAMURA -=-
 +---+---+ / |  _  |      --+---+       OMRON SOFTWARE Co., Ltd.
     |       |    _|     __/   _| mailto:tsutomu@rs.kyoto.omronsoft.co.jp

