Re: [ng-spice] Configure Script
Paolo Nenzi wrote:
> 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])
ok
>
> ...
>
> if test $efence = yes; then
> AC_CHECK_LIB(efence,main,LIBS="$LIBS
> -lefence",AC_MSG_ERROR(ElectricFence not found))
> fi
do:
if test $enable_efence = yes; then
AC_CHECK_LIB(efence,main,LIBS="-lefence $LIBS",
AC_MSG_ERROR(ElectricFence not found))
fi
that should do it - put it as LAST test if you want to be sure that efence is
the first lib
linked in.
manu
Partial thread listing:
- Re: [ng-spice] Configure Script, (continued)
Capabil.h,
Manu Rouat
Replacement of system-header files
Manu Rouat