diff --git a/configure.ac b/configure.ac index a69c351..6459cf1 100644 --- a/configure.ac +++ b/configure.ac @@ -18,7 +18,7 @@ AC_PROG_CXX AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S -AC_PROG_LIBTOOL +LT_INIT dnl Checks for typedefs, structures, and compiler characteristics. AC_LANG([C++]) diff --git a/src/Soros.py b/src/Soros.py index ffe4cae..3f3888b 100644 --- a/src/Soros.py +++ b/src/Soros.py @@ -43,7 +43,7 @@ def __init__(self, prg, lang): # switch off all country-dependent lines, and switch on the requested ones prg = re.sub(r"(^|[\n;])([^\n;#]*#[^\n]*[\[]:[^\n:\]]*:][^\n]*)", r"\1#\2", prg) prg = re.sub(r"(^|[\n;])#([^\n;#]*#[^\n]*[\[]:" + lang.replace("_", "-") + r":][^\n]*)", r"\1\2", prg) - matchline = re.compile("^\s*(\"[^\"]*\"|[^\s]*)\s*(.*[^\s])?\s*$") + matchline = re.compile(r"^\s*(\"[^\"]*\"|[^\s]*)\s*(.*[^\s])?\s*$") prefix = "" for s in re.sub("(#[^\n]*)?(\n|$)", ";", prg).split(";"): macro = re.match("== *(.*[^ ]?) ==", s)