View Issue Details

IDProjectCategoryView StatusLast Update
0002871libmicrohttpdbuild systempublic2013-05-06 12:50
Reporterscottjg Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
OSMac OS XOS Version10.8.3 
Product Version0.9.26 
Target Version0.9.27Fixed in Version0.9.27 
Summary0002871: configure.ac:26: error: 'AM_CONFIG_HEADER': this macro is obsolete.
DescriptionWhen running `autoreconf -fi` on Mac OS X with libtool-2.4.2, autoconf-2.69, and automake-1.13.1, I get the following errror and the compilation fails:
configure.ac:26: error: 'AM_CONFIG_HEADER': this macro is obsolete.
    You should use the 'AC_CONFIG_HEADERS' macro instead.
/opt/homebrew/Cellar/automake/1.13.1/share/aclocal-1.13/obsolete-err.m4:14: AM_CONFIG_HEADER is expanded from...
configure.ac:26: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
Steps To Reproduceautoreconf -fi
Additional InformationI've attached a patch against HEAD which fixes the issue. I've tested it on Mac OS X 10.8.3 (with autotools versions mentioned above) and on Debian Squeeze with libtool 2.2.6b-2, autoconf 2.67-2, automake 1:1.11.1-1+squeeze1.
TagsNo tags attached.
Attached Files
autoconf-fix.patch (611 bytes)   
commit f43ac7afa0bbefb3c93a80d672043025b16c1629
Author: Scott J. Goldman <scottjg@github.com>
Date:   Wed Apr 24 20:08:42 2013 -0700

    Fix `autoconf -fi` build on newer autotools
    
    Remove use of deprecated AM_CONFIG_HEADER macro.

diff --git a/configure.ac b/configure.ac
index 553a25a..12287b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
 AC_PREREQ(2.57)
 AC_INIT([libmicrohttpd], [0.9.26],[libmicrohttpd@gnu.org])
 AM_INIT_AUTOMAKE([silent-rules])
-AM_CONFIG_HEADER([MHD_config.h])
+AC_CONFIG_HEADERS([MHD_config.h])
 AC_CONFIG_MACRO_DIR([m4])
 AH_TOP([#define _GNU_SOURCE  1])
 
autoconf-fix.patch (611 bytes)   

Activities

Christian Grothoff

2013-04-25 10:10

manager   ~0007064

Fixed in SVN 26989 as suggested.

Issue History

Date Modified Username Field Change
2013-04-25 07:17 scottjg New Issue
2013-04-25 07:17 scottjg File Added: autoconf-fix.patch
2013-04-25 10:10 Christian Grothoff Note Added: 0007064
2013-04-25 10:10 Christian Grothoff Status new => resolved
2013-04-25 10:10 Christian Grothoff Fixed in Version => 0.9.27
2013-04-25 10:10 Christian Grothoff Resolution open => fixed
2013-04-25 10:10 Christian Grothoff Assigned To => Christian Grothoff
2013-04-25 10:10 Christian Grothoff Target Version => 0.9.27
2013-05-06 12:50 Christian Grothoff Status resolved => closed