Re: problem with ./configure
Eric Blake <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.patches,gmane.comp.sysutils.autoconf.bugs |
|---|---|
| Organization | Red Hat, Inc. |
| Message-ID | <[email protected]> |
On 07/19/2013 07:03 AM, Eric Blake wrote: > On 07/19/2013 06:55 AM, BOUQUE Anais wrote: >> Hello, >> I use autoreconf and configure, and I have a problem using configure : I use the cl6x compiler, (./configure --host=c6x CC=cl6x) but when configure does "cl6x -version" or "cl6x-v" or "cl6x -V", there is an error, because the correct option to have the version of cl6x is "cl6x -version". > > Well, maybe we should tweak autoconf to add '-version' to the list of > options attempted. Revisiting this mail; I'm pushing the following patch (plus a change to the THANKS file, not shown here, to make life harder for spam harvesters): From e5e99e3587c06b6d67c352b08d70a10329844bac Mon Sep 17 00:00:00 2001 From: Eric Blake <[email protected]> Date: Thu, 12 Sep 2013 09:23:35 -0600 Subject: [PATCH] AC_PROG_CC: also try $CC -version, for cl6x compiler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 <[email protected]> --- lib/autoconf/c.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 53fec83..25780f9 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -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 -- 1.8.3.1 -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
(application/pgp-signature, 621 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJSMdz8AAoJEKeha0olJ0NqECUH/RBI/5rF4LfZPpWSOqGG758E kvN7Y3pc2JAZ9INT569QYTFiujvVejgEnYkR5cRrWWeMWPwbO6/i3FD/1CTrQmhB Cwv5K5Rn34W0aqUoiVSyNx5nszNY6Ee1ithAe7Q7cIyI8fnEXsv0sLxfN6/pv+OH xrrvCUpkpnmpaxcDs73AnempZwwxdyiJ62S8EFXBjxsIaq9X/+EosAd5+8K4aBXq zozRcZTP7l62b3BsrLk7JfUvsJ4yMGkiSXF9Zsh7qRO/GWK09kZlF0ANjo8zkCqI 3OXUmST/Yp5QqyODYN36MXDhOYAol43vavwYqtTX4NhYesMe7Moq/LV+kFOjX1A= =5b1w -----END PGP SIGNATURE-----