diff -r 2881a83d084f -r d2527675cdd5 configure.ac --- a/configure.ac Thu Jun 19 10:18:18 2008 +0000 +++ b/configure.ac Thu Jun 19 10:18:58 2008 +0000 @@ -490,6 +490,30 @@ AC_SUBST(ENABLE_EOE,[$eoe]) #------------------------------------------------------------------------------ +# CPU timestamp counter support +#------------------------------------------------------------------------------ + +AC_ARG_ENABLE([cycles], + AS_HELP_STRING([--enable-cycles], + [Use CPU timestamp counter (default: no)]), + [ + case "${enableval}" in + yes) cycles=1 + ;; + no) cycles=0 + ;; + *) AC_MSG_ERROR([Invalid value for --enable-cycles]) + ;; + esac + ], + [cycles=0] +) + +if test "x${cycles}" = "x1"; then + AC_DEFINE([EC_HAVE_CYCLES], [1], [Use CPU timestamp counter]) +fi + +#------------------------------------------------------------------------------ AC_CONFIG_FILES([ Doxyfile