Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2006-01-15 05:41:30


> A program I'm writing requires that the Boost Regex library was
> compiled with ICU support.
>
> How can I determine at configure/compile time whether the Regex
> library has ICU support?
>
> I'd like to prevent the user from shooting him/herself in the foot.

Um, you can't detect it at compile time except that, if ICU is not in the
users include path then boost/regex/icu.hpp won't compile. You will also
get linker errors if you attempt to use ICU support and the library was
built without it. So.... an AC_TRY_LINK in your configure script along with
a minimal test program that invokes a u32regex would do the trick.

HTH, John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net