aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-01 13:54:10 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-01 13:54:10 +0300
commit5906ff8971e683deb35ee0beea1425aa93aeb499 (patch)
treebc1b6346ba056d704f8cb44f46be95013958009d
parent3f39626191970d57a8ad406b72474d565627b043 (diff)
downloadgrecs-5906ff8971e683deb35ee0beea1425aa93aeb499.tar.gz
grecs-5906ff8971e683deb35ee0beea1425aa93aeb499.tar.bz2
Minor changes
* am/grecs.m4 (GRECS_SETUP): Call AC_PROG_YACC and AM_PROG_LEX. * src/grecs.h: Add a missing prototype.
-rw-r--r--am/grecs.m420
-rw-r--r--src/grecs.h1
2 files changed, 20 insertions, 1 deletions
diff --git a/am/grecs.m4 b/am/grecs.m4
index 0b28604..8d046f5 100644
--- a/am/grecs.m4
+++ b/am/grecs.m4
@@ -49,8 +49,26 @@ AC_DEFUN([_GRECS_OPTION_SWITCH],
AC_DEFUN([_GRECS_SET_OPTIONS],
[m4_foreach_w([_GRECS_Option], [$1], [_GRECS_SET_OPTION(_GRECS_Option)])])
-# GRECS_SETUP([no-preproc std-pp-setup pp-setup-option],[pp-setup-file])
+# GRECS_SETUP([OPTIONS],[pp-setup-file])
+#
+# Options are:
+# no-preproc Disable the use of preprocessor.
+# std-pp-setup Install standard pp-setup file.
+# pp-setup-option Add the --with-pp-setup-file option to the
+# configuration file. The option allows user to
+# control whether the pp-setup file is installed.
+#
+# The pp-setup-file argument supplies the pathname of the preprocessor
+# setup file in the source tree. It is ignored if std-pp-setup option is
+# given.
+#
+# If neither std-pp-setup option, nor pp-setup-file argument are supplied,
+# no preprocessor setup file is installed.
+
AC_DEFUN([GRECS_SETUP],[
+ AC_PROG_YACC
+ AM_PROG_LEX
+
_GRECS_SET_OPTIONS([$1])
# **********************
# Preprocessor
diff --git a/src/grecs.h b/src/grecs.h
index 1273c7d..99c0453 100644
--- a/src/grecs.h
+++ b/src/grecs.h
@@ -131,6 +131,7 @@ extern void (*grecs_alloc_die_fun) (void);
void *grecs_malloc(size_t size);
void *grecs_zalloc(size_t size);
+void *grecs_calloc(size_t nmemb, size_t size);
void *grecs_realloc(void *ptr, size_t size);
void grecs_alloc_die(void);
char *grecs_strdup(const char *str);

Return to:

Send suggestions and report system problems to the System administrator.