lighttpd-1.4.31 fails to compile with automake-1.12.x
Hello, I'm using a 64bit Gentoo system. Compiling lighttpd-1.4.31 with automake-1.12.x fails with:
***** aclocal ***** ***** PWD: /var/tmp/portage/www-servers/lighttpd-1.4.31/work/lighttpd-1.4.31 ***** aclocal -I m4 configure.ac:42: error: automatic de-ANSI-fication support has been removed /usr/share/aclocal-1.12/protos.m4:12: AM_C_PROTOTYPES is expanded from... configure.ac:42: the top level autom4te-2.69: /usr/bin/m4 failed with exit status: 1 aclocal-1.12: error: autom4te failed with exit status: 1
Going back to automake-1.11.5 or automake-1.10.3 solved the issue.
PD: I found this solution on an Archlinux forum, so this is not only Gentoo dependant.
configure.ac: remove old stuff, add some new to fix warnings in automake 1.12 (fixes #2419, thx blino)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2851 152afb58-edef-0310-8abb-c4023f1b3aa9
#2 Updated by blino almost 5 years ago
Running automake is sometimes needed if the project-generated buildsystem files are incompatible with system components (for example because of different libtool versions).
Attached patches fixes this buildsystem issue with automake 1.12
#4 Updated by blino almost 5 years ago
Yes, this will work with older automake versions.
AM_C_PROTOTYPES was only useful for very ancient C compilers that were not ANSI C compliant.
See for example this commit for details about the macro:
The doc used to say:
The features described in this section are deprecated; you must
not use any of them in new code, and remove their use from older but
still maintained code: they will be withdrawn in the next major
This feature has been deprecated for so long that even this piece of doc has been removed now.
The other change is about adding a call to AM_PROG_AR, which is required by newer automake to build static libraries.
This AM_PROG_AR macro will be called only if it is defined, so this will work with older automake versions.
Also available in: Atom