summaryrefslogtreecommitdiff
path: root/config.if
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-16 16:00:43 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-16 16:00:43 +0000
commit5c371a2c428c633a34e258d26d353c864fbfcb80 (patch)
tree6c7c7624db8e7af85b0726a656553a1ed7dd163c /config.if
parent583003994c3b555cda89e4e4114aedb8f52be879 (diff)
downloadgcc-5c371a2c428c633a34e258d26d353c864fbfcb80.tar.gz
* config.if: Search libstdc++-v3/configure.in for INTERFACE,
when configured for libstdc++-v3. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36881 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config.if')
-rw-r--r--config.if11
1 files changed, 4 insertions, 7 deletions
diff --git a/config.if b/config.if
index 625a4077ec0..31c8551d00f 100644
--- a/config.if
+++ b/config.if
@@ -23,15 +23,12 @@ fi
if [ "${enable_libstdcxx_v3}" = "yes" ] ; then
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/'`
else
libstdcxx_srcdir=${if_topsrcdir}/libstdc++
-fi
-
-if [ -f ${libstdcxx_srcdir}/Makefile.in ]; then
-# We check libstdc++ for libstdcxx_interface.
-libstdcxx_interface=`grep "^INTERFACE" ${libstdcxx_srcdir}/Makefile.in | sed 's/INTERFACE[ ]*=[ ]*\(.*\)/\1/'`
-else
-libstdcxx_interface=
+ # We check libstdc++/Makefile.in for libstdcxx_interface.
+ libstdcxx_interface=`grep "^INTERFACE" ${libstdcxx_srcdir}/Makefile.in | sed 's/INTERFACE[ ]*=[ ]*\(.*\)/\1/'`
fi
if [ -f ${if_topsrcdir}/gcc/cp/Makefile.in ]; then