[glib] Don't run system("touch conf.glibtest)" in the AM_PATH_GLIB_2_0 macro
- From: Tor Lillqvist <tml src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib] Don't run system("touch conf.glibtest)" in the AM_PATH_GLIB_2_0 macro
- Date: Tue, 3 Nov 2009 16:45:59 +0000 (UTC)
commit 0d6b1ab42a6a9026743f197f03264afdbac7fb7b
Author: Paolo Bonzini <bonzini gnu org>
Date: Tue Nov 3 18:38:58 2009 +0200
Don't run system("touch conf.glibtest)" in the AM_PATH_GLIB_2_0 macro
Just use the C library instead to create the file. Helps building
using Wine. Not that I think we want to endorse that, but accepting
this minimal patch doesn't hurt. From bug #590016.
Signed-off-by: Tor Lillqvist <tml iki fi>
m4macros/glib-2.0.m4 | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/m4macros/glib-2.0.m4 b/m4macros/glib-2.0.m4
index c620123..a13eeec 100644
--- a/m4macros/glib-2.0.m4
+++ b/m4macros/glib-2.0.m4
@@ -93,9 +93,8 @@ main ()
{
int major, minor, micro;
char *tmp_version;
- int ignored;
- ignored = system ("touch conf.glibtest");
+ fclose (fopen ("conf.glibtest", "w"));
/* HP/UX 9 (% #!) writes to sscanf strings */
tmp_version = g_strdup("$min_glib_version");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]