From xemacs-m  Thu May 29 06:25:50 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id GAA07069
	for <xemacs-beta@xemacs.org>; Thu, 29 May 1997 06:25:50 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id EAA02383; Thu, 29 May 1997 04:42:24 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id EAA23836; Thu, 29 May 1997 04:24:50 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id EAA04205; Thu, 29 May 1997 04:24:47 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id EAA18171; Thu, 29 May 1997 04:24:52 -0700
Date: Thu, 29 May 1997 04:24:52 -0700
Message-Id: <199705291124.EAA18171@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: tsutomu@rs.kyoto.omronsoft.co.jp
Cc: xemacs-beta@xemacs.org
Subject: Improvement for Wnn4 auto detection
In-Reply-To: <9705270857.AA06502@hrs102.rs.kyoto.omronsoft.co.jp>
References: <9705270857.AA06502@hrs102.rs.kyoto.omronsoft.co.jp>
X-Mailer: VM 6.31 under 20.3 XEmacs Lucid (beta2)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "tsutomu" == tsutomu  <tsutomu@rs.kyoto.omronsoft.co.jp> writes:

tsutomu>  To make XEmacs + Wnn4 --with-wnn4=yes is necessary on last version.
tsutomu> I changed the following point:
tsutomu> Configure script detect Wnn4 without --with-wnn option, however
tsutomu> --site-includes and --site-libraries is still needed. Off course Wnn6
tsutomu> detection works.

tsutomu> --- configure.in.orig	Mon May 26 19:24:32 1997
tsutomu> +++ configure.in	Mon May 26 19:34:22 1997
tsutomu> @@ -2419,7 +2419,7 @@
tsutomu>    dnl Autodetect WNN
tsutomu>    test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
tsutomu>    test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/jllib.h, ,with_wnn=no) }
tsutomu> -  test -z "$with_wnn" && { AC_CHECK_LIB(wnn,jl_dic_list,[:],with_wnn=no) }
tsutomu> +  test -z "$with_wnn" && { AC_CHECK_LIB(wnn,jl_dic_list_e, ,with_wnn=no) }
tsutomu>    test -z "$with_wnn" && with_wnn=yes
tsutomu>    if test "$with_wnn" = "yes"; then
tsutomu>      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

Martin

