diff options
author | Manfred Hollstein <manfred@s-direktnet.de> | 1998-07-29 23:13:57 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-07-29 17:13:57 -0600 |
commit | 0ce065bdf62acf72d74fcb8fc26185d22316fa63 (patch) | |
tree | 4893de62697f4337dbe51c1a64ed540c64abe791 /configure | |
parent | 58600d24292ba1e772bb72720b3ef68de5c183fa (diff) | |
download | gcc-0ce065bdf62acf72d74fcb8fc26185d22316fa63.zip gcc-0ce065bdf62acf72d74fcb8fc26185d22316fa63.tar.gz gcc-0ce065bdf62acf72d74fcb8fc26185d22316fa63.tar.bz2 |
configure: Fix --without/--disable cases for gxx-include-dir.
1998-07-29 Manfred Hollstein <manfred@s-direktnet.de>
* configure: Fix --without/--disable cases for gxx-include-dir.
From-SVN: r21486
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -1240,14 +1240,29 @@ EOF # provide a proper gxx_include_dir to all subdirs. # Note, if you change the default, make sure to fix both here # and in the gcc subdirectory. - if test -z "${with_gxx_include_dir}"; then + # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. + gxx_include_dir= + if test -n "${with_gxx_include_dir}"; then + case "${with_gxx_include_dir}" in + yes ) + echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2 + exit 1 + ;; + no ) + ;; + * ) + gxx_include_dir=${with_gxx_include_dir} + ;; + esac + fi + if test x${gxx_include_dir} = x; then if test x${enable_version_specific_runtime_libs} = xyes; then echo gxx_include_dir = '${libsubdir}/include/g++' >> ${Makefile} else echo gxx_include_dir = '${prefix}/include/g++' >> ${Makefile} fi else - echo gxx_include_dir = ${with_gxx_include_dir} >> ${Makefile} + echo gxx_include_dir = ${gxx_include_dir} >> ${Makefile} fi # record if we want to build shared libs. |