diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-12 16:25:07 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-12 16:25:07 +0000 |
commit | f1984c5732a8b17b8f085ed0befaeb2f443d001e (patch) | |
tree | 1d7bd4da2db9ec0fe7e900c36a30ca9e331db7ff /config | |
parent | 4ab0baa29f2bac6b659bbe58f1ea774e773a0e7b (diff) | |
download | gcc-f1984c5732a8b17b8f085ed0befaeb2f443d001e.tar.gz |
2008-05-12 Samuel Tardieu <sam@rfc1149.net>
Paolo Bonzini <bonzini@gnu.org>
PR ada/36001
* acx.m4: Add optional parameter to ACX_PROG_GNAT.
gcc:
2008-05-12 Samuel Tardieu <sam@rfc1149.net>
Paolo Bonzini <bonzini@gnu.org>
PR ada/36001
* Makefile.in: Substitute GNATMAKE and GNATBIND.
* configure.ac: Add call to ACX_PROG_GNAT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135220 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 6 | ||||
-rw-r--r-- | config/acx.m4 | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index 32c912682a6..92df0eb25a2 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,9 @@ +2008-05-12 Samuel Tardieu <sam@rfc1149.net> + Paolo Bonzini <bonzini@gnu.org> + + PR ada/36001 + * acx.m4: Add optional parameter to ACX_PROG_GNAT. + 2008-04-23 Paolo Bonzini <bonzini@gnu.org> * override.m4: Apply _AC_ARG_VALIDATE fix to all versions diff --git a/config/acx.m4 b/config/acx.m4 index d186a4ccccd..cea08b7204f 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -357,7 +357,8 @@ ac_c_preproc_warn_flag=yes])# AC_PROG_CPP_WERROR # Test for GNAT. # We require the gnatbind program, and a compiler driver that -# understands Ada. We use the user's CC setting, already found. +# understands Ada. We use the user's CC setting, already found, +# and possibly add $1 to the command-line parameters. # # Sets the shell variable have_gnat to yes or no as appropriate, and # substitutes GNATBIND and GNATMAKE. @@ -380,7 +381,7 @@ acx_cv_cc_gcc_supports_ada=no # 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` +errors=`(${CC} $1[]m4_ifval([$1], [ ])-c conftest.adb) 2>&1 || echo failure` if test x"$errors" = x && test -f conftest.$ac_objext; then acx_cv_cc_gcc_supports_ada=yes fi |