[C++-sig] Writing configure checks for libboost?

Ingo Lütkebohle iluetkeb at gmail.com
Sat Aug 26 17:49:57 CEST 2006


Hi Hans,

for the toolchain part, we hardcode a reasonably sane default
("gcc-mt-d") and then use a 'with'-option for configure to allow the
user to override our choice. As some things (e.g., whether to use mt
or not) cannot be automatically determined anyway, that seems like a
good compromise. Other than that, we look at the header directory to
figure out the latest boost-version installed.  I can pass on the
autoconf parts for these two things to you, if you're interested.

This procedure has worked fine for us on various Linux distributions.
For other unices, figuring the toolchain to use from the name of the
library should not be too hard but we haven't done that, yet.

best regards,

-- 
Dipl.-Inform. Ingo Lütkebohle
Faculty of Technology
Bielefeld University
http://www.techfak.uni-bielefeld.de/~iluetkeb/

Fingerprint 3187 4DEC 47E6 1B1E 6F4F  57D4 CD90 C164 34AD CE5B



More information about the Cplusplus-sig mailing list