[libvirt] [PATCH] maint: avoid new automake warning about AM_PROG_CC_STDC

Jim Meyering jim at meyering.net
Sat May 26 09:25:23 UTC 2012


When I built libvirt recently, I saw a warning go by:
(with cutting edge automake-1.12a)

    configure.ac:83: warning: macro 'AM_PROG_CC_STDC' not found in library

This fixes it:

>From 8f66a7e7f12efa2a60754f06627e94d96030ac78 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Sat, 26 May 2012 11:21:47 +0200
Subject: [PATCH] maint: avoid new automake warning about AM_PROG_CC_STDC

* configure.ac (AM_PROG_CC_STDC): Stop using this macro.
It provokes warnings from newer automake and is superseded by
autoconf's AC_PROG_CC, which we're already using.
---
 configure.ac | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 5d06b47..54f51ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,7 +80,6 @@ dnl Checks for C compiler.
 AC_PROG_CC
 AC_PROG_INSTALL
 AC_PROG_CPP
-AM_PROG_CC_STDC

 gl_EARLY
 gl_INIT
--
1.7.10.2.565.gbd578b5




More information about the libvir-list mailing list