diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-24 21:44:23 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-24 21:44:23 +0000 |
commit | dec967e6fd5c2d7d45b09abd97cd52b4df01071b (patch) | |
tree | c543634dc6bfb6d1fc91ca854669625a2dd1ea40 /libio | |
parent | 811bbd2bcb78b018aa2089748fa715aa8b9bb97b (diff) | |
download | gcc-dec967e6fd5c2d7d45b09abd97cd52b4df01071b.tar.gz |
0
* configure.in (EXEEXT): Define.
(compiler_name): Use.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25950 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio')
-rw-r--r-- | libio/configure.in | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/libio/configure.in b/libio/configure.in index 7e0a971f746..c5243bda235 100644 --- a/libio/configure.in +++ b/libio/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 |