From xemacs-m  Thu Apr 17 22:01:02 1997
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5])
	by xemacs.org (8.8.5/8.8.5) with SMTP id WAA19126
	for <xemacs-beta@xemacs.org>; Thu, 17 Apr 1997 22:01:01 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id UAA12064; Thu, 17 Apr 1997 20:00:31 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id UAA26687; Thu, 17 Apr 1997 20:00:28 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id UAA10601; Thu, 17 Apr 1997 20:00:27 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id UAA07524; Thu, 17 Apr 1997 20:00:28 -0700
Date: Thu, 17 Apr 1997 20:00:28 -0700
Message-Id: <199704180300.UAA07524@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: Steve Carney <carney@gvc.dec.com>
Cc: XEmacs Beta Test <xemacs-beta@xemacs.org>
Subject: -ldnet autodetection and suppression
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

Autoconf2 has a macro AC_PATH_XTRA, which I am using.  It looks like
it will add -dnet automatically if present.  So we will actually need
to remove -ldnet from the relevant list of libraries if -with-dnet=no.

The presence of dnet_stub clouds the issue.  Can you shed some more light?

Here's a comment from the Autoconf2 sources:

    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And karl@cs.umb.edu says
    # the Alpha needs dnet_stub (dnet does not exist).
    AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"])
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      AC_CHECK_LIB(dnet_stub, dnet_ntoa,
	[X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"])
    fi

Martin

