From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: Julius Naperkowski <j.nap@gmx.de>, git@vger.kernel.org
Subject: [PATCH] Provide pessimistic defaults for cross compilation tests.
Date: Mon, 19 Jan 2009 21:34:01 +0100 [thread overview]
Message-ID: <20090119203400.GA3539@ins.uni-bonn.de> (raw)
In-Reply-To: <20090116094110.GD25275@ins.uni-bonn.de>
In a cross compile setup, configure tests that run programs
cannot be executed; in that case, provide pessimistic default
values.
Bug reported by Julius Naperkowski.
---
> I can post a patch to add sane default settings for AC_RUN_IFELSE in
> cross compile setups, this weekend.
configure.ac | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 363547c..4a208d4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -360,6 +360,7 @@ AC_RUN_IFELSE(
else if (strcmp(buf, "12345"))
return 2;]])],
[ac_cv_c_c99_format=yes],
+ [ac_cv_c_c99_format=no],
[ac_cv_c_c99_format=no])
])
if test $ac_cv_c_c99_format = no; then
@@ -380,6 +381,7 @@ AC_RUN_IFELSE(
FILE *f = fopen(".", "r");
return f && fread(&c, 1, 1, f)]])],
[ac_cv_fread_reads_directories=no],
+ [ac_cv_fread_reads_directories=yes],
[ac_cv_fread_reads_directories=yes])
])
if test $ac_cv_fread_reads_directories = yes; then
@@ -414,6 +416,7 @@ AC_RUN_IFELSE(
if (snprintf(buf, 3, "%s", "12345") != 5
|| strcmp(buf, "12")) return 1]])],
[ac_cv_snprintf_returns_bogus=no],
+ [ac_cv_snprintf_returns_bogus=yes],
[ac_cv_snprintf_returns_bogus=yes])
])
if test $ac_cv_snprintf_returns_bogus = yes; then
--
1.6.1.137.g3d9e8
next prev parent reply other threads:[~2009-01-19 20:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-15 13:22 autoconf: C99 format check Julius Naperkowski
2009-01-16 9:41 ` Ralf Wildenhues
2009-01-19 20:34 ` Ralf Wildenhues [this message]
2009-01-19 23:39 ` [PATCH] Provide pessimistic defaults for cross compilation tests Johannes Schindelin
2009-01-20 2:49 ` Junio C Hamano
2009-01-20 6:59 ` Ralf Wildenhues
2009-01-20 6:50 ` Junio C Hamano
2009-01-20 7:04 ` Ralf Wildenhues
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=20090119203400.GA3539@ins.uni-bonn.de \
--to=ralf.wildenhues@gmx.de \
--cc=git@vger.kernel.org \
--cc=j.nap@gmx.de \
/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).