diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-27 10:19:53 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-27 10:19:53 +0000 |
commit | 531034c673e9a705301ec49e143da7189cb3fb5f (patch) | |
tree | 2f334bee5a6bc82eca755cb8a8c3a1b50e69f823 /config.if | |
parent | ec497253942861cc6d2d52f86ff287c3a1fda2ed (diff) | |
download | gcc-531034c673e9a705301ec49e143da7189cb3fb5f.tar.gz |
2002-06-26 Benjamin Kosnik <bkoz@redhat.com>
* config.if (libstdcxx_incdir): Version C++ headers.
(cxx_incdir): Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55029 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config.if')
-rw-r--r-- | config.if | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/config.if b/config.if index e8978cae664..aa35a3f8140 100644 --- a/config.if +++ b/config.if @@ -2,9 +2,8 @@ # Don't call it directly. This shell script fragment is called to # determine: # -# 1. libstcxx_interface: the interface name for libstdc++. -# 2. cxx_interface: the interface name for c++. -# 3. libc_interface: the interface name for libc. +# 1. libstcxx_incdir: the interface name for libstdc++. +# 2. libc_interface: the interface name for libc. # # Get the top level src dir. @@ -21,12 +20,12 @@ else if_topsrcdir=${top_srcdir} fi -libstdcxx_srcdir=${if_topsrcdir}/libstdc++-v3 -# We check libstdc++-v3/configure.in for libstdcxx_interface. -libstdcxx_interface=`grep "^INTERFACE" ${libstdcxx_srcdir}/configure.in | sed 's/INTERFACE[ ]*=[ ]*\(.*\)/\1/'` -libstdcxx_incdir=g++-${libstdcxx_interface} -# Used to version libstdc++ shared libraries -cxx_interface=2 +# Set libstdcxx_incdir. +# This is the same as gcc/configure.in and libstdc++-v3/acinclude.m4. +gcc_version_trigger=${if_topsrcdir}/gcc/version.c +gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'` +gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'` +libstdcxx_incdir=c++/${gcc_version} # The trickiest part is libc_interface. if [ -z "${libc_interface}" ] |