fix panel_scroll_pages start page
[midnight-commander.git] / src / textconf.c
blobd7b2eb724da8508105f695d44d4ee8cbf74326d0
1 /* Print features specific for this build
3 Copyright (C) 2001-2002 Free Software Foundation
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #include <config.h>
21 #include <stdio.h>
23 #include "global.h"
25 static const char * const features [] = {
26 #ifdef USE_VFS
27 N_("Virtual File System: tarfs, extfs"),
28 N_(", cpiofs"),
29 #ifdef USE_NETCODE
30 N_(", ftpfs"),
31 N_(", fish"),
32 # ifdef WITH_MCFS
33 N_(", mcfs"),
34 # endif
35 # ifdef WITH_SMBFS
36 N_(", smbfs"),
37 # endif
38 #endif /* USE_NETCODE */
39 #ifdef USE_EXT2FSLIB
40 N_(", undelfs"),
41 #endif
42 "\n",
43 #endif /* USE_VFS */
45 #ifdef USE_INTERNAL_EDIT
46 N_("With builtin Editor\n"),
47 #endif
49 #ifdef HAVE_SLANG
51 # ifdef HAVE_SYSTEM_SLANG
52 N_("Using system-installed S-Lang library"),
53 # else
54 N_("Using included S-Lang library"),
55 # endif
57 " ",
59 #ifdef USE_TERMCAP
60 N_("with termcap database"),
61 #else
62 N_("with terminfo database"),
63 #endif
65 #elif defined(USE_NCURSES)
66 N_("Using the ncurses library"),
67 #else
68 #error "Cannot compile mc without S-Lang or ncurses"
69 #endif /* !HAVE_SLANG && !USE_NCURSES */
71 "\n",
73 #ifdef HAVE_SUBSHELL_SUPPORT
74 # ifdef SUBSHELL_OPTIONAL
75 N_("With optional subshell support"),
76 # else
77 N_("With subshell support as default"),
78 # endif
79 "\n",
80 #endif /* !HAVE_SUBSHELL_SUPPORT */
82 #ifdef WITH_BACKGROUND
83 N_("With support for background operations\n"),
84 #endif
86 #ifdef HAVE_LIBGPM
87 N_("With mouse support on xterm and Linux console\n"),
88 #else
89 N_("With mouse support on xterm\n"),
90 #endif
92 #ifdef HAVE_TEXTMODE_X11_SUPPORT
93 N_("With support for X11 events\n"),
94 #endif
96 #ifdef ENABLE_NLS
97 N_("With internationalization support\n"),
98 #endif
100 #ifdef HAVE_CHARSET
101 N_("With multiple codepages support\n"),
102 #endif
104 NULL }
107 void
108 version (int verbose)
110 int i;
112 fprintf (stdout, _("GNU Midnight Commander %s\n"), VERSION);
113 if (!verbose)
114 return;
116 for (i = 0; features [i]; i++)
117 fputs (_(features [i]), stdout);