Slava Zanko
47cdfd6baf
Use system function strverscmp() if exists.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-22 11:08:37 +02:00
Andrew Borodin
ba1d909a7a
extfs.ini file is replaced to extfs.d directory.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-15 16:10:02 +00:00
Enrico Weigelt, metux IT service
d26be9da5f
Ticket #262 : remove obsolete own putenv() implementation.
...
Removed obsolete own putenv() implementation
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-30 18:31:24 +03:00
Sergei Trofimovich
81b644df8a
Ticket #1981 : configure.ac: add AM_PROG_CC_C_O as we use compiler, that accepts '-c' and '-o' options
...
src/consaver/Makefile.am:5: compiling `cons.saver.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac'
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-28 14:47:45 +02:00
Andrew Borodin
5a92bf096a
Ticket #1980 : increased minimal required version of GLib up to 2.8.
...
g_try_new, g_try_new0 and g_try_malloc0 macros
are available in Glib >= 2.8.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-28 15:10:00 +00:00
Slava Zanko
8211adc425
Added check for empty value of 'enable_mcserver' variable for more proper summary output.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-27 21:56:46 +01:00
Slava Zanko
862652bd1b
Move src/cons.saver into src/consaver/* subdir
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:26 +02:00
Slava Zanko
cd4dbf3a09
Changes for build after moving strutil into lib
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:24 +02:00
Slava Zanko
39d5b94cac
Reorganized pathes to files in '#include' directives
2010-01-26 10:30:22 +02:00
Slava Zanko
4f11e4b665
Massive moved some dirs from $(srcdir)/src into $(srcdir)/lib
...
Moved subdirs:
* filehighlight
* mcconfig
* search
* skin
* tty
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:22 +02:00
Slava Zanko
630efbd59a
Moved dir $(srcdir)/syntax into $(srcdir)/misc/syntax
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:21 +02:00
Slava Zanko
52f6bed7d0
Moved dir $(srcdir)/vfs into $(srcdir)/lib/vfs/mc-vfs
...
Also, initial support of library directory.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:21 +02:00
Slava Zanko
871991dda0
Ticket #1866 : Move edit/ and vfs/ directories into src/
...
Moved dir $(srcdir)/edit into $(srcdir)/src/editor
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:19 +02:00
Enrico Weigelt, metux IT service
4a4fc37f53
Ticket #1932 : Removed obsolete checks for standard header termios.h
2010-01-15 00:58:50 +01:00
Enrico Weigelt, metux IT service
f6637e4871
Ticket #1780 : removing own declaration of errno and strerror()
2010-01-02 07:11:01 +01:00
Slava Zanko
7f4f0cb660
Ticket #1905 : Rework the versioning scheme.
...
We have a problem with the current mc-x.y.z-preW versioning scheme for
both Redhat and Debian. The problem is that
(1) mc-1:4.7.0-1.fc12.x86_64
(2) mc-1:4.7.0.pre4.231.g8cfffc5-1.fc12.x86_64
(1) is considered to be older than (2)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-12-30 22:22:53 +02:00
Enrico Weigelt, metux IT service
ec1a52fb0a
VFS: renamed USE_VFS to ENABLE_VFS
2009-12-30 11:06:11 +02:00
Jakob Kemi
6908e6fc48
Ticket #272 : Extfs: added S3 backend by Jakob Kemi
2009-12-24 22:26:14 +01:00
Sergei Trofimovich
7fcef13e61
configure.ac: guard $CFLAGS with "" in tests
...
Fixes ./configure error:
../mc/configure: line 42709: test: too many arguments
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-12-16 11:10:41 +02:00
Slava Zanko
771a2958ad
configure.ac: Optimization of building 'CFLAGS' variable.
...
Now user-defined CFLAG (from envirovement) have higest priority before
internal definitions.
Also, patch have change for respect code optimization options from user.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-16 11:10:40 +02:00
Enrico Weigelt, metux IT service
d579bb7877
Ticket #1789 : Removed obsolete checks for setuid(), getuid(), etc
...
Removed obsolete checks for setuid(), getuid(), etc
Signed-off-by: Enrico Weigelt <weigelt@metux.de>
2009-12-15 18:13:40 +03:00
Enrico Weigelt, metux IT service
551ac003a4
Ticket #1788 : remove obsolete checks for <pwd.h> and <grp.h>
...
remove obsolete checks for <pwd.h> and <grp.h>
Signed-off-by: Enrico Weigelt, metux IT service <weigelt@metux.de>
2009-12-15 18:00:02 +03:00
Enrico Weigelt, metux IT service
2b4f8103ce
Ticket #1786 : remove obsolete check for <sys/wait.h>
...
remove obsolete check for <sys/wait.h>
This file is C standard, so no explicit check necessary.
Signed-off-by: Enrico Weigelt <weigelt@metux.de>
2009-12-15 17:20:36 +03:00
Enrico Weigelt, metux IT service
e9b01c6400
Ticket #1787 : remove obsolete checks for <stdlib.h>
2009-12-13 05:29:35 +01:00
Enrico Weigelt, metux IT service
91a5df442f
Dropping non-strftime() support and fixing -Werror problem
...
Problem:
a) when running ./configure, strftime() and other functions cannot be
properly detected, since autoconf generates crappy test code, which
at least fails when warnings are treated as errors (gcc: -Werror).
b) strtime() is standard since C89, so we can simply expect it to exists
(if there's *really* some acient box out there breaking mc build,
it's libc/toolchain should be fixed ;-p)
Solution:
Remove the checks for strftime() and all workarounds
2009-11-09 13:49:56 +01:00
Slava Zanko
2a4075d246
Now possible to compile mc in different cases: as mc maintainer or as end-user.
...
Some debug-related code will compile just in mainteiner mode.
Also, added new parameter for configure script: --enable-werror
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 20:36:15 +02:00
Slava Zanko
2ffb7c6719
Added checks for compiler options.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-30 14:41:03 +02:00
Slava Zanko
3518f7c585
Added debug options for --enable-maintainer mode
...
Also, added extra warnings and now all warnongs threaded as errors.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:37:40 +02:00
Slava Zanko
3b05057818
Ticket #1607 : undelfs check broken in configure.ac
...
Fix running onfigure with '--disable-vfs-undelfs' option.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-15 09:34:29 +03:00
Stan. S. Krupoderov
8cbc12fbb9
Ticket #1419 : ./configure issue: GPM-related
...
configure.ac: terminate with error if gpm not found and
--with-gpm-mouse option used
Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-09-26 17:21:18 +04:00
Stan. S. Krupoderov
7cf0a3aa2b
Ticket #1611 : --enable-charset by default
...
configure.ac: change defaults for enable_charset
Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-09-23 22:20:12 +03:00
Slava Zanko
c8e6c2ef29
Ticket #1420 : ./configure issue: Glib
...
Added check for result of
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6], [glib_found=yes], [:])
Now if glib not found or if glib have version less than 2.6 configure script
will exit with error message.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-22 12:01:52 +03:00
Slava Zanko
981fe001d1
Base support of skins.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-18 11:49:44 +03:00
Slava Zanko
4afc04eedc
Ticket #418 : File coloring
...
Added support of filenames highlighting in panels.
Now rules of highlighting described into external file filehighlight.ini
Number of highlight rules is unlimited (in opposite to X-Stranger patch).
Highlight will made by:
* file type (directory, regular, symlink, special device etc.)
* extensions of filenames (ends of filenames)
* regular expressions
Big thanks to X-Stranger <x@linux.by> for idea
and to Alexey Kaminsky <alexeykaminsky@gmail.com> for testing.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-03 13:12:17 +03:00
Ilia Maslakov
eb9a251dcc
add: some utf8 procedures:
...
* get_ptr_file (WView *view, offset_type byte_index)
* get_ptr_string (WView *view, offset_type byte_index)
* get_ptr_growing_buffer (WView *view, offset_type byte_index)
* get_utf (WView *view, offset_type byte_index, int *char_width)
add: property 'utf' in the struct Wview
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Added temlate for splitting src/view.c into lot of
smalest files (for better development and supporting).
2009-08-24 16:20:52 +00:00
Andrew Borodin
ea0cb38b9e
Initial step to split NCurses- and SLang-based TTY layers.
2009-08-12 21:19:20 +04:00
Andrew Borodin
f3730bdc41
Initial step to move TTY layer of MC to separate library.
2009-08-12 21:19:20 +04:00
Stan. S. Krupoderov
5894396494
Ticket #1459 : link fail with --enable-vfs-undelfs and --enable-vfs
...
configure.ac: fix autoconf for --enable-vfs-undelfs option
original author: slyfox
2009-08-04 23:34:32 +04:00
Slava Zanko
57cb8390dc
Ticket #1428
...
Fixed error: possibly undefined macro: _m4_text_wrap_word
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Fixed:
* names of options for cpiofs, extfs, fish, ftp, sfs, tarfs
* indent for option descriptions
* option name from --search-engine to --with-search-engine
Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-07-31 09:38:06 +00:00
Slava Zanko
fb52d1661e
Removed unneded check for iconv functions. MC use glib functions for
...
recode charsets.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-07-27 13:49:49 +03:00
Slava Zanko
ce129506f6
Added recognizing of filesystem type and automatically toggle 'on' or 'off' checkbox 'Preserve attributes' in file copy/move dialog
2009-06-22 17:51:43 +03:00
Slava Zanko
fbcacf4044
Now project don't compile if version of glib less than 2.14 and no have pcre library
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-19 21:47:38 +03:00
Slava Zanko
f606e64861
Version of project now formed automatically from current git-describe output
...
* File version.h will be created (or changed) automatically
* Fixed versions for rpm packages - all '-' changed to '.' in RPM_VERSION variable
* when version.h is changed (or deleted) ./configure script will be invoked
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-07 00:56:07 +03:00
Slava Zanko
6c2c253f34
configure.ac: Remove deprecated check of glib-1.2
2009-06-01 11:32:23 +03:00
Slava Zanko
c583b303da
Delete src/profile.[ch] files
...
Also:
* add check for minimal version of glib (>= 2.6)
* add subdir src/mcconfig into build action (by make)
2009-06-01 10:55:06 +03:00
Slava Zanko
f0182a6969
Fix compile mcserv helper
...
Changes logic in m4 files for more sense of configure options.
Renamed --with-mcfs ro --enable-mcserver
2009-05-27 21:50:02 +03:00
Slava Zanko
1e4cc93320
Moved the main help file (xnc.hlp) and translated help files (es, hu, it, pl, ru and sr directories) to doc/hlp
...
Also, created symlinks in src_root directory to some doc/* files
2009-05-26 17:32:32 +03:00
Sergei Trofimovich
fd55b916de
Revert "Replace self-made code for work with ini-files to glib native code"
...
This reverts commit 4648ad8bf9
.
2009-05-19 10:22:24 +03:00
Sergei Trofimovich
df5160aaf3
Revert "Added check for glib version in mc_config_del_param and mc_config_del_group functions"
...
This reverts commit 483a1a05aa
.
2009-05-19 10:22:17 +03:00
Slava Zanko
483a1a05aa
Added check for glib version in mc_config_del_param and mc_config_del_group functions
...
configure.ac: Added check for minimal version of Glib2
Since Glib2-2.15 API of file-ini module was changed.
Old API:
void g_key_file_remove_key(...)
New API:
gboolean g_key_file_remove_key(...)
Therefore need to check version of Glib and fix return parameter from mc_config_del_param and mc_config_del_group for success build
Work with ini-file added in Glib2 since version 2.6, therefore in configure.ac added this check.
2009-05-14 16:21:28 +03:00