From 4fedc5c542d8b58afb49d81b5d8302a1b0468722 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Fri, 12 Feb 2010 14:06:58 -0300 Subject: [PATCH] Add compiler name and version to welcome message --- configure | 5 ++++- src/monkey.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 01d0357..de7b3b7 100755 --- a/configure +++ b/configure @@ -157,6 +157,8 @@ main() echo create_makefile_plugins $plugdir + + echo "#define CC \"${CC}\"" > src/include/env.h } # Check pthreads lib @@ -330,7 +332,7 @@ all: ../bin/monkey @(cd ../plugins && make all && cd ..) clean: - rm -rf *.o + rm -rf *.o rm -rf ../bin/monkey distclean: @@ -381,6 +383,7 @@ if [ "$plugdir" != "" ]; then echo "\tinstall -m 644 $dir/$i/monkey-$i.so $plugdir/" >> Makefile done fi + cd .. } # Creando include/info.h diff --git a/src/monkey.c b/src/monkey.c index 8b9b7cc..42fc064 100644 --- a/src/monkey.c +++ b/src/monkey.c @@ -49,6 +49,7 @@ #include "worker.h" #include "server.h" #include "plugin.h" +#include "env.h" #if defined(__DATE__) && defined(__TIME__) static const char MONKEY_BUILT[] = __DATE__ " " __TIME__; @@ -69,7 +70,8 @@ void mk_details() void mk_version() { printf("Monkey HTTP Daemon %s\n", VERSION); - printf("Built : %s\n", MONKEY_BUILT); + printf("Built : %s (%s %i.%i.%i)\n", + MONKEY_BUILT, CC, __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__); printf("Home : http://www.monkey-project.com\n"); fflush(stdout); } -- 2.11.4.GIT