X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Falloca;h=5719b4b5933ffab29cdc001912077b8f9d6a6c10;hb=02d97fa1f7a73756747951b74de8655d9f11b509;hp=4d32288ce2982e8038929ddf1edf0a98731964b2;hpb=740e9a30efda7c5323b31860c249b2d9f778209c;p=gnulib.git diff --git a/modules/alloca b/modules/alloca index 4d32288ce..5719b4b59 100644 --- a/modules/alloca +++ b/modules/alloca @@ -1,6 +1,8 @@ Description: +Memory allocation on the stack. Files: +lib/alloca_.h lib/alloca.c m4/alloca.m4 @@ -11,36 +13,19 @@ configure.ac: gl_FUNC_ALLOCA Makefile.am: +BUILT_SOURCES += $(ALLOCA_H) +EXTRA_DIST += alloca_.h + +# We need the following in order to create an when the system +# doesn't have one that works with the given compiler. +all-local $(lib_OBJECTS): $(ALLOCA_H) +alloca.h: alloca_.h + cp $(srcdir)/alloca_.h $@-t + mv $@-t $@ +MOSTLYCLEANFILES += alloca.h alloca.h-t Include: -#ifdef __GNUC__ -# ifndef alloca -# define alloca __builtin_alloca -# endif -#else -# ifdef _MSC_VER -# include -# define alloca _alloca -# else -# if HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifdef __hpux /* This section must match that of bison generated files. */ -# ifdef __cplusplus -extern "C" void *alloca (unsigned int); -# else /* not __cplusplus */ -void *alloca (); -# endif /* not __cplusplus */ -# else /* not __hpux */ -# ifndef alloca -char *alloca (); -# endif -# endif /* __hpux */ -# endif -# endif -# endif -#endif +#include +Maintainer: +bug-gnulib@gnu.org