2005-01-07 Andrew Cagney <cagney@gnu.org>
+ * configure.in: Pass literal subdirectories to AC_CONFIG_SUBDIRS.
+ * configure: Re-generate.
+
* fr30-elf, d30v-elf: Delete directory.
2004-11-16 Hans-Peter Nilsson <hp@axis.com>
program_prefix=${target_alias}-
-# Directories to use in all configurations.
-configdirs=""
+# Configure sub-directory for appropriate targets
+case ${target} in
+ frv-*-elf )
+ subdirs="frv-elf"
-# add test sub-directory for appropriate targets
-testdir=`echo ${target} | sed -e 's/-.*-/-/'`
-if test -r ${srcdir}/${testdir}/configure ; then
- configdirs="${configdirs} $testdir"
-fi
+ ;;
+ m32r-*-elf )
+ subdirs="frv-elf m32r-elf"
-# add any extra subdirectories
-case $target in
- *) ;;
+ ;;
+ mips64el-*-elf )
+ subdirs="frv-elf m32r-elf mips64el-elf"
+
+ ;;
esac
# Compute the target architecture.
esac
-# configure the subdirectories too
-subdirs="$configdirs"
-
-
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
-s%@arch@%$arch%g
s%@subdirs@%$subdirs%g
+s%@arch@%$arch%g
CEOF
EOF
esac
done
- for ac_config_dir in $configdirs; do
+ for ac_config_dir in frv-elf m32r-elf mips64el-elf; do
# Do not complain, so a configure script can configure whichever
# parts of a large source tree are present.
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
AC_CANONICAL_SYSTEM
-# Directories to use in all configurations.
-configdirs=""
-
-# add test sub-directory for appropriate targets
-testdir=`echo ${target} | sed -e 's/-.*-/-/'`
-if test -r ${srcdir}/${testdir}/configure ; then
- configdirs="${configdirs} $testdir"
-fi
-
-# add any extra subdirectories
-case $target in
- *) ;;
+# Configure sub-directory for appropriate targets
+case ${target} in
+ frv-*-elf )
+ AC_CONFIG_SUBDIRS(frv-elf)
+ ;;
+ m32r-*-elf )
+ AC_CONFIG_SUBDIRS(m32r-elf)
+ ;;
+ mips64el-*-elf )
+ AC_CONFIG_SUBDIRS(mips64el-elf)
+ ;;
esac
# Compute the target architecture.
esac
AC_SUBST(arch)
-# configure the subdirectories too
-AC_CONFIG_SUBDIRS($configdirs)
-
AC_OUTPUT(Makefile)