aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-11-09 02:21:21 +0000
committerDJ Delorie <dj@redhat.com>2001-11-09 02:21:21 +0000
commit922b248500147ff26d37f987ec8c7ac9057edee6 (patch)
treed98dfd1106958da27022085022f35cbcfb9a127e /configure.in
parent75aa290a64a687f1797c03b73364cacfd613c8b8 (diff)
downloadgdb-922b248500147ff26d37f987ec8c7ac9057edee6.zip
gdb-922b248500147ff26d37f987ec8c7ac9057edee6.tar.gz
gdb-922b248500147ff26d37f987ec8c7ac9057edee6.tar.bz2
* configure.in (--enable-languages): Be more permissive about
syntax. Check for empty lists better. Warn about $LANGUAGES.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 4102e59..7b7e4bb 100644
--- a/configure.in
+++ b/configure.in
@@ -976,18 +976,24 @@ fi
# Look if the user specified --enable-languages="..."; if not, use
# the environment variable $LANGUAGES if defined. $LANGUAGES might
# go away some day.
+# NB: embedded tabs in this IF block -- do not untabify
if test x"${enable_languages+set}" != xset; then
if test x"${LANGUAGES+set}" = xset; then
- enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
+ enable_languages="${LANGUAGES}"
+ echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
else
enable_languages=all
fi
else
- if test x"${enable_languages}" = x; then
- echo configure.in: --enable-languages needs at least one argument 1>&2
+ if test x"${enable_languages}" = x ||
+ test x"${enable_languages}" = xyes;
+ then
+ echo configure.in: --enable-languages needs at least one language argument 1>&2
exit 1
fi
fi
+enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
+
subdirs=
for lang in ${srcdir}/gcc/*/config-lang.in ..
do