AC_FUNC_ALLOCA should never define a prototype on the BSDs. Bump revision.diff -r1.75 -r1.76 pkgsrc/devel/autoconf/Makefile
(joerg)
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.75 2010/07/24 20:46:16 tron Exp $ | 1 | # $NetBSD: Makefile,v 1.76 2010/07/29 15:49:36 joerg Exp $ | |
2 | 2 | |||
3 | DISTNAME= autoconf-2.65 | 3 | DISTNAME= autoconf-2.65 | |
4 | PKGREVISION= 1 | 4 | PKGREVISION= 2 | |
5 | CATEGORIES= devel | 5 | CATEGORIES= devel | |
6 | MASTER_SITES= ${MASTER_SITE_GNU:=autoconf/} | 6 | MASTER_SITES= ${MASTER_SITE_GNU:=autoconf/} | |
7 | 7 | |||
8 | MAINTAINER= wiz@NetBSD.org | 8 | MAINTAINER= wiz@NetBSD.org | |
9 | HOMEPAGE= http://www.gnu.org/software/autoconf/autoconf.html | 9 | HOMEPAGE= http://www.gnu.org/software/autoconf/autoconf.html | |
10 | COMMENT= Generates automatic source code configuration scripts | 10 | COMMENT= Generates automatic source code configuration scripts | |
11 | LICENSE= gnu-gpl-v3 AND gnu-fdl-v1.3 | 11 | LICENSE= gnu-gpl-v3 AND gnu-fdl-v1.3 | |
12 | 12 | |||
13 | # XXX: needs m4>1.4.6; wants m4>1.4.13 | 13 | # XXX: needs m4>1.4.6; wants m4>1.4.13 | |
14 | USE_TOOLS+= gm4:run perl:run | 14 | USE_TOOLS+= gm4:run perl:run | |
15 | 15 | |||
16 | # The next line is for conflicts with old versions of this package, | 16 | # The next line is for conflicts with old versions of this package, | |
17 | # which had autoconf-devel as PKGNAME. | 17 | # which had autoconf-devel as PKGNAME. |
@@ -1,5 +1,6 @@ | @@ -1,5 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.23 2010/07/24 20:46:16 tron Exp $ | 1 | $NetBSD: distinfo,v 1.24 2010/07/29 15:49:36 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (autoconf-2.65.tar.gz) = ae9e1ab046822007f25c88e1d8f2166e065da8c2 | 3 | SHA1 (autoconf-2.65.tar.gz) = ae9e1ab046822007f25c88e1d8f2166e065da8c2 | |
4 | RMD160 (autoconf-2.65.tar.gz) = 67cf709b61290b47255ccdb2c3113bcd04c42ecd | 4 | RMD160 (autoconf-2.65.tar.gz) = 67cf709b61290b47255ccdb2c3113bcd04c42ecd | |
5 | Size (autoconf-2.65.tar.gz) = 1738880 bytes | 5 | Size (autoconf-2.65.tar.gz) = 1738880 bytes | |
6 | SHA1 (patch-aa) = 481aec3f9d8c4b523ff27db50fccf6d219f36ffe |
$NetBSD: patch-aa,v 1.11 2010/07/29 15:49:36 joerg Exp $
Do not fall through to the implicit prototype as it conflicts with
stdlib.h.
--- lib/autoconf/functions.m4.orig 2010-07-29 15:21:52.000000000 +0000
+++ lib/autoconf/functions.m4
@@ -369,6 +369,8 @@ AC_CACHE_CHECK([for alloca], ac_cv_func_
# ifdef _MSC_VER
# include <malloc.h>
# define alloca _alloca
+# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
+# include <stdlib.h>
# else
# ifdef HAVE_ALLOCA_H
# include <alloca.h>