aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-02-02 21:36:00 +0200
committerSergey Poznyakoff <gray@gnu.org>2021-02-03 07:51:00 +0200
commitc3ee8d97ea8a427abd455c903157da94623e83dd (patch)
tree6048cbc108e4a76ff56d6429e60150611bee11be /lib
parent494fe491d81505a83207602d5ec129b0bf33a484 (diff)
downloadpies-c3ee8d97ea8a427abd455c903157da94623e83dd.tar.gz
pies-c3ee8d97ea8a427abd455c903157da94623e83dd.tar.bz2
External preprocessor can be selected when building the package and at runtime.
* configure.ac: Report selected preprocessor. Version 1.5.90. * doc/Makefile.am: Don't distribute gendocs.pl and gendocs_template * grecs: Upgrade. * lib/pp.c (pp_command_line): Use the grecs_preprocessor variable instead of DEFAULT_PREPROCESSOR macro. * src/cmdline.opt: New options: --preprocessor and --no-preprocessor. Report the preprocessor command and setup file when called with --help. * src/pies.c (config_init): Initialize grecs_preprocessor. * NEWS: Document changes. * doc/pies.texi: Document new options. * tests/accept.at: Invoke pies with --no-preprocessor. * tests/builtin.at: Likewise. * tests/control.at: Likewise. * tests/cyclic.at: Likewise. * tests/env.at: Likewise. * tests/envglobal.at: Likewise. * tests/expandenv.at: Likewise. * tests/inet.at: Likewise. * tests/maxinst.at: Likewise. * tests/passfd.at: Likewise. * tests/redirect.at: Likewise. * tests/respawn.at: Likewise. * tests/ret-exec.at: Likewise. * tests/ret-notify.at: Likewise. * tests/shell.at: Likewise. * tests/shutdown.at: Likewise. * tests/startup.at: Likewise.
Diffstat (limited to 'lib')
-rw-r--r--lib/pp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pp.c b/lib/pp.c
index 229d449..a8d5043 100644
--- a/lib/pp.c
+++ b/lib/pp.c
@@ -56,13 +56,13 @@ pp_command_line (void)
{
char *ret;
- if (!DEFAULT_PREPROCESSOR)
+ if (!grecs_preprocessor)
return NULL;
if (!pp_cmd)
{
pp_cmd = grecs_txtacc_create ();
- grecs_txtacc_grow_string (pp_cmd, DEFAULT_PREPROCESSOR);
+ grecs_txtacc_grow_string (pp_cmd, grecs_preprocessor);
}
grecs_txtacc_grow_char (pp_cmd, 0);
ret = grecs_txtacc_finish (pp_cmd, 1);

Return to:

Send suggestions and report system problems to the System administrator.