annotate m4/alloca.m4 @ 267:bec6d2480f08 2.6

Added add'l generated files for release
author lost
date Tue, 22 Dec 2009 05:33:32 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
267
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
1 # alloca.m4 serial 9
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
2 dnl Copyright (C) 2002-2004, 2006, 2007, 2009 Free Software Foundation, Inc.
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
6
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_ALLOCA],
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
8 [
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
9 dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57.
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
10 AC_REQUIRE([AC_PROG_CPP])
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
11 AC_REQUIRE([AC_PROG_EGREP])
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
12
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
13 AC_REQUIRE([AC_FUNC_ALLOCA])
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
14 if test $ac_cv_func_alloca_works = no; then
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
15 gl_PREREQ_ALLOCA
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
16 fi
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
17
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
18 # Define an additional variable used in the Makefile substitution.
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
19 if test $ac_cv_working_alloca_h = yes; then
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
20 AC_CACHE_CHECK([for alloca as a compiler built-in], [gl_cv_rpl_alloca], [
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
21 AC_EGREP_CPP([Need own alloca], [
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
22 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
23 Need own alloca
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
24 #endif
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
25 ], [gl_cv_rpl_alloca=yes], [gl_cv_rpl_alloca=no])
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
26 ])
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
27 if test $gl_cv_rpl_alloca = yes; then
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
28 dnl OK, alloca can be implemented through a compiler built-in.
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
29 AC_DEFINE([HAVE_ALLOCA], [1],
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
30 [Define to 1 if you have 'alloca' after including <alloca.h>,
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
31 a header that may be supplied by this distribution.])
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
32 ALLOCA_H=alloca.h
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
33 else
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
34 dnl alloca exists as a library function, i.e. it is slow and probably
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
35 dnl a memory leak. Don't define HAVE_ALLOCA in this case.
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
36 ALLOCA_H=
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
37 fi
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
38 else
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
39 ALLOCA_H=alloca.h
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
40 fi
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
41 AC_SUBST([ALLOCA_H])
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
42 ])
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
43
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
44 # Prerequisites of lib/alloca.c.
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
45 # STACK_DIRECTION is already handled by AC_FUNC_ALLOCA.
bec6d2480f08 Added add'l generated files for release
lost
parents:
diff changeset
46 AC_DEFUN([gl_PREREQ_ALLOCA], [:])