diff options
author | timjosling <timjosling@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-09 23:33:49 +0000 |
---|---|---|
committer | timjosling <timjosling@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-09 23:33:49 +0000 |
commit | c2f7da0f025346d9a9bb49a82994a0ea95a74f0a (patch) | |
tree | 12d9ee16fb6e73a3035502e975b7e43759c01afc /gcc/configure | |
parent | 3443e1be6edf55f512b466b33024178581eb1bbd (diff) | |
download | gcc-c2f7da0f025346d9a9bb49a82994a0ea95a74f0a.tar.gz |
Make configure.in check that languages specified were found.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54418 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/gcc/configure b/gcc/configure index bde5348a7a3..2d18e737ac2 100755 --- a/gcc/configure +++ b/gcc/configure @@ -7913,8 +7913,7 @@ if test x"${enable_languages+set}" != xset; then enable_languages=all fi else - if test x"${enable_languages}" = x || - test x"${enable_languages}" = xyes; + if test x"${enable_languages}" = x; then { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; } fi @@ -7952,6 +7951,7 @@ do esac done +remaining_languages=${enable_languages} subdirs= for lang in ${srcdir}/*/config-lang.in .. do @@ -7976,6 +7976,7 @@ do *) add_this_lang=no ;; esac if test x"${add_this_lang}" = xyes; then + remaining_languages=`echo $remaining_languages | sed -e s/${lang_alias}//g` case $lang in ${srcdir}/ada/config-lang.in) if test x$have_gnat = xyes ; then @@ -7991,6 +7992,14 @@ do esac done +remaining_languages_check=`echo $remaining_languages | sed -e 's/,//g' -e 's/^c$//'g` +if test "xxx$remaining_languages_check" != "xxx" -a "xxx$remaining_languages_check" != "xxxall" ; then + remaining_languages_clean=`echo $remaining_languages | sed -e 's/^c,//' -e 's/,c,/,/' -e 's/,c$//' -e 's/^c$//' -e 's/,,*/,/g' -e 's/^,//g' -e 's/,$//g' ` + echo "Language alias(es) not found: $remaining_languages_clean" + echo "Refer to the configure instructions in the doc directory" + exit 1 +fi + # Make gthr-default.h if we have a thread file. gthread_flags= if test $thread_file != single; then @@ -8035,7 +8044,7 @@ fi echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:8039: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo "configure:8048: checking whether to enable maintainer-specific portions of Makefiles" >&5 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval="$enable_maintainer_mode" |