Printing the correct set of configuration options.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4733 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-04-05 19:57:17 +00:00
parent fc55756378
commit 2d83e8d41f
2 changed files with 48 additions and 8 deletions

View File

@ -1,3 +1,6 @@
2014-04-05 Benno Schulenberg <bensberg@justemail.net>
* src/nano.c (version): Print the correct configuration options.
2014-04-05 Mike Frysinger <vapier@gentoo.org>
* src/nano.c (do_input): Reload possibly freed function pointer.

View File

@ -968,9 +968,48 @@ void version(void)
_(" Email: nano@nano-editor.org Web: http://www.nano-editor.org/"));
printf(_("\n Compiled options:"));
#ifdef NANO_TINY
printf(" --enable-tiny");
#ifndef DISABLE_BROWSER
printf(" --enable-browser");
#endif
#ifndef DISABLE_COLOR
printf(" --enable-color");
#endif
#ifndef DISABLE_EXTRA
printf(" --enable-extra");
#endif
#ifndef DISABLE_HELP
printf(" --enable-help");
#endif
#ifndef DISABLE_JUSTIFY
printf(" --enable-justify");
#endif
#ifndef DISABLE_MOUSE
printf(" --enable-mouse");
#endif
#ifndef DISABLE_MULTIBUFFER
printf(" --enable-multibuffer");
#endif
#ifndef DISABLE_OPERATINGDIR
printf(" --enable-operatingdir");
#endif
#ifndef DISABLE_SPELLER
printf(" --enable-speller");
#endif
#ifndef DISABLE_TABCOMP
printf(" --enable-tabcomp");
#endif
#ifndef DISABLE_WRAPPING
printf(" --enable-wrapping");
#endif
#else /* !NANO_TINY */
#ifdef DISABLE_BROWSER
printf(" --disable-browser");
#endif
#ifdef DISABLE_COLOR
printf(" --disable-color");
#endif
#ifdef DISABLE_EXTRA
printf(" --disable-extra");
#endif
@ -986,9 +1025,6 @@ void version(void)
#ifdef DISABLE_MULTIBUFFER
printf(" --disable-multibuffer");
#endif
#ifndef ENABLE_NLS
printf(" --disable-nls");
#endif
#ifdef DISABLE_OPERATINGDIR
printf(" --disable-operatingdir");
#endif
@ -1001,23 +1037,24 @@ void version(void)
#ifdef DISABLE_WRAPPING
printf(" --disable-wrapping");
#endif
#endif /* !NANO_TINY */
#ifdef DISABLE_ROOTWRAPPING
printf(" --disable-wrapping-as-root");
#endif
#ifndef DISABLE_COLOR
printf(" --enable-color");
#endif
#ifdef DEBUG
printf(" --enable-debug");
#endif
#ifdef ENABLE_NANORC
printf(" --enable-nanorc");
#endif
#ifdef NANO_TINY
printf(" --enable-tiny");
#ifndef ENABLE_NLS
printf(" --disable-nls");
#endif
#ifdef ENABLE_UTF8
printf(" --enable-utf8");
#else
printf(" --disable-utf8");
#endif
#ifdef USE_SLANG
printf(" --with-slang");