## $Id$ ## ## Partially borrowed from gcc-3.2 ## ## WARNING: All the stuff below is pretty immature. AC_DEFUN([RTEMS_PROG_GNAT], [AC_REQUIRE([AC_CHECK_TOOL_PREFIX]) AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET]) AC_CHECK_TOOL([GNATMAKE],[gnatmake],[]) AC_CACHE_CHECK([for compiler driver that understands Ada], [rtems_cv_prog_CCADA], [cat >conftest.adb <&1 || echo failure` AS_IF([test -z "$errors"], [rtems_cv_prog_CCADA=$cand break]) done rm -f conftest.*]) AC_SUBST([CCADA],[$rtems_cv_prog_CCADA]) AS_IF([test -n "$GNATMAKE" && test -n "$CCADA"], [HAVE_GNAT=yes], [HAVE_GNAT=no]) ])