diff options
author | Mumit Khan <khan@xraylith.wisc.edu> | 1999-03-24 21:44:48 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-03-24 14:44:48 -0700 |
commit | 5e34b217d19381fb4267c21c45d87ed4d1cad410 (patch) | |
tree | e3ffd81d8f175601007a2ca17526e2f320c639c0 | |
parent | 763ecbbc61232526c398d9b866f5e2718e3eecae (diff) | |
download | gcc-5e34b217d19381fb4267c21c45d87ed4d1cad410.zip gcc-5e34b217d19381fb4267c21c45d87ed4d1cad410.tar.gz gcc-5e34b217d19381fb4267c21c45d87ed4d1cad410.tar.bz2 |
configure.in (EXEEXT): Define.
Wed Mar 24 22:36:45 1999 Mumit Khan <khan@xraylith.wisc.edu>
* configure.in (EXEEXT): Define.
(compiler_name): Use.
From-SVN: r25951
-rw-r--r-- | libstdc++/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++/configure.in | 21 |
2 files changed, 23 insertions, 3 deletions
diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog index df34a07..ea3010d 100644 --- a/libstdc++/ChangeLog +++ b/libstdc++/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 24 22:36:45 1999 Mumit Khan <khan@xraylith.wisc.edu> + + * configure.in (EXEEXT): Define. + (compiler_name): Use. + Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * configure.in: Add mh-*pic handling for alpha, arm, powerpc diff --git a/libstdc++/configure.in b/libstdc++/configure.in index 0163fb8..143f6ba 100644 --- a/libstdc++/configure.in +++ b/libstdc++/configure.in @@ -2,13 +2,28 @@ # necessary for a configure script to process the program in # this directory. For more information, look at ../configure. -# If the language specific compiler does not exist, but the "gcc" directory does, -# we do not build anything. Note, $r is set by the top-level Makefile. +# find a possible extension of the just-built C++ compiler. Note that this +# is not the only choice, taking into cross and canadian cross into +# account, and we need to search for with and without the extension. +case "${host_alias}" in +*cygwin* | *mingw32*) + EXEEXT=.exe + ;; +*) + EXEEXT= + ;; +esac + +# If the language specific compiler does not exist, but the "gcc" directory +# does, we do not build anything. Note, $r is set by the top-level Makefile. +# Note that when we look for the compiler, we search both with and without +# extension to handle cross and canadian cross builds. compiler_name=cc1plus rm -f skip-this-dir if test -n "$r"; then if test -d "$r"/gcc; then - if test -f "$r"/gcc/$compiler_name; then + if test -f "$r"/gcc/$compiler_name \ + || test -f "$r"/gcc/$compiler_name$EXEEXT; then true else echo "rm -f multilib.out" > skip-this-dir |