]> gcc.gnu.org Git - gcc.git/commitdiff
config.if (cxx_interface, [...]): Do not try to set these if the appropriate director...
authorJeff Law <law@gcc.gnu.org>
Sun, 18 Oct 1998 17:37:10 +0000 (11:37 -0600)
committerJeff Law <law@gcc.gnu.org>
Sun, 18 Oct 1998 17:37:10 +0000 (11:37 -0600)
P
        * config.if (cxx_interface, libstdcxx_interface): Do not try to set
        these if the appropriate directories and files to not exist.

From-SVN: r23166

config.if

index 795119e65e63b4f00aa56ee54518c4e253ad4ece..bcc026908d8764810d7b39784353ff315ac2142c 100644 (file)
--- a/config.if
+++ b/config.if
@@ -21,11 +21,19 @@ else
   if_topsrcdir=${top_srcdir}
 fi
 
+if [ -f ${if_topsrcdir}/libstdc++/Makefile.in ]; then
 # We check libstdc++ for libstdcxx_interface.
 libstdcxx_interface=`grep "^INTERFACE" ${if_topsrcdir}/libstdc++/Makefile.in | sed 's/INTERFACE[       ]*=[    ]*\(.*\)/\1/'`
+else
+libstdcxx_interface=
+fi
 
+if [ -f ${if_topsrcdir}/gcc/cp/Makefile.in ]; then
 # We check gcc/cp for cxx_interface.
 cxx_interface=`grep "^INTERFACE" ${if_topsrcdir}/gcc/cp/Makefile.in | sed 's/INTERFACE[        ]*=[    ]*\(.*\)/\1/'`
+else
+cxx_interface=
+fi
 
 # The trickiest part is libc_interface.
 if [ -z "${libc_interface}" ]
This page took 0.065308 seconds and 5 git commands to generate.