]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
AC_PROG_CC: also try $CC -version, for cl6x compiler
authorEric Blake <eblake@redhat.com>
Thu, 12 Sep 2013 15:23:35 +0000 (09:23 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 12 Sep 2013 15:26:25 +0000 (09:26 -0600)
Anaïs Bouque reported that the cl6x compiler only understands -version:
https://lists.gnu.org/archive/html/bug-autoconf/2013-07/msg00003.html

* c.m4 (AC_PROG_CC): Add another version probe.
* THANKS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
THANKS
lib/autoconf/c.m4

diff --git a/THANKS b/THANKS
index f41f16c0215344bbd403593209977d1fded52031..7f440aea7b958af17f7f73291ed978bd80c801f8 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -29,6 +29,7 @@ Alfred G. de Wijn           dwijn@iluvatar.eu.org
 Alfred M. Szmidt            ams@gnu.org
 Allan Caffee                allan.caffee@gmail.com
 Allan Clark                 allanc@chickenandporn.com
+Anaïs Bouque                anais.bouque@fr.thalesgroup.com
 Anders Kaseorg              andersk@MIT.EDU
 Andreas Buening             andreas.buening@nexgo.de
 Andreas Jaeger              aj@suse.de
index 53fec833fab992bae6a1a4576148ac5bee7c04d5..25780f9cf180c07279f4228245b0c081922e0f99 100644 (file)
@@ -465,7 +465,7 @@ test -z "$CC" && AC_MSG_FAILURE([no acceptable C compiler found in \$PATH])
 _AS_ECHO_LOG([checking for _AC_LANG compiler version])
 set X $ac_compile
 ac_compiler=$[2]
-for ac_option in --version -v -V -qversion; do
+for ac_option in --version -v -V -qversion -version; do
   _AC_DO_LIMIT([$ac_compiler $ac_option >&AS_MESSAGE_LOG_FD])
 done