Helpfile problem


To ng-spice <ng-spice-devel@ieee.ing.uniroma1.it>
From Manu Rouat <emmanuel.rouat@wanadoo.fr>
Date Tue, 18 Jan 2000 23:14:30 -0500
Delivered-To mailing list ng-spice-devel@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-devel-help@ieee.ing.uniroma1.it; run by ezmlm
Organization la Guilde
Reply-To ng-spice-devel@ieee.ing.uniroma1.it
Sender rouat@war.wanadoo.com


The helpfile problem comes from an inconsistency
between the src/Makefile.am which put data files
in :
helpdatadir = $(pkgdatadir)/helpdir

which becomes /usr/local/share/ng-spice-rework/helpdir

while in the src/help.c file, the path that is expected to
find the file is *Spice_help_Dir = NGSPICEDATADIR/helpdir
(see the file src/misc/ivars.c)
which is #defined in config.h, and defaults to 
"/usr/local/share/ng-spice/helpdir"

The easiest way to solve this is to redefine NGSPICEDATADIR in
configure.in, by changing the following line:

AC_DEFINE_UNQUOTED(NGSPICEDATADIR, "`echo $dprefix/share/`$PACKAGE" )

this will put NGSPICEDATADIR to "/usr/local/share/ng-spice-rework"

However this doesn't solve all, since the help function now works
correctly with nutmeg but not with ngspice ??

manu


Partial thread listing: