Ticket #3621: fix segfault when enter in some cpio archives.
[midnight-commander.git] / m4.include / mc-background.m4
blob8b03e13a759519de70b3bac044ecde127c114361
1 dnl
2 dnl Support for background operations
3 dnl
5 AC_DEFUN([mc_BACKGROUND],
7     AC_ARG_ENABLE([background],
8     AS_HELP_STRING([--enable-background], [Support for background file operations [yes]]),
9     [
10         if test "x$enableval" = xno; then
11             enable_background=no
12         else
13             enable_background=yes
14         fi
15     ],
16     [enable_background=yes])
18     if test "x$enable_background" = xyes; then
19         AC_DEFINE(ENABLE_BACKGROUND, 1, [Define to enable background file operations])
20     fi
22     AM_CONDITIONAL(ENABLE_BACKGROUND, [test "x$enable_background" = xyes])