From: Ruediger Pluem Date: Wed, 23 Dec 2009 15:09:21 +0000 (+0000) Subject: * With APR >= 2.0 there is no longer an APR-UTIL only an APR. X-Git-Tag: 2.3.5~68 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16c7c534582ac4fcf2564a0b799870320de6d59e;p=thirdparty%2Fapache%2Fhttpd.git * With APR >= 2.0 there is no longer an APR-UTIL only an APR. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@893542 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/main.c b/server/main.c index 10ba9787ac1..72c4158011c 100644 --- a/server/main.c +++ b/server/main.c @@ -97,10 +97,15 @@ static void show_compile_settings(void) printf("Server built: %s\n", ap_get_server_built()); printf("Server's Module Magic Number: %u:%u\n", MODULE_MAGIC_NUMBER_MAJOR, MODULE_MAGIC_NUMBER_MINOR); +#if APR_MAJOR_VERSION >= 2 + printf("Server loaded: APR %s\n", apr_version_string()); + printf("Compiled using: APR %s\n", APR_VERSION_STRING); +#else printf("Server loaded: APR %s, APR-UTIL %s\n", apr_version_string(), apu_version_string()); printf("Compiled using: APR %s, APR-UTIL %s\n", APR_VERSION_STRING, APU_VERSION_STRING); +#endif /* sizeof(foo) is long on some platforms so we might as well * make it long everywhere to keep the printf format * consistent