aboutsummaryrefslogtreecommitdiff
path: root/am/grecs.m4
diff options
context:
space:
mode:
Diffstat (limited to 'am/grecs.m4')
-rw-r--r--am/grecs.m421
1 files changed, 16 insertions, 5 deletions
diff --git a/am/grecs.m4 b/am/grecs.m4
index 47c9867..5fc1819 100644
--- a/am/grecs.m4
+++ b/am/grecs.m4
@@ -49,14 +49,15 @@ AC_DEFUN([_GRECS_OPTION_SWITCH],
49AC_DEFUN([_GRECS_SET_OPTIONS], 49AC_DEFUN([_GRECS_SET_OPTIONS],
50[m4_foreach_w([_GRECS_Option], [$1], [_GRECS_SET_OPTION(_GRECS_Option)])]) 50[m4_foreach_w([_GRECS_Option], [$1], [_GRECS_SET_OPTION(_GRECS_Option)])])
51 51
52# GRECS_SETUP([OPTIONS],[pp-setup-file]) 52# GRECS_SETUP([dir],[OPTIONS],[pp-setup-file])
53# 53# dir - Directory in the source tree where grecs has been cloned.
54# Options are: 54# OPTIONS are:
55# no-preproc Disable the use of preprocessor. 55# no-preproc Disable the use of preprocessor.
56# std-pp-setup Install standard pp-setup file. 56# std-pp-setup Install standard pp-setup file.
57# pp-setup-option Add the --with-pp-setup-file option to the 57# pp-setup-option Add the --with-pp-setup-file option to the
58# configuration file. The option allows user to 58# configuration file. The option allows user to
59# control whether the pp-setup file is installed. 59# control whether the pp-setup file is installed.
60# tests Build tests.
60# 61#
61# The pp-setup-file argument supplies the pathname of the preprocessor 62# The pp-setup-file argument supplies the pathname of the preprocessor
62# setup file in the source tree. It is ignored if std-pp-setup option is 63# setup file in the source tree. It is ignored if std-pp-setup option is
@@ -69,7 +70,8 @@ AC_DEFUN([GRECS_SETUP],[
69 AC_PROG_YACC 70 AC_PROG_YACC
70 AM_PROG_LEX 71 AM_PROG_LEX
71 72
72 _GRECS_SET_OPTIONS([$1]) 73 AC_SUBST([GRECS_SUBDIR],m4_if([$1],,grecs,$1))
74 _GRECS_SET_OPTIONS([$2])
73 # ********************** 75 # **********************
74 # Preprocessor 76 # Preprocessor
75 # ********************** 77 # **********************
@@ -104,7 +106,7 @@ AC_DEFUN([GRECS_SETUP],[
104 DEFAULT_PREPROCESSOR="$DEFAULT_PREPROCESSOR $PREPROC_OPTIONS" 106 DEFAULT_PREPROCESSOR="$DEFAULT_PREPROCESSOR $PREPROC_OPTIONS"
105 _GRECS_IF_OPTION_SET([std-pp-setup], 107 _GRECS_IF_OPTION_SET([std-pp-setup],
106 [PP_SETUP_FILE='pp-setup'], 108 [PP_SETUP_FILE='pp-setup'],
107 [m4_if([$2],,[PP_SETUP_FILE=],[PP_SETUP_FILE='$2'])]) 109 [m4_if([$3],,[PP_SETUP_FILE=],[PP_SETUP_FILE='$3'])])
108 AC_SUBST(PP_SETUP_FILE) 110 AC_SUBST(PP_SETUP_FILE)
109 if test -n "$PP_SETUP_FILE"; then 111 if test -n "$PP_SETUP_FILE"; then
110 _GRECS_IF_OPTION_SET([pp-setup-option], 112 _GRECS_IF_OPTION_SET([pp-setup-option],
@@ -127,5 +129,14 @@ AC_DEFUN([GRECS_SETUP],[
127 else 129 else
128 DEFAULT_PREPROCESSOR=NULL 130 DEFAULT_PREPROCESSOR=NULL
129 fi 131 fi
132 _GRECS_IF_OPTION_SET([tests],
133 [m4_pushdef([TESTDIR],m4_if([$1],,grecs,$1)/tests)
134 AC_CONFIG_TESTDIR(TESTDIR)
135 AC_CONFIG_FILES(TESTDIR/Makefile TESTDIR/atlocal)
136 m4_popdef([TESTDIR])
137 AM_MISSING_PROG([AUTOM4TE], [autom4te])
138 GRECS_TESTDIR=tests
139 ])
130 AC_SUBST([GRECS_INCLUDES]) 140 AC_SUBST([GRECS_INCLUDES])
141 AC_SUBST([GRECS_TESTDIR])
131]) 142])

Return to:

Send suggestions and report system problems to the System administrator.