qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Gerlich <olig9@gmx.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [Patch] configure: check if specified compiler exists
Date: Sat, 22 Apr 2006 14:45:15 +0200	[thread overview]
Message-ID: <444A255B.7060507@gmx.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 736 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

the attached patch adds a check to configure to see whether the compiler
really exists. If configure is called with --cc , but the given compiler
doesn't exist, configure currently fails without giving a good reason.

(In my case I ran "./configure --cc=gcc-3.4" but gcc-3.4 doesn't exist
on the system; configure then told me that it couldn't find SDL, without
hinting at the real reason. The little notice that the endian check
failed as well escaped my eyes :-)

Regards,
Oliver Gerlich
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFESiVaTFOM6DcNJ6cRAo0uAJ0TJF7sFxTg54uh6yHUt83CsusIugCg0GX6
AmFu4u1SAAT3DIl3vwmIvfY=
=3dbm
-----END PGP SIGNATURE-----

[-- Attachment #2: check-cc.patch --]
[-- Type: text/x-patch, Size: 347 bytes --]

--- configure-old	2006-04-17 15:57:12.000000000 +0200
+++ configure	2006-04-22 14:37:43.000000000 +0200
@@ -283,6 +283,11 @@
 ar="${cross_prefix}${ar}"
 strip="${cross_prefix}${strip}"
 
+if [ -z `which $cc` ] ; then
+    echo "Compiler $cc could not be found"
+    exit
+fi
+
 if test "$mingw32" = "yes" ; then
     linux="no"
     EXESUF=".exe"

                 reply	other threads:[~2006-04-22 12:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=444A255B.7060507@gmx.de \
    --to=olig9@gmx.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).