mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
trap exceptions in the configure check for whether boost regex has icu support
This commit is contained in:
parent
b8663b67e3
commit
578b434f4d
11
SConstruct
11
SConstruct
@ -796,8 +796,15 @@ def boost_regex_has_icu(context):
|
||||
|
||||
int main()
|
||||
{
|
||||
UnicodeString ustr;
|
||||
boost::u32regex pattern = boost::make_u32regex(ustr);
|
||||
UnicodeString ustr;
|
||||
try {
|
||||
boost::u32regex pattern = boost::make_u32regex(ustr);
|
||||
}
|
||||
// an exception is fine, still indicates support is
|
||||
// likely compiled into regex
|
||||
catch (...) {
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user