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
|
|
|
|
2021-03-20 10:02:12 +03:00
|
|
|
dnl 2.64 is required at least for m4_esyscmd_s()
|
|
|
|
AC_PREREQ(2.64)
|
2021-03-18 15:28:35 +03:00
|
|
|
|
2021-05-26 21:47:57 +03:00
|
|
|
AC_INIT([GNU Midnight Commander], m4_esyscmd_s([./version.sh .]),
|
2021-03-20 10:02:12 +03:00
|
|
|
[https://www.midnight-commander.org/wiki/NewTicket], [mc],
|
|
|
|
[https://www.midnight-commander.org/])
|
2021-03-18 15:28:35 +03:00
|
|
|
|
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_AUX_DIR(config)
|
2012-08-10 13:09:07 +04:00
|
|
|
AC_CONFIG_SRCDIR(src/main.c)
|
|
|
|
AC_CONFIG_HEADERS(config.h)
|
2021-03-18 15:28:35 +03:00
|
|
|
|
|
|
|
dnl Apply "no-define" to avoid defining the VERSION macro in config.h
|
|
|
|
AM_INIT_AUTOMAKE([no-define])
|
|
|
|
dnl PACKAGE macro isn't defined if "no-define" is applied
|
|
|
|
AC_DEFINE([PACKAGE], ["mc"], [Name of package])
|
|
|
|
|
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])])
|
|
|
|
|
2021-03-20 10:02:12 +03:00
|
|
|
mc_VERSION
|
|
|
|
|
2000-09-12 23:31:56 +04:00
|
|
|
AM_MAINTAINER_MODE
|
2012-08-10 13:09:07 +04:00
|
|
|
|
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
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl ############################################################################
|
|
|
|
dnl Check for compiler
|
|
|
|
dnl ############################################################################
|
2001-08-25 07:14:20 +04:00
|
|
|
|
2024-07-27 22:18:48 +03:00
|
|
|
dnl This should be checked before toolchain macros, otherwise they will remember
|
|
|
|
dnl that ar cannot be found and linking via libtool will fail at a later stage
|
|
|
|
AC_CHECK_TOOLS([AR], [ar gar])
|
|
|
|
|
2021-12-22 22:12:03 +03:00
|
|
|
AC_PROG_CC
|
2010-01-26 23:26:49 +03:00
|
|
|
AM_PROG_CC_C_O
|
2001-08-25 07:14:20 +04:00
|
|
|
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_CHECK_CFLAGS
|
2009-02-03 18:24:53 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
CFLAGS_OPTS=""
|
|
|
|
if test "x$CFLAGS" = "x"; then
|
|
|
|
CFLAGS_OPTS=" -O2 "
|
|
|
|
fi
|
|
|
|
if test x$USE_MAINTAINER_MODE = xyes; then
|
|
|
|
CFLAGS_OPTS="-g3 -O -ggdb"
|
|
|
|
AC_DEFINE(USE_MAINTAINER_MODE, 1, [Use maintainer mode])
|
|
|
|
fi
|
2009-02-03 18:24:53 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
AC_ARG_ENABLE([werror],
|
|
|
|
AS_HELP_STRING([--enable-werror], [Handle all compiler warnings as errors]))
|
|
|
|
if test "x$enable_werror" = xyes; then
|
2021-09-19 17:13:56 +03:00
|
|
|
AX_APPEND_COMPILE_FLAGS([-Werror], [mc_configured_cflags])
|
2012-08-10 13:09:07 +04:00
|
|
|
fi
|
2002-08-23 19:56:51 +04:00
|
|
|
|
2019-01-11 19:08:28 +03:00
|
|
|
dnl Compiler can generate warnings for unrecognized flags added to CFLAGS
|
|
|
|
dnl which causes attribute checks to fail
|
|
|
|
ax_gcc_func_attribute_save_flags=$[]_AC_LANG_PREFIX[]FLAGS
|
|
|
|
_AC_LANG_PREFIX[]FLAGS=
|
2017-12-16 20:52:39 +03:00
|
|
|
AX_GCC_FUNC_ATTRIBUTE([fallthrough])
|
2019-01-11 19:08:28 +03:00
|
|
|
_AC_LANG_PREFIX[]FLAGS=$ax_gcc_func_attribute_save_flags
|
|
|
|
unset ax_gcc_func_attribute_save_flags
|
2017-12-16 20:52:39 +03:00
|
|
|
|
2019-01-08 12:44:30 +03:00
|
|
|
LT_INIT
|
2011-03-04 19:07:30 +03:00
|
|
|
|
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl ############################################################################
|
|
|
|
dnl Check for programs
|
|
|
|
dnl ############################################################################
|
2001-06-26 03:52:47 +04:00
|
|
|
|
2023-05-19 17:49:55 +03:00
|
|
|
AC_PROG_SED
|
2012-08-10 13:09:07 +04:00
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
AC_PROG_INSTALL
|
2002-08-23 19:56:51 +04:00
|
|
|
AC_PROG_LN_S
|
2018-09-04 11:50:37 +03:00
|
|
|
dnl See also the "OS specific stuff" section below.
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl Check nroff and the options it supports
|
|
|
|
AC_CHECK_PROG(HAVE_nroff, nroff, true, false)
|
|
|
|
dnl Default values
|
|
|
|
MANDOC=-man
|
|
|
|
MAN_FLAGS=
|
|
|
|
if $HAVE_nroff; then
|
|
|
|
AC_MSG_CHECKING([for manual formatting macros])
|
|
|
|
AC_CACHE_VAL(mc_cv_mandoc, [
|
|
|
|
nroff -mandoc < /dev/null > /dev/null 2>&1
|
|
|
|
if test $? = 0; then
|
|
|
|
mc_cv_mandoc=-mandoc
|
2003-10-29 22:23:16 +03:00
|
|
|
else
|
2012-08-10 13:09:07 +04:00
|
|
|
mc_cv_mandoc=-man
|
2003-10-29 22:23:16 +03:00
|
|
|
fi
|
2012-08-10 13:09:07 +04:00
|
|
|
])
|
|
|
|
MANDOC=$mc_cv_mandoc
|
|
|
|
AC_MSG_RESULT([$MANDOC])
|
2001-10-25 07:46:59 +04:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
AC_MSG_CHECKING([for option to disable ANSI color in manuals])
|
|
|
|
AC_CACHE_VAL(mc_cv_man_nocolor, [
|
|
|
|
nroff -c < /dev/null > /dev/null 2>&1
|
|
|
|
if test $? = 0; then
|
|
|
|
mc_cv_man_nocolor=-c
|
|
|
|
else
|
|
|
|
mc_cv_man_nocolor=
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
MAN_FLAGS=$mc_cv_man_nocolor
|
|
|
|
AC_MSG_RESULT([${MAN_NOCOLOR-none}])
|
2002-09-14 03:09:22 +04:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
AC_MSG_CHECKING([if nroff accepts -Tlatin1 or -Tascii])
|
|
|
|
AC_CACHE_VAL(mc_cv_nroff_tascii, [
|
|
|
|
mc_cv_nroff_tascii=
|
|
|
|
nroff -Tlatin1 < /dev/null > /dev/null 2>&1 /dev/null
|
|
|
|
if test $? = 0; then
|
|
|
|
mc_cv_nroff_tascii=-Tlatin1
|
|
|
|
else
|
|
|
|
nroff -Tascii < /dev/null > /dev/null 2>&1 /dev/null
|
|
|
|
if test $? = 0; then
|
|
|
|
mc_cv_nroff_tascii=-Tascii
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
AC_MSG_RESULT([${mc_cv_nroff_tascii-no}])
|
|
|
|
MAN_FLAGS="$MAN_FLAGS $mc_cv_nroff_tascii"
|
2001-06-29 12:09:37 +04:00
|
|
|
fi
|
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
AC_SUBST(MANDOC)
|
|
|
|
AC_SUBST(MAN_FLAGS)
|
2002-11-29 03:46:09 +03:00
|
|
|
|
2022-06-26 19:18:09 +03:00
|
|
|
dnl Check for -z, -b, -L, and -S options to file
|
2012-08-10 13:09:07 +04:00
|
|
|
AC_CHECK_PROG(HAVE_FILECMD, file, true, false)
|
|
|
|
if $HAVE_FILECMD; then
|
2021-02-16 16:29:51 +03:00
|
|
|
dnl Don't use the file command if it doesn't accept the -z option
|
|
|
|
AC_MSG_CHECKING([for -z option to file command])
|
|
|
|
AC_CACHE_VAL(mc_cv_file_z, [
|
|
|
|
file -z . > /dev/null 2>&1
|
|
|
|
if test $? = 0; then
|
|
|
|
mc_cv_file_z=yes
|
|
|
|
else
|
|
|
|
mc_cv_file_z=no
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
AC_MSG_RESULT([$mc_cv_file_z])
|
|
|
|
|
|
|
|
if test x$mc_cv_file_z = xyes; then
|
|
|
|
AC_DEFINE(USE_FILE_CMD, 1, [Define if the file command accepts the -z option])
|
2003-02-20 21:35:32 +03:00
|
|
|
else
|
2021-02-16 16:29:51 +03:00
|
|
|
AC_MSG_WARN([The file command doesn't accept the -z option and will not be used])
|
2003-02-20 21:35:32 +03:00
|
|
|
fi
|
2021-02-16 16:29:51 +03:00
|
|
|
|
|
|
|
if test x$mc_cv_file_z = xyes; then
|
2022-06-26 19:18:09 +03:00
|
|
|
dnl file is used; check -b, -L and -S options
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for -b option to file command])
|
|
|
|
AC_CACHE_VAL(mc_cv_file_b, [
|
|
|
|
file -b . > /dev/null 2>&1
|
|
|
|
if test $? = 0; then
|
|
|
|
mc_cv_file_b=yes
|
|
|
|
else
|
|
|
|
mc_cv_file_b=no
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
AC_MSG_RESULT([$mc_cv_file_b])
|
|
|
|
|
|
|
|
if test x$mc_cv_file_b = xyes; then
|
|
|
|
AC_DEFINE(FILE_B, "-b ", [Define if the file command accepts the -b option])
|
|
|
|
fi
|
2021-02-16 16:29:51 +03:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([for -L option to file command])
|
|
|
|
AC_CACHE_VAL(mc_cv_file_L, [
|
|
|
|
file -L . > /dev/null 2>&1
|
|
|
|
if test $? = 0; then
|
|
|
|
mc_cv_file_L=yes
|
|
|
|
else
|
|
|
|
mc_cv_file_L=no
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
AC_MSG_RESULT([$mc_cv_file_L])
|
|
|
|
|
|
|
|
if test x$mc_cv_file_L = xyes; then
|
|
|
|
AC_DEFINE(FILE_L, "-L ", [Define if the file command accepts the -L option])
|
|
|
|
else
|
|
|
|
AC_DEFINE(FILE_L, "", [Define if the file command accepts the -L option])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl The file command accepts the -S option since 5.33
|
|
|
|
AC_MSG_CHECKING([for -S option to file command])
|
|
|
|
AC_CACHE_VAL(mc_cv_file_S, [
|
|
|
|
file -S . > /dev/null 2>&1
|
|
|
|
if test $? = 0; then
|
|
|
|
mc_cv_file_S=yes
|
|
|
|
else
|
|
|
|
mc_cv_file_S=no
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
AC_MSG_RESULT([$mc_cv_file_S])
|
|
|
|
|
|
|
|
if test x$mc_cv_file_S = xyes; then
|
|
|
|
AC_DEFINE(FILE_S, "-S ", [Define if file command accepts the -S option])
|
|
|
|
else
|
|
|
|
AC_DEFINE(FILE_S, "", [Define if file command accepts the -S option])
|
|
|
|
fi
|
2012-08-10 13:09:07 +04:00
|
|
|
fi
|
2002-11-29 03:46:09 +03:00
|
|
|
fi
|
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl Only list browsers here that can be run in background (i.e. with `&')
|
|
|
|
AC_CHECK_PROGS(X11_WWW, [gnome-moz-remote mozilla firefox konqueror opera])
|
2002-11-29 03:46:09 +03:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl ############################################################################
|
|
|
|
dnl Check for other tools
|
|
|
|
dnl ############################################################################
|
|
|
|
|
2024-07-27 22:18:48 +03:00
|
|
|
AC_CHECK_TOOLS([INDENT], [gindent indent])
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_UNIT_TESTS
|
2012-08-10 13:09:07 +04:00
|
|
|
|
|
|
|
|
|
|
|
dnl ############################################################################
|
Fix various typos in the source code (closes MidnightCommander/mc#177).
Found via `codespell -S
po,doc,./misc/syntax,./src/vfs/extfs/helpers/README.it -L
parm,rouge,sav,ect,vie,te,dum,clen,wee,dynamc,childs,ths,fo,nin,unx,nd,iif,iterm,ser,makrs,wil`
Co-authored-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Kian-Meng Ang <kianmeng@cpan.org>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2023-01-10 06:02:52 +03:00
|
|
|
dnl Check for main libraries
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl ############################################################################
|
|
|
|
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_CHECK_GLIB
|
|
|
|
mc_G_MODULE_SUPPORTED
|
|
|
|
mc_WITH_SCREEN
|
|
|
|
mc_CHECK_SEARCH_TYPE
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl X11 support. Used to read keyboard modifiers when running under X11.
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_WITH_X
|
2012-08-10 13:09:07 +04:00
|
|
|
|
|
|
|
|
|
|
|
dnl ############################################################################
|
|
|
|
dnl Check for header files
|
|
|
|
dnl ############################################################################
|
|
|
|
|
2013-04-07 13:32:28 +04:00
|
|
|
AC_CHECK_HEADERS([string.h memory.h limits.h malloc.h \
|
|
|
|
utime.h sys/statfs.h sys/vfs.h \
|
2012-01-02 11:41:37 +04:00
|
|
|
sys/select.h sys/ioctl.h stropts.h arpa/inet.h \
|
2013-11-24 09:39:16 +04:00
|
|
|
sys/socket.h])
|
2018-09-04 13:12:37 +03:00
|
|
|
dnl This macro is redefined in m4.include/gnulib/sys_types_h.m4
|
2018-01-04 09:23:59 +03:00
|
|
|
dnl to work around a buggy version in autoconf <= 2.69.
|
2013-11-24 09:39:16 +04:00
|
|
|
AC_HEADER_MAJOR
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2024-08-31 11:09:10 +03:00
|
|
|
mc_CHECK_HEADER_STDCKDINT
|
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
|
|
|
|
dnl ############################################################################
|
|
|
|
dnl Check for types
|
|
|
|
dnl ############################################################################
|
|
|
|
|
|
|
|
dnl Check largefile before type sizeof checks
|
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
|
|
|
|
AC_CHECK_SIZEOF(long)
|
|
|
|
AC_TYPE_UINTMAX_T
|
|
|
|
AC_CHECK_SIZEOF(uintmax_t)
|
|
|
|
AC_TYPE_OFF_T
|
|
|
|
AC_CHECK_SIZEOF(off_t)
|
|
|
|
AC_TYPE_MODE_T
|
2016-03-16 18:10:48 +03:00
|
|
|
gl_PROMOTED_TYPE_MODE_T
|
2012-08-10 13:09:07 +04:00
|
|
|
AC_TYPE_PID_T
|
|
|
|
AC_TYPE_UID_T
|
2024-09-01 12:43:27 +03:00
|
|
|
|
|
|
|
dnl Taken from GNU/Linux, and should be good enough on platforms lacking these types.
|
|
|
|
AC_CHECK_TYPE([dev_t], [unsigned long long int])
|
|
|
|
AC_CHECK_TYPE([ino_t], [unsigned long long int])
|
|
|
|
|
|
|
|
dnl Taken from GNU/Linux, and should be good enough on platforms lacking these types.
|
|
|
|
AC_CHECK_TYPE([major_t], [unsigned int])
|
|
|
|
AC_CHECK_TYPE([minor_t], [unsigned int])
|
2012-08-10 13:09:07 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_STRUCT_ST_BLOCKS
|
2024-06-01 18:44:28 +03:00
|
|
|
AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_rdev, struct stat.st_mtim, struct stat.st_mtimespec, struct stat.st_mtimensec])
|
2016-04-06 13:19:59 +03:00
|
|
|
gl_STAT_SIZE
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2012-10-31 11:33:50 +04:00
|
|
|
AH_TEMPLATE([sig_atomic_t],
|
|
|
|
[/* Define to `int' if <signal.h> doesn't define.])
|
|
|
|
AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
|
|
|
|
[Some systems declare sig_atomic_t as volatile, some others -- no.
|
|
|
|
This define will have value `sig_atomic_t' or
|
|
|
|
`volatile sig_atomic_t' accordingly.])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for sig_atomic_t in signal.h)
|
|
|
|
AC_EGREP_HEADER(sig_atomic_t,signal.h,
|
|
|
|
[
|
|
|
|
ac_cv_type_sig_atomic_t=yes;
|
|
|
|
AC_EGREP_HEADER(volatile.*sig_atomic_t,
|
|
|
|
signal.h,
|
|
|
|
[
|
|
|
|
is_sig_atomic_t_volatile=yes;
|
|
|
|
AC_MSG_RESULT([yes, volatile])
|
|
|
|
],
|
|
|
|
[
|
|
|
|
is_sig_atomic_t_volatile=no;
|
|
|
|
AC_MSG_RESULT([yes, non volatile])
|
|
|
|
])
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
AC_CHECK_TYPE(sig_atomic_t, int)
|
|
|
|
is_sig_atomic_t_volatile=no
|
|
|
|
])
|
|
|
|
if test $is_sig_atomic_t_volatile = 'yes'
|
|
|
|
then
|
|
|
|
AC_DEFINE(SIG_ATOMIC_VOLATILE_T, sig_atomic_t)
|
|
|
|
else
|
|
|
|
AC_DEFINE(SIG_ATOMIC_VOLATILE_T, [volatile sig_atomic_t])
|
|
|
|
fi
|
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
|
|
|
|
dnl ############################################################################
|
|
|
|
dnl Check for functions
|
|
|
|
dnl ############################################################################
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2005-08-16 00:59:13 +04:00
|
|
|
AC_CHECK_FUNCS([\
|
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 getpt is a GNU Extension (glibc 2.1.x)
|
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)
|
|
|
|
|
2019-02-03 12:41:33 +03:00
|
|
|
mc_GET_FS_INFO
|
2012-08-10 13:09:07 +04:00
|
|
|
|
|
|
|
|
|
|
|
dnl ############################################################################
|
|
|
|
dnl Internationalization
|
|
|
|
dnl ############################################################################
|
|
|
|
|
2019-09-12 00:58:18 +03:00
|
|
|
AC_CHECK_FUNCS([setlocale])
|
|
|
|
|
|
|
|
AM_GNU_GETTEXT([external], [need-ngettext])
|
2020-12-30 19:37:41 +03:00
|
|
|
AM_GNU_GETTEXT_VERSION([0.18.2])
|
2012-08-10 13:09:07 +04:00
|
|
|
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_I18N
|
2012-08-10 13:09:07 +04:00
|
|
|
|
|
|
|
dnl ############################################################################
|
2018-09-04 11:50:37 +03:00
|
|
|
dnl OS specific stuff
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl ############################################################################
|
|
|
|
|
2018-09-04 11:50:37 +03:00
|
|
|
case $host_os in
|
|
|
|
*os400)
|
|
|
|
AC_PATH_PROG([PERL], [perl], [/QOpenSys/pkgs/bin/perl])
|
2022-08-18 12:40:20 +03:00
|
|
|
AC_PATH_PROG([PERL_FOR_BUILD], [perl], [/QOpenSys/pkgs/bin/perl])
|
2018-09-04 11:50:37 +03:00
|
|
|
AC_PATH_PROG([PYTHON], [python], [/QOpenSys/pkgs/bin/python2])
|
|
|
|
AC_PATH_PROG([RUBY], [ruby], [/QOpenSys/pkgs/bin/ruby])
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_PATH_PROG([PERL], [perl], [/usr/bin/perl])
|
2022-08-18 12:40:20 +03:00
|
|
|
AC_PATH_PROG([PERL_FOR_BUILD], [perl], [/usr/bin/perl])
|
2018-09-04 11:50:37 +03:00
|
|
|
AC_PATH_PROG([PYTHON], [python], [/usr/bin/python])
|
|
|
|
AC_PATH_PROG([RUBY], [ruby], [/usr/bin/ruby])
|
|
|
|
esac
|
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
case $host_os in
|
|
|
|
aux*)
|
|
|
|
# A/UX
|
|
|
|
LIBS="$LIBS -lposix"
|
|
|
|
AC_DEFINE(_POSIX_SOURCE)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
dnl If running under AIX, AC_AIX does not tell us that
|
|
|
|
AC_MSG_CHECKING([for AIX defines])
|
|
|
|
AC_EGREP_CPP([yes],
|
|
|
|
[
|
|
|
|
#if defined(AIX) || defined(_AIX) || defined(__aix__) || defined(aix)
|
|
|
|
yes
|
|
|
|
#endif
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_DEFINE(IS_AIX, 1, [Define if compiling for AIX])
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
])
|
|
|
|
|
2018-09-03 10:29:54 +03:00
|
|
|
dnl utimensat is supported since glibc 2.6 and specified in POSIX.1-2008
|
2024-06-01 18:44:28 +03:00
|
|
|
AC_CHECK_FUNCS([utimensat])
|
2018-09-03 10:29:54 +03:00
|
|
|
|
2018-09-04 11:57:11 +03:00
|
|
|
case $host_os in
|
|
|
|
*os400)
|
|
|
|
AC_DEFINE([PTY_ZEROREAD], [1], [read(1) can return 0 for a non-closed fd])
|
|
|
|
esac
|
|
|
|
|
2018-08-11 21:00:42 +03:00
|
|
|
dnl Check linux/fs.h for FICLONE to support BTRFS's file clone operation
|
|
|
|
case $host_os in
|
|
|
|
linux*)
|
|
|
|
AC_CHECK_HEADERS([linux/fs.h])
|
|
|
|
esac
|
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl Check if the OS is supported by the console saver.
|
|
|
|
cons_saver=""
|
|
|
|
case $host_os in
|
|
|
|
linux*)
|
|
|
|
cons_saver=yes
|
|
|
|
esac
|
2001-04-20 03:20:06 +04:00
|
|
|
|
2002-09-30 05:25:58 +04:00
|
|
|
dnl Check for gpm mouse support (Linux only)
|
1998-02-27 07:54:42 +03:00
|
|
|
mouse_lib="xterm only"
|
2012-08-10 13:09:07 +04:00
|
|
|
AC_ARG_WITH([gpm-mouse],
|
|
|
|
AS_HELP_STRING([--with-gpm-mouse], [Compile with gpm mouse support (Linux only) @<:@yes if found@:>@]))
|
2002-09-30 05:25:58 +04:00
|
|
|
|
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-05-05 17:19:32 +04:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl ############################################################################
|
|
|
|
dnl libmc
|
|
|
|
dnl ############################################################################
|
2002-10-30 05:37:48 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
LIBMC_VERSION="0.0.1"
|
|
|
|
LIBMC_RELEASE="1"
|
|
|
|
AC_SUBST(LIBMC_VERSION)
|
|
|
|
AC_SUBST(LIBMC_RELEASE)
|
2002-10-30 05:37:48 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
AC_ARG_ENABLE([mclib],
|
|
|
|
[AS_HELP_STRING([--enable-mclib], [Compile shared library libmc.so @<:@no@:>@])],
|
|
|
|
[
|
|
|
|
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])
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
AM_CONDITIONAL([ENABLE_MCLIB], [test x$enable_mclib = xyes])
|
2002-10-30 05:37:48 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
|
|
|
|
dnl ############################################################################
|
|
|
|
dnl MC options
|
|
|
|
dnl ############################################################################
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2016-11-03 10:46:11 +03:00
|
|
|
mc_ASSERT
|
|
|
|
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_WITH_INTERNAL_EDIT
|
2012-08-10 13:09:07 +04:00
|
|
|
|
|
|
|
dnl Diff viewer support.
|
|
|
|
AC_ARG_WITH([diff_viewer],
|
|
|
|
AS_HELP_STRING([--with-diff-viewer], [Compile with diff viewer @<:@yes@:>@]))
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
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
|
2002-08-04 10:49:03 +04:00
|
|
|
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_SUBSHELL
|
|
|
|
mc_BACKGROUND
|
2020-04-12 10:46:29 +03:00
|
|
|
mc_EXT2FS_ATTR
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_VFS_CHECKS
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl ############################################################################
|
|
|
|
dnl Directories
|
|
|
|
dnl ############################################################################
|
2011-11-07 17:34:20 +04:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl ${prefix} and ${exec_prefix} are undefined here if --prefix is not used in command line
|
|
|
|
dnl Let define ${prefix} and ${exec_prefix}
|
2012-09-25 17:07:03 +04:00
|
|
|
test "x$prefix" = "xNONE" && prefix="$ac_default_prefix"
|
|
|
|
test "x$exec_prefix" = "xNONE" && exec_prefix="${prefix}"
|
2011-11-07 17:34:20 +04:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
if test x${libexecdir} = x'${exec_prefix}/libexec'; then
|
|
|
|
EXTHELPERSDIR=${prefix}/libexec/${PACKAGE}/ext.d
|
2012-09-25 17:07:03 +04:00
|
|
|
elif test x${libexecdir} = x'${exec_prefix}/lib'; then
|
|
|
|
EXTHELPERSDIR=${prefix}/lib/${PACKAGE}/ext.d
|
2011-11-07 17:34:20 +04:00
|
|
|
else
|
2012-08-10 13:09:07 +04:00
|
|
|
EXTHELPERSDIR=${libexecdir}/${PACKAGE}/ext.d
|
2011-11-07 17:34:20 +04:00
|
|
|
fi
|
2012-08-10 13:09:07 +04:00
|
|
|
AC_SUBST(EXTHELPERSDIR)
|
2011-11-07 17:34:20 +04:00
|
|
|
|
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl ############################################################################
|
|
|
|
dnl Documentation
|
|
|
|
dnl ############################################################################
|
2003-10-26 02:25:51 +04:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
MAN_DATE="$(LC_ALL=C date "+%B %Y")"
|
|
|
|
AC_SUBST(MAN_DATE)
|
2003-10-26 02:25:51 +04:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl Determine which help translations we want to install.
|
|
|
|
ALL_DOC_LINGUAS="es hu it pl ru sr"
|
2001-05-31 04:53:06 +04:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
DOC_LINGUAS=
|
|
|
|
if test "x$USE_NLS" = xyes; then
|
|
|
|
if test -z "$LINGUAS"; then
|
|
|
|
langs="`grep -v '^#' $srcdir/po/LINGUAS`"
|
|
|
|
else
|
|
|
|
langs="$LINGUAS"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
langs=
|
2002-03-26 16:55:42 +03:00
|
|
|
fi
|
2001-05-31 04:53:06 +04:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
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)
|
2009-11-26 14:18:14 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
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)
|
2004-08-17 12:53:30 +04:00
|
|
|
|
2009-10-27 14:43:46 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
dnl ############################################################################
|
|
|
|
dnl Configure results
|
|
|
|
dnl ############################################################################
|
2009-10-30 00:57:40 +03:00
|
|
|
|
2009-11-26 14:18:14 +03:00
|
|
|
CFLAGS="$mc_configured_cflags $CFLAGS_OPTS $CFLAGS"
|
2009-10-30 00:29:32 +03:00
|
|
|
|
2012-08-10 13:09:07 +04:00
|
|
|
AC_SUBST(MCLIBS)
|
1998-02-27 07:54:42 +03:00
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(CPPFLAGS)
|
|
|
|
AC_SUBST(LDFLAGS)
|
|
|
|
AC_SUBST(LIBS)
|
|
|
|
|
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])
|
2013-06-15 12:55:16 +04:00
|
|
|
AM_CONDITIONAL(USE_INTERNAL_EDIT, [test x"$use_internal_edit" = xyes ])
|
2012-04-26 14:05:48 +04:00
|
|
|
AM_CONDITIONAL(USE_ASPELL, [test x"$enable_aspell" = xyes ])
|
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"])
|
2013-07-24 09:59:55 +04:00
|
|
|
dnl Clarify do we really need GModule
|
|
|
|
AM_CONDITIONAL([HAVE_GMODULE], [test -n "$g_module_supported" && \
|
|
|
|
test x"$textmode_x11_support" = x"yes" -o x"$enable_aspell" = x"yes"])
|
2001-03-15 04:18:14 +03:00
|
|
|
|
2019-11-10 05:01:48 +03:00
|
|
|
AC_ARG_ENABLE([configure-args],
|
2022-08-18 13:45:06 +03:00
|
|
|
AS_HELP_STRING([--enable-configure-args], [Embed ./configure arguments into binaries]))
|
2019-11-10 05:01:48 +03:00
|
|
|
if test "x$enable_configure_args" != xno; then
|
|
|
|
AC_DEFINE([ENABLE_CONFIGURE_ARGS], 1, [Define to enable showing configure arguments in help])
|
|
|
|
AC_DEFINE_UNQUOTED([MC_CONFIGURE_ARGS], ["$ac_configure_args"], [MC configure arguments])
|
|
|
|
fi
|
|
|
|
|
2012-08-10 13:09:07 +04: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-05-08 17:56:02 +04:00
|
|
|
|
|
|
|
misc/Makefile
|
2019-07-07 16:27:53 +03:00
|
|
|
misc/mc.charsets
|
2014-09-04 13:32:09 +04:00
|
|
|
misc/mc.menu
|
|
|
|
misc/mcedit.menu
|
2009-09-04 18:22:49 +04:00
|
|
|
misc/skins/Makefile
|
2012-03-07 04:20:30 +04:00
|
|
|
misc/ext.d/Makefile
|
|
|
|
misc/ext.d/doc.sh
|
2012-05-18 17:32:48 +04:00
|
|
|
misc/ext.d/misc.sh
|
2012-03-07 04:20:30 +04:00
|
|
|
misc/ext.d/text.sh
|
|
|
|
misc/ext.d/web.sh
|
2011-02-04 13:15:43 +03:00
|
|
|
misc/macros.d/Makefile
|
2022-07-22 20:18:16 +03:00
|
|
|
misc/mc.ext.ini
|
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
|
2015-11-10 15:54:40 +03:00
|
|
|
src/subshell/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
|
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
|
2012-05-18 17:32:48 +04:00
|
|
|
src/vfs/extfs/helpers/ulib
|
2020-10-16 11:44:38 +03:00
|
|
|
src/vfs/extfs/helpers/unar
|
2011-02-15 16:44:17 +03:00
|
|
|
src/vfs/extfs/helpers/urar
|
2020-10-04 19:23:24 +03:00
|
|
|
src/vfs/extfs/helpers/uwim
|
2011-02-15 16:44:17 +03:00
|
|
|
src/vfs/extfs/helpers/uzip
|
|
|
|
src/vfs/extfs/helpers/uzoo
|
|
|
|
|
2023-09-24 17:32:22 +03:00
|
|
|
src/vfs/shell/Makefile
|
|
|
|
src/vfs/shell/helpers/Makefile
|
2011-02-15 16:44:17 +03:00
|
|
|
|
|
|
|
src/vfs/ftpfs/Makefile
|
|
|
|
|
2012-04-13 14:40:53 +04:00
|
|
|
src/vfs/sftpfs/Makefile
|
|
|
|
|
2011-02-15 16:44:17 +03:00
|
|
|
src/vfs/local/Makefile
|
|
|
|
|
|
|
|
src/vfs/sfs/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
|
2013-03-27 01:57:29 +04:00
|
|
|
|
2009-01-13 15:36:26 +03:00
|
|
|
doc/hints/Makefile
|
2013-03-27 01:57:29 +04:00
|
|
|
doc/hints/l10n/Makefile
|
|
|
|
|
2012-03-22 21:14:52 +04:00
|
|
|
doc/man/Makefile
|
|
|
|
doc/man/es/Makefile
|
|
|
|
doc/man/hu/Makefile
|
|
|
|
doc/man/it/Makefile
|
|
|
|
doc/man/pl/Makefile
|
|
|
|
doc/man/ru/Makefile
|
|
|
|
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
|
|
|
po/Makefile.in
|
2001-09-13 00:45:46 +04:00
|
|
|
])
|
|
|
|
|
2022-12-04 16:26:40 +03:00
|
|
|
dnl https://stackoverflow.com/questions/30897170/ac-subst-does-not-expand-variable/30932102#30932102
|
|
|
|
AC_CONFIG_FILES(
|
2023-05-19 18:29:56 +03:00
|
|
|
[misc/syntax/Syntax], [${SED-sed} -e "s%\${prefix}%$PREFIX%" misc/syntax/Syntax > misc/syntax/Syntax.tmp && \
|
|
|
|
mv -f misc/syntax/Syntax.tmp misc/syntax/Syntax], [export PREFIX=$prefix]
|
2022-12-04 16:26:40 +03:00
|
|
|
)
|
|
|
|
|
2016-10-31 19:03:41 +03:00
|
|
|
AC_CONFIG_FILES([
|
2011-07-11 12:22:46 +04:00
|
|
|
tests/Makefile
|
|
|
|
tests/lib/Makefile
|
|
|
|
tests/lib/mcconfig/Makefile
|
|
|
|
tests/lib/search/Makefile
|
2013-01-10 23:44:14 +04:00
|
|
|
tests/lib/strutil/Makefile
|
2011-07-11 12:22:46 +04:00
|
|
|
tests/lib/vfs/Makefile
|
2024-09-13 11:18:11 +03:00
|
|
|
tests/lib/vfs/mc.charsets
|
2013-01-25 15:30:17 +04:00
|
|
|
tests/lib/widget/Makefile
|
2011-10-12 17:08:50 +04:00
|
|
|
tests/src/Makefile
|
|
|
|
tests/src/filemanager/Makefile
|
2013-03-15 19:59:54 +04:00
|
|
|
tests/src/editor/Makefile
|
|
|
|
tests/src/editor/test-data.txt
|
2016-12-16 10:01:16 +03:00
|
|
|
tests/src/vfs/Makefile
|
|
|
|
tests/src/vfs/extfs/Makefile
|
|
|
|
tests/src/vfs/extfs/helpers-list/Makefile
|
2017-01-08 14:28:39 +03:00
|
|
|
tests/src/vfs/extfs/helpers-list/data/config.sh
|
2017-01-02 07:07:34 +03:00
|
|
|
tests/src/vfs/extfs/helpers-list/misc/Makefile
|
2021-02-25 16:21:28 +03:00
|
|
|
tests/src/vfs/ftpfs/Makefile
|
2011-03-09 12:33:46 +03:00
|
|
|
])
|
|
|
|
|
2001-09-13 00:45:46 +04:00
|
|
|
AC_OUTPUT
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2012-10-09 15:45:13 +04:00
|
|
|
AC_MSG_NOTICE([
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Configuration:
|
|
|
|
|
2020-04-12 10:46:29 +03:00
|
|
|
Source code location: ${srcdir}
|
|
|
|
Compiler: ${CC}
|
|
|
|
Compiler flags: ${CFLAGS}
|
|
|
|
Assertions: ${enable_assert}
|
|
|
|
Unit tests: ${tests_msg}
|
|
|
|
File system: ${vfs_type}
|
|
|
|
${vfs_flags}
|
|
|
|
Screen library: ${screen_msg}
|
|
|
|
Mouse support: ${mouse_lib}
|
|
|
|
X11 events support: ${textmode_x11_support}
|
|
|
|
With subshell support: ${subshell}
|
|
|
|
With background operations: ${enable_background}
|
|
|
|
With ext2fs attributes support: ${ext2fs_attr_msg}
|
|
|
|
Internal editor: ${edit_msg}
|
|
|
|
Diff viewer: ${diff_msg}
|
|
|
|
Support for charset: ${charset_msg}
|
|
|
|
Search type: ${SEARCH_TYPE}
|
2012-10-09 15:45:13 +04:00
|
|
|
])
|
2013-07-03 11:21:36 +04:00
|
|
|
|
|
|
|
dnl option checking is disable by default due to AC_CONFIG_SUBDIRS
|
|
|
|
dnl we enable it back for top-level ./configure
|
|
|
|
if test -n "$ac_unrecognized_opts"; then
|
|
|
|
case $enable_option_checking in
|
|
|
|
fatal) AC_MSG_ERROR([unrecognized options: $ac_unrecognized_opts]) ;;
|
|
|
|
*) AC_MSG_WARN( [unrecognized options: $ac_unrecognized_opts]) ;;
|
|
|
|
esac
|
|
|
|
fi
|