|
|
@ -109,7 +109,7 @@ dnl --enable-experimental : define EXPERIMENTAL_CODE for the code |
|
|
AC_ARG_ENABLE(experimental, |
|
|
AC_ARG_ENABLE(experimental, |
|
|
[ --enable-experimental Enable some experimental code]) |
|
|
[ --enable-experimental Enable some experimental code]) |
|
|
|
|
|
|
|
|
dnl --enable-expdevices : Enable the compilation of experimental deviced |
|
|
|
|
|
|
|
|
dnl --enable-expdevices : Enable the compilation of experimental devices |
|
|
AC_ARG_ENABLE(expdevices, |
|
|
AC_ARG_ENABLE(expdevices, |
|
|
[ --enable-expdevices Enable experimental devices (they do not compile)]) |
|
|
[ --enable-expdevices Enable experimental devices (they do not compile)]) |
|
|
|
|
|
|
|
|
@ -119,11 +119,11 @@ AC_ARG_ENABLE(ekv, |
|
|
|
|
|
|
|
|
dnl --enable-xspice: define XSPICE in the code. This is for xspice support |
|
|
dnl --enable-xspice: define XSPICE in the code. This is for xspice support |
|
|
AC_ARG_ENABLE(xspice, |
|
|
AC_ARG_ENABLE(xspice, |
|
|
[ --enable-xspice Enable XSpice enchancements, (experimental) ]) |
|
|
|
|
|
|
|
|
[ --enable-xspice Enable XSpice enhancements, (experimental) ]) |
|
|
|
|
|
|
|
|
dnl --enable-cider: define CIDER in the code. This is for CIDER support |
|
|
dnl --enable-cider: define CIDER in the code. This is for CIDER support |
|
|
AC_ARG_ENABLE(cider, |
|
|
AC_ARG_ENABLE(cider, |
|
|
[ --enable-cider Enable CIDER enchancements, (experimental) ]) |
|
|
|
|
|
|
|
|
[ --enable-cider Enable CIDER enhancements, (experimental) ]) |
|
|
|
|
|
|
|
|
dnl --enable-cluster: define CLUSTER in the code. This is for cluster support |
|
|
dnl --enable-cluster: define CLUSTER in the code. This is for cluster support |
|
|
AC_ARG_ENABLE(cluster, |
|
|
AC_ARG_ENABLE(cluster, |
|
|
@ -199,7 +199,7 @@ dnl CFLAGS="$CFLAGS -Werror" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl Chech system we're on , and tune accordingly |
|
|
|
|
|
|
|
|
dnl Check system we're on , and tune accordingly |
|
|
AC_CANONICAL_HOST |
|
|
AC_CANONICAL_HOST |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -239,13 +239,21 @@ dnl tests and compile without X11 support - otherwise, check if the following |
|
|
dnl libraries are present (error if they are not) |
|
|
dnl libraries are present (error if they are not) |
|
|
dnl In CYGWIN library ordering has to be changed. Is this compatible to LINUX? |
|
|
dnl In CYGWIN library ordering has to be changed. Is this compatible to LINUX? |
|
|
dnl XShmAttach is a struct in CYGWIN, not a function |
|
|
dnl XShmAttach is a struct in CYGWIN, not a function |
|
|
|
|
|
dnl SJB: 13th march 2005 |
|
|
|
|
|
dnl Library order is giving linker warnings on MacOSX |
|
|
|
|
|
dnl It's not clear to me which order is required for Cygwin (see comment above) |
|
|
|
|
|
dnl and neither can I find any authoritative answer for the correct link order |
|
|
|
|
|
dnl for MacOSX or Linux, but |
|
|
|
|
|
dnl -lXaw -lXmu -lXt -lXext -lX11 |
|
|
|
|
|
dnl seems to be the popular choice. |
|
|
|
|
|
dnl (The previous order was -lX11 -lXt -lXext -lXmu -lXaw) |
|
|
|
|
|
|
|
|
if test ! "$no_x" = "yes" ; then |
|
|
if test ! "$no_x" = "yes" ; then |
|
|
X_LIBS="$X_LIBS -lX11 -lXt" |
|
|
|
|
|
AC_CHECK_LIB(Xext, XShmAttach,X_LIBS="$X_LIBS -lXext",AC_MSG_ERROR(Couldn't find Xext librairies), $X_LIBS $X_EXTRA_LIBS) |
|
|
|
|
|
AC_CHECK_LIB(Xmu,main,X_LIBS="$X_LIBS -lXmu",AC_MSG_ERROR(Couldn't find Xmu librairies), $X_LIBS $X_EXTRA_LIBS) |
|
|
|
|
|
AC_CHECK_LIB(Xaw,main,X_LIBS="$X_LIBS -lXaw",AC_MSG_ERROR(Couldn't find Xaw librairies),$X_LIBS $X_EXTRA_LIBS) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_CHECK_LIB(Xaw,main,X_LIBS="$X_LIBS -lXaw",AC_MSG_ERROR(Couldn't find Xaw library),$X_LIBS $X_EXTRA_LIBS) |
|
|
|
|
|
AC_CHECK_LIB(Xmu,main,X_LIBS="$X_LIBS -lXmu",AC_MSG_ERROR(Couldn't find Xmu library), $X_LIBS $X_EXTRA_LIBS) |
|
|
|
|
|
X_LIBS="$X_LIBS -lXt" |
|
|
|
|
|
AC_CHECK_LIB(Xext, XShmAttach,X_LIBS="$X_LIBS -lXext",AC_MSG_ERROR(Couldn't find Xext library), $X_LIBS $X_EXTRA_LIBS) |
|
|
|
|
|
X_LIBS="$X_LIBS -lX11" |
|
|
|
|
|
|
|
|
fi ;; |
|
|
fi ;; |
|
|
|
|
|
|
|
|
@ -267,7 +275,7 @@ AC_CHECK_HEADERS(ctype.h unistd.h pwd.h fcntl.h string.h) |
|
|
AC_HEADER_SYS_WAIT |
|
|
AC_HEADER_SYS_WAIT |
|
|
AC_HEADER_STAT |
|
|
AC_HEADER_STAT |
|
|
|
|
|
|
|
|
dnl Check time and ressources headers and functions: |
|
|
|
|
|
|
|
|
dnl Check time and resources headers and functions: |
|
|
AC_HEADER_TIME |
|
|
AC_HEADER_TIME |
|
|
AC_STRUCT_TM |
|
|
AC_STRUCT_TM |
|
|
AC_STRUCT_TIMEZONE |
|
|
AC_STRUCT_TIMEZONE |
|
|
@ -499,7 +507,7 @@ AC_SUBST(XSPICELIB2) |
|
|
AC_SUBST(XSPICETESTS) |
|
|
AC_SUBST(XSPICETESTS) |
|
|
AC_SUBST(XSPICEINIT) |
|
|
AC_SUBST(XSPICEINIT) |
|
|
|
|
|
|
|
|
dnl Add CIDER enhacements to ngspice. |
|
|
|
|
|
|
|
|
dnl Add CIDER enhancements to ngspice. |
|
|
if test "$enable_cider" = "yes"; then |
|
|
if test "$enable_cider" = "yes"; then |
|
|
AC_MSG_RESULT(CIDER features enabled) |
|
|
AC_MSG_RESULT(CIDER features enabled) |
|
|
AC_DEFINE(CIDER) |
|
|
AC_DEFINE(CIDER) |
|
|
|