source: rtems/c/src/aclocal/config-subdirs.m4 @ c32b1ef

4.115
Last change on this file since c32b1ef was 6963854d, checked in by Ralf Corsépius <ralf.corsepius@…>, on 05/18/12 at 05:47:52

Remove references to configure.in.

  • Property mode set to 100644
File size: 806 bytes
Line 
1dnl
2dnl Misc utility macros for subdir handling to work around missing abilities
3dnl in autoconf, automake and structural issues with RTEMS
4dnl
5dnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus'
6dnl configure.ac.
7dnl
8
9dnl
10dnl _AC_DOTS(PATH)
11dnl
12AC_DEFUN([_AC_DOTS],[
13# A "../" for each directory in $1.
14    ac_dots=`echo $1 | \
15             sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
16])
17
18dnl
19dnl _RTEMS_ADJUST_SRCDIR(REVAR,CONFIG_DIR[,TARGET_SUBDIR])
20dnl
21AC_DEFUN([_RTEMS_ADJUST_SRCDIR],[
22    _AC_DOTS(ifelse([$3], ,[$2],[$3/$2]))
23
24    case "$srcdir" in
25    .) # No --srcdir option.  We are building in place.
26      $1=$srcdir ;;
27    [[\\/]]* | ?:[[\\/]]*) # Absolute path.
28      $1=$srcdir/$2 ;;
29    *) # Relative path.
30      $1=$ac_dots$srcdir/$2 ;;
31    esac
32])
Note: See TracBrowser for help on using the repository browser.