|
|
|
@ -44,10 +44,9 @@ dnl --enable-experimental : define EXPERIMENTAL_CODE for the code |
|
|
|
AC_ARG_ENABLE(experimental, |
|
|
|
[ --enable-experimental Enables some experimental code]) |
|
|
|
|
|
|
|
|
|
|
|
dnl --have-ekv: define HAVE_EKV in the code. This is for EKV model support |
|
|
|
dnl --enable-ekv: define HAVE_EKV in the code. This is for EKV model support |
|
|
|
AC_ARG_ENABLE(ekv, |
|
|
|
[ --enable-ekv Enable ekv model *not in standard distribution*]) |
|
|
|
[ --enable-ekv Enables ekv model *not in standard distribution*]) |
|
|
|
|
|
|
|
dnl Enable maintainer commands only if requested |
|
|
|
AM_MAINTAINER_MODE |
|
|
|
@ -182,10 +181,6 @@ dnl Check for getopt function and if not found uses a local copy: |
|
|
|
AC_CHECK_FUNC(getopt, GETOPTSRC="", GETOPTSRC= "getopt.h getopt.c getopt1.c") |
|
|
|
AC_SUBST(GETOPTSRC) |
|
|
|
|
|
|
|
AC_MSG_RESULT(Checking for readline library:) |
|
|
|
dnl Check for the readline library |
|
|
|
AC_CHECK_LIB(readline, AC_DEFINE(HAVE_GNUREADLINE) LIBS="$LIBS -lreadline") |
|
|
|
|
|
|
|
# Expand the prefix variable (this is really annoying!) |
|
|
|
if eval "test x$prefix = xNONE"; then |
|
|
|
dprefix=$ac_default_prefix |
|
|
|
@ -220,11 +215,28 @@ if test "$enable_experimental" = "yes"; then |
|
|
|
AC_DEFINE(EXPERIMENTAL_CODE) |
|
|
|
AC_MSG_RESULT(EXPERIMENTAL_CODE enabled) |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if test "$enable_ekv" = "yes"; then |
|
|
|
AC_DEFINE(HAVE_EKV) |
|
|
|
AC_MSG_RESULT(Model EKV included) |
|
|
|
EKVDIR=ekv |
|
|
|
AC_DEFINE(HAVE_EKV) |
|
|
|
EKVDIR="ekv" |
|
|
|
EKVLIB="spicelib/devices/ekv/libekv.la" |
|
|
|
else |
|
|
|
EKVDIR="" |
|
|
|
EKVLIB="" |
|
|
|
fi |
|
|
|
AC_SUBST(EKVDIR) |
|
|
|
AC_SUBST(EKVLIB) |
|
|
|
|
|
|
|
|
|
|
|
dnl --with-readline : the user wants to use readline library |
|
|
|
AC_ARG_WITH(readline, |
|
|
|
[ --with-readline Use the readline package: SEE README], |
|
|
|
AC_MSG_RESULT(Checking for readline library:) |
|
|
|
dnl Check for the readline library: |
|
|
|
AC_CHECK_LIB(readline,readline, AC_DEFINE(HAVE_GNUREADLINE) LIBS="$LIBS -lreadline") |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
AC_OUTPUT( \ |
|
|
|
@ -253,7 +265,7 @@ src/spicelib/devices/cccs/Makefile \ |
|
|
|
src/spicelib/devices/ccvs/Makefile \ |
|
|
|
src/spicelib/devices/csw/Makefile \ |
|
|
|
src/spicelib/devices/dio/Makefile \ |
|
|
|
src/spicelib/devices/dio/Makefile \ |
|
|
|
src/spicelib/devices/ekv/Makefile \ |
|
|
|
src/spicelib/devices/ind/Makefile \ |
|
|
|
src/spicelib/devices/isrc/Makefile \ |
|
|
|
src/spicelib/devices/hfet1/Makefile \ |
|
|
|
|