From xemacs-m  Thu Jun 26 22:37:16 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 WAA22373
	for <xemacs-beta@xemacs.org>; Thu, 26 Jun 1997 22:37:15 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.13]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id VAA03653; Thu, 26 Jun 1997 21:00:26 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id UAA14259; Thu, 26 Jun 1997 20:36:43 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id UAA05894; Thu, 26 Jun 1997 20:36:40 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id UAA07586; Thu, 26 Jun 1997 20:36:39 -0700
Date: Thu, 26 Jun 1997 20:36:39 -0700
Message-Id: <199706270336.UAA07586@xemacs.eng.sun.com>
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: Kazuyuki IENAGA <ienaga@jsys.co.jp>
Cc: xemacs-beta@xemacs.org
Subject: Re: 20.3 Sofia OK on FreeBSD 2.2.2
In-Reply-To: <rysn2ocn9hm.fsf@skywalk.jsys.co.jp>
References: <rys4tal68ou.fsf@skywalk.jsys.co.jp>
	<199706261113.EAA06871@xemacs.eng.sun.com>
	<ryswwnh4mga.fsf@skywalk.jsys.co.jp>
	<m2lo3xb7pa.fsf@altair.xemacs.org>
	<rysn2ocn9hm.fsf@skywalk.jsys.co.jp>
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "Kazu" == Kazuyuki IENAGA <ienaga@jsys.co.jp> writes:

Kazu> Yes, most operating systems have the function in libc.
Kazu> Is there any other OS which does not have the func's entry in libc?
Kazu> I've checked FreeBSD 2.1 and 2.2, SunOS, Solaris, Linux 2.0.27
Kazu> w/libc-4, BSD/OS 2.1 and HP-UX 10.
Kazu> All OSs except FreeBSD have the entry as global symbol in libc...

>> > but FreeBSD does not have a crypt function in libc.
>> 
>> >     1.  If wnn is selected.
>> >     2.  If the operating system (opsys) does not have a crypt in libc.
>> >     3.  Check if the opsys has libcrypt.*, then add -lcrypt to
>> > 	libs_system or libs_standard.
>> 
>> That sounds O.K.  Isn't that similar to what we currently do with
>> libpng to see if it needs a -lz?

Kazu> Yes.

Kazu> I reconsidered that this might be a FreeBSD specific.
Kazu> If so, is it ok to make the configure fat or settle it in freebsd.h?
Kazu> The policy is to make a solution in the configure?

NetBSD also has crypt in libcrypt.  I have added an untested change to
configure to add -lcrypt to LIBS if necessary before checking for -lwnn.

I have also modified freebsd.h so that beta10 might build out of the
box on FreeBSD.

Martin

