source:
rtems/testsuites/aclocal/check-tool.m4
@
33a105fb
Last change on this file since 33a105fb was 33a105fb, checked in by Joel Sherrill <joel.sherrill@…>, on 05/07/12 at 16:08:48 | |
---|---|
|
|
File size: 420 bytes |
Line | |
---|---|
1 | dnl $Id$ |
2 | |
3 | ## Check for a cross tool, similar to AC_CHECK_TOOL, but do not fall back to |
4 | ## the un-prefixed version of PROG-TO-CHECK-FOR. |
5 | dnl RTEMS_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR[, VALUE-IF-NOT-FOUND [, PATH]]) |
6 | AC_DEFUN([RTEMS_CHECK_TOOL], |
7 | [ |
8 | AS_IF([test "x$build_alias" != "x$host_alias"], |
9 | [rtems_tool_prefix=${ac_tool_prefix}]) |
10 | AC_CHECK_PROG($1, ${rtems_tool_prefix}$2, ${rtems_tool_prefix}$2, $3, $4) |
11 | ]) |
Note: See TracBrowser
for help on using the repository browser.