Changeset 2f17d74 in rtems
- Timestamp:
- 11/02/00 15:55:26 (23 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 63b347b7
- Parents:
- a314d3b4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
ra314d3b4 r2f17d74 1 2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 3 * aclocal/canonicalize-tools.m4: Remove RTEMS_PATH_TOOL, use 4 AC_CHECK_TOOL instead of RTEMS_PATH_TOOL in RTEMS_CANONICALIZE_TOOLS. 5 1 6 2000-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 7 -
aclocal/canonicalize-tools.m4
ra314d3b4 r2f17d74 16 16 ]) 17 17 18 AC_DEFUN(RTEMS_PATH_TOOL,19 [20 AC_MSG_CHECKING([target's $2])21 AC_CACHE_VAL(ac_cv_path_$1,:)22 AC_MSG_RESULT([$ac_cv_path_$1])23 24 if test -n "$ac_cv_path_$1"; then25 dnl retrieve the value from the cache26 $1=$ac_cv_path_$127 else28 dnl the cache was not set29 if test -z "[$]$1" ; then30 if test "$ac_cv_prog_gcc" = "yes"; then31 # We are using gcc, ask it about its tool32 # NOTE: Necessary if gcc was configured to use the target's33 # native tools or uses prefixes for gnutools (e.g. gas instead of as)34 RTEMS_GCC_PRINT($1,$2)35 fi36 else37 # The user set an environment variable.38 # Check whether it is an absolute path, otherwise AC_PATH_PROG39 # will override the environment variable, which isn't what the user40 # intends41 AC_MSG_CHECKING([whether environment variable $1 is an absolute path])42 case "[$]$1" in43 /*) # valid44 AC_MSG_RESULT("yes")45 ;;46 *) # invalid for AC_PATH_PROG47 AC_MSG_RESULT("no")48 AC_MSG_ERROR([***]49 [Environment variable $1 should either]50 [be unset (preferred) or contain an absolute path])51 ;;52 esac53 fi54 55 AC_PATH_PROG($1,"$program_prefix"$2,$3)56 fi57 ])58 59 18 AC_DEFUN(RTEMS_CANONICALIZE_TOOLS, 60 19 [AC_REQUIRE([RTEMS_PROG_CC])dnl … … 62 21 dnl FIXME: What shall be done if these tools are not available? 63 22 RTEMS_HOST_AR(AR,ar,no) 64 RTEMS_PATH_TOOL(AS,as,no)65 RTEMS_PATH_TOOL(LD,ld,no)66 RTEMS_PATH_TOOL(NM,nm,no)23 AC_CHECK_TOOL(AS,as,no) 24 AC_CHECK_TOOL(LD,ld,no) 25 AC_CHECK_TOOL(NM,nm,no) 67 26 68 27 dnl special treatment of ranlib
Note: See TracChangeset
for help on using the changeset viewer.