source: rtems/aclocal/check-files-in.m4 @ 817466c

4.104.114.84.9
Last change on this file since 817466c was b931d05a, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 30, 1998 at 7:51:39 PM

Added Id's.

  • Property mode set to 100644
File size: 553 bytes
Line 
1dnl
2dnl $Id$
3dnl
4
5dnl RTEMS_CHECK_FILES_IN(path,file,var)
6dnl path .. path relative to srcdir, where to start searching for files
7dnl file .. name of the files to search for
8dnl var  .. shell variable to append files found
9
10AC_DEFUN(RTEMS_CHECK_FILES_IN,
11[
12AC_MSG_CHECKING(for $2.in in $1)
13if test -d $srcdir/$1; then
14  rtems_av_save_dir=`pwd`;
15  cd $srcdir;
16  rtems_av_tmp=`find $1 -name "$2.in" -print | sed "s/$2\.in/%/" | sort | sed "s/%/$2/"`
17  $3="$$3 $rtems_av_tmp";
18  cd $rtems_av_save_dir;
19  AC_MSG_RESULT(done)
20else
21  AC_MSG_RESULT(no)
22fi
23])
24
Note: See TracBrowser for help on using the repository browser.