Add config.cache support.

This commit is contained in:
Ralf Corsepius
2005-11-09 03:44:30 +00:00
parent d800e86714
commit bc931b8e96
+8 -6
View File
@@ -1,14 +1,16 @@
# RTEMS_CHECK_CPUOPTS(define)
AC_DEFUN([RTEMS_CHECK_CPUOPTS],
[
AC_MSG_CHECKING([for $1])
AC_COMPILE_IFELSE([
AC_CACHE_CHECK(
[for $1],
[rtems_cv_$1],
[AC_COMPILE_IFELSE([
#include <rtems/score/cpuopts.h>
#ifndef $1
choke me
#endif
],
[rtems_cv_$1=yes],
[rtems_cv_$1=no])
AC_MSG_RESULT([$rtems_cv_$1])
],
[rtems_cv_$1=yes],
[rtems_cv_$1=no])
])
])