Add the --enable-vvp-debug option to the configure
script of vvp, and detect getopt.h.
This commit is contained in:
parent
44a182d92c
commit
4f804577f9
|
|
@ -19,7 +19,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
#if !defined(WINNT)
|
#if !defined(WINNT)
|
||||||
#ident "$Id: config.h.in,v 1.4 2001/05/05 23:55:46 steve Exp $"
|
#ident "$Id: config.h.in,v 1.5 2001/05/11 02:06:14 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# define SIZEOF_UNSIGNED_LONG 0
|
# define SIZEOF_UNSIGNED_LONG 0
|
||||||
|
|
@ -27,8 +27,11 @@
|
||||||
|
|
||||||
# undef HAVE_DLFCN_H
|
# undef HAVE_DLFCN_H
|
||||||
# undef HAVE_DL_H
|
# undef HAVE_DL_H
|
||||||
|
# undef HAVE_GETOPT_H
|
||||||
# undef HAVE_LIBREADLINE
|
# undef HAVE_LIBREADLINE
|
||||||
|
|
||||||
|
# undef ENABLE_VVP_DEBUG
|
||||||
|
|
||||||
# define LU ""
|
# define LU ""
|
||||||
# define TU ""
|
# define TU ""
|
||||||
|
|
||||||
|
|
@ -36,12 +39,16 @@
|
||||||
# define MODULE_DIR "."
|
# define MODULE_DIR "."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_LIBREADLINE)
|
#if defined(HAVE_LIBREADLINE) && defined(ENABLE_VVP_DEBUG)
|
||||||
# define WITH_DEBUG 1
|
# define WITH_DEBUG 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: config.h.in,v $
|
* $Log: config.h.in,v $
|
||||||
|
* Revision 1.5 2001/05/11 02:06:14 steve
|
||||||
|
* Add the --enable-vvp-debug option to the configure
|
||||||
|
* script of vvp, and detect getopt.h.
|
||||||
|
*
|
||||||
* Revision 1.4 2001/05/05 23:55:46 steve
|
* Revision 1.4 2001/05/05 23:55:46 steve
|
||||||
* Add the beginnings of an interactive debugger.
|
* Add the beginnings of an interactive debugger.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,16 @@ AC_CHECK_TOOL(STRIP, strip, true)
|
||||||
|
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(vvp-debug, "interactive debugger for VVP runtime.", AC_DEFINE(ENABLE_VVP_DEBUG))
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS(getopt.h)
|
||||||
|
|
||||||
AC_CHECK_SIZEOF(unsigned long)
|
AC_CHECK_SIZEOF(unsigned long)
|
||||||
AC_CHECK_SIZEOF(unsigned)
|
AC_CHECK_SIZEOF(unsigned)
|
||||||
|
|
||||||
|
# For the interactive debugger to work, readline must be installed,
|
||||||
|
# and that in turn requires termcap. check that the libs really do
|
||||||
|
# exist.
|
||||||
AC_CHECK_LIB(termcap, tputs)
|
AC_CHECK_LIB(termcap, tputs)
|
||||||
AC_CHECK_LIB(readline, readline)
|
AC_CHECK_LIB(readline, readline)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
#if !defined(WINNT)
|
#if !defined(WINNT)
|
||||||
#ident "$Id: main.cc,v 1.10 2001/05/09 04:23:19 steve Exp $"
|
#ident "$Id: main.cc,v 1.11 2001/05/11 02:06:14 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
|
@ -27,7 +27,9 @@
|
||||||
# include "schedule.h"
|
# include "schedule.h"
|
||||||
# include "vpi_priv.h"
|
# include "vpi_priv.h"
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
|
#if defined(HAVE_GETOPT_H)
|
||||||
# include <getopt.h>
|
# include <getopt.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
const char*module_path = MODULE_DIR;
|
const char*module_path = MODULE_DIR;
|
||||||
|
|
@ -98,6 +100,10 @@ int main(int argc, char*argv[])
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: main.cc,v $
|
* $Log: main.cc,v $
|
||||||
|
* Revision 1.11 2001/05/11 02:06:14 steve
|
||||||
|
* Add the --enable-vvp-debug option to the configure
|
||||||
|
* script of vvp, and detect getopt.h.
|
||||||
|
*
|
||||||
* Revision 1.10 2001/05/09 04:23:19 steve
|
* Revision 1.10 2001/05/09 04:23:19 steve
|
||||||
* Now that the interactive debugger exists,
|
* Now that the interactive debugger exists,
|
||||||
* there is no use for the output dump.
|
* there is no use for the output dump.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue