forked from Imagelibrary/rtems
* aclocal/check-newlib.m4: Apply AS_IF. * aclocal/config-subdirs.m4: Remove _RTEMS_PUSH_BUILDDIR, _RTEMS_POP_BUILDDIR, _RTEMS_GIVEN_INSTALL, _RTEMS_SUB_SRCDIR. * aclocal/subdirs.m4: Fix comments, apply AS_IF. * aclocal/sysv-ipc.m4: Reflect autoconf-2.5x canonicalization changes. * aclocal/target.m4: Add _RTEMS_PUSH_BUILDDIR, _RTEMS_POP_BUILDDIR, _RTEMS_GIVEN_INSTALL, _RTEMS_SUB_SRCDIR. * automake/compile.am: Remove librtemsall from LINK_FILES.
35 lines
812 B
Plaintext
35 lines
812 B
Plaintext
dnl $Id$
|
|
|
|
dnl
|
|
dnl Misc utility macros for subdir handling to work around missing abilities
|
|
dnl in autoconf, automake and structural issues with RTEMS
|
|
dnl
|
|
dnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus'
|
|
dnl configure.in.
|
|
dnl
|
|
|
|
dnl
|
|
dnl _AC_DOTS(PATH)
|
|
dnl
|
|
AC_DEFUN(_AC_DOTS,[
|
|
# A "../" for each directory in $1.
|
|
ac_dots=`echo $1 | \
|
|
sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
|
|
])
|
|
|
|
dnl
|
|
dnl _RTEMS_ADJUST_SRCDIR(REVAR,CONFIG_DIR[,TARGET_SUBDIR])
|
|
dnl
|
|
AC_DEFUN(_RTEMS_ADJUST_SRCDIR,[
|
|
_AC_DOTS(ifelse([$3], ,[$2],[$3/$2]))
|
|
|
|
case "$srcdir" in
|
|
.) # No --srcdir option. We are building in place.
|
|
$1=$srcdir ;;
|
|
[[\\/]]* | ?:[[\\/]]*) # Absolute path.
|
|
$1=$srcdir/$2 ;;
|
|
*) # Relative path.
|
|
$1=$ac_dots$srcdir/$2 ;;
|
|
esac
|
|
])
|