source: rtems/aclocal.m4 @ 419fdf1

4.104.114.84.95
Last change on this file since 419fdf1 was 6f9c75c3, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 16, 1998 at 4:56:48 PM

Ralf Corsepius reported a number of missing CVS Id's:

RTEMS is under CVS control and has been since rtems 3.1.16 which was
around May 1995. So I just to add the $Id$. If you notice other files
with missing $Id$'s let me know. I try to keep w\up with it.

Now that you have asked -- I'll attach a list of files lacking an RCS-Id to
this mail. This list has been generated by a little sh-script I'll also
enclose.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1dnl some macros for rtems host configuration checks
2dnl
3dnl Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de), 97/11/29
4dnl
5dnl Last Modified: 98/01/10
6dnl
7dnl  $Id$
8dnl
9
10dnl macro to detect mkdir
11AC_DEFUN(RTEMS_PATH_MKDIR,
12[AC_PATH_PROG(MKDIR,mkdir)
13])
14
15dnl macro to check for mkdir -p
16AC_DEFUN(RTEMS_PROG_MKDIR_P,
17[
18AC_REQUIRE([RTEMS_PATH_MKDIR])
19AC_MSG_CHECKING([for working $MKDIR -p])
20AC_CACHE_VAL(rtems_cv_prog_mkdir_p,
21[rm -rf conftestdata
22if $MKDIR -p conftestdata 2>/dev/null ;then
23rtems_cv_prog_MKDIR_P="yes"
24else
25rtems_cv_prog_MKDIR_P="no"
26fi])dnl
27rm -rf conftestdata
28AC_MSG_RESULT($rtems_cv_prog_MKDIR_P)
29])
30
31dnl macro to check for mkdir -m 0755
32AC_DEFUN(RTEMS_PROG_MKDIR_M,
33[
34AC_REQUIRE([RTEMS_PATH_MKDIR])
35AC_MSG_CHECKING([for working $MKDIR -m 0755])
36AC_CACHE_VAL(rtems_cv_prog_MKDIR_P,
37[rm -rf conftestdata
38if $MKDIR -m 0775 conftestdata 2>/dev/null; then
39rtems_cv_prog_MKDIR_M="yes"
40else
41rtems_cv_prog_MKDIR_M="no"
42fi])dnl
43rm -rf conftestdata
44AC_MSG_RESULT($rtems_cv_prog_MKDIR_M)
45])
46
47dnl RTEMS_CHECK_FILES_IN(path,file,var)
48dnl path .. path relative to srcdir, where to start searching for files
49dnl file .. name of the files to search for
50dnl var  .. shell variable to append found files
51AC_DEFUN(RTEMS_CHECK_FILES_IN,
52[
53AC_MSG_CHECKING(for $2.in in $1)
54if test -d $srcdir/$1; then
55  rtems_av_save_dir=`pwd`;
56  cd $srcdir;
57  rtems_av_tmp=`find $1 -name "$2.in" -print | sed "s/$2\.in/%/" | sort | sed "s/%/$2/"`
58  $3="$$3 $rtems_av_tmp";
59  cd $rtems_av_save_dir;
60  AC_MSG_RESULT(done)
61else
62  AC_MSG_RESULT(no)
63fi
64])
65
66dnl RTEMS_CHECK_MAKEFILE(path)
67dnl Search for Makefile.in's within the directory starting
68dnl at path and append an entry for Makefile to global variable
69dnl "makefiles" (from configure.in) for each Makefile.in found
70dnl
71AC_DEFUN(RTEMS_CHECK_MAKEFILE,
72[RTEMS_CHECK_FILES_IN($1,Makefile,makefiles)
73])
74
75dnl canonicalize target name
76dnl NOTE: Most rtems targets do not fullfil autoconf's
77dnl target naming conventions "processor-vendor-os"
78dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
79dnl and we have to fix it for rtems ourselves
80
81AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
82[AC_MSG_CHECKING(rtems target cpu)
83changequote(<<, >>)dnl
84target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
85changequote([, ])dnl
86AC_MSG_RESULT($target_cpu)
87])
Note: See TracBrowser for help on using the repository browser.