Commit e2187d3b by Benjamin Kosnik Committed by Benjamin Kosnik

configure.in (gcc_gxx_include_dir): Simplify.


2000-12-18  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in (gcc_gxx_include_dir): Simplify.
	(libstdcxx_incdir): Export.
	* configure: Regenerate.
	* Makefile.in (PREPROCESSOR_DEFINES): Add in
	GPLUSPLUS_TOOL_INCLUDE_DIR bits here..
	(libstdcxx_incdir): Add.
	* cppdefault.c (GPLUSPLUS_TOOL_INCLUDE_DIR): Add search path.

From-SVN: r38356
parent cc330df9
2000-12-18 Benjamin Kosnik <bkoz@redhat.com>
* configure.in (gcc_gxx_include_dir): Simplify.
(libstdcxx_incdir): Export.
* configure: Regenerate.
* Makefile.in (PREPROCESSOR_DEFINES): Add in
GPLUSPLUS_TOOL_INCLUDE_DIR bits here..
(libstdcxx_incdir): Add.
* cppdefault.c (GPLUSPLUS_TOOL_INCLUDE_DIR): Add search path.
2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk> 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
* c-lex.c (lex_lineno): Remove. * c-lex.c (lex_lineno): Remove.
......
...@@ -314,8 +314,10 @@ dollar = @dollar@ ...@@ -314,8 +314,10 @@ dollar = @dollar@
gcc_tooldir = @gcc_tooldir@ gcc_tooldir = @gcc_tooldir@
# Since tooldir does not exist at build-time, use -B$(build_tooldir)/bin/ # Since tooldir does not exist at build-time, use -B$(build_tooldir)/bin/
build_tooldir = $(exec_prefix)/$(target_alias) build_tooldir = $(exec_prefix)/$(target_alias)
# Directory in which the compiler finds g++ includes. # Directory in which the compiler finds target-independent g++ includes.
gcc_gxx_include_dir= @gcc_gxx_include_dir@ gcc_gxx_include_dir = @gcc_gxx_include_dir@
# Directory where the compiler finds target-dependent files.
libstdcxx_incdir = @libstdcxx_incdir@
# Directory to search for site-specific includes. # Directory to search for site-specific includes.
includedir = $(local_prefix)/include includedir = $(local_prefix)/include
# assertdir is overridden in cross-make. # assertdir is overridden in cross-make.
...@@ -1866,6 +1868,7 @@ intl.all intl.install intl.uninstall \ ...@@ -1866,6 +1868,7 @@ intl.all intl.install intl.uninstall \
PREPROCESSOR_DEFINES = \ PREPROCESSOR_DEFINES = \
-DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
-DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \
-DGPLUSPLUS_TOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include/$(libstdcxx_incdir)\" \
-DLOCAL_INCLUDE_DIR=\"$(includedir)\" \ -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \
-DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \ -DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \
-DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\"
......
...@@ -188,7 +188,7 @@ if test x${gcc_gxx_include_dir} = x; then ...@@ -188,7 +188,7 @@ if test x${gcc_gxx_include_dir} = x; then
else else
topsrcdir=${srcdir}/.. . ${srcdir}/../config.if topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
changequote(<<, >>)dnl changequote(<<, >>)dnl
gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface} gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
changequote([, ])dnl changequote([, ])dnl
fi fi
fi fi
...@@ -1820,6 +1820,7 @@ AC_SUBST(extra_programs) ...@@ -1820,6 +1820,7 @@ AC_SUBST(extra_programs)
AC_SUBST(float_h_file) AC_SUBST(float_h_file)
AC_SUBST(gcc_config_arguments) AC_SUBST(gcc_config_arguments)
AC_SUBST(gcc_gxx_include_dir) AC_SUBST(gcc_gxx_include_dir)
AC_SUBST(libstdcxx_incdir)
AC_SUBST(gcc_version) AC_SUBST(gcc_version)
AC_SUBST(gcc_version_full) AC_SUBST(gcc_version_full)
AC_SUBST(gcc_version_trigger) AC_SUBST(gcc_version_trigger)
......
...@@ -32,9 +32,13 @@ const struct default_include cpp_include_defaults[] ...@@ -32,9 +32,13 @@ const struct default_include cpp_include_defaults[]
#else #else
= { = {
#ifdef GPLUSPLUS_INCLUDE_DIR #ifdef GPLUSPLUS_INCLUDE_DIR
/* Pick up GNU C++ specific include files. */ /* Pick up GNU C++ generic include files. */
{ GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 }, { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 },
#endif #endif
#ifdef GPLUSPLUS_TOOL_INCLUDE_DIR
/* Pick up GNU C++ target-dependent include files. */
{ GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1 },
#endif
#ifdef LOCAL_INCLUDE_DIR #ifdef LOCAL_INCLUDE_DIR
/* /usr/local/include comes before the fixincluded header files. */ /* /usr/local/include comes before the fixincluded header files. */
{ LOCAL_INCLUDE_DIR, 0, 0, 1 }, { LOCAL_INCLUDE_DIR, 0, 0, 1 },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment