- add configure option for Greg's realtime pit.

- chose a creative name.... how about --enable-realtime-pit
This commit is contained in:
Bryce Denney 2002-09-24 18:00:23 +00:00
parent c111260872
commit 472202226d
2 changed files with 54 additions and 2 deletions

37
bochs/configure vendored
View File

@ -1,5 +1,5 @@
#! /bin/sh
# From configure.in Id: configure.in,v 1.123 2002/09/23 21:41:34 bdenney Exp .
# From configure.in Id: configure.in,v 1.124 2002/09/24 08:15:26 bdenney Exp .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
#
@ -843,6 +843,7 @@ Optional Features:
--enable-config-interface turns on/off configuration interface
--enable-control-panel Deprecated. Use --enable-config-interface.
--enable-new-pit use Greg Alexander's new PIT model
--enable-realtime-pit try to keep clk in sync w/ real time
--enable-slowdown use Greg Alexander's slowdown timer
--enable-idle-hack use Roland Mainz's idle hack
--enable-processors select number of processors (1,2,4,8)
@ -7955,6 +7956,39 @@ _ACEOF
fi;
echo "$as_me:$LINENO: checking for realtime PIT" >&5
echo $ECHO_N "checking for realtime PIT... $ECHO_C" >&6
# Check whether --enable-realtime-pit or --disable-realtime-pit was given.
if test "${enable_realtime_pit+set}" = set; then
enableval="$enable_realtime_pit"
if test "$enableval" = yes; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
cat >>confdefs.h <<\_ACEOF
#define BX_USE_REALTIME_PIT 1
_ACEOF
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
cat >>confdefs.h <<\_ACEOF
#define BX_USE_REALTIME_PIT 0
_ACEOF
fi
else
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
cat >>confdefs.h <<\_ACEOF
#define BX_USE_REALTIME_PIT 1
_ACEOF
fi;
@ -12062,6 +12096,7 @@ s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
s,@X_LIBS@,$X_LIBS,;t t
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
s,@BX_USE_NEW_PIT@,$BX_USE_NEW_PIT,;t t
s,@BX_USE_REALTIME_PIT@,$BX_USE_REALTIME_PIT,;t t
s,@BX_USE_SLOWDOWN_TIMER@,$BX_USE_SLOWDOWN_TIMER,;t t
s,@SLOWDOWN_OBJS@,$SLOWDOWN_OBJS,;t t
s,@BX_USE_IDLE_HACK@,$BX_USE_IDLE_HACK,;t t

View File

@ -2,7 +2,7 @@ dnl // Process this file with autoconf to produce a configure script.
AC_PREREQ(2.5)
AC_INIT(bochs.h)
AC_REVISION([[$Id: configure.in,v 1.124 2002-09-24 08:15:26 bdenney Exp $]])
AC_REVISION([[$Id: configure.in,v 1.125 2002-09-24 18:00:21 bdenney Exp $]])
AC_CONFIG_HEADER(config.h)
dnl // Put Bochs version information right here so that it gets substituted
@ -208,6 +208,23 @@ AC_ARG_ENABLE(new-pit,
)
AC_SUBST(BX_USE_NEW_PIT)
AC_MSG_CHECKING(for realtime PIT)
AC_ARG_ENABLE(realtime-pit,
[ --enable-realtime-pit try to keep clk in sync w/ real time],
[if test "$enableval" = yes; then
AC_MSG_RESULT(yes)
AC_DEFINE(BX_USE_REALTIME_PIT, 1)
else
AC_MSG_RESULT(no)
AC_DEFINE(BX_USE_REALTIME_PIT, 0)
fi],
[
AC_MSG_RESULT(yes)
AC_DEFINE(BX_USE_REALTIME_PIT, 1)
]
)
AC_SUBST(BX_USE_REALTIME_PIT)
AC_MSG_CHECKING(for slowdown timer)
AC_ARG_ENABLE(slowdown,
[ --enable-slowdown use Greg Alexander's slowdown timer],