summaryrefslogtreecommitdiffstats
path: root/aclocal/target.m4
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-02-05 18:04:57 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-02-05 18:04:57 +0000
commitf5c583619c80e98f0366f32ba40853ad881ffe8e (patch)
tree5d397d4a764504faf30e36087e69c214d5b4a87c /aclocal/target.m4
parent2001-02-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-f5c583619c80e98f0366f32ba40853ad881ffe8e.tar.bz2
2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/config-subdirs.m4: New file. * aclocal/target.m4: Use macros from config-subdirs.m4.
Diffstat (limited to 'aclocal/target.m4')
-rw-r--r--aclocal/target.m450
1 files changed, 5 insertions, 45 deletions
diff --git a/aclocal/target.m4 b/aclocal/target.m4
index 9c84490880..d72122d4d0 100644
--- a/aclocal/target.m4
+++ b/aclocal/target.m4
@@ -53,54 +53,14 @@ if test "$no_recursion" != yes; then
continue
fi
- echo configuring in $ac_config_dir
+ _RTEMS_PUSH_BUILDDIR([$ac_config_dir])
- case "$srcdir" in
-## .) ;;
- *)
- if test -d $ac_config_dir || mkdir $ac_config_dir; then :;
- else
- AC_MSG_ERROR(can not create `pwd`/$ac_config_dir)
- fi
- ;;
- esac
-
- ac_popdir=`pwd`
- cd $ac_config_dir
-
-changequote(, )dnl
- # A "../" for each directory in /$ac_config_dir.
- ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
-changequote([, ])dnl
-
- case "$srcdir" in
-## .) # No --srcdir option. We are building in place.
-## ac_sub_srcdir=$srcdir ;;
- /*) # Absolute path.
- ac_sub_srcdir=$srcdir/$ac_config_dir ;;
- *) # Relative path.
- ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
- esac
-
- # Check for configure
- if test -f $ac_sub_srcdir/configure; then
- ac_sub_configure=$ac_sub_srcdir/configure
- else
- AC_MSG_WARN(no configuration information is in $ac_config_dir)
- ac_sub_configure=
- fi
+ _RTEMS_SUB_SRCDIR([$ac_config_dir])
# The recursion is here.
if test -n "$ac_sub_configure"; then
ac_sub_cache_file=./config.cache
-ifdef([AC_PROVIDE_AC_PROG_INSTALL],
- [ case "$ac_given_INSTALL" in
-changequote(, )dnl
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
-changequote([, ])dnl
- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
- esac
-])dnl
+ _RTEMS_GIVEN_INSTALL
echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"
# The eval makes quoting arguments work.
@@ -111,11 +71,11 @@ changequote([, ])dnl
--cache-file=$ac_sub_cache_file
then :
else
- AC_MSG_ERROR($ac_sub_configure failed for $ac_config_dir)
+ AC_MSG_ERROR([$ac_sub_configure failed for $ac_config_dir])
fi
fi
- cd $ac_popdir
+ _RTEMS_POP_BUILDDIR
done
fi
])