Fix Crypto++ detectionamule-svn-r10897
commit42c575184d6cb47ee99bc4c93709be47299d8207
authorupstream svn <svn@amule.org>
Mon, 25 Jan 2016 18:04:16 +0000 (25 18:04 +0000)
committerDévai Tamás <gonosztopi@amule.org>
Wed, 24 Feb 2016 11:33:59 +0000 (24 11:33 +0000)
treed2615d12c81569b56bbe7396125d209a60c6e9d7
parent0905859ec53d7e0ea8ae4a91972bbab4d56b8ba9
Fix Crypto++ detection

The original detection code was flawed in several aspects. When it came to
cross-compiling, it used to find the build system's cryptopp installation
unless a prefix was given. Then it screwed up everything, by including build
flags for host.

The current approach doesn't use any hard-coded directories. It lets the compiler
find cryptopp, and then we ask the compiler where it found it, to let us check
the version number (as cryptopp still doesn't have any compile-time or run-time
version information). If a prefix was given, then we test the given prefix for
something that looks like cryptopp, and live with that if that seems to be ok.

We don't anymore set CPPFLAGS nor LDFLAGS for cryptopp installations found in
system directories (i.e. reachable for the compiler without extra flags), we set
them only if --with-crypto-prefix was given and it points to an installed version
of the library.
.svn-revision
configure
configure.in
docs/Changelog
m4/cryptopp.m4