Re: [ng-spice] Configure Script
On Mon, 2 Aug 1999, Manu Rouat wrote:
> Paolo Nenzi wrote:
> >
> > Dear Manu,
> >
> > I gave a look to the configure script you made. I do not understand how to
> > do the following things:
> >
> > 1) Let the user define the compiler to use: cc,gcc, etc.
>
> You don't - it is found automatically (preference is always given to gcc if
> found), it is better to leave it that way (remember we have to support
> many systems...)
>
OK, I was wondering if I can choose SUN Workshop C compiler (it is
tremendously fast and higly optimized). Anywaay this is not important at
this stage.
>
> > 2) Let the user wichi debug library link to the source:
> > I would like to add the test for the existence of electric fence
> > library and let the user compile it in with the switch --with-efence
I have written this code, it will work ?
(note: I have autocon 2.12 you require 2.13 which is in the next
distribution of Deabian, I have to upgrade my distribution).
dnl --enable-efence : Compile with the Electric Fence debug library
AC_ARG_ENABLE(efence,
[ --enable-efence Add efence library for memory allocation
debug])
...
if test $efence = yes; then
AC_CHECK_LIB(efence,main,LIBS="$LIBS
-lefence",AC_MSG_ERROR(ElectricFence not found))
fi
>
> what is electric fence? How do you invoque it?
It ia library that tracks memory allocation. It MUST be the first library
linked in.
Bye, Paolo
Partial thread listing:
- Re: [ng-spice] Configure Script, (continued)
Capabil.h,
Manu Rouat