summaryrefslogtreecommitdiff
path: root/config/acx.m4
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2008-05-12 16:25:40 +0000
committerPaolo Bonzini <bonzini@gnu.org>2008-05-12 16:25:40 +0000
commita113bc7919d33053142f1c57d495d87266f3bb0e (patch)
treed49516b9b54f9007274041608192d1bbab2c0e1f /config/acx.m4
parent539560c27f3c404a7a5e3c703a83b402b9ea6688 (diff)
downloadgdb-a113bc7919d33053142f1c57d495d87266f3bb0e.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.
Diffstat (limited to 'config/acx.m4')
-rw-r--r--config/acx.m45
1 files changed, 3 insertions, 2 deletions
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