1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
|
|
|
dnl Configure.in file for the Midnight Commander
|
|
|
|
dnl
|
2000-09-16 03:57:10 +04:00
|
|
|
|
2002-08-21 19:22:06 +04:00
|
|
|
AC_INIT([GNU Midnight Commander], [], [mc-devel@gnome.org])
|
2009-01-29 12:12:29 +03:00
|
|
|
AC_PREREQ(2.60)
|
2005-11-11 05:03:55 +03:00
|
|
|
m4_pattern_forbid(MC_)
|
2009-07-30 17:48:40 +04:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2002-08-21 19:22:06 +04:00
|
|
|
AC_CONFIG_SRCDIR(src/main.c)
|
|
|
|
AC_CONFIG_AUX_DIR(config)
|
2009-06-02 17:36:58 +04:00
|
|
|
MC_VERSION
|
|
|
|
AM_INIT_AUTOMAKE(mc, ${VERSION} )
|
2001-09-12 23:18:38 +04:00
|
|
|
|
2011-03-04 19:07:30 +03:00
|
|
|
LIBMC_VERSION="0.0.1"
|
|
|
|
LIBMC_RELEASE="1"
|
|
|
|
AC_SUBST(LIBMC_VERSION)
|
|
|
|
AC_SUBST(LIBMC_RELEASE)
|
|
|
|
|
2010-04-07 12:04:26 +04:00
|
|
|
dnl Enable silent rules by default (if yes)
|
2010-04-06 21:45:07 +04:00
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
2000-08-24 18:13:00 +04:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
2000-09-12 23:31:56 +04:00
|
|
|
AM_MAINTAINER_MODE
|
2001-09-12 23:18:38 +04:00
|
|
|
AC_CANONICAL_HOST
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2009-01-09 03:20:50 +03:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
2009-04-25 12:09:47 +04:00
|
|
|
|
2011-03-24 15:40:18 +03:00
|
|
|
AC_DEFINE_UNQUOTED([MC_CONFIGURE_ARGS],["$ac_configure_args"],[MC configure arguments])
|
|
|
|
|
2009-04-25 12:09:47 +04:00
|
|
|
AC_PROG_LIBTOOL
|
2010-03-30 17:10:44 +04:00
|
|
|
PKG_PROG_PKG_CONFIG
|
2010-07-09 16:15:52 +04:00
|
|
|
AC_PATH_PROG([PERL], [perl], [/usr/bin/perl])
|
2009-04-25 12:09:47 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_ISC_POSIX
|
2001-08-25 07:14:20 +04:00
|
|
|
|
2001-09-07 08:25:02 +04:00
|
|
|
AC_PROG_CC_STDC
|
2010-01-26 23:26:49 +03:00
|
|
|
AM_PROG_CC_C_O
|
2001-08-25 07:14:20 +04:00
|
|
|
|
2009-02-03 18:24:53 +03:00
|
|
|
dnl Doxygen
|
|
|
|
|
|
|
|
DX_HTML_FEATURE(ON)
|
|
|
|
DX_CHM_FEATURE(OFF)
|
|
|
|
DX_CHI_FEATURE(OFF)
|
|
|
|
DX_MAN_FEATURE(OFF)
|
|
|
|
DX_RTF_FEATURE(OFF)
|
|
|
|
DX_XML_FEATURE(OFF)
|
|
|
|
DX_PDF_FEATURE(OFF)
|
|
|
|
DX_PS_FEATURE(OFF)
|
|
|
|
DX_INIT_DOXYGEN(mc,doxygen.cfg,devel)
|
|
|
|
|
2009-04-22 10:52:26 +04:00
|
|
|
dnl PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
|
2009-02-03 18:24:53 +03:00
|
|
|
|
2011-03-04 17:00:45 +03:00
|
|
|
AC_CHECK_GLIB
|
2002-08-23 19:56:51 +04:00
|
|
|
|
2011-03-04 19:07:30 +03:00
|
|
|
AC_ARG_ENABLE([mclib],
|
2011-05-25 17:51:18 +04:00
|
|
|
[AS_HELP_STRING([--enable-mclib], [Compile shared library libmc.so @<:@no@:>@])],
|
2011-03-04 19:07:30 +03:00
|
|
|
[
|
|
|
|
if test "x$enableval" = "xno" ; then
|
|
|
|
enable_mclib=no
|
|
|
|
else
|
|
|
|
if test "x$enable_shared" = "xno" ; then
|
|
|
|
AC_MSG_WARN([Build of shared library is disabled. Specify --enable-shared first])
|
|
|
|
enable_mclib=no
|
|
|
|
else
|
|
|
|
enable_mclib=yes
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[enable_mclib=no])
|
|
|
|
|
|
|
|
AM_CONDITIONAL([ENABLE_MCLIB], [test x$enable_mclib = xyes])
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_HEADER_MAJOR
|
|
|
|
AC_C_CONST
|
2011-09-24 21:45:29 +04:00
|
|
|
dnl Check this before type sizeof checks
|
2001-09-07 08:25:02 +04:00
|
|
|
AC_SYS_LARGEFILE
|
2001-06-26 03:52:47 +04:00
|
|
|
|
2002-08-23 19:56:51 +04:00
|
|
|
AC_PROG_LN_S
|
2001-03-15 04:18:14 +03:00
|
|
|
AC_CHECK_TOOL(AR, ar, ar)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2001-09-13 02:10:37 +04:00
|
|
|
dnl Only list browsers here that can be run in background (i.e. with `&')
|
2012-01-29 18:58:28 +04:00
|
|
|
AC_CHECK_PROGS(X11_WWW, [gnome-moz-remote mozilla firefox konqueror opera])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2001-10-25 07:46:59 +04:00
|
|
|
dnl
|
|
|
|
dnl Ovverriding mmap support. This has to be before AC_FUNC_MMAP is used.
|
|
|
|
dnl We use only part of the functionality of mmap, so on AIX,
|
|
|
|
dnl it's possible to use mmap, even if it doesn't pass the autoconf test.
|
|
|
|
dnl
|
2003-10-29 22:23:16 +03:00
|
|
|
AC_ARG_WITH(mmap,
|
|
|
|
[ --with-mmap Use the mmap call [[yes if found]]])
|
|
|
|
if test x$with_mmap != xno; then
|
|
|
|
if test x$with_mmap = x; then
|
|
|
|
AC_FUNC_MMAP
|
|
|
|
else
|
|
|
|
AC_DEFINE(HAVE_MMAP, 1)
|
|
|
|
fi
|
|
|
|
fi
|
2001-10-25 07:46:59 +04:00
|
|
|
|
2001-06-29 12:09:37 +04:00
|
|
|
dnl
|
|
|
|
dnl Internationalization
|
|
|
|
dnl
|
2005-10-04 01:00:22 +04:00
|
|
|
AM_GNU_GETTEXT(no-libtool, need-ngettext)
|
2005-11-11 04:14:51 +03:00
|
|
|
AM_GNU_GETTEXT_VERSION(0.14.3)
|
2002-09-14 03:09:22 +04:00
|
|
|
|
2001-06-29 12:09:37 +04:00
|
|
|
if test "x$USE_INCLUDED_LIBINTL" = xyes; then
|
2001-09-10 23:31:14 +04:00
|
|
|
CPPFLAGS="$CPPFLAGS -I\$(top_builddir)/intl -I\$(top_srcdir)/intl"
|
2001-06-29 12:09:37 +04:00
|
|
|
fi
|
|
|
|
|
2002-11-29 03:46:09 +03:00
|
|
|
dnl Determine which help translations we want to install.
|
2003-09-23 01:04:59 +04:00
|
|
|
ALL_DOC_LINGUAS="es hu it pl ru sr"
|
2002-11-29 03:46:09 +03:00
|
|
|
|
|
|
|
DOC_LINGUAS=
|
|
|
|
if test "x$USE_NLS" = xyes; then
|
2003-02-20 21:35:32 +03:00
|
|
|
if test -z "$LINGUAS"; then
|
|
|
|
langs="`grep -v '^#' $srcdir/po/LINGUAS`"
|
|
|
|
else
|
|
|
|
langs="$LINGUAS"
|
|
|
|
fi
|
2002-11-29 03:46:09 +03:00
|
|
|
else
|
|
|
|
langs=
|
|
|
|
fi
|
|
|
|
|
|
|
|
for h_lang in $ALL_DOC_LINGUAS; do
|
|
|
|
for lang in $langs; do
|
|
|
|
if test "$lang" = "$h_lang"; then
|
|
|
|
DOC_LINGUAS="$DOC_LINGUAS $lang"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
AC_SUBST(DOC_LINGUAS)
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
2001-05-27 00:36:24 +04:00
|
|
|
dnl OS specific flags.
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
2001-01-13 09:55:24 +03:00
|
|
|
case $host_os in
|
|
|
|
aux*)
|
2001-05-27 00:36:24 +04:00
|
|
|
# A/UX
|
2003-01-25 00:14:33 +03:00
|
|
|
LIBS="$LIBS -lposix"
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_DEFINE(_POSIX_SOURCE)
|
2001-05-27 00:36:24 +04:00
|
|
|
;;
|
2001-01-13 09:55:24 +03:00
|
|
|
esac
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
2009-11-02 19:11:49 +03:00
|
|
|
AC_CHECK_HEADERS([unistd.h string.h memory.h limits.h malloc.h \
|
2009-12-31 04:51:57 +03:00
|
|
|
utime.h fcntl.h sys/statfs.h sys/vfs.h sys/time.h \
|
2012-01-02 11:41:37 +04:00
|
|
|
sys/select.h sys/ioctl.h stropts.h arpa/inet.h \
|
|
|
|
sys/socket.h sys/sysmacros.h sys/types.h sys/mkdev.h])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2001-02-20 19:29:23 +03:00
|
|
|
AC_HEADER_TIME
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_HEADER_DIRENT
|
2012-01-04 15:36:53 +04:00
|
|
|
AC_HEADER_ASSERT
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
dnl Missing structure components
|
2003-10-29 20:36:16 +03:00
|
|
|
AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_rdev])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_STRUCT_ST_BLOCKS
|
|
|
|
|
|
|
|
dnl
|
2009-08-04 23:34:32 +04:00
|
|
|
dnl Check availability of some functions
|
|
|
|
dnl
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2005-08-16 00:59:13 +04:00
|
|
|
AC_CHECK_FUNCS([\
|
|
|
|
atoll \
|
2012-01-02 11:48:13 +04:00
|
|
|
isascii \
|
|
|
|
statfs sysconf \
|
|
|
|
tcgetattr tcsetattr \
|
|
|
|
ftruncate \
|
2010-05-13 21:28:12 +04:00
|
|
|
strverscmp \
|
2010-05-22 11:42:26 +04:00
|
|
|
strncasecmp \
|
2010-05-13 21:28:12 +04:00
|
|
|
realpath
|
2005-08-16 00:59:13 +04:00
|
|
|
])
|
2003-10-29 11:15:32 +03:00
|
|
|
|
1999-05-17 09:51:44 +04:00
|
|
|
dnl
|
|
|
|
dnl getpt is a GNU Extension (glibc 2.1.x)
|
|
|
|
dnl
|
2003-07-22 03:29:29 +04:00
|
|
|
AC_CHECK_FUNCS(posix_openpt, , [AC_CHECK_FUNCS(getpt)])
|
2000-09-16 03:57:10 +04:00
|
|
|
AC_CHECK_FUNCS(grantpt, , [AC_CHECK_LIB(pt, grantpt)])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
dnl replacing lstat with statlstat on sco makes it more portable between
|
|
|
|
dnl sco clones
|
|
|
|
AC_CHECK_FUNCS(statlstat)
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl If running under AIX, AC_AIX does not tell us that
|
|
|
|
dnl
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_CHECKING([for AIX defines])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_EGREP_CPP(yes,
|
|
|
|
[#if defined(AIX) || defined(_AIX) || defined(__aix__) || defined(aix)
|
|
|
|
yes
|
|
|
|
#endif
|
|
|
|
], [
|
2001-05-29 07:00:02 +04:00
|
|
|
AC_DEFINE(IS_AIX, 1, [Define if compiling for AIX])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_MSG_RESULT(yes)
|
2001-01-11 21:57:44 +03:00
|
|
|
], [AC_MSG_RESULT(no)])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Missing typedefs and replacements
|
2009-08-04 23:34:32 +04:00
|
|
|
dnl
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2007-10-11 16:32:42 +04:00
|
|
|
AC_CHECK_SIZEOF(long)
|
2011-08-09 12:52:26 +04:00
|
|
|
AC_TYPE_UINTMAX_T
|
|
|
|
AC_CHECK_SIZEOF(uintmax_t)
|
2007-10-11 16:32:42 +04:00
|
|
|
AC_TYPE_OFF_T
|
|
|
|
AC_CHECK_SIZEOF(off_t)
|
2011-08-09 12:52:26 +04:00
|
|
|
AC_TYPE_MODE_T
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_TYPE_PID_T
|
|
|
|
AC_TYPE_UID_T
|
|
|
|
|
2001-09-11 05:42:08 +04:00
|
|
|
AC_FUNC_STRCOLL
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2011-09-24 21:45:29 +04:00
|
|
|
AC_MC_GET_FS_INFO
|
2011-08-09 12:52:26 +04:00
|
|
|
|
1999-04-21 23:18:31 +04:00
|
|
|
dnl
|
2001-08-25 07:14:20 +04:00
|
|
|
dnl X11 support.
|
2002-12-23 20:02:04 +03:00
|
|
|
dnl Used to read keyboard modifiers when running under X11.
|
|
|
|
AC_PATH_XTRA
|
2011-03-04 17:00:45 +03:00
|
|
|
|
2010-11-30 22:13:16 +03:00
|
|
|
dnl
|
|
|
|
dnl Check if the gmodule functionality supported on this system.
|
|
|
|
AC_G_MODULE_SUPPORTED
|
1999-04-21 23:18:31 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
|
|
|
dnl Sequent wants getprocessstats
|
|
|
|
dnl
|
|
|
|
AC_CHECK_LIB(seq, get_process_stats, [
|
|
|
|
LIBS="$LIBS -lseq"
|
2001-09-11 04:27:03 +04:00
|
|
|
AC_DEFINE(HAVE_GET_PROCESS_STATS, 1,
|
|
|
|
[Define if you have function `get_process_stats' and
|
|
|
|
have to use that instead of gettimeofday])])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2009-05-07 16:38:06 +04:00
|
|
|
AC_MC_VFS_CHECKS
|
2001-04-20 03:20:06 +04:00
|
|
|
|
2002-09-30 05:25:58 +04:00
|
|
|
dnl
|
|
|
|
dnl Check for gpm mouse support (Linux only)
|
|
|
|
dnl
|
1998-02-27 07:54:42 +03:00
|
|
|
mouse_lib="xterm only"
|
2009-08-04 23:34:32 +04:00
|
|
|
AC_ARG_WITH(gpm-mouse,
|
2002-09-30 05:25:58 +04:00
|
|
|
[ --with-gpm-mouse Compile with gpm mouse support (Linux only)
|
|
|
|
[[yes if found]]])
|
|
|
|
|
2001-01-13 09:55:24 +03:00
|
|
|
case $host_os in
|
|
|
|
linux*)
|
2002-09-30 05:25:58 +04:00
|
|
|
if test x$with_gpm_mouse != xno; then
|
|
|
|
AC_CHECK_LIB(gpm, Gpm_Repeat,
|
|
|
|
[AC_DEFINE(HAVE_LIBGPM, 1,
|
|
|
|
[Define to enable gpm mouse support on Linux])
|
|
|
|
mouse_lib="gpm and xterm"
|
|
|
|
MCLIBS="$MCLIBS -lgpm"],
|
2009-09-23 19:56:02 +04:00
|
|
|
if test "x$with_gpm_mouse" = "xyes"; then
|
|
|
|
[AC_MSG_ERROR([libgpm is missing or older than 0.18])]
|
|
|
|
else
|
|
|
|
[AC_MSG_WARN([libgpm is missing or older than 0.18])]
|
|
|
|
fi
|
|
|
|
)
|
2002-09-30 05:25:58 +04:00
|
|
|
fi
|
2001-01-13 09:55:24 +03:00
|
|
|
;;
|
|
|
|
esac
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2009-06-19 17:34:34 +04:00
|
|
|
MC_CHECK_SEARCH_TYPE
|
2009-05-05 17:19:32 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
2002-10-30 05:37:48 +03:00
|
|
|
dnl Check nroff and the options it supports
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
|
|
|
AC_CHECK_PROG(HAVE_nroff, nroff, true, false)
|
2002-10-30 05:37:48 +03:00
|
|
|
|
|
|
|
dnl Default values
|
|
|
|
MANDOC=-man
|
|
|
|
MAN_FLAGS=
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
if $HAVE_nroff; then
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_CHECKING([for manual formatting macros])
|
2003-10-29 22:23:16 +03:00
|
|
|
AC_CACHE_VAL(mc_cv_mandoc, [
|
2001-10-18 08:54:42 +04:00
|
|
|
nroff -mandoc < /dev/null > /dev/null 2>&1
|
2002-10-30 05:37:48 +03:00
|
|
|
if test $? = 0; then
|
2003-10-29 22:23:16 +03:00
|
|
|
mc_cv_mandoc=-mandoc
|
1998-02-27 07:54:42 +03:00
|
|
|
else
|
2003-10-29 22:23:16 +03:00
|
|
|
mc_cv_mandoc=-man
|
1998-02-27 07:54:42 +03:00
|
|
|
fi
|
|
|
|
])
|
2003-10-29 22:23:16 +03:00
|
|
|
MANDOC=$mc_cv_mandoc
|
2001-09-13 00:45:46 +04:00
|
|
|
AC_MSG_RESULT([$MANDOC])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2002-10-30 05:37:48 +03:00
|
|
|
AC_MSG_CHECKING([for option to disable ANSI color in manuals])
|
2003-10-29 22:23:16 +03:00
|
|
|
AC_CACHE_VAL(mc_cv_man_nocolor, [
|
2002-10-30 05:37:48 +03:00
|
|
|
nroff -c < /dev/null > /dev/null 2>&1
|
|
|
|
if test $? = 0; then
|
2003-10-29 22:23:16 +03:00
|
|
|
mc_cv_man_nocolor=-c
|
2002-10-30 05:37:48 +03:00
|
|
|
else
|
2003-10-29 22:23:16 +03:00
|
|
|
mc_cv_man_nocolor=
|
2002-10-30 05:37:48 +03:00
|
|
|
fi
|
|
|
|
])
|
2003-10-29 22:23:16 +03:00
|
|
|
MAN_FLAGS=$mc_cv_man_nocolor
|
2002-10-30 05:37:48 +03:00
|
|
|
AC_MSG_RESULT([${MAN_NOCOLOR-none}])
|
|
|
|
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_CHECKING([if nroff accepts -Tlatin1 or -Tascii])
|
2003-10-29 22:23:16 +03:00
|
|
|
AC_CACHE_VAL(mc_cv_nroff_tascii, [
|
|
|
|
mc_cv_nroff_tascii=
|
1999-09-20 03:09:07 +04:00
|
|
|
nroff -Tlatin1 < /dev/null > /dev/null 2>&1 /dev/null
|
2002-10-30 05:37:48 +03:00
|
|
|
if test $? = 0; then
|
2003-10-29 22:23:16 +03:00
|
|
|
mc_cv_nroff_tascii=-Tlatin1
|
1998-02-27 07:54:42 +03:00
|
|
|
else
|
1999-09-20 03:09:07 +04:00
|
|
|
nroff -Tascii < /dev/null > /dev/null 2>&1 /dev/null
|
2002-10-30 05:37:48 +03:00
|
|
|
if test $? = 0; then
|
2003-10-29 22:23:16 +03:00
|
|
|
mc_cv_nroff_tascii=-Tascii
|
1999-09-20 03:09:07 +04:00
|
|
|
fi
|
1998-02-27 07:54:42 +03:00
|
|
|
fi
|
|
|
|
])
|
2003-10-29 22:23:16 +03:00
|
|
|
AC_MSG_RESULT([${mc_cv_nroff_tascii-no}])
|
|
|
|
MAN_FLAGS="$MAN_FLAGS $mc_cv_nroff_tascii"
|
1998-02-27 07:54:42 +03:00
|
|
|
fi
|
2002-10-30 05:37:48 +03:00
|
|
|
|
|
|
|
AC_SUBST(MANDOC)
|
|
|
|
AC_SUBST(MAN_FLAGS)
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
dnl
|
2003-10-29 04:25:42 +03:00
|
|
|
dnl Check for -L option to file
|
1998-02-27 07:54:42 +03:00
|
|
|
dnl
|
|
|
|
AC_CHECK_PROG(HAVE_FILECMD, file, true, false)
|
|
|
|
if $HAVE_FILECMD; then
|
2003-10-29 04:25:42 +03:00
|
|
|
AC_MSG_CHECKING([for -L option to file command])
|
2003-10-29 22:23:16 +03:00
|
|
|
AC_CACHE_VAL(mc_cv_filel, [
|
2003-10-29 04:25:42 +03:00
|
|
|
file -L . > /dev/null 2>&1
|
|
|
|
if test $? = 0; then
|
2003-10-29 22:23:16 +03:00
|
|
|
mc_cv_filel=yes
|
1998-02-27 07:54:42 +03:00
|
|
|
else
|
2003-10-29 22:23:16 +03:00
|
|
|
mc_cv_filel=no
|
1998-02-27 07:54:42 +03:00
|
|
|
fi
|
2003-10-29 04:25:42 +03:00
|
|
|
])
|
2003-10-29 22:23:16 +03:00
|
|
|
if test x$mc_cv_filel = xyes; then
|
2003-10-29 04:25:42 +03:00
|
|
|
AC_DEFINE(FILE_L, 1, [Define if the file command accepts the -L option])
|
1998-02-27 07:54:42 +03:00
|
|
|
fi
|
2003-10-29 22:23:16 +03:00
|
|
|
filel=$mc_cv_filel
|
2003-10-29 04:25:42 +03:00
|
|
|
AC_MSG_RESULT([$filel])
|
1998-02-27 07:54:42 +03:00
|
|
|
fi
|
|
|
|
|
2002-08-04 10:49:03 +04:00
|
|
|
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_CHECKING([for subshell support])
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_ARG_WITH(subshell,
|
2002-09-13 01:03:04 +04:00
|
|
|
[ --with-subshell Compile in concurrent subshell [[yes]]
|
|
|
|
--with-subshell=optional Don't run concurrent shell by default [[no]]],
|
2001-01-11 21:57:44 +03:00
|
|
|
[result=no
|
1998-02-27 07:54:42 +03:00
|
|
|
if test x$withval = xoptional
|
|
|
|
then
|
2001-09-11 04:27:03 +04:00
|
|
|
AC_DEFINE(SUBSHELL_OPTIONAL, 1,
|
|
|
|
[Define to make subshell support optional])
|
1998-02-27 07:54:42 +03:00
|
|
|
result="optional"
|
|
|
|
fi
|
|
|
|
if test x$withval = xyes
|
2009-08-04 23:34:32 +04:00
|
|
|
then
|
1998-02-27 07:54:42 +03:00
|
|
|
result="yes"
|
2001-01-11 21:57:44 +03:00
|
|
|
fi],
|
2002-08-19 09:17:34 +04:00
|
|
|
[dnl Default: enable the subshell support
|
|
|
|
result="yes"
|
2001-01-11 21:57:44 +03:00
|
|
|
])
|
2002-08-04 10:49:03 +04:00
|
|
|
if test "x$result" != xno; then
|
|
|
|
AC_DEFINE(HAVE_SUBSHELL_SUPPORT, 1,
|
|
|
|
[Define to enable subshell support])
|
|
|
|
fi
|
2001-01-11 21:57:44 +03:00
|
|
|
AC_MSG_RESULT([$result])
|
1998-02-27 07:54:42 +03:00
|
|
|
subshell="$result"
|
|
|
|
|
|
|
|
|
2010-06-16 10:51:00 +04:00
|
|
|
MC_WITH_SCREEN
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2002-09-30 05:02:02 +04:00
|
|
|
|
2002-09-13 10:39:06 +04:00
|
|
|
dnl
|
|
|
|
dnl Internal editor support.
|
|
|
|
dnl
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_ARG_WITH(edit,
|
2002-09-13 10:39:06 +04:00
|
|
|
[ --with-edit Enable internal editor [[yes]]])
|
|
|
|
|
|
|
|
if test x$with_edit != xno; then
|
|
|
|
AC_DEFINE(USE_INTERNAL_EDIT, 1, [Define to enable internal editor])
|
|
|
|
use_edit=yes
|
2002-10-01 02:10:29 +04:00
|
|
|
edit_msg="yes"
|
2002-09-13 10:39:06 +04:00
|
|
|
AC_MSG_NOTICE([using internal editor])
|
|
|
|
else
|
2002-10-01 02:10:29 +04:00
|
|
|
edit_msg="no"
|
2002-09-13 10:39:06 +04:00
|
|
|
fi
|
|
|
|
|
2010-03-03 16:09:15 +03:00
|
|
|
dnl
|
|
|
|
dnl Diff viewer support.
|
|
|
|
dnl
|
|
|
|
AC_ARG_WITH(diff_viewer,
|
|
|
|
[ --with-diff-viewer Compile with diff viewer [[yes]]])
|
|
|
|
|
|
|
|
if test x$with_diff_viewer != xno; then
|
|
|
|
AC_DEFINE(USE_DIFF_VIEW, 1, [Define to enable diff viewer])
|
|
|
|
use_diff=yes
|
|
|
|
diff_msg="yes"
|
|
|
|
AC_MSG_NOTICE([using diff viewer])
|
|
|
|
else
|
|
|
|
diff_msg="no"
|
|
|
|
fi
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2002-11-17 01:56:50 +03:00
|
|
|
dnl Check if the OS is supported by the console saver.
|
2001-01-13 10:24:13 +03:00
|
|
|
cons_saver=""
|
2001-01-13 09:55:24 +03:00
|
|
|
case $host_os in
|
|
|
|
linux*)
|
2002-11-17 01:56:50 +03:00
|
|
|
cons_saver=yes
|
2001-01-13 09:55:24 +03:00
|
|
|
esac
|
2002-11-17 01:56:50 +03:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2011-11-07 17:34:20 +04:00
|
|
|
dnl
|
|
|
|
dnl Where config files should be placed
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_ARG_WITH([homedir],
|
2011-11-24 15:52:41 +04:00
|
|
|
AS_HELP_STRING([--with-homedir], [Choose any place of user settings relative to home dir, or XDG for respect XDG standards @<:@XDG@:>@]),
|
2011-11-07 17:34:20 +04:00
|
|
|
[
|
|
|
|
if test "x$withval" = "xXDG"; then
|
|
|
|
with_homedir=XDG
|
|
|
|
else
|
|
|
|
with_homedir=$withval
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[with_homedir=XDG])
|
|
|
|
|
|
|
|
|
|
|
|
if test x$with_homedir = xXDG; then
|
|
|
|
AC_DEFINE(MC_HOMEDIR_XDG, 1,
|
|
|
|
[Define to enable XDG standard support])
|
|
|
|
else
|
|
|
|
AC_DEFINE_UNQUOTED([MC_USERCONF_DIR], ["$with_homedir"], [Where configs will be placed relative to $HOME])
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2012-01-09 15:48:39 +04:00
|
|
|
MC_BACKGROUND
|
2003-10-26 02:25:51 +04:00
|
|
|
|
|
|
|
|
2001-05-31 04:53:06 +04:00
|
|
|
dnl
|
|
|
|
dnl User visible support for charset conversion.
|
|
|
|
dnl
|
|
|
|
AC_ARG_ENABLE([charset],
|
2009-09-23 21:05:57 +04:00
|
|
|
[ --enable-charset Support for charset selection and conversion [[yes]]])
|
2001-05-31 04:53:06 +04:00
|
|
|
have_charset=
|
2004-11-03 23:53:16 +03:00
|
|
|
charset_msg="no"
|
2009-09-23 21:05:57 +04:00
|
|
|
if test "x$enable_charset" != "xno"; then
|
2001-05-31 04:53:06 +04:00
|
|
|
AC_DEFINE(HAVE_CHARSET, 1,
|
|
|
|
[Define to enable charset selection and conversion])
|
|
|
|
have_charset=yes
|
2004-11-03 23:10:54 +03:00
|
|
|
charset_msg="yes"
|
2001-05-31 04:53:06 +04:00
|
|
|
fi
|
|
|
|
|
2002-03-26 16:55:42 +03:00
|
|
|
if test "$GLIBC21" != yes; then
|
|
|
|
AC_DEFINE(USE_INCLUDED_REGEX, 1, [Use the regex included here])
|
|
|
|
fi
|
2001-05-31 04:53:06 +04:00
|
|
|
|
2009-10-30 00:29:32 +03:00
|
|
|
MC_CHECK_CFLAGS
|
|
|
|
|
2009-11-26 14:18:14 +03:00
|
|
|
CFLAGS_OPTS=""
|
|
|
|
|
2009-12-06 19:44:03 +03:00
|
|
|
if test "x$CFLAGS" = "x"; then
|
2009-11-26 14:18:14 +03:00
|
|
|
CFLAGS_OPTS=" -O2 "
|
|
|
|
fi
|
2004-08-17 12:53:30 +04:00
|
|
|
|
2009-10-27 14:43:46 +03:00
|
|
|
if test x$USE_MAINTAINER_MODE = xyes; then
|
2009-10-30 00:29:32 +03:00
|
|
|
CFLAGS_OPTS="-g3 -O -ggdb"
|
2009-10-30 00:57:40 +03:00
|
|
|
AC_DEFINE(USE_MAINTAINER_MODE, 1, [Use maintainer mode])
|
2009-10-27 14:43:46 +03:00
|
|
|
fi
|
|
|
|
|
2009-10-30 00:57:40 +03:00
|
|
|
AC_ARG_ENABLE(
|
|
|
|
[werror],
|
2011-05-25 17:51:18 +04:00
|
|
|
AS_HELP_STRING([--enable-werror], [Handle all compiler warnings as errors])
|
2009-10-30 00:57:40 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$enable_werror" = xyes; then
|
|
|
|
MC_CHECK_ONE_CFLAG([-Werror])
|
|
|
|
fi
|
2009-11-26 14:18:14 +03:00
|
|
|
CFLAGS="$mc_configured_cflags $CFLAGS_OPTS $CFLAGS"
|
2009-10-30 00:29:32 +03:00
|
|
|
|
2011-02-15 13:42:51 +03:00
|
|
|
MC_UNIT_TESTS
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(CPPFLAGS)
|
|
|
|
AC_SUBST(LDFLAGS)
|
|
|
|
AC_SUBST(LIBS)
|
|
|
|
|
2002-09-05 09:43:10 +04:00
|
|
|
dnl Libraries used only when building the mc binary
|
|
|
|
AC_SUBST(MCLIBS)
|
|
|
|
|
2010-12-01 14:55:42 +03:00
|
|
|
MAN_DATE="$(LC_ALL=C date "+%B %Y")"
|
2010-06-11 12:25:39 +04:00
|
|
|
AC_SUBST(MAN_DATE)
|
|
|
|
|
2011-03-24 13:38:22 +03:00
|
|
|
AM_CONDITIONAL(USE_NLS, [test x"$USE_NLS" = xyes])
|
2009-10-30 00:57:40 +03:00
|
|
|
AM_CONDITIONAL(USE_MAINTAINER_MODE, [test x"$USE_MAINTAINER_MODE" = xyes])
|
2009-05-10 19:01:15 +04:00
|
|
|
AM_CONDITIONAL(USE_SCREEN_SLANG, [test x"$with_screen" = xslang])
|
2002-09-13 10:39:06 +04:00
|
|
|
AM_CONDITIONAL(USE_EDIT, [test -n "$use_edit"])
|
2010-03-03 16:09:15 +03:00
|
|
|
AM_CONDITIONAL(USE_DIFF, [test -n "$use_diff"])
|
2001-08-26 21:15:02 +04:00
|
|
|
AM_CONDITIONAL(CHARSET, [test -n "$have_charset"])
|
|
|
|
AM_CONDITIONAL(CONS_SAVER, [test -n "$cons_saver"])
|
2001-03-15 04:18:14 +03:00
|
|
|
|
2010-05-11 18:24:25 +04:00
|
|
|
AC_CONFIG_FILES(
|
|
|
|
[
|
|
|
|
src/man2hlp/man2hlp
|
|
|
|
],
|
|
|
|
[
|
|
|
|
chmod +x src/man2hlp/man2hlp
|
|
|
|
])
|
|
|
|
|
2001-09-13 00:45:46 +04:00
|
|
|
AC_CONFIG_FILES([
|
2009-01-10 18:26:14 +03:00
|
|
|
Makefile
|
|
|
|
|
|
|
|
contrib/Makefile
|
2009-02-13 23:09:16 +03:00
|
|
|
contrib/dist/Makefile
|
|
|
|
contrib/dist/debian/Makefile
|
|
|
|
contrib/dist/gentoo/Makefile
|
|
|
|
contrib/dist/redhat/Makefile
|
|
|
|
contrib/dist/redhat/mc.spec
|
2009-01-10 18:26:14 +03:00
|
|
|
contrib/dist/pkginfo
|
|
|
|
contrib/dist/prototype
|
2009-05-08 17:56:02 +04:00
|
|
|
|
|
|
|
misc/Makefile
|
2009-09-04 18:22:49 +04:00
|
|
|
misc/skins/Makefile
|
2011-02-04 13:15:43 +03:00
|
|
|
misc/macros.d/Makefile
|
2009-05-08 17:56:02 +04:00
|
|
|
misc/mc.ext
|
2009-04-25 12:09:47 +04:00
|
|
|
|
1998-03-25 08:16:00 +03:00
|
|
|
src/Makefile
|
2010-01-21 17:20:11 +03:00
|
|
|
src/consaver/Makefile
|
2010-01-07 01:20:56 +03:00
|
|
|
src/editor/Makefile
|
2010-04-07 12:54:16 +04:00
|
|
|
src/man2hlp/Makefile
|
2009-07-26 11:31:24 +04:00
|
|
|
src/viewer/Makefile
|
2010-03-03 16:09:15 +03:00
|
|
|
src/diffviewer/Makefile
|
2010-11-22 17:15:28 +03:00
|
|
|
src/filemanager/Makefile
|
2009-04-25 12:09:47 +04:00
|
|
|
|
2011-02-15 16:44:17 +03:00
|
|
|
src/vfs/Makefile
|
|
|
|
|
|
|
|
src/vfs/cpio/Makefile
|
|
|
|
|
|
|
|
src/vfs/extfs/Makefile
|
|
|
|
src/vfs/extfs/helpers/Makefile
|
|
|
|
src/vfs/extfs/helpers/a+
|
|
|
|
src/vfs/extfs/helpers/apt+
|
|
|
|
src/vfs/extfs/helpers/audio
|
|
|
|
src/vfs/extfs/helpers/deb
|
|
|
|
src/vfs/extfs/helpers/deba
|
|
|
|
src/vfs/extfs/helpers/debd
|
|
|
|
src/vfs/extfs/helpers/dpkg+
|
|
|
|
src/vfs/extfs/helpers/iso9660
|
|
|
|
src/vfs/extfs/helpers/hp48+
|
|
|
|
src/vfs/extfs/helpers/lslR
|
|
|
|
src/vfs/extfs/helpers/mailfs
|
|
|
|
src/vfs/extfs/helpers/patchfs
|
|
|
|
src/vfs/extfs/helpers/rpms+
|
|
|
|
src/vfs/extfs/helpers/s3+
|
|
|
|
src/vfs/extfs/helpers/uace
|
|
|
|
src/vfs/extfs/helpers/ualz
|
|
|
|
src/vfs/extfs/helpers/uar
|
|
|
|
src/vfs/extfs/helpers/uarc
|
|
|
|
src/vfs/extfs/helpers/uarj
|
|
|
|
src/vfs/extfs/helpers/uc1541
|
2011-07-05 21:45:38 +04:00
|
|
|
src/vfs/extfs/helpers/ucab
|
2011-02-15 16:44:17 +03:00
|
|
|
src/vfs/extfs/helpers/uha
|
|
|
|
src/vfs/extfs/helpers/ulha
|
|
|
|
src/vfs/extfs/helpers/urar
|
|
|
|
src/vfs/extfs/helpers/uzip
|
|
|
|
src/vfs/extfs/helpers/uzoo
|
|
|
|
|
|
|
|
src/vfs/fish/Makefile
|
|
|
|
src/vfs/fish/helpers/Makefile
|
|
|
|
|
|
|
|
src/vfs/ftpfs/Makefile
|
|
|
|
|
|
|
|
src/vfs/local/Makefile
|
|
|
|
|
|
|
|
src/vfs/sfs/Makefile
|
|
|
|
|
|
|
|
src/vfs/smbfs/Makefile
|
|
|
|
|
|
|
|
src/vfs/tar/Makefile
|
|
|
|
|
|
|
|
src/vfs/undelfs/Makefile
|
|
|
|
|
2010-01-07 01:45:27 +03:00
|
|
|
lib/Makefile
|
Added new engine for universal event system.
Example:
gboolean mkdir_callback(const gchar *event_group, const gchar *event_name, gpointer init_data, gpointer event_data)
{
... /* some action for handle event */
return TRUE; /* got chance to run other callbacks for this event or */
return FALSE; /* break execution for other callbacks */
}
mc_event_add ("filesystem", "mkdir", mkdir_callback, "some init data", NULL);
mc_event_add ("filesystem", "mkdir", mkdir_log_callback, "some init data", NULL);
mc_event_add ("filesystem", "mkdir", third_callback, NULL, NULL);
/*
Last add - first run. In this case execution order is
* third_callback
* mkdir_log_callback
* mkdir_callback
if third_callback fuctions will return FALSE, then other callbacks
(mkdir_log_callback and mkdir_callback) never run!
*/
... /* some code */
/* for example, after pressing F7 */
mc_event_raise("filesystem", "mkdir", "some event_data... path to directory");
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-17 01:01:38 +03:00
|
|
|
lib/event/Makefile
|
2010-01-07 02:31:17 +03:00
|
|
|
lib/filehighlight/Makefile
|
|
|
|
lib/mcconfig/Makefile
|
|
|
|
lib/search/Makefile
|
|
|
|
lib/skin/Makefile
|
2010-01-21 15:17:26 +03:00
|
|
|
lib/strutil/Makefile
|
2010-01-07 02:31:17 +03:00
|
|
|
lib/tty/Makefile
|
2011-02-15 16:44:17 +03:00
|
|
|
|
2010-01-07 01:45:27 +03:00
|
|
|
lib/vfs/Makefile
|
2011-02-15 16:44:17 +03:00
|
|
|
|
2010-11-10 22:45:56 +03:00
|
|
|
lib/widget/Makefile
|
2010-06-23 17:10:05 +04:00
|
|
|
|
2010-01-07 02:20:14 +03:00
|
|
|
misc/syntax/Makefile
|
1998-03-25 08:16:00 +03:00
|
|
|
|
2009-08-04 23:34:32 +04:00
|
|
|
doc/Makefile
|
2009-01-13 15:36:26 +03:00
|
|
|
doc/hints/Makefile
|
2010-07-13 21:22:04 +04:00
|
|
|
doc/man/mc.1 doc/man/mcedit.1 doc/man/mcview.1 doc/man/Makefile
|
2009-01-10 18:04:58 +03:00
|
|
|
doc/man/es/mc.1 doc/man/es/Makefile
|
|
|
|
doc/man/hu/mc.1 doc/man/hu/Makefile
|
|
|
|
doc/man/it/mc.1 doc/man/it/Makefile
|
|
|
|
doc/man/pl/mc.1 doc/man/pl/Makefile
|
|
|
|
doc/man/ru/mc.1 doc/man/ru/Makefile
|
2010-07-13 21:22:04 +04:00
|
|
|
doc/man/sr/mc.1 doc/man/sr/Makefile
|
2009-05-12 11:48:37 +04:00
|
|
|
|
|
|
|
doc/hlp/Makefile
|
|
|
|
doc/hlp/es/Makefile
|
|
|
|
doc/hlp/hu/Makefile
|
|
|
|
doc/hlp/it/Makefile
|
|
|
|
doc/hlp/pl/Makefile
|
|
|
|
doc/hlp/ru/Makefile
|
|
|
|
doc/hlp/sr/Makefile
|
1998-03-25 08:16:00 +03:00
|
|
|
|
2002-09-17 20:13:25 +04:00
|
|
|
intl/Makefile
|
|
|
|
po/Makefile.in
|
2001-09-13 00:45:46 +04:00
|
|
|
])
|
|
|
|
|
2011-03-09 12:33:46 +03:00
|
|
|
if test x$enable_tests != xno; then
|
|
|
|
AC_CONFIG_FILES([
|
2011-07-11 12:22:46 +04:00
|
|
|
tests/Makefile
|
|
|
|
tests/lib/Makefile
|
|
|
|
tests/lib/mcconfig/Makefile
|
|
|
|
tests/lib/search/Makefile
|
|
|
|
tests/lib/vfs/Makefile
|
2011-10-12 17:08:50 +04:00
|
|
|
tests/src/Makefile
|
|
|
|
tests/src/filemanager/Makefile
|
2011-03-09 12:33:46 +03:00
|
|
|
])
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2001-09-13 00:45:46 +04:00
|
|
|
AC_OUTPUT
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
echo "
|
|
|
|
Configuration:
|
|
|
|
|
|
|
|
Source code location: ${srcdir}
|
2001-08-25 07:14:20 +04:00
|
|
|
Compiler: ${CC}
|
1998-02-27 07:54:42 +03:00
|
|
|
Compiler flags: ${CFLAGS}
|
|
|
|
File system: ${vfs_type}
|
2001-08-25 07:14:20 +04:00
|
|
|
${vfs_flags}
|
2002-09-30 05:02:02 +04:00
|
|
|
Screen library: ${screen_msg}
|
2001-08-25 07:14:20 +04:00
|
|
|
Mouse support: ${mouse_lib}
|
|
|
|
X11 events support: ${textmode_x11_support}
|
1998-02-27 07:54:42 +03:00
|
|
|
With subshell support: ${subshell}
|
2012-01-09 15:48:39 +04:00
|
|
|
With background operations: ${enable_background}
|
2002-10-01 02:10:29 +04:00
|
|
|
Internal editor: ${edit_msg}
|
2010-03-03 16:09:15 +03:00
|
|
|
Diff viewer: ${diff_msg}
|
2004-11-03 23:10:54 +03:00
|
|
|
Support for charset: ${charset_msg}
|
2009-06-19 17:34:34 +04:00
|
|
|
Search type: ${SEARCH_TYPE}
|
2000-08-22 06:17:58 +04:00
|
|
|
"
|