- Fix the _concat() documentation, and add a test for it.
+ - Portability fixes for non-GNU versions of lex and yacc.
+
From Matt Balvin:
- Fix handling of library prefixes when the subdirectory matches
c_file.add_action('.l', '$LEXCOM')
cxx_file.add_action('.ll', '$LEXCOM')
- env['LEX'] = 'lex'
+ env['LEX'] = env.Detect('flex') or 'lex'
env['LEXFLAGS'] = ''
env['LEXCOM'] = '$LEX $LEXFLAGS -t $SOURCES > $TARGET'
def exists(env):
- return env.Detect('lex')
+ return env.Detect(['flex', 'lex'])
c_file.add_action('.y', '$YACCCOM')
cxx_file.add_action('.yy', '$YACCCOM')
- env['YACC'] = 'yacc'
+ env['YACC'] = env.Detect('bison') or 'yacc'
env['YACCFLAGS'] = ''
env['YACCCOM'] = '$YACC $YACCFLAGS -o $TARGET $SOURCES'
def exists(env):
- return env.Detect('yacc')
+ return env.Detect(['bison', 'yacc'])
def installed(lib):
return 'Installed SCons library modules into %s' % lib
-os.system("tar zxf %s" % tar_gz)
+os.system("gunzip -c %s | tar xf -" % tar_gz)
# Verify that a virgin installation installs the standalone library.
test.run(chdir = scons_version,
char *s;
{
fprintf(stderr, "%%s\n", s);
+ return 0;
}
yylex()
char *s;
{
fprintf(stderr, "%%s\n", s);
+ return 0;
}
yylex()