configure tests problem...

Poletti Francesco fpoletti at libero.it
Mon Nov 18 12:07:59 UTC 2002


Hy, I'm developing a Bsp for an arm simulator. I'm using the latest 
snapshot(20021111).
I have found this kind of problem: when I build the rtems I wasn't able to 
disable the building of the tests directory. 
Just because I'm developing a board I haven't writed the driver  for the 
timer, like this when I build rtems I have some problems whit the 
tests/samples which want to use a timer.
For resolving the problems I put this command in the c/src/configure.am file:

AC_ARG_ENABLE([tests],
[AC_HELP_STRING([--enable-tests],[enable tests build])],
[case "${enable_tests}" in
  yes) ;;
  no) ;;
  *)  AC_MSG_ERROR(bad value ${enable_tests} for --enable-tests) ;;
esac],[enable_tests=no])

AS_IF([test x"$enable_tests" = x"yes"],[
    AC_CONFIG_SUBDIRS([tests])
    BSP_SUBDIRS="$BSP_SUBDIRS tests"
  ])

Like this I'm able to unbuild this directory. Is that a good idea or is a 
dangerous things?

Thanks to all Francesco 



More information about the users mailing list