This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-971201 top-level configure mishandles --with-gxx-include-dir
- To: egcs-bugs at cygnus dot com
- Subject: egcs-971201 top-level configure mishandles --with-gxx-include-dir
- From: "Loren J. Rittle" <rittle at supra dot rsch dot comm dot mot dot com>
- Date: Tue, 2 Dec 1997 21:10:03 -0600
- Reply-to: rittle at comm dot mot dot com
Cygnus configure parses --with options provided on the command line
differently than GNU configure.
If the command line argument is xxx, then Cygnus configure places
with_xxx into the environment whereas GNU configure places xxx into
the environment.
GNU configure is used within the gcc subdirectory. Cygnus configure is
used within the top-level.
The following patch to the top-level configure program fixes the
handling of the --with-gxx-include-dir option (which appears to
have been written based upon GNU configure rules).
S rittle@supra; diff -c configure~ configure
*** configure~ Mon Dec 1 16:31:55 1997
--- configure Tue Dec 2 20:47:14 1997
***************
*** 1174,1183 ****
# 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 "${gxx_include_dir}"; then
echo gxx_include_dir = '${prefix}/include/g++' >> ${Makefile}
else
! echo gxx_include_dir = ${gxx_include_dir} >> ${Makefile}
fi
# reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
--- 1174,1183 ----
# 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
echo gxx_include_dir = '${prefix}/include/g++' >> ${Makefile}
else
! echo gxx_include_dir = ${with_gxx_include_dir} >> ${Makefile}
fi
# reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,