Changeset 2f17d74 in rtems


Ignore:
Timestamp:
Nov 2, 2000, 3:55:26 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
63b347b7
Parents:
a314d3b
Message:

2000-11-02 Ralf Corsepius <corsepiu@…>

  • aclocal/canonicalize-tools.m4: Remove RTEMS_PATH_TOOL, use AC_CHECK_TOOL instead of RTEMS_PATH_TOOL in RTEMS_CANONICALIZE_TOOLS.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    ra314d3b r2f17d74  
     12000-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
    162000-11-02      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27 
  • aclocal/canonicalize-tools.m4

    ra314d3b r2f17d74  
    1616])
    1717
    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"; then
    25   dnl retrieve the value from the cache
    26   $1=$ac_cv_path_$1
    27 else
    28   dnl the cache was not set
    29   if test -z "[$]$1" ; then
    30     if test "$ac_cv_prog_gcc" = "yes"; then
    31       # We are using gcc, ask it about its tool
    32       # NOTE: Necessary if gcc was configured to use the target's
    33       # native tools or uses prefixes for gnutools (e.g. gas instead of as)
    34       RTEMS_GCC_PRINT($1,$2)
    35     fi
    36   else
    37     # The user set an environment variable.
    38     # Check whether it is an absolute path, otherwise AC_PATH_PROG
    39     # will override the environment variable, which isn't what the user
    40     # intends
    41     AC_MSG_CHECKING([whether environment variable $1 is an absolute path])
    42     case "[$]$1" in
    43     /*) # valid
    44       AC_MSG_RESULT("yes")
    45     ;;
    46     *)  # invalid for AC_PATH_PROG
    47       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     esac
    53   fi
    54 
    55   AC_PATH_PROG($1,"$program_prefix"$2,$3)
    56 fi
    57 ])
    58 
    5918AC_DEFUN(RTEMS_CANONICALIZE_TOOLS,
    6019[AC_REQUIRE([RTEMS_PROG_CC])dnl
     
    6221dnl FIXME: What shall be done if these tools are not available?
    6322  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)
    6726
    6827dnl special treatment of ranlib
Note: See TracChangeset for help on using the changeset viewer.