diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-06 06:48:16 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-06 06:48:16 +0000 |
commit | 84d8005c23d616ae628eb4914849554405b7c3ef (patch) | |
tree | 0583b6ece3366cf1121c1d59629218e38f50a7c2 /config.if | |
parent | 95e835c69b28bae6430b63f95475a06209cee451 (diff) | |
download | gcc-84d8005c23d616ae628eb4914849554405b7c3ef.tar.gz |
2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>
* configure.in (enable_libstdcxx_v3): Add.
(target_libs): Add bits here to switch between libstdc++-v2 and
libstdc++-v3.
* config.if: And this file too.
* Makefile.in: Add libstdc++-v3 targets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32963 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config.if')
-rw-r--r-- | config.if | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/config.if b/config.if index bcc026908d8..f8e086de2a8 100644 --- a/config.if +++ b/config.if @@ -21,9 +21,16 @@ else if_topsrcdir=${top_srcdir} fi -if [ -f ${if_topsrcdir}/libstdc++/Makefile.in ]; then +if [ "${enable_libstdcxx_v3}" = "yes" ] ; then + libstdcxx_srcdir=${if_topsrcdir}/libstdc++-v3 +else + libstdcxx_srcdir=${if_topsrcdir}/libstdc++ +fi + +echo "${libstdcxx_srcdir} is where" +if [ -f ${libstdcxx_srcdir}/Makefile.in ]; then # We check libstdc++ for libstdcxx_interface. -libstdcxx_interface=`grep "^INTERFACE" ${if_topsrcdir}/libstdc++/Makefile.in | sed 's/INTERFACE[ ]*=[ ]*\(.*\)/\1/'` +libstdcxx_interface=`grep "^INTERFACE" ${libstdcxx_srcdir}/Makefile.in | sed 's/INTERFACE[ ]*=[ ]*\(.*\)/\1/'` else libstdcxx_interface= fi |