Commit Graph

100 Commits

Author SHA1 Message Date
Andrew Borodin
e7e3a119b4 src/filemanager/mountlist.c and related m4 macros: sync with gnulib.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-28 11:26:54 +04:00
Slava Zanko
48d1f1f518 configure.ac: Moved GLib initialization to m4.include/ac-glib.m4
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:53 +02:00
Slava Zanko
fc7142d2a0 Ticket #2501: 'lib' should be independ to 'src' directory
Added base support for unit tests (see http://check.sourceforge.net/ for details).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 10:30:27 +02:00
Andrew Borodin
6a55c9320e Ticket #2279: mcserver is deprecated.
Removed mcserver and mcfs support.

Reasons:
(1) no longer builds
(2) no one is willing to support it
(3) possibly contains unfixed security holes
(4) makes no sense in view of the availability of FISH

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-17 18:36:54 +04: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
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
de248cb274 Ticket 419: (search broken in editor/viewer on glib <2.14)
Added forgotten include of m4.include/ax_path_lib_pcre.m4 file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-19 21:47:03 +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
0e6b076666 Remove autogenerated stuff from git-tracking.
* Remove m4/* files
 * Reorganize all M4-stuff into m4.include subdur
 * move doxygen-include.am into doc/doxygen-include.am
2009-05-07 15:38:06 +03:00
Slava Zanko
2ebdf91079 Merge branch 'm-utf-8'
* m-utf-8: (223 commits)
  Fix wildcard pattern in file select and file find dialogs
  Project builds with option --disable-charsets
  Deleted build-glib1.sh because glib1 don't work with utf-8
  fix building without --enable-charset
  Total replacement to mc_search stuff in all places
  Search engine: if found_len parameter NULL, then mc_search_run don't try to fill them
  src/view.c: Reworked search stuff to usage src/search
  refactoring: rename edit/editcmd_dialog.c:editcmd_dialog__get_search_types_list to
  Search engine: development of hex search complete
  Search engine: remove forgotten debug string and reindent file
  Search engine:
  configure.ac: if present glib-2.14 and higher, libpcre don't linked
  Search engine: now used regexp external engines:
  src/find.c: Fixed core dump if content search pattern no present
  edit/editcmd_dialogs.c: fixed state of search type between dialog window calls
  Find files: checkbox 'Regular expression' for content search now default unchecked
  Find files: changes for usage of new search engine:
  Fix copy of current/opposite path to command line: remove charset info from path
  src/Makefile.am: add some header files to Make-tracking
  Fixed editor menu reloading.
2009-05-07 13:01:01 +03:00
Slava Zanko
2276e9b513 Search engine: now used regexp external engines:
* glib
 * pcre
 * POSIX regex

External engine selected automatically, if present.
2009-05-05 16:19:32 +03:00
Slava Zanko
f2fd5f49e5 Added doxygen stuff.
doc/doxygen.cfg:
    - added some options for better output
m4.include/dx_doxygen.m4:
    - calculate sources top dir
2009-04-15 17:28:38 +03:00
Ilia Maslakov
3b5e2c052f Merge branch 'utf-8' into master
resolve conflicts:
	configure.ac
	src/complete.c
	src/file.c
	src/layout.c
	src/main.c
	src/menu.c
	src/screen.c
	src/util.c
	src/widget.c
	src/widget.h
2009-04-04 19:50:46 +00:00
Enrico Weigelt, metux IT service
4f9185a3ee Removed bundled slang 2009-02-02 04:23:06 +01:00
Slava Zanko
5d626982b0 patches by Rostislav Beneš: mc-40-ncursesw-old
Added support of old ncursesw library
2009-01-26 12:05:43 +02:00
Slava Zanko
8d94909d0f patches by Rostislav Beneš: mc-40-ncurses
Extende support of ncurses
2009-01-26 12:05:43 +02:00
Pavel Tsekov
4d56b647fa * acinclude.m4 (AC_GET_FS_INFO): Add erronously removed call to
gl_FSTYPENAME.
* m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Add missing
include directive for sys/param.h.
2006-09-07 15:59:51 +00:00
Pavel Tsekov
f588181dc6 * acinclude.m4 (AC_GET_FS_INFO): Revert a failed attempt to properly detect
getmntinfo() returning its result in struct statvfs.
* src/mountlist.c: Revert a failed attempt to properly detect and use
getmntinfo() returning its result in struct statvfs.
2006-09-07 14:20:57 +00:00
Pavel Tsekov
e599536b2c * acinclude.m4 (AC_GET_FS_INFO): Check the return value of getmntinfo()
properly.
2006-06-30 07:44:18 +00:00
Pavel Tsekov
9e1dd4594d * m4/fstypename.m4: New file.
* acinclude.m4 (AC_GET_FS_INFO): Add a check to determine whether
getmntinfo() takes struct statvfs instead of struct statfs as its
first argument. Define MOUNTED_GETMNTINFO_STATVFS if it does.
Add a check to determine whether struct statvfs has a field named
f_fstypename.
Use gl_FSTYPENAME tp determine whether struct statfs has a field
named f_fstypename.
* src/mountlist.c (HAVE_F_FSTYPENAME): Define when getmntinfo() is
used and the struct which it fills has a field named f_fstypename.
(read_filesystem_list) [MOUNTED_GETMNTINFO]: Use
MOUNTED_GETMNTINFO_STATVFS to determine the type of the first
argument to getmntinfo().
2006-06-17 15:39:07 +00:00
Pavel Tsekov
40ef73306f * acinclude.m4 (AC_GET_FS_INFO): Make it work again - the last commit broke
it.
* m4/onceonly.m4: New file.
2006-04-18 13:03:11 +00:00
Leonard den Ottolander
9801c06027 * acinclude.m4 (AC_GET_FS_INFO): Replace old fileutils code to get
mount and file system information with m4_includes of the corresponding
	GNU coreutils-5.94 files (ls-mntd-fs.m4 (#20) and fsusage.m4 (#16)).

	* m4/fsusage.m4, m4/ls-mntd-fs.m4: Create.
2006-03-18 13:17:50 +00:00
Pavel Roskin
91b9a36acf One more check missed in the previous commit. 2005-11-15 23:27:27 +00:00
Pavel Roskin
f9f69feabb * acinclude.m4 (MC_WITH_MCSLANG): Add type tests from S-Lang
configuration scripts.
2005-11-15 23:12:48 +00:00
Pavel Roskin
40e26a8530 * configure.ac: Use gettext 0.14.3.
* acinclude.m4 (MC_ASM_LABELS): Remove, it's not needed with
recent versions of gettext.
2005-11-11 01:14:51 +00:00
Pavel Roskin
685ec466c2 * acinclude.m4 (MC_ASM_LABELS): Make the test function global
and move its definition above main().  That's closer to what
gettext is actually doing.
2005-11-10 23:37:21 +00:00
Pavel Roskin
bc9ae64cab * acinclude.m4: Remove gettext 0.10.x compatibility. 2005-09-28 21:49:05 +00:00
Roland Illig
e34ffeeb36 Fixed a typo noted by Jindrich Novy. 2005-07-18 10:03:26 +00:00
Roland Illig
2aae4390da * acinclude.m4 (MC_WITH_VFS): Don't link with libnsl
unnecessarily.
	* configure.ac: Simplified detection of the necessary libraries
	for socket() and gethostbyname().

	Patch provided by Tomasz Kloczko at 2005-06-15 on mc-devel.
2005-07-03 11:50:30 +00:00
Pavel Roskin
4f09f45404 * acinclude.m4: Remove MC_ARG_ENABLE_DEVELOPER_MODE.
* configure.ac: Replace MC_ARG_ENABLE_DEVELOPER_MODE with a
simpler and more user-friendly piece of code.
2005-05-11 21:56:57 +00:00
Roland Illig
957f3d180d * acinclude.m4: Renamed AS_HELP_STRING to AC_HELP_STRING for
compatibility with autoconf-2.57.
2005-04-26 17:29:58 +00:00
Roland Illig
26c8b13218 * acinclude.m4: Added macro MC_ARG_ENABLE_DEVELOPER_MODE. 2005-04-21 22:28:48 +00:00
Pavel Roskin
a4cf54d41c * acinclude.m4 (MC_WITH_SLANG): Partly restore original order of
checks and add a comment with a warning.
From Pavel S. Shirshov <me@pavelsh.pp.ru>
2005-03-19 21:53:24 +00:00
Pavel Roskin
d89c5eb128 * acinclude.m4 (MC_WITH_SLANG): Reorder checks. Move termcap
checks ...
(MC_SLANG_TERMCAP): ... here.
(MC_SLANG_PRIVATE): Check if private functions are available.
It's not the case on Debian unstable.
2005-03-19 19:16:35 +00:00
Pavel Roskin
0074c885f2 * acinclude.m4 (MC_WITH_SLANG): Define HAVE_SYSTEM_SLANG after
all fallbacks so it shows whether we are using system S-Lang.
* configure.ac: Remove USE_INCLUDED_SLANG, since it's now fully
dependent on HAVE_SLANG and HAVE_SYSTEM_SLANG.
* src/myslang.h: Likewise.
2005-03-19 17:27:36 +00:00
Andrew V. Samoilov
33e157631c * acinclude.m4: Fix '--with-screen' configure option. 2005-01-11 09:16:52 +00:00
Andrew V. Samoilov
7e75c2d423 * acinclude.m4: Fix "make distcheck".
* NEWS: Update.
2004-12-13 17:56:27 +00:00
Andrew V. Samoilov
319cdb81bc * acinclude.m4: Fix compiling mc with system slang on FreeBSD. 2004-11-16 19:23:40 +00:00
Andrew V. Samoilov
3253bdf876 * acinclude.m4 (MC_WITH_MCSLANG): Set screen_type to mcslang.
* configure.ac: Define USE_INCLUDED_SLANG if screen_type is mcslang.
2004-10-12 04:35:55 +00:00
Pavel Roskin
d6d5688bed * acinclude.m4 (MC_UNDELFS_CHECKS): Try ext2fs/ext2_fs.h before
linux/ext2_fs.h.  Use ext2fs/ext2_fs.h when possible - it's
safer to avoid kernel headers.
2003-11-28 06:18:32 +00:00
Pavel Roskin
c6d7467b7b * acinclude.m4 (MC_UNDELFS_CHECKS): Don't use internal Autoconf variables. 2003-10-29 22:17:41 +00:00
Pavel Roskin
b733f1fa6e * acinclude.m4 (AC_STRUCT_LINGER): Remove, use AC_CHECK_MEMBERS
instead.
2003-10-29 17:18:15 +00:00
Pavel Roskin
3315f35e31 * configure.in: Move ext2fs undelete support ...
* acinclude.m4 (MC_WITH_VFS): ... here.
* extraconf.h: Remove VFS logic, it's enforced in configure now.
2003-10-29 06:55:41 +00:00
Pavel Roskin
fc7dc2ba67 * acinclude.m4 (MC_WITH_VFS): Use AC_SEARCH_LIBS when possible.
Allow disabling network code by --disable-netcode.
2003-10-29 06:41:41 +00:00
Pavel Roskin
ff6aed1002 * acinclude.m4 (MC_WITH_NCURSES): Fix ESCDELAY check on Solaris.
Make sure that linking succeeds.
2003-08-18 04:53:56 +00:00
Pavel Roskin
d6d16e47ef * acinclude.m4 (MC_ASM_LABELS): New macro to work around a bug
gettext.  Define _INTL_REDIRECT_MACROS if needed.
* configure.in: Use MC_ASM_LABELS.
2003-03-12 00:10:23 +00:00
Pavel Roskin
509020b6b5 * acinclude.m4 [AC_G_MODULE_SUPPORTED]: New macro.
* configure.in: Test for gmodule.  Don't link mc with libX11 if
gmodule is supported.
2003-02-23 04:38:24 +00:00
Pavel Roskin
b0c4a45dcf * acinclude.m4 (MC_WITH_NCURSES): Check -lcurses if -lncurses
doesn't work.  Useful on OpenBSD 3.2.
2003-01-30 06:52:26 +00:00
Pavel Roskin
077e1117ff * acinclude.m4 (MC_EXTFS_CHECKS): Fix redirection to /dev/null. 2003-01-23 14:27:11 +00:00
Pavel Roskin
9f903a7545 * acinclude.m4 (_MC_WITH_XSLANG): Drop support for old S-Lang
versions that required the native curses library on some OSes.
2003-01-22 07:10:38 +00:00