diff options
author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2004-04-16 22:21:22 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2004-04-16 22:21:22 +0000 |
commit | 1db673ca875902e6d955adb95ae4f7c7df02b831 (patch) | |
tree | e26784641b35acc07eefb816694dfc93cc2132f1 /config/acx.m4 | |
parent | 6e97f1f9f03d77626a9d45cbcbfb5a36eeeef777 (diff) | |
download | gcc-1db673ca875902e6d955adb95ae4f7c7df02b831.zip gcc-1db673ca875902e6d955adb95ae4f7c7df02b831.tar.gz gcc-1db673ca875902e6d955adb95ae4f7c7df02b831.tar.bz2 |
configure: Regenerate.
* configure: Regenerate.
config:
* acx.m4 (ACX_PROG_GNAT): Check if ${CC} produces object file for
Ada compilation.
Fix acx_cv_cc_gcc_supports_ada spelling.
From-SVN: r80771
Diffstat (limited to 'config/acx.m4')
-rw-r--r-- | config/acx.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/acx.m4 b/config/acx.m4 index ab7f98a..9b40d4f 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -177,14 +177,17 @@ acx_cv_cc_gcc_supports_ada=no # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. # Therefore we must check for the error message as well as an # unsuccessful exit. +# Other compilers, like HP Tru64 UNIX cc, exit successfully when +# given a .adb file, but produce no object file. So we must check +# if an object file was really produced to guard against this. errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` -if test x"$errors" = x; then +if test x"$errors" = x && test -f conftest.$ac_objext; then acx_cv_cc_gcc_supports_ada=yes break fi rm -f conftest.*]) -if test x$GNATBIND != xno && test x$acx_cv_gcc_supports_ada != xno; then +if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then have_gnat=yes else have_gnat=no |