OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [aclocal/] [config-subdirs.m4] - Diff between revs 1026 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 1026 Rev 1765
dnl config-subdirs.m4,v 1.6 2002/01/06 20:12:13 joel Exp
dnl config-subdirs.m4,v 1.6 2002/01/06 20:12:13 joel Exp
 
 
dnl
dnl
dnl Misc utility macros for subdir handling to work around missing abilities
dnl Misc utility macros for subdir handling to work around missing abilities
dnl in autoconf, automake and structural issues with RTEMS
dnl in autoconf, automake and structural issues with RTEMS
dnl
dnl
dnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus'
dnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus'
dnl configure.in.
dnl configure.in.
dnl
dnl
 
 
dnl
dnl
dnl _AC_DOTS(PATH)
dnl _AC_DOTS(PATH)
dnl
dnl
AC_DEFUN(_AC_DOTS,[
AC_DEFUN(_AC_DOTS,[
# A "../" for each directory in $1.
# A "../" for each directory in $1.
    ac_dots=`echo $1 | \
    ac_dots=`echo $1 | \
             sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
             sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
])
])
 
 
dnl
dnl
dnl _RTEMS_ADJUST_SRCDIR(REVAR,CONFIG_DIR[,TARGET_SUBDIR])
dnl _RTEMS_ADJUST_SRCDIR(REVAR,CONFIG_DIR[,TARGET_SUBDIR])
dnl
dnl
AC_DEFUN(_RTEMS_ADJUST_SRCDIR,[
AC_DEFUN(_RTEMS_ADJUST_SRCDIR,[
    _AC_DOTS(ifelse([$3], ,[$2],[$3/$2]))
    _AC_DOTS(ifelse([$3], ,[$2],[$3/$2]))
 
 
    case "$srcdir" in
    case "$srcdir" in
    .) # No --srcdir option.  We are building in place.
    .) # No --srcdir option.  We are building in place.
      $1=$srcdir ;;
      $1=$srcdir ;;
    [[\\/]]* | ?:[[\\/]]*) # Absolute path.
    [[\\/]]* | ?:[[\\/]]*) # Absolute path.
      $1=$srcdir/$2 ;;
      $1=$srcdir/$2 ;;
    *) # Relative path.
    *) # Relative path.
      $1=$ac_dots$srcdir/$2 ;;
      $1=$ac_dots$srcdir/$2 ;;
    esac
    esac
])
])
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.