source: rtems/aclocal/prog-gnat.m4 @ 314a962

4.104.114.84.9
Last change on this file since 314a962 was 6c15108, checked in by Ralf Corsepius <ralf.corsepius@…>, on Aug 28, 2002 at 5:42:44 PM

2002-08-28 Ralf Corsepius <corsepiu@…>

  • aclocal/prog-gnat.m4: New.
  • Property mode set to 100644
File size: 653 bytes
Line 
1## $Id$
2##
3## WARNING: All the stuff below is pretty immature.
4
5AC_DEFUN([RTEMS_PROG_GNAT],
6[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])
7AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])
8
9AC_ARG_VAR([GNATMAKE],[GNATMAKE compiler command])
10AC_ARG_VAR([ADAFLAGS],[ADA compiler flags])
11
12RTEMS_CHECK_TOOL([GNATMAKE],[gnatmake],[])
13AS_IF([test -z "$GNATMAKE"],[AC_MSG_ERROR([No GNATMAKE found])])
14
15AC_MSG_CHECKING([whether $GNATMAKE works])
16rm -f conftest.*
17cat >conftest.adb <<EOF
18procedure conftest is begin null; end conftest;
19EOF
20
21AS_IF([$GNATMAKE -c conftest.adb 1>>config.log 2>&1],
22    [HAVE_GNAT=yes],
23    [HAVE_GNAT=no])
24AC_MSG_RESULT([$HAVE_GNAT])
25rm -f conftest.*
26])
Note: See TracBrowser for help on using the repository browser.