From 0810e42750fb2e2e0d602388cef1b8ea8015d935 Mon Sep 17 00:00:00 2001 From: diego Date: Tue, 28 Nov 2006 18:29:24 +0000 Subject: [PATCH] Make MPlayer/MEncoder print the compile-time configuration in verbose mode. based on a patch by Brian Murray, brian game-sat com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21358 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 5 +++++ mencoder.c | 2 ++ mplayer.c | 3 +++ 3 files changed, 10 insertions(+) diff --git a/configure b/configure index cc2433153e..66b870b833 100755 --- a/configure +++ b/configure @@ -53,6 +53,9 @@ LC_ALL=C export LC_ALL +# Store the configure line that was used +_configuration="$*" + # Prefer these macros to full length text ! # These macros only return an error code - NO display is done compile_check() { @@ -7527,6 +7530,8 @@ cat > config.h << EOF #ifndef MPLAYER_CONFIG_H #define MPLAYER_CONFIG_H 1 +#define CONFIGURATION "$_configuration" + /* use GNU internationalization */ $_def_i18n diff --git a/mencoder.c b/mencoder.c index c993c60137..55e5f746ed 100644 --- a/mencoder.c +++ b/mencoder.c @@ -495,6 +495,8 @@ if(!codecs_file || !parse_codec_cfg(codecs_file)){ } } } + /* Display what configure line was used */ + mp_msg(MSGT_MENCODER, MSGL_V, "Configuration: " CONFIGURATION "\n"); if (frameno_filename) { diff --git a/mplayer.c b/mplayer.c index 11f0f2b2d2..4b84d1b8a7 100644 --- a/mplayer.c +++ b/mplayer.c @@ -3757,6 +3757,9 @@ if(!codecs_file || !parse_codec_cfg(codecs_file)){ } else gui_no_filename=1; } + /* Display what configure line was used */ + mp_msg(MSGT_CPLAYER, MSGL_V, "Configuration: " CONFIGURATION "\n"); + // Many users forget to include command line in bugreports... if( mp_msg_test(MSGT_CPLAYER,MSGL_V) ){ mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_CommandLine);