From 1db673ca875902e6d955adb95ae4f7c7df02b831 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Fri, 16 Apr 2004 22:21:22 +0000 Subject: 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 --- config/acx.m4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config/acx.m4') 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 -- cgit v1.1