X-Git-Url: https://git.syn-net.org/debian/?a=blobdiff_plain;f=src%2Foptions.cpp;h=8cfc480c09d676d5ab58c0e4cc66bd748452b02c;hb=refs%2Fheads%2Fupstream;hp=284e9e8d7f491347cfef687ae5073107b9cc21a4;hpb=65944fb7a518dc659bacaf80cf235a0352fc6a7e;p=anytun.git diff --git a/src/options.cpp b/src/options.cpp index 284e9e8..8cfc480 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -558,8 +558,16 @@ void Options::printVersion() #else std::cout << "anytun"; #endif - std::cout << VERSION_STRING_0 << std::endl; - std::cout << VERSION_STRING_1 << std::endl; + std::cout << VERSION_STRING << std::endl; + +#if defined(__clang__) + std::cout << "built using CLANG " << __clang_version__ << " with " << CRYPTO_LIB_NAME << " crypto library." << std::endl; +#elif defined(__GNUC__) + std::cout << "built using GCC " << __GNUC__ << '.' << __GNUC_MINOR__ << '.' << __GNUC_PATCHLEVEL__ + << " with " << CRYPTO_LIB_NAME << " crypto library." << std::endl; +#else + std::cout << "built using an unknown compiler " << CRYPTO_LIB_NAME << " crypto library." << std::endl; +#endif } void Options::printUsage()