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
This commit is contained in:
Manfred Hollstein 1998-07-29 23:13:57 +00:00 committed by Jeff Law
parent 58600d2429
commit 0ce065bdf6
2 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,7 @@
1998-07-29 Manfred Hollstein <manfred@s-direktnet.de>
* configure: Fix --without/--disable cases for gxx-include-dir.
Sat Jul 18 14:32:43 CDT 1998 Robert Lipe <robertl@dgii.com>
* config.guess: (*-pc-sco3.2v5) Add detection for Pentium II.

19
configure vendored
View File

@ -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.