2012-01-09 15:48:39 +04:00
|
|
|
dnl
|
|
|
|
dnl Support for background operations
|
|
|
|
dnl
|
|
|
|
|
2016-01-04 21:43:19 +03:00
|
|
|
AC_DEFUN([mc_BACKGROUND],
|
2012-01-09 15:48:39 +04:00
|
|
|
[
|
|
|
|
AC_ARG_ENABLE([background],
|
2019-09-15 10:39:43 +03:00
|
|
|
AS_HELP_STRING([--enable-background], [Support for background file operations @<:@yes@:>@]),
|
2012-06-22 13:47:53 +04:00
|
|
|
[
|
|
|
|
if test "x$enableval" = xno; then
|
2016-01-04 21:43:19 +03:00
|
|
|
enable_background=no
|
2012-06-22 13:47:53 +04:00
|
|
|
else
|
2016-01-04 21:43:19 +03:00
|
|
|
enable_background=yes
|
2012-06-22 13:47:53 +04:00
|
|
|
fi
|
|
|
|
],
|
|
|
|
[enable_background=yes])
|
2012-01-09 15:48:39 +04:00
|
|
|
|
|
|
|
if test "x$enable_background" = xyes; then
|
|
|
|
AC_DEFINE(ENABLE_BACKGROUND, 1, [Define to enable background file operations])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_BACKGROUND, [test "x$enable_background" = xyes])
|
|
|
|
])
|